summaryrefslogtreecommitdiff
path: root/packages/opkg/opkg_svn.bb
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2008-03-17 23:40:48 +0000
committerKoen Kooi <koen@openembedded.org>2008-03-17 23:40:48 +0000
commit16808bc4817492beba512f4e73bce8c232d1eafa (patch)
tree8b4a2a7738293c65903b9a69f8c311b46c2b65d7 /packages/opkg/opkg_svn.bb
parent06888e066bae0f58ff7e1082d33cb84183c1d6d6 (diff)
opkg: sync with poky, based on patches from http://blog.haerwu.biz/download/diffs/opkg-poky/
Diffstat (limited to 'packages/opkg/opkg_svn.bb')
-rw-r--r--packages/opkg/opkg_svn.bb42
1 files changed, 27 insertions, 15 deletions
diff --git a/packages/opkg/opkg_svn.bb b/packages/opkg/opkg_svn.bb
index 149f3050cf..30461ead4d 100644
--- a/packages/opkg/opkg_svn.bb
+++ b/packages/opkg/opkg_svn.bb
@@ -1,21 +1,33 @@
-DESCRIPTION = "Open Package Manager"
-DESCRIPTION_libopkg = "Open Package Manager Library"
-SECTION = "base"
-LICENSE = "GPL"
-DEPENDS = "curl gpgme"
-PV = "0.0+svnr${SRCREV}"
-PR = "r1"
+require opkg.inc
-SRC_URI = "svn://svn.openmoko.org/trunk/src/target/;module=opkg;proto=http"
-S = "${WORKDIR}/opkg"
-
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+PR = "r2"
PACKAGES =+ "libopkg-dev libopkg"
FILES_libopkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"
FILES_libopkg = "${libdir}/*.so.*"
+
+# Define a variable to allow distros to run configure earlier.
+# (for example, to enable loading of ethernet kernel modules before networking starts)
+OPKG_INIT_POSITION = "98"
+OPKG_INIT_POSITION_slugos = "41"
+
+pkg_postinst_opkg () {
+#!/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
+opkg-cl configure
+" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
+ chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
+fi
+
+update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100
+}
+
+pkg_postrm_opkg () {
+#!/bin/sh
+update-alternatives --remove opkg ${bindir}/opkg-cl
+}
+