diff options
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" | |||
3 | SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz" | 3 | SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz" |
4 | S = "${WORKDIR}/dpkg-${PV}" | 4 | S = "${WORKDIR}/dpkg-${PV}" |
5 | PACKAGE_ARCH = "all" | 5 | PACKAGE_ARCH = "all" |
6 | PR = "r1" | 6 | PR = "r2" |
7 | 7 | ||
8 | do_patch () { | 8 | do_patch () { |
9 | cat ${S}/scripts/update-alternatives.pl | \ | 9 | cat ${S}/scripts/update-alternatives.pl | \ |
@@ -18,3 +18,14 @@ do_patch () { | |||
18 | s,^\$altdir=.*$,$altdir="$D${sysconfdir}/alternatives"\;,; | 18 | s,^\$altdir=.*$,$altdir="$D${sysconfdir}/alternatives"\;,; |
19 | p;' > ${S}/scripts/update-alternatives | 19 | p;' > ${S}/scripts/update-alternatives |
20 | } | 20 | } |
21 | |||
22 | NATIVE_INSTALL_WORKS = "1" | ||
23 | do_install () { | ||
24 | install -d ${D}${sbindir} \ | ||
25 | ${D}${localstatedir}/dpkg/alternatives \ | ||
26 | ${D}${sysconfdir}/alternatives | ||
27 | |||
28 | install -m 0755 scripts/update-alternatives ${D}${sbindir}/update-alternatives | ||
29 | } | ||
30 | |||
31 | BBCLASSEXTEND = "native" | ||