net-tools: remove useless *domainname symlinks/mans.

This commit is contained in:
Juan RP 2014-08-22 15:53:25 +02:00
parent f3e441ac83
commit 137b963805

View file

@ -1,7 +1,7 @@
# Template file for 'net-tools' # Template file for 'net-tools'
pkgname=net-tools pkgname=net-tools
version=1.60.20140221git version=1.60.20140221git
revision=1 revision=2
hostmakedepends="git" hostmakedepends="git"
short_desc="Basic networking tools" short_desc="Basic networking tools"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
@ -11,20 +11,20 @@ license="GPL-2"
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}
} }
pre_build() { pre_build() {
sed -i "s#/sbin#/bin#" Makefile sed -i "s#/sbin#/bin#" Makefile
sed -i "s#/usr##" man/Makefile sed -i "s#/usr##" man/Makefile
} }
do_build() { do_build() {
replace_interpreter bash configure.sh replace_interpreter bash configure.sh
yes "" | make yes "" | make
} }
do_install() { do_install() {
make DESTDIR=${DESTDIR}/usr update make DESTDIR=${DESTDIR}/usr update
# Remove hostname(1), conflicts with coreutils/busybox. # Remove hostname(1), conflicts with coreutils/busybox.
rm ${DESTDIR}/usr/bin/hostname rm ${DESTDIR}/usr/bin/hostname
rm ${DESTDIR}/usr/share/man/man1/hostname.1 rm ${DESTDIR}/usr/share/man/man1/hostname.1
# Remove dnsdomainname(1), conflicts with busybox/inetutils.
rm ${DESTDIR}/usr/bin/*domainname
rm ${DESTDIR}/usr/share/man/man1/*domainname*
} }