Commit | Line | Data |
---|---|---|
6dca1d21 JB |
1 | # Description: Basic networking applet |
2 | # URL: http://www.linux-foundation.org/en/Net:Iputils | |
3 | # Maintainer: CRUX System Team, core-ports at crux dot nu | |
4 | # Packager: Juergen Daubert, juergen dot daubert at t-online dot de | |
b751b192 | 5 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
49c8c768 | 6 | # Depends on: sysfsutils openssl libcap |
6dca1d21 JB |
7 | |
8 | name=iputils | |
103996c2 VM |
9 | version=s20151218 |
10 | release=1 | |
1e208d35 | 11 | source=(http://www.skbuff.net/iputils/$name-$version.tar.bz2 |
3cba7596 | 12 | http://crux.nu/files/distfiles/$name-man-$version.tar.xz) |
6dca1d21 JB |
13 | |
14 | build() { | |
15 | cd $name-$version | |
1e208d35 VM |
16 | sed -e "s|arping.o -lsysfs|arping.o $CLFS/usr/lib/libsysfs.so|" \ |
17 | -e 's/IPV6_TARGETS=*/IPV6_TARGETS=/' -i Makefile | |
54de1e76 | 18 | |
3cba7596 | 19 | make CC="$CC" CFLAGS="$CFLAGS $CCOPT -I$CLFS/usr/include" USE_GNUTLS=no |
6dca1d21 | 20 | |
49c8c768 VM |
21 | install -d $PKG/{{s,}bin,usr/{sbin,share/man/man8}} |
22 | install ping $PKG/bin/ | |
23 | install arping $PKG/sbin/ | |
24 | install tracepath clockdiff rarpd rdisc $PKG/usr/sbin/ | |
25 | cp -d $SRC/$name-man-$version/* $PKG/usr/share/man/man8 | |
54de1e76 | 26 | chmod u+s $PKG/bin/ping |
6dca1d21 | 27 | } |