diff --git a/srcpkgs/net-tools/template b/srcpkgs/net-tools/template index b54c3f0f4f..8de63d5c7c 100644 --- a/srcpkgs/net-tools/template +++ b/srcpkgs/net-tools/template @@ -1,13 +1,17 @@ # Template file for 'net-tools' pkgname=net-tools version=1.60.20150526git -revision=1 +revision=2 hostmakedepends="git" short_desc="Basic networking tools" maintainer="Juan RP " homepage="http://sourceforge.net/projects/$pkgname/" license="GPL-2" +alternatives=" + ifconfig:ifconfig:/usr/bin/${pkgname}-ifconfig + ifconfig:ifconfig.8:/usr/share/man/man1/${pkgname}-ifconfig.8" + do_fetch() { git clone git://git.code.sf.net/p/net-tools/code ${pkgname}-${version} } @@ -44,6 +48,9 @@ do_build() { } do_install() { make DESTDIR=${DESTDIR}/usr update + # Rename ifconfig for alternatives. + mv ${DESTDIR}/usr/bin/{ifconfig,${pkgname}-ifconfig} + mv ${DESTDIR}/usr/share/man/man1/${ifconfig,${pkgname}-ifconfig}.1 # Remove hostname(1), conflicts with coreutils/busybox. rm ${DESTDIR}/usr/bin/hostname rm ${DESTDIR}/usr/share/man/man1/hostname.1