From 21388ea92bcabebcd3107bb4c28f3f6dd63f8a45 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 9 Nov 2015 17:15:21 +0100 Subject: [PATCH] net-tools: register 'ifconfig' alternatives group. --- srcpkgs/net-tools/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/net-tools/template b/srcpkgs/net-tools/template index b54c3f0f4f1..8de63d5c7cc 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