CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
kbd: updated to 2.0.1
[crossrootfs.git] / iputils / Pkgfile
index bde286bbe3f2e98dd5536897adafdcccb49aca19..9d4f1ca795073e4c7d037116729f3c26d5151e2a 100644 (file)
@@ -2,26 +2,26 @@
 # 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, devel@crux-arm.nu
-# Depends on:
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: sysfsutils libcap
 
 name=iputils
-version=s20100214
+version=s20121221
 release=1
-source=(http://www.skbuff.net/iputils/$name-$version.tar.bz2 \
+source=(http://www.skbuff.net/iputils/$name-$version.tar.bz2
         http://crux.nu/files/distfiles/$name-man-$version.tar.xz)
 
 build() {
   cd $name-$version
-  sed -i "/^CCOPT=/s|-O2|$CFLAGS|;s| -g$||" Makefile
-  sed 's/IPV6_TARGETS=*/IPV6_TARGETS=/' -i Makefile
+  sed -e "s|arping.o -lsysfs|arping.o $CLFS/usr/lib/libsysfs.so|" \
+      -e 's/IPV6_TARGETS=*/IPV6_TARGETS=/' -i Makefile
 
-  make CC="$CC" CFLAGS="$CFLAGS"
+  make CC="$CC" CFLAGS="$CFLAGS $CCOPT -I$CLFS/usr/include" USE_GNUTLS=no
   
   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.*