summaryrefslogtreecommitdiff
path: root/ipkg
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-04-20 09:44:13 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-04-20 09:44:13 +0000
commit6720d73166bc065e596c0d7513ba5f56cb9f0484 (patch)
tree87eff702b52236b28f5ca4bc9f5b2f0664d0b88e /ipkg
parent210df3ce941d17ac9c0602a9f36c55328c6f5503 (diff)
aplpy ipkg.patch courtesy pb_
BKrev: 4084f0edfWWvcHue_wA85kvalRsjNg
Diffstat (limited to 'ipkg')
-rw-r--r--ipkg/ipkg_0.99.120.oe17
1 files changed, 17 insertions, 0 deletions
diff --git a/ipkg/ipkg_0.99.120.oe b/ipkg/ipkg_0.99.120.oe
index 41c425784e..04c2d30305 100644
--- a/ipkg/ipkg_0.99.120.oe
+++ b/ipkg/ipkg_0.99.120.oe
@@ -7,3 +7,20 @@ SRC_URI = "cvs://anoncvs:anoncvs@192.58.209.91/cvs;module=familiar/dist/ipkg;tag
S = "${WORKDIR}/ipkg/C"
inherit autotools libtool
+
+pkg_postinst () {
+#!/bin/sh
+if [ "x$D" != "x" ]; then
+ install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
+ # this needs to happen after S35mountall so that /tmp is available
+ echo -e "#!/bin/sh\nipkg-cl configure\nrm -f \$0" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S36configure
+ chmod 755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S36configure
+fi
+
+update-alternatives --install /usr/bin/ipkg ipkg /usr/bin/ipkg-cl 100
+}
+
+pkg_postrm () {
+#!/bin/sh
+update-alternatives --remove ipkg /usr/bin/ipkg-cl
+}