[arch-commits] Commit in netkit-ftp/trunk (PKGBUILD netkit-ftp-argmax.patch)

Allan McRae allan at archlinux.org
Sun Aug 17 06:12:39 UTC 2008


    Date: Sunday, August 17, 2008 @ 02:12:38
  Author: allan
Revision: 9317

upgpkg: netkit-ftp 0.17-6
    ncurses rebuild

Added:
  netkit-ftp/trunk/netkit-ftp-argmax.patch
Modified:
  netkit-ftp/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |   14 ++++++++++----
 netkit-ftp-argmax.patch |   22 ++++++++++++++++++++++
 2 files changed, 32 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-08-17 06:12:33 UTC (rev 9316)
+++ PKGBUILD	2008-08-17 06:12:38 UTC (rev 9317)
@@ -4,19 +4,25 @@
 
 pkgname=netkit-ftp
 pkgver=0.17
-pkgrel=5
+pkgrel=6
 pkgdesc="Commandline ftp client"
 arch=('i686' 'x86_64')
 url="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
 license=('BSD')
 depends=('ncurses' 'readline')
-source=(ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${pkgname}-${pkgver}.tar.gz LICENSE)
-md5sums=('94441610c9b86ef45c4c6ec609444060' '55ab9bfe93bc63699857622ec2960557')
+source=(ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${pkgname}-${pkgver}.tar.gz 
+        LICENSE
+        netkit-ftp-argmax.patch)
+md5sums=('94441610c9b86ef45c4c6ec609444060' 
+         '55ab9bfe93bc63699857622ec2960557'
+         '0c13002cce8ddac39ea0422a85fb6d8b')
 sha1sums=('815541a33bf02a43b5b41194389b8435e7890935'
-          'ab9c93ba8b1b02ee5b3b321d780d8010019980ef')
+          'ab9c93ba8b1b02ee5b3b321d780d8010019980ef'
+          '99dc9a0a4c56d16f03e81e92f2d85265dddbbd66')
 
 build() {
   cd ${startdir}/src/${pkgname}-${pkgver}
+  patch -Np1 -i $srcdir/netkit-ftp-argmax.patch
   ./configure --prefix=/usr
   make || return 1
   mkdir -p ${startdir}/pkg/usr/{bin,share/man/man1,share/man/man5}

Added: netkit-ftp-argmax.patch
===================================================================
--- netkit-ftp-argmax.patch	                        (rev 0)
+++ netkit-ftp-argmax.patch	2008-08-17 06:12:38 UTC (rev 9317)
@@ -0,0 +1,22 @@
+diff -ur netkit-ftp-0.17/ftp/glob.c netkit-ftp-0.17-mod/ftp/glob.c
+--- netkit-ftp-0.17/ftp/glob.c	1999-10-02 15:25:23.000000000 +0200
++++ netkit-ftp-0.17-mod/ftp/glob.c	2008-06-14 14:29:57.000000000 +0200
+@@ -50,10 +50,18 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <unistd.h>
+ 
+ #include "ftp_var.h"  /* for protos only */
+ #include "glob.h"
+ 
++#if defined(_SC_ARG_MAX)
++# if defined(ARG_MAX)
++#    undef ARG_MAX
++# endif
++# define ARG_MAX sysconf (_SC_ARG_MAX)
++#endif
++
+ #define	QUOTE 0200
+ #define	TRIM 0177
+ #define	eq(a,b)		(strcmp(a, b)==0)




More information about the arch-commits mailing list