summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-extended/which/which_2.18.bb18
1 files changed, 5 insertions, 13 deletions
diff --git a/meta/recipes-extended/which/which_2.18.bb b/meta/recipes-extended/which/which_2.18.bb
index b177949788..7eeb320a75 100644
--- a/meta/recipes-extended/which/which_2.18.bb
+++ b/meta/recipes-extended/which/which_2.18.bb
@@ -8,14 +8,14 @@ BUGTRACKER = "n/a"
8LICENSE = "GPLv2+" 8LICENSE = "GPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 9LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
10 10
11PR = "r0" 11PR = "r1"
12 12
13SRC_URI = "http://www.xs4all.nl/~carlo17/which/which-${PV}.tar.gz \ 13SRC_URI = "http://www.xs4all.nl/~carlo17/which/which-${PV}.tar.gz \
14 file://fix_name_conflict_group_member.patch" 14 file://fix_name_conflict_group_member.patch"
15 15
16DEPENDS = "cwautomacros-native" 16DEPENDS = "cwautomacros-native"
17 17
18inherit autotools 18inherit autotools update-alternatives
19 19
20do_configure_prepend() { 20do_configure_prepend() {
21 OLD="@ACLOCAL_CWFLAGS@" 21 OLD="@ACLOCAL_CWFLAGS@"
@@ -26,15 +26,7 @@ do_install_append() {
26 mv ${D}/${bindir}/which ${D}/${bindir}/which.${PN} 26 mv ${D}/${bindir}/which ${D}/${bindir}/which.${PN}
27} 27}
28 28
29pkg_postinst_${PN}() { 29ALTERNATIVE_NAME = "which"
30 if [ "${PN}" = "${BPN}" ] ; then 30ALTERNATIVE_PATH = "which.${PN}"
31 update-alternatives --install ${bindir}/which which which.${PN} 100 31ALTERNATIVE_PRIORITY = "100"
32 fi
33}
34
35pkg_prerm_${PN}() {
36 if [ "${PN}" = "${BPN}" ] ; then
37 update-alternatives --remove which which.${PN}
38 fi
39}
40 32