diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-17 21:44:17 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-17 21:44:17 +0000 |
commit | d71502666689f3c725850e52b71684ea9bcc1306 (patch) | |
tree | 26dd4d8ba0db5c09f163ed3865d41868f1dfc475 /meta/packages/update-alternatives/update-alternatives-dpkg.inc | |
parent | a00293790bb46812e63f3a2a7e1bce627873eb77 (diff) | |
download | openembedded-core-d71502666689f3c725850e52b71684ea9bcc1306.tar.gz openembedded-core-d71502666689f3c725850e52b71684ea9bcc1306.tar.bz2 openembedded-core-d71502666689f3c725850e52b71684ea9bcc1306.zip |
update-alternatives-dpkg: Convert to BBCLASSEXTEND
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/update-alternatives/update-alternatives-dpkg.inc')
-rw-r--r-- | meta/packages/update-alternatives/update-alternatives-dpkg.inc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/packages/update-alternatives/update-alternatives-dpkg.inc b/meta/packages/update-alternatives/update-alternatives-dpkg.inc index 66232139d4..91f9883ff3 100644 --- a/meta/packages/update-alternatives/update-alternatives-dpkg.inc +++ b/meta/packages/update-alternatives/update-alternatives-dpkg.inc @@ -3,7 +3,7 @@ SECTION = "base" SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz" S = "${WORKDIR}/dpkg-${PV}" PACKAGE_ARCH = "all" -PR = "r1" +PR = "r2" do_patch () { cat ${S}/scripts/update-alternatives.pl | \ @@ -18,3 +18,14 @@ do_patch () { s,^\$altdir=.*$,$altdir="$D${sysconfdir}/alternatives"\;,; p;' > ${S}/scripts/update-alternatives } + +NATIVE_INSTALL_WORKS = "1" +do_install () { + install -d ${D}${sbindir} \ + ${D}${localstatedir}/dpkg/alternatives \ + ${D}${sysconfdir}/alternatives + + install -m 0755 scripts/update-alternatives ${D}${sbindir}/update-alternatives +} + +BBCLASSEXTEND = "native" |