DESCRIPTION = "A collection of core GNU utilities."
RREPLACES = "textutils shellutils fileutils"
RPROVIDES = "textutils shellutils fileutils"
-PR = "r3"
+PR = "r4"
SRC_URI = "ftp://alpha.gnu.org/gnu/coreutils/coreutils-${PV}.tar.bz2 \
file://install-cross.patch;patch=1;pnum=0 \
inherit autotools
+# [ gets a special treatment and is not included in this
bindir_progs = "basename cksum comm csplit cut dir dircolors dirname du \
env expand expr factor fmt fold groups head hostid id install \
join link logname md5sum mkfifo nice nl nohup od paste pathchk \
unlink uptime users vdir wc who whoami yes \
"
-base_bindir_progs = "cat chgrp chmod chown cp date dd echo false hostname kill \
+# hostname gets a special treatment and is not included in this
+base_bindir_progs = "cat chgrp chmod chown cp date dd echo false kill \
ln ls mkdir mknod mv pwd rm rmdir sleep stty sync touch \
true uname \
"
# Renaming and moving the utilities that should go in /bin (FHS)
install -d ${D}${base_bindir}
for i in ${base_bindir_progs}; do mv ${D}${bindir}/$i ${D}${base_bindir}/$i.${PN}; done
+ mv ${D}${bindir}/hostname ${D}${base_bindir}/hostname.${PN}
# Renaming and moving the utilities that should go in /usr/sbin (FHS)
install -d ${D}${sbindir}
# The utilities in /bin
for i in ${base_bindir_progs}; do update-alternatives --install ${base_bindir}/$i $i $i.${PN} 100; done
+ # coreutils hostname is retarded and doesn't know about -F, put at priority 10
+ update-alternatives --install ${base_bindir}/hostname hostname hostname.${PN} 10
# The utilities in /usr/sbin
for i in ${sbindir_progs}; do update-alternatives --install ${sbindir}/$i $i $i.${PN} 100; done
# The utilities in /bin
for i in ${base_bindir_progs}; do update-alternatives --remove $i $i.${PN}; done
+ update-alternatives --remove hostname hostname.${PN}
# The utilities in /usr/sbin
for i in ${sbindir_progs}; do update-alternatives --remove $i $i.${PN}; done