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