diff --git a/srcpkgs/coreutils/template b/srcpkgs/coreutils/template index e2d5db4354..5c5d3cd4f4 100644 --- a/srcpkgs/coreutils/template +++ b/srcpkgs/coreutils/template @@ -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 }