CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
inetutils: removed hostname
[crossrootfs.git] / inetutils / Pkgfile
index 057a8492ce9fa8c02be8e71c90409d59491ea4b2..7baf897c8416635ffc7123e8e2918459aad310f2 100644 (file)
@@ -1,17 +1,24 @@
 # Description: Inetd daemon, FTP and telnet client
 # URL: http://www.gnu.org/software/inetutils/inetutils.html
 # Maintainer: CRUX System Team, core-ports at crux dot nu
-# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 # Depends on: ncurses
 
 name=inetutils
-version=1.7
-release=1
+version=1.9.1
+release=4
 source=(http://ftp.gnu.org/gnu/inetutils/inetutils-$version.tar.gz \
-        inetd.conf inetd)
+        inetd.conf inetd $name-$version-pathprocnet.patch)
 
 build() {
   cd inetutils-$version
+
+  # fix for glibc 'gets' removal
+  sed -i -e '/gets is a/d' lib/stdio.in.h
+
+  # Fix for PATH_PROC_NET undefined error
+  patch -p1 -i $SRC/$name-$version-pathprocnet.patch
+
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
@@ -20,11 +27,15 @@ build() {
               --localstatedir=/var \
               --sysconfdir=/etc \
               --disable-{servers,clients} \
-              --enable-{inetd,ftp,telnet}
+              --enable-{ifconfig,inetd,ftp,telnet,traceroute}
+
   make
   make DESTDIR=$PKG install
+
   install -d $PKG/etc/rc.d
+
   install -m 644 $SRC/inetd.conf $PKG/etc
   install -m 755 $SRC/inetd $PKG/etc/rc.d
+
   rm -r $PKG/usr/share
 }