2010-09-27 14:44:05 +00:00
|
|
|
SUMMARY = "The basic file, shell and text manipulation utilities."
|
|
|
|
DESCRIPTION = "The GNU Core Utilities provide the basic file, shell and text \
|
|
|
|
manipulation utilities. These are the core utilities which are expected to exist on \
|
|
|
|
every system."
|
2010-08-26 08:14:29 +00:00
|
|
|
HOMEPAGE = "http://www.gnu.org/software/coreutils/"
|
|
|
|
BUGTRACKER = "http://debbugs.gnu.org/coreutils"
|
|
|
|
LICENSE = "GPLv3+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504\
|
2011-01-20 06:01:08 +00:00
|
|
|
file://src/ls.c;startline=5;endline=16;md5=e1a509558876db58fb6667ba140137ad"
|
2012-07-04 06:43:06 +00:00
|
|
|
PR = "r5"
|
2011-12-22 20:13:46 +00:00
|
|
|
DEPENDS = "gmp libcap"
|
2012-10-27 08:48:17 +00:00
|
|
|
DEPENDS_class-native = ""
|
2010-08-26 08:14:29 +00:00
|
|
|
|
|
|
|
inherit autotools gettext
|
|
|
|
|
2011-10-20 19:24:46 +00:00
|
|
|
SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \
|
2011-08-03 21:12:30 +00:00
|
|
|
file://remove-usr-local-lib-from-m4.patch \
|
2012-07-04 06:43:06 +00:00
|
|
|
file://remove-gets.patch \
|
2012-08-21 07:43:00 +00:00
|
|
|
file://coreutils-build-with-acl.patch \
|
2011-08-03 21:12:30 +00:00
|
|
|
"
|
2011-10-20 19:24:46 +00:00
|
|
|
SRC_URI[md5sum] = "bcb135ce553493a45aba01b39eb3920a"
|
|
|
|
SRC_URI[sha256sum] = "0d120817c19292edb19e92ae6b8eac9020e03d51e0af9cb116cf82b65d18b02d"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2012-10-27 08:48:17 +00:00
|
|
|
EXTRA_OECONF_class-native = "--without-gmp"
|
2011-03-22 16:46:27 +00:00
|
|
|
|
2011-12-01 12:02:09 +00:00
|
|
|
# [ df mktemp base64 gets a special treatment and is not included in this
|
|
|
|
bindir_progs = "basename chcon cksum comm csplit cut dir dircolors dirname du \
|
2010-08-26 08:14:29 +00:00
|
|
|
env expand expr factor fmt fold groups head hostid id install \
|
2011-12-01 12:02:09 +00:00
|
|
|
join link logname md5sum mkfifo nice nl nohup nproc od paste pathchk \
|
2010-08-26 08:14:29 +00:00
|
|
|
pinky pr printenv printf ptx readlink runcon seq sha1sum sha224sum sha256sum \
|
|
|
|
sha384sum sha512sum shred shuf sort split stat stdbuf sum tac tail tee test timeout\
|
2011-12-01 12:02:09 +00:00
|
|
|
tr truncate tsort tty unexpand uniq unlink uptime users vdir wc who whoami yes"
|
2010-08-26 08:14:29 +00:00
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
|
|
|
sbindir_progs= "chroot"
|
|
|
|
|
|
|
|
do_install_append() {
|
2012-05-15 23:34:39 +00:00
|
|
|
for i in df mktemp base64; do mv ${D}${bindir}/$i ${D}${bindir}/$i.${BPN}; done
|
2010-08-26 08:14:29 +00:00
|
|
|
|
|
|
|
install -d ${D}${base_bindir}
|
2012-05-15 23:34:39 +00:00
|
|
|
[ "${base_bindir}" != "${bindir}" ] && for i in ${base_bindir_progs}; do mv ${D}${bindir}/$i ${D}${base_bindir}/$i.${BPN}; done
|
2010-08-26 08:14:29 +00:00
|
|
|
|
|
|
|
install -d ${D}${sbindir}
|
2012-05-15 23:34:39 +00:00
|
|
|
[ "${sbindir}" != "${bindir}" ] && for i in ${sbindir_progs}; do mv ${D}${bindir}/$i ${D}${sbindir}/$i.${BPN}; done
|
2010-08-26 08:14:29 +00:00
|
|
|
|
|
|
|
# [ requires special handling because [.coreutils will cause the sed stuff
|
|
|
|
# in update-alternatives to fail, therefore use lbracket - the name used
|
|
|
|
# for the actual source file.
|
2012-05-15 23:34:39 +00:00
|
|
|
mv ${D}${bindir}/[ ${D}${bindir}/lbracket.${BPN}
|
2011-10-20 19:24:46 +00:00
|
|
|
install -d ${D}${libdir}/coreutils
|
|
|
|
mv ${D}${libexecdir}/coreutils/libstdbuf.so ${D}${libdir}/coreutils
|
2010-08-26 08:14:29 +00:00
|
|
|
}
|
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
inherit update-alternatives
|
2010-08-26 08:14:29 +00:00
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
ALTERNATIVE_PRIORITY = "100"
|
|
|
|
ALTERNATIVE_${PN} = "lbracket ${bindir_progs} ${base_bindir_progs} ${sbindir_progs} base64 mktemp df"
|
2010-08-26 08:14:29 +00:00
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
ALTERNATIVE_LINK_NAME[base64] = "${base_bindir}/base64"
|
|
|
|
ALTERNATIVE_TARGET[base64] = "${bindir}/base64.${BPN}"
|
2010-08-26 08:14:29 +00:00
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
ALTERNATIVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp"
|
|
|
|
ALTERNATIVE_TARGET[mktemp] = "${bindir}/mktemp.${BPN}"
|
2010-08-26 08:14:29 +00:00
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
ALTERNATIVE_LINK_NAME[df] = "${base_bindir}/df"
|
|
|
|
ALTERNATIVE_TARGET[df] = "${bindir}/df.${BPN}"
|
2010-08-26 08:14:29 +00:00
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
ALTERNATIVE_LINK_NAME[lbracket] = "${bindir}/["
|
|
|
|
ALTERNATIVE_TARGET[lbracket] = "${bindir}/lbracket.${BPN}"
|
2010-08-26 08:14:29 +00:00
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
python __anonymous() {
|
|
|
|
for prog in d.getVar('base_bindir_progs', True).split():
|
|
|
|
d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_bindir', True), prog))
|
2010-08-26 08:14:29 +00:00
|
|
|
|
2012-05-15 23:34:39 +00:00
|
|
|
for prog in d.getVar('sbindir_progs', True).split():
|
|
|
|
d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('sbindir', True), prog))
|
2010-08-26 08:14:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|