summaryrefslogtreecommitdiffstats
path: root/meta/packages/opkg
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-03-17 12:58:08 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-03-17 12:58:08 +0000
commit23684b683f0af5c3496eb3cf1dbf65124a5cde8c (patch)
tree57cd6b0adafba4f531d75e14e7746e0429f9df2c /meta/packages/opkg
parent7ed94682858a2bc067b9fb1376a0ae5d414d4a6b (diff)
downloadpoky-23684b683f0af5c3496eb3cf1dbf65124a5cde8c.tar.gz
opkg: moved common stuff to opkg.inc, added S98configure
Signed-off-by: Marcin Juszkiewicz <hrw@openedhand.com> git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4022 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/opkg')
-rw-r--r--meta/packages/opkg/opkg-native_svn.bb3
-rw-r--r--meta/packages/opkg/opkg_svn.bb42
2 files changed, 28 insertions, 17 deletions
diff --git a/meta/packages/opkg/opkg-native_svn.bb b/meta/packages/opkg/opkg-native_svn.bb
index c90c91dae5..d5e20e14be 100644
--- a/meta/packages/opkg/opkg-native_svn.bb
+++ b/meta/packages/opkg/opkg-native_svn.bb
@@ -1,4 +1,4 @@
1require opkg_svn.bb 1require opkg.inc
2 2
3DEPENDS = "curl-native" 3DEPENDS = "curl-native"
4 4
@@ -7,4 +7,3 @@ target_libdir := "${libdir}"
7inherit native 7inherit native
8 8
9EXTRA_OECONF += "--with-opkglibdir=${target_libdir}/opkg -disable-gpg" 9EXTRA_OECONF += "--with-opkglibdir=${target_libdir}/opkg -disable-gpg"
10
diff --git a/meta/packages/opkg/opkg_svn.bb b/meta/packages/opkg/opkg_svn.bb
index 149f3050cf..30461ead4d 100644
--- a/meta/packages/opkg/opkg_svn.bb
+++ b/meta/packages/opkg/opkg_svn.bb
@@ -1,21 +1,33 @@
1DESCRIPTION = "Open Package Manager" 1require opkg.inc
2DESCRIPTION_libopkg = "Open Package Manager Library"
3SECTION = "base"
4LICENSE = "GPL"
5DEPENDS = "curl gpgme"
6PV = "0.0+svnr${SRCREV}"
7PR = "r1"
8 2
9SRC_URI = "svn://svn.openmoko.org/trunk/src/target/;module=opkg;proto=http" 3PR = "r2"
10S = "${WORKDIR}/opkg"
11
12inherit autotools pkgconfig
13
14do_stage() {
15 autotools_stage_all
16}
17 4
18PACKAGES =+ "libopkg-dev libopkg" 5PACKAGES =+ "libopkg-dev libopkg"
19 6
20FILES_libopkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so" 7FILES_libopkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"
21FILES_libopkg = "${libdir}/*.so.*" 8FILES_libopkg = "${libdir}/*.so.*"
9
10# Define a variable to allow distros to run configure earlier.
11# (for example, to enable loading of ethernet kernel modules before networking starts)
12OPKG_INIT_POSITION = "98"
13OPKG_INIT_POSITION_slugos = "41"
14
15pkg_postinst_opkg () {
16#!/bin/sh
17if [ "x$D" != "x" ]; then
18 install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
19 # this happens at S98 where our good 'ole packages script used to run
20 echo "#!/bin/sh
21opkg-cl configure
22" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
23 chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure
24fi
25
26update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100
27}
28
29pkg_postrm_opkg () {
30#!/bin/sh
31update-alternatives --remove opkg ${bindir}/opkg-cl
32}
33