40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# Template file for 'iputils'
|
|
pkgname=iputils
|
|
version=20121221
|
|
revision=2
|
|
patch_args="-Np1"
|
|
wrksrc="${pkgname}-s${version}"
|
|
makedepends="openssl-devel libcap-devel"
|
|
crossmakedepends="${makedepends}"
|
|
depends="libcap-progs"
|
|
short_desc="IP Configuration Utilities (and ping)"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="BSD"
|
|
homepage="http://www.skbuff.net/iputils"
|
|
distfiles="http://www.skbuff.net/iputils/${pkgname}-s${version}.tar.bz2"
|
|
checksum=450f549fc5b620c23c5929aa6d54b7ddfc7ee1cb1e8efdc5e8bb21d8d0c5319f
|
|
|
|
do_build() {
|
|
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
|
make CC="$XBPS_CROSS_TRIPLET-gcc" LD="$XBPS_CROSS_TRIPLET-ld" \
|
|
USE_GNUTLS=no CCOPTOPT="$CFLAGS" ${makejobs} \
|
|
arping clockdiff ping ping6 rdisc tracepath tracepath6
|
|
else
|
|
make USE_GNUTLS=no CCOPTOPT="${CFLAGS}" ${makejobs} \
|
|
arping clockdiff ping ping6 rdisc tracepath tracepath6
|
|
fi
|
|
}
|
|
|
|
do_install() {
|
|
for f in clockdiff arping ping ping6 rdisc tracepath tracepath6; do
|
|
vinstall ${f} 755 usr/sbin
|
|
done
|
|
for f in clockdiff arping ping rdisc tracepath; do
|
|
vinstall doc/${f}.8 644 usr/share/man/man8
|
|
done
|
|
cd ${DESTDIR}/usr/share/man/man8
|
|
ln -s ping.8 ping6.8
|
|
ln -s tracepath.8 tracepath6.8
|
|
|
|
}
|