coreutils: add hostname alternative.
This commit is contained in:
parent
5389ff9605
commit
cc1d13052e
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue