dpkg: fix package configuration on first boot
authorJeremy Lainé <jeremy.laine@m4x.org>
Wed, 30 Sep 2009 17:32:02 +0000 (19:32 +0200)
committerJeremy Lainé <jeremy.laine@m4x.org>
Wed, 30 Sep 2009 17:32:02 +0000 (19:32 +0200)
* Use do_install to setup S98configure script, just like for
  the opkg package.

recipes/dpkg/dpkg.inc
recipes/dpkg/dpkg_1.13.22.bb
recipes/dpkg/dpkg_1.13.25.bb
recipes/dpkg/dpkg_1.14.19.bb
recipes/dpkg/dpkg_1.14.23.bb
recipes/dpkg/dpkg_1.14.25.bb

index eb5778f..b15a636 100644 (file)
@@ -19,17 +19,14 @@ inherit autotools gettext
 DPKG_INIT_POSITION = "98"
 DPKG_INIT_POSITION_slugos = "41"
 
-pkg_postinst_dpkg () {
-#!/bin/sh
-if [ "x$D" != "x" ]; then
-       install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
+do_install_prepend () {
+       install -d ${D}${sysconfdir}/rcS.d
        # this happens at S98 where our good 'ole packages script used to run
        printf "#!/bin/sh
-       dpkg --configure -a
-       rm -f /${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
-\n" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
-       chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
-fi
+dpkg --configure -a
+rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
+" > ${D}${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
+       chmod 0755 ${D}${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
 }
 
 do_configure () {
index e4e7a3b..896346e 100644 (file)
@@ -1,5 +1,5 @@
 require dpkg.inc
-PR = "r5"
+PR = "r6"
 DEPENDS += "zlib bzip2"
 SRC_URI += "file://noman.patch;patch=1"
 
index 8a2c8ab..f98cabf 100644 (file)
@@ -1,5 +1,5 @@
 require dpkg.inc
-PR = "r1"
+PR = "r2"
 DEPENDS += "zlib bzip2"
 SRC_URI += "file://noman.patch;patch=1"
 
index 0377ce1..65d8309 100644 (file)
@@ -1,5 +1,5 @@
 require dpkg.inc
-PR = "r1"
+PR = "r2"
 DEPENDS += "zlib bzip2"
 #RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives}"
 SRC_URI += "file://noman.patch;patch=1"
index 0377ce1..65d8309 100644 (file)
@@ -1,5 +1,5 @@
 require dpkg.inc
-PR = "r1"
+PR = "r2"
 DEPENDS += "zlib bzip2"
 #RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives}"
 SRC_URI += "file://noman.patch;patch=1"
index dac14f9..0377ce1 100644 (file)
@@ -1,4 +1,5 @@
 require dpkg.inc
+PR = "r1"
 DEPENDS += "zlib bzip2"
 #RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives}"
 SRC_URI += "file://noman.patch;patch=1"