diff options
author | Saul Wold <sgw@linux.intel.com> | 2012-07-26 17:00:54 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-15 14:26:33 +0100 |
commit | 484e8619cd6f4057b10ee7e9258af1b13cbd515b (patch) | |
tree | 839a2a0b3dc8d5b5b87c2517d51449cfc2e3faec /meta/recipes-extended/mktemp | |
parent | f70db67dbd09e56f3feb16335cc493dea57cf0fa (diff) | |
download | poky-484e8619cd6f4057b10ee7e9258af1b13cbd515b.tar.gz |
mktemp: cleanup update-alternatives deprecated code
(From OE-Core rev: 4807d938023ce06f2924c8a0503c32d083be23b5)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mktemp')
-rw-r--r-- | meta/recipes-extended/mktemp/mktemp_1.7.bb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meta/recipes-extended/mktemp/mktemp_1.7.bb b/meta/recipes-extended/mktemp/mktemp_1.7.bb index b3a3d51afa..170a183a6e 100644 --- a/meta/recipes-extended/mktemp/mktemp_1.7.bb +++ b/meta/recipes-extended/mktemp/mktemp_1.7.bb | |||
@@ -5,7 +5,7 @@ SECTION = "console/utils" | |||
5 | LICENSE = "ISC" | 5 | LICENSE = "ISC" |
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=430680f6322a1eb87199b5e01a82c0d4" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=430680f6322a1eb87199b5e01a82c0d4" |
7 | 7 | ||
8 | PR = "r2" | 8 | PR = "r3" |
9 | 9 | ||
10 | SRC_URI = "ftp://ftp.mktemp.org/pub/mktemp/${BPN}-${PV}.tar.gz \ | 10 | SRC_URI = "ftp://ftp.mktemp.org/pub/mktemp/${BPN}-${PV}.tar.gz \ |
11 | file://disable-strip.patch \ | 11 | file://disable-strip.patch \ |
@@ -20,12 +20,11 @@ inherit autotools update-alternatives | |||
20 | EXTRA_OECONF = "--with-libc" | 20 | EXTRA_OECONF = "--with-libc" |
21 | 21 | ||
22 | do_install_append () { | 22 | do_install_append () { |
23 | mkdir ${D}${base_bindir} | 23 | install -d ${D}${base_bindir} |
24 | mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp.${BPN} | 24 | mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp |
25 | rmdir ${D}${bindir} | 25 | rmdir ${D}${bindir} |
26 | } | 26 | } |
27 | 27 | ||
28 | ALTERNATIVE_NAME = "mktemp" | 28 | ALTERNATIVE_${PN} = "mktemp" |
29 | ALTERNATIVE_LINK = "${base_bindir}/mktemp" | 29 | ALTERNATIVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp" |
30 | ALTERNATIVE_PATH = "${base_bindir}/mktemp.${BPN}" | ||
31 | ALTERNATIVE_PRIORITY = "100" | 30 | ALTERNATIVE_PRIORITY = "100" |