diff options
Diffstat (limited to 'meta/recipes-extended/findutils/findutils_4.2.31.bb')
-rw-r--r-- | meta/recipes-extended/findutils/findutils_4.2.31.bb | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/meta/recipes-extended/findutils/findutils_4.2.31.bb b/meta/recipes-extended/findutils/findutils_4.2.31.bb index bd455a51a8..0c3783614e 100644 --- a/meta/recipes-extended/findutils/findutils_4.2.31.bb +++ b/meta/recipes-extended/findutils/findutils_4.2.31.bb | |||
@@ -8,7 +8,7 @@ SECTION = "console/utils" | |||
8 | 8 | ||
9 | LICENSE = "GPLv2+" | 9 | LICENSE = "GPLv2+" |
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" |
11 | PR = "r1" | 11 | PR = "r2" |
12 | 12 | ||
13 | SRC_URI = "${GNU_MIRROR}/findutils/findutils-${PV}.tar.gz \ | 13 | SRC_URI = "${GNU_MIRROR}/findutils/findutils-${PV}.tar.gz \ |
14 | file://gnulib-extension.patch" | 14 | file://gnulib-extension.patch" |
@@ -16,7 +16,10 @@ SRC_URI = "${GNU_MIRROR}/findutils/findutils-${PV}.tar.gz \ | |||
16 | SRC_URI[md5sum] = "a0e31a0f18a49709bf5a449867c8049a" | 16 | SRC_URI[md5sum] = "a0e31a0f18a49709bf5a449867c8049a" |
17 | SRC_URI[sha256sum] = "e0d34b8faca0b3cca0703f6c6b498afbe72f0ba16c35980c10ec9ef7724d6204" | 17 | SRC_URI[sha256sum] = "e0d34b8faca0b3cca0703f6c6b498afbe72f0ba16c35980c10ec9ef7724d6204" |
18 | 18 | ||
19 | inherit autotools gettext | 19 | inherit autotools gettext update-alternatives |
20 | |||
21 | ALTERNATIVE_LINKS = "${bindir}/find ${bindir}/xargs" | ||
22 | ALTERNATIVE_PRIORITY = "100" | ||
20 | 23 | ||
21 | # diffutils assumes non-glibc compilation with uclibc and | 24 | # diffutils assumes non-glibc compilation with uclibc and |
22 | # this causes it to generate its own implementations of | 25 | # this causes it to generate its own implementations of |
@@ -25,19 +28,4 @@ inherit autotools gettext | |||
25 | # see diffutils.mk in buildroot) | 28 | # see diffutils.mk in buildroot) |
26 | EXTRA_OECONF_libc-uclibc = "--without-included-regex" | 29 | EXTRA_OECONF_libc-uclibc = "--without-included-regex" |
27 | 30 | ||
28 | do_install_append () { | ||
29 | if [ -e ${D}${bindir}/find ]; then | ||
30 | mv ${D}${bindir}/find ${D}${bindir}/find.${PN} | ||
31 | mv ${D}${bindir}/xargs ${D}${bindir}/xargs.${PN} | ||
32 | fi | ||
33 | } | ||
34 | |||
35 | pkg_postinst_${PN} () { | ||
36 | for i in find xargs; do update-alternatives --install ${bindir}/$i $i $i.${PN} 100; done | ||
37 | } | ||
38 | |||
39 | pkg_prerm_${PN} () { | ||
40 | for i in find xargs; do update-alternatives --remove $i $i.${PN}; done | ||
41 | } | ||
42 | |||
43 | BBCLASSEXTEND = "native" | 31 | BBCLASSEXTEND = "native" |