diff options
author | Kevin Tian <kevin.tian@intel.com> | 2010-08-26 16:14:29 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 13:29:50 +0100 |
commit | 98bd03a50833903e3fca3958af3a448fc8dcf3a9 (patch) | |
tree | 3507f153321c5fb980ff62d9b0eac8e44009de4d /meta/packages | |
parent | cc0a7034c21d3b3cb4a4793bbac22dcd76b16f28 (diff) | |
download | poky-98bd03a50833903e3fca3958af3a448fc8dcf3a9.tar.gz |
coreutils (GPLv3): add latest version (8.5)
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/coreutils/coreutils_8.5.bb | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/meta/packages/coreutils/coreutils_8.5.bb b/meta/packages/coreutils/coreutils_8.5.bb new file mode 100644 index 0000000000..5213fa2937 --- /dev/null +++ b/meta/packages/coreutils/coreutils_8.5.bb | |||
@@ -0,0 +1,67 @@ | |||
1 | DESCRIPTION = "The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system. These are the core utilities which are expected to exist on every operating system" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/coreutils/" | ||
3 | BUGTRACKER = "http://debbugs.gnu.org/coreutils" | ||
4 | LICENSE = "GPLv3+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504\ | ||
6 | file://src/ls.c;startline=5;endline=16;md5=bb14ed3c4cda583abc85401304b5cd4e" | ||
7 | PR = "r0" | ||
8 | DEPENDS = "perl-native" | ||
9 | |||
10 | inherit autotools gettext | ||
11 | |||
12 | SRC_URI = "http://ftp.gnu.org/gnu/coreutils/${BP}.tar.gz" | ||
13 | |||
14 | # [ gets a special treatment and is not included in this | ||
15 | bindir_progs = "base64 basename chcon cksum comm csplit cut dir dircolors dirname du \ | ||
16 | env expand expr factor fmt fold groups head hostid id install \ | ||
17 | join link logname md5sum mkfifo mktemp nice nl nohup nproc od paste pathchk \ | ||
18 | pinky pr printenv printf ptx readlink runcon seq sha1sum sha224sum sha256sum \ | ||
19 | sha384sum sha512sum shred shuf sort split stat stdbuf sum tac tail tee test timeout\ | ||
20 | tr truncate tsort tty unexpand uniq unlink uptime users vdir wc who whoami yes" | ||
21 | |||
22 | # hostname gets a special treatment and is not included in this | ||
23 | base_bindir_progs = "cat chgrp chmod chown cp date dd echo false kill ln ls mkdir \ | ||
24 | mknod mv pwd rm rmdir sleep stty sync touch true uname" | ||
25 | |||
26 | sbindir_progs= "chroot" | ||
27 | |||
28 | do_install_append() { | ||
29 | for i in ${bindir_progs}; do mv ${D}${bindir}/$i ${D}${bindir}/$i.${PN}; done | ||
30 | |||
31 | install -d ${D}${base_bindir} | ||
32 | for i in ${base_bindir_progs}; do mv ${D}${bindir}/$i ${D}${base_bindir}/$i.${PN}; done | ||
33 | |||
34 | install -d ${D}${sbindir} | ||
35 | for i in ${sbindir_progs}; do mv ${D}${bindir}/$i ${D}${sbindir}/$i.${PN}; done | ||
36 | |||
37 | # [ requires special handling because [.coreutils will cause the sed stuff | ||
38 | # in update-alternatives to fail, therefore use lbracket - the name used | ||
39 | # for the actual source file. | ||
40 | mv ${D}${bindir}/[ ${D}${bindir}/lbracket.${PN} | ||
41 | } | ||
42 | |||
43 | pkg_postinst_${PN} () { | ||
44 | for i in ${bindir_progs}; do update-alternatives --install ${bindir}/$i $i $i.${PN} 100; done | ||
45 | |||
46 | for i in ${base_bindir_progs}; do update-alternatives --install ${base_bindir}/$i $i $i.${PN} 100; done | ||
47 | |||
48 | for i in ${sbindir_progs}; do update-alternatives --install ${sbindir}/$i $i $i.${PN} 100; done | ||
49 | |||
50 | # Special cases. [ needs to be treated separately. | ||
51 | update-alternatives --install '${bindir}/[' '[' 'lbracket.${PN}' 100 | ||
52 | } | ||
53 | |||
54 | pkg_prerm_${PN} () { | ||
55 | for i in ${bindir_progs}; do update-alternatives --remove $i $i.${PN}; done | ||
56 | |||
57 | for i in ${base_bindir_progs}; do update-alternatives --remove $i $i.${PN}; done | ||
58 | |||
59 | for i in ${sbindir_progs}; do update-alternatives --remove $i $i.${PN}; done | ||
60 | |||
61 | # The special cases | ||
62 | update-alternatives --remove hostname hostname.${PN} | ||
63 | update-alternatives --remove uptime uptime.${PN} | ||
64 | update-alternatives --remove '[' 'lbracket.${PN}' | ||
65 | } | ||
66 | |||
67 | BBCLASSEXTEND = "native" | ||