summaryrefslogtreecommitdiff
path: root/packages/opkg/opkg_svn.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-01-19 09:24:03 +0100
committerKoen Kooi <koen@openembedded.org>2009-01-19 09:24:03 +0100
commit3459110c49dae95eff58ad586f7793e0b8ddc0fb (patch)
tree7e14b75fa6c1b0d94075efccb1d43eff773b1f39 /packages/opkg/opkg_svn.bb
parentc40033c8700a23f936aa6e8c59ed0d6c864d484c (diff)
opkg: fix postinst script to work outside of OE as well
* $IMAGE_ROOTFS is an OE var, use $D instead
Diffstat (limited to 'packages/opkg/opkg_svn.bb')
-rw-r--r--packages/opkg/opkg_svn.bb10
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/opkg/opkg_svn.bb b/packages/opkg/opkg_svn.bb
index 24547d6503..4cf1c5caab 100644
--- a/packages/opkg/opkg_svn.bb
+++ b/packages/opkg/opkg_svn.bb
@@ -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