summaryrefslogtreecommitdiff
path: root/meta/packages/opkg
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-03-14 09:35:40 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-03-14 09:35:40 +0000
commite2104416668c1d453d70c96320a5a064b32bec1b (patch)
tree7ae32688926cd08c1328fa802d3a46d003402340 /meta/packages/opkg
parent3f659983bff5002f1e61f75a4cdf13ee9c2575d1 (diff)
downloadopenembedded-core-e2104416668c1d453d70c96320a5a064b32bec1b.tar.gz
openembedded-core-e2104416668c1d453d70c96320a5a064b32bec1b.tar.bz2
openembedded-core-e2104416668c1d453d70c96320a5a064b32bec1b.zip
opkg: added from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3993 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/opkg')
-rw-r--r--meta/packages/opkg/opkg-ipkg-compat.bb19
-rw-r--r--meta/packages/opkg/opkg-native_svn.bb10
-rw-r--r--meta/packages/opkg/opkg_svn.bb21
3 files changed, 50 insertions, 0 deletions
diff --git a/meta/packages/opkg/opkg-ipkg-compat.bb b/meta/packages/opkg/opkg-ipkg-compat.bb
new file mode 100644
index 0000000000..58c81451ae
--- /dev/null
+++ b/meta/packages/opkg/opkg-ipkg-compat.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "Files to make opkg and ipkg coexist"
+RDEPENDS = "opkg ipkg ipkg-collateral"
+
+PR = "r0"
+PACKAGE_ARCH = "all"
+
+do_compile() {
+ :
+}
+
+
+do_install () {
+ install -d ${D}${sysconfdir}
+ install -d ${D}/var/lib/ipkg
+ ln -sf ${sysconfdir}/ipkg.conf ${D}${sysconfdir}/opkg.conf
+ ln -sf ${sysconfdir}/ipkg/ ${D}${sysconfdir}/opkg
+ ln -sf /var/lib/ipkg ${D}/var/lib/ipkg
+}
+
diff --git a/meta/packages/opkg/opkg-native_svn.bb b/meta/packages/opkg/opkg-native_svn.bb
new file mode 100644
index 0000000000..c90c91dae5
--- /dev/null
+++ b/meta/packages/opkg/opkg-native_svn.bb
@@ -0,0 +1,10 @@
+require opkg_svn.bb
+
+DEPENDS = "curl-native"
+
+target_libdir := "${libdir}"
+
+inherit native
+
+EXTRA_OECONF += "--with-opkglibdir=${target_libdir}/opkg -disable-gpg"
+
diff --git a/meta/packages/opkg/opkg_svn.bb b/meta/packages/opkg/opkg_svn.bb
new file mode 100644
index 0000000000..149f3050cf
--- /dev/null
+++ b/meta/packages/opkg/opkg_svn.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "Open Package Manager"
+DESCRIPTION_libopkg = "Open Package Manager Library"
+SECTION = "base"
+LICENSE = "GPL"
+DEPENDS = "curl gpgme"
+PV = "0.0+svnr${SRCREV}"
+PR = "r1"
+
+SRC_URI = "svn://svn.openmoko.org/trunk/src/target/;module=opkg;proto=http"
+S = "${WORKDIR}/opkg"
+
+inherit autotools pkgconfig
+
+do_stage() {
+ autotools_stage_all
+}
+
+PACKAGES =+ "libopkg-dev libopkg"
+
+FILES_libopkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"
+FILES_libopkg = "${libdir}/*.so.*"