net-tools: register 'ifconfig' alternatives group.

This commit is contained in:
Juan RP 2015-11-09 17:15:21 +01:00
parent 0fb1a33480
commit 21388ea92b
1 changed files with 8 additions and 1 deletions

View File

@ -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 <xtraeme@voidlinux.eu>"
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