net-tools: Add hostname to alternatives
This commit is contained in:
parent
047b6eb138
commit
04c81665d5
1 changed files with 7 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'net-tools'
|
||||
pkgname=net-tools
|
||||
version=1.60.20150526git
|
||||
revision=3
|
||||
revision=4
|
||||
hostmakedepends="git"
|
||||
short_desc="Basic networking tools"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
|
@ -10,7 +10,9 @@ license="GPL-2"
|
|||
|
||||
alternatives="
|
||||
ifconfig:ifconfig:/usr/bin/${pkgname}-ifconfig
|
||||
ifconfig:/usr/share/man/man1/ifconfig.1:/usr/share/man/man8/${pkgname}-ifconfig.8"
|
||||
ifconfig:/usr/share/man/man1/ifconfig.1:/usr/share/man/man8/${pkgname}-ifconfig.8
|
||||
hostname:hostname:/usr/bin/${pkgname}-hostname
|
||||
hostname:/usr/share/man/man1/hostname.1:/usr/share/man/man8/${pkgname}-hostname.1"
|
||||
|
||||
do_fetch() {
|
||||
git clone git://git.code.sf.net/p/net-tools/code ${pkgname}-${version}
|
||||
|
@ -51,9 +53,9 @@ do_install() {
|
|||
# Rename ifconfig for alternatives.
|
||||
mv ${DESTDIR}/usr/bin/{ifconfig,${pkgname}-ifconfig}
|
||||
mv ${DESTDIR}/usr/share/man/man8/{ifconfig,${pkgname}-ifconfig}.8
|
||||
# Remove hostname(1), conflicts with coreutils/busybox.
|
||||
rm ${DESTDIR}/usr/bin/hostname
|
||||
rm ${DESTDIR}/usr/share/man/man1/hostname.1
|
||||
# Rename hostname(1) for alternatives.
|
||||
mv ${DESTDIR}/usr/bin/{hostname,${pkgname}-hostname}
|
||||
mv ${DESTDIR}/usr/share/man/man1/{hostname,${pkgname}-hostname}.1
|
||||
# Remove dnsdomainname(1), conflicts with busybox/inetutils.
|
||||
rm ${DESTDIR}/usr/bin/*domainname
|
||||
rm ${DESTDIR}/usr/share/man/man1/*domainname*
|
||||
|
|
Loading…
Reference in a new issue