coreutils: add hostname alternative.

This commit is contained in:
Christian Neukirchen 2015-11-09 13:56:44 +01:00
parent 5389ff9605
commit cc1d13052e

View file

@ -1,7 +1,7 @@
# Template file for 'coreutils'
pkgname=coreutils
version=8.24
revision=3
revision=4
build_pie=yes
bootstrap=yes
makedepends="gmp-devel acl-devel libcap-devel"
@ -17,6 +17,11 @@ if [ "$CHROOT_READY" ]; then
hostmakedepends="perl"
fi
alternatives="
hostname:hostname:/usr/bin/hostname-coreutils
hostname:hostname.1:/usr/share/man/man1/hostname-coreutils.1
"
pre_configure() {
# Build natively all utils for the host, we need this to generate
# the manpages via help2man.
@ -73,4 +78,6 @@ do_install() {
# provided by procps-ng
rm -f ${DESTDIR}/usr/share/man/man1/{kill,uptime}.1
fi
mv ${DESTDIR}/usr/bin/hostname ${DESTDIR}/usr/bin/hostname-coreutils
mv ${DESTDIR}/usr/share/man/man1/hostname.1 ${DESTDIR}/usr/share/man/man1/hostname-coreutils.1
}