forked from ports/contrib
22 lines
740 B
Plaintext
22 lines
740 B
Plaintext
# Description: fping - send ICMP ECHO_REQUEST packets to network hosts.
|
|
# URL: http://www.fping.com/
|
|
# Packager: James Mills, prologic at shortcircuit dot net dot au
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
# Depends on:
|
|
|
|
name=fping
|
|
version=2.4b2_to
|
|
release=1
|
|
source=(http://www.mirrorservice.org/sites/ftp.wiretapped.net/pub/security/network-mapping/fping/$name-$version.tar.gz)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
./configure --prefix=/usr
|
|
sed -i "/^CFLAGS/s/-O2 -pipe/$CFLAGS/" Makefile
|
|
install -d $PKG/usr/bin
|
|
make && make prefix=$PKG/usr install
|
|
sed "s|$PKG||g" $SRC/$name-$version/$name.8 > $PKG/usr/man/man8/$name.8
|
|
chmod u+s $PKG/usr/sbin/$name
|
|
ln -sf /usr/sbin/$name $PKG/usr/bin/$name
|
|
}
|