summaryrefslogtreecommitdiffstats
path: root/iputils/Pkgfile
blob: 06754e966945cb86db9cfedf54e8e4d1b7b6ffa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
description="Basic networking applet."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.linux-foundation.org/en/Net:Iputils"
depends=(sysfsutils)

name=iputils
version=s20101006
release=1
source=(http://www.skbuff.net/$name/$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;
	make; ## FIXME : Not portable       \/
	install -d $PKG/{{s,}bin,$prefix/{share/man/man8,sbin}};
	install ping{,6} $PKG/bin/;
	install arping $PKG/sbin/;
	install tracepath{,6} traceroute6 clockdiff rarpd rdisc $PKG$prefix/sbin/;
	cp -d $SRC/$name-man-$version/* $PKG$mandir/man8;
	chmod u+s $PKG/bin/ping{,6} $PKG$prefix/sbin/traceroute6
}