diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-03-17 12:58:08 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-03-17 12:58:08 +0000 |
commit | 23684b683f0af5c3496eb3cf1dbf65124a5cde8c (patch) | |
tree | 57cd6b0adafba4f531d75e14e7746e0429f9df2c /meta/packages/opkg | |
parent | 7ed94682858a2bc067b9fb1376a0ae5d414d4a6b (diff) | |
download | poky-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.bb | 3 | ||||
-rw-r--r-- | meta/packages/opkg/opkg_svn.bb | 42 |
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 @@ | |||
1 | require opkg_svn.bb | 1 | require opkg.inc |
2 | 2 | ||
3 | DEPENDS = "curl-native" | 3 | DEPENDS = "curl-native" |
4 | 4 | ||
@@ -7,4 +7,3 @@ target_libdir := "${libdir}" | |||
7 | inherit native | 7 | inherit native |
8 | 8 | ||
9 | EXTRA_OECONF += "--with-opkglibdir=${target_libdir}/opkg -disable-gpg" | 9 | EXTRA_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 @@ | |||
1 | DESCRIPTION = "Open Package Manager" | 1 | require opkg.inc |
2 | DESCRIPTION_libopkg = "Open Package Manager Library" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "GPL" | ||
5 | DEPENDS = "curl gpgme" | ||
6 | PV = "0.0+svnr${SRCREV}" | ||
7 | PR = "r1" | ||
8 | 2 | ||
9 | SRC_URI = "svn://svn.openmoko.org/trunk/src/target/;module=opkg;proto=http" | 3 | PR = "r2" |
10 | S = "${WORKDIR}/opkg" | ||
11 | |||
12 | inherit autotools pkgconfig | ||
13 | |||
14 | do_stage() { | ||
15 | autotools_stage_all | ||
16 | } | ||
17 | 4 | ||
18 | PACKAGES =+ "libopkg-dev libopkg" | 5 | PACKAGES =+ "libopkg-dev libopkg" |
19 | 6 | ||
20 | FILES_libopkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so" | 7 | FILES_libopkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so" |
21 | FILES_libopkg = "${libdir}/*.so.*" | 8 | FILES_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) | ||
12 | OPKG_INIT_POSITION = "98" | ||
13 | OPKG_INIT_POSITION_slugos = "41" | ||
14 | |||
15 | pkg_postinst_opkg () { | ||
16 | #!/bin/sh | ||
17 | if [ "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 | ||
21 | opkg-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 | ||
24 | fi | ||
25 | |||
26 | update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100 | ||
27 | } | ||
28 | |||
29 | pkg_postrm_opkg () { | ||
30 | #!/bin/sh | ||
31 | update-alternatives --remove opkg ${bindir}/opkg-cl | ||
32 | } | ||
33 | |||