CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
e2fsprogs: updated to 1.42.5 and aligned with upstream
[crossrootfs.git] / iputils / Pkgfile
index cf87f76c85381c0ef419a18155e1f400bfd4abfc..39323415002ef4015d92436e8f519d7dfa9314dd 100644 (file)
@@ -2,28 +2,28 @@
 # URL: http://www.linux-foundation.org/en/Net:Iputils
 # Maintainer: CRUX System Team, core-ports at crux dot nu
 # Packager: Juergen Daubert, juergen dot daubert at t-online dot de
-# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
-# Depends on:
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: sysfsutils
 
 name=iputils
-version=s20071127
+version=s20101006
 release=1
-source=(http://www.skbuff.net/iputils/$name-$version.tar.bz2 \
-        http://crux.nu/~jue/files/dist/$name-man-$version.tar.bz2 \
-        $name-$version-open_max.patch)
+source=(http://www.skbuff.net/iputils/$name-$version.tar.bz2
+        http://crux.nu/files/distfiles/$name-man-$version.tar.xz
+        iputils-s20101006-fixes-1.patch)
 
 build() {
   cd $name-$version
-  patch -p1 -i $SRC/$name-$version-open_max.patch
-  sed -i "/^CCOPT=/s|-O2|$CFLAGS|;s| -g$||" Makefile
-  sed 's/IPV6_TARGETS=*/IPV6_TARGETS=/' -i Makefile
-
-  make CC="$CC" CFLAGS="$CFLAGS"
+  sed -e "s|arping.o -lsysfs|arping.o $CLFS/usr/lib/libsysfs.so|" \
+      -e 's/IPV6_TARGETS=*/IPV6_TARGETS=/' -i Makefile
 
+  patch -p1 -i $SRC/iputils-s20101006-fixes-1.patch
+  make CC="$CC" CFLAGS="$CFLAGS $CCOPT -I$CLFS/usr/include"
+  
   install -d $PKG/{{s,}bin,usr/{man/man8,sbin}}
   install ping $PKG/bin
   install arping $PKG/sbin
-  install tracepath clockdiff rarpd rdisc ipg tftpd $PKG/usr/sbin
+  install tracepath clockdiff rarpd rdisc ipg $PKG/usr/sbin
   cp -d $SRC/$name-man-$version/* $PKG/usr/man/man8
 
   rm $PKG/usr/man/man8/*6.*