summaryrefslogtreecommitdiff
path: root/packages/ipkg/ipkg.inc
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-12-03 19:44:05 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-12-03 19:44:05 +0000
commit4dc92f941e3afe632a0f08909713a0279ef9d2d5 (patch)
treefa4f4c3fdf0c926d4e0bcbf1c808b6f13519c9ca /packages/ipkg/ipkg.inc
parenta59628bb28f80da4e0e9c1dbd17b851ce4146a17 (diff)
parent899350269f90ab3a4bd66136b1c351d43683bafd (diff)
merge of '49fb48a813e1e0d599f74dd7a809922ab71939b1'
and '6fe2cd0b60b675a1e3118d25934adb4693f3b8ed'
Diffstat (limited to 'packages/ipkg/ipkg.inc')
-rw-r--r--packages/ipkg/ipkg.inc21
1 files changed, 11 insertions, 10 deletions
diff --git a/packages/ipkg/ipkg.inc b/packages/ipkg/ipkg.inc
index b1e2f19267..9154572f08 100644
--- a/packages/ipkg/ipkg.inc
+++ b/packages/ipkg/ipkg.inc
@@ -10,28 +10,24 @@ FILES_libipkg = "${libdir}/*.so.*"
AUTO_LIBNAME_PKGS = "libipkg"
SRC_URI = "${HANDHELDS_CVS};module=familiar/dist/ipkg;tag=${@'V' + bb.data.getVar('PV',d,1).replace('.', '-')} \
+ file://ipkg-configure \
file://terse.patch;patch=1"
S = "${WORKDIR}/ipkg/C"
-inherit autotools pkgconfig
+inherit autotools pkgconfig update-rc.d
# Define a variable to allow distros to run configure earlier.
# (for example, to enable loading of ethernet kernel modules before networking starts)
IPKG_INIT_POSITION = "98"
IPKG_INIT_POSITION_slugos = "41"
+INITSCRIPT_NAME = "ipkg-configure"
+INITSCRIPT_PARAMS = "start ${IPKG_INIT_POSITION} S ."
+
+
pkg_postinst_ipkg () {
#!/bin/sh
-if [ "x$D" != "x" ]; then
- install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
- # this happens at S98 where our good 'ole packages script used to run
- echo "#!/bin/sh
-ipkg-cl configure
-" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${IPKG_INIT_POSITION}configure
- chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${IPKG_INIT_POSITION}configure
-fi
-
update-alternatives --install ${bindir}/ipkg ipkg ${bindir}/ipkg-cl 100
}
@@ -40,6 +36,11 @@ pkg_postrm_ipkg () {
update-alternatives --remove ipkg ${bindir}/ipkg-cl
}
+do_install_append() {
+ install -d ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/
+}
+
do_stage() {
oe_libinstall -so libipkg ${STAGING_LIBDIR}
install -d ${STAGING_INCDIR}/replace/