]> git.openpandora.org Git - openembedded.git/commitdiff
opkg: fix postinst script to work outside of OE as well
authorKoen Kooi <koen@openembedded.org>
Mon, 19 Jan 2009 08:24:03 +0000 (09:24 +0100)
committerKoen Kooi <koen@openembedded.org>
Mon, 19 Jan 2009 08:24:03 +0000 (09:24 +0100)
* $IMAGE_ROOTFS is an OE var, use $D instead

packages/opkg/opkg-nogpg_svn.bb
packages/opkg/opkg_svn.bb

index b1942fb6c5085cbd8a03123800ec023e9d980f62..f58df2fb18160f752dd308b3258780e4064afc2e 100644 (file)
@@ -3,7 +3,7 @@ require opkg_svn.bb
 DEPENDS = "curl"
 PROVIDES += "opkg"
 
-PR = "r1"
+PR = "r2"
 
 SRCREV = "${SRCREV_pn-opkg}"
 
index 24547d6503dda4c83dda8baba16fba4719656f41..4cf1c5caab5054b5e617b758b06526e616fa0c9f 100644 (file)
@@ -1,5 +1,7 @@
 require opkg.inc
 
+PR = "r1"
+
 PACKAGES =+ "libopkg-dev libopkg"
 
 FILES_libopkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"
@@ -13,13 +15,13 @@ OPKG_INIT_POSITION_slugos = "41"
 pkg_postinst_${PN} () {
 #!/bin/sh
 if [ "x$D" != "x" ]; then
-       install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
+       install -d $D${sysconfdir}/rcS.d
        # this happens at S98 where our good 'ole packages script used to run
        echo "#!/bin/sh
 opkg-cl configure
-rm -f /${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
-" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
-       chmod 0755 ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
+rm -f ${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
+" > $D${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
+       chmod 0755 $D${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
 fi
 
 update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100