summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg.inc')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc19
1 files changed, 8 insertions, 11 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index aa5f90e8b3..8c2511dc43 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -2,7 +2,7 @@ DESCRIPTION = "Package maintenance system for Debian."
2LICENSE = "GPL" 2LICENSE = "GPL"
3SECTION = "base" 3SECTION = "base"
4 4
5INC_PR = "r4" 5INC_PR = "r5"
6 6
7SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2 \ 7SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2 \
8 file://ignore_extra_fields.patch" 8 file://ignore_extra_fields.patch"
@@ -20,17 +20,14 @@ inherit autotools gettext perlnative
20 20
21DPKG_INIT_POSITION = "98" 21DPKG_INIT_POSITION = "98"
22 22
23pkg_postinst_dpkg () { 23do_install_prepend () {
24#!/bin/sh 24 install -d ${D}/${sysconfdir}/rcS.d
25if [ "x$D" != "x" ]; then
26 install -d $D/${sysconfdir}/rcS.d
27 # this happens at S98 where our good 'ole packages script used to run 25 # this happens at S98 where our good 'ole packages script used to run
28 echo -e "#!/bin/sh 26 printf "#!/bin/sh
29 dpkg --configure -a 27dpkg --configure -a
30 rm -f /${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure 28rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
31" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure 29" > ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
32 chmod 0755 $D/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure 30 chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
33fi
34} 31}
35 32
36do_configure () { 33do_configure () {