From 02b789854cdc7018aac0a0afc75b6fa38630b0a0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 9 Nov 2015 17:32:08 +0100 Subject: [PATCH] iputils: register 'ping{,6}' alternative groups. --- srcpkgs/iputils/template | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/srcpkgs/iputils/template b/srcpkgs/iputils/template index 749d78b952..664de5a053 100644 --- a/srcpkgs/iputils/template +++ b/srcpkgs/iputils/template @@ -1,7 +1,7 @@ # Template file for 'iputils' pkgname=iputils version=20121221 -revision=12 +revision=13 build_pie=yes patch_args="-Np1" wrksrc="${pkgname}-s${version}" @@ -13,6 +13,12 @@ homepage="http://www.skbuff.net/iputils" distfiles="http://www.skbuff.net/iputils/${pkgname}-s${version}.tar.bz2" checksum=450f549fc5b620c23c5929aa6d54b7ddfc7ee1cb1e8efdc5e8bb21d8d0c5319f +alternatives=" + ping:ping:/usr/bin/${pkgname}-ping + ping:ping.8:/usr/share/man/man8/${pkgname}-ping.8 + ping6:ping6:/usr/bin/${pkgname}-ping6 + ping6:ping6.8:/usr/share/man/man8/${pkgname}-ping6.8" + do_build() { make CC="$CC" LD="$LD" CCOPTOPT="$CFLAGS" LDFLAGS="$LDFLAGS" \ USE_GNUTLS=no ${makejobs} \ @@ -21,7 +27,7 @@ do_build() { do_install() { for f in ping ping6; do - vinstall ${f} 4755 usr/bin + vinstall ${f} 4755 usr/bin ${pkgname}-${f} done for f in clockdiff arping rdisc tracepath tracepath6; do vinstall ${f} 755 usr/bin @@ -29,7 +35,7 @@ do_install() { 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 + mv ${DESTDIR}/usr/share/man/man8/{ping,${pkgname}-ping}.8 + ln -s ${pkgname}-ping.8 ${DESTDIR}/usr/share/man/man8/${pkgname}-ping6.8 + ln -s tracepath.8 ${DESTDIR}/usr/share/man/man8/tracepath6.8 }