summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc')
-rw-r--r--meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc b/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
index f7f9ae979d..c881ae0219 100644
--- a/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
+++ b/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
@@ -8,7 +8,7 @@ SECTION = "base"
8SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2" 8SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2"
9S = "${WORKDIR}/dpkg-${PV}" 9S = "${WORKDIR}/dpkg-${PV}"
10PACKAGE_ARCH = "all" 10PACKAGE_ARCH = "all"
11INC_PR = "r2" 11INC_PR = "r3"
12 12
13inherit gettext 13inherit gettext
14 14
@@ -20,7 +20,7 @@ do_patch () {
20 s/^.*$/$D=$ENV{"D"} || ""\;/; 20 s/^.*$/$D=$ENV{"D"} || ""\;/;
21 p; 21 p;
22 x; 22 x;
23 s,^\$admindir=.*staging.*$,$admindir="$D${localstatedir}/dpkg"\;,; 23 s,^\$admindir=.*staging.*$,$admindir="$D${localstatedir}/lib/dpkg"\;,;
24 }; 24 };
25 s,^\$altdir=.*$,$altdir="$D${sysconfdir}/alternatives"\;,; 25 s,^\$altdir=.*$,$altdir="$D${sysconfdir}/alternatives"\;,;
26 p;' > ${S}/scripts/update-alternatives 26 p;' > ${S}/scripts/update-alternatives
@@ -28,7 +28,7 @@ do_patch () {
28 28
29do_install () { 29do_install () {
30 install -d ${D}${sbindir} \ 30 install -d ${D}${sbindir} \
31 ${D}${localstatedir}/dpkg/alternatives \ 31 ${D}${localstatedir}/lib/dpkg/alternatives \
32 ${D}${sysconfdir}/alternatives 32 ${D}${sysconfdir}/alternatives
33 33
34 install -m 0755 scripts/update-alternatives ${D}${sbindir}/update-alternatives 34 install -m 0755 scripts/update-alternatives ${D}${sbindir}/update-alternatives