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