diff options
author | Alejandro del Castillo <alejandro.delcastillo@ni.com> | 2016-06-15 17:13:42 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-23 14:26:15 +0100 |
commit | 1137709119b38c6c7e69450a251f484d3a218747 (patch) | |
tree | 80d4f1344f4ddf7f5ecbf9c7578d0806d1ed3de1 /meta/recipes-devtools/opkg/opkg_0.3.2.bb | |
parent | 772ba8d865c1e7b62496df6b8eac73b367a4dc20 (diff) | |
download | poky-1137709119b38c6c7e69450a251f484d3a218747.tar.gz |
opkg: upgrade to v0.3.2
* Drop merged patches
* Update libsolv PACKAGECONFIG config option
(From OE-Core rev: f88b51e10620075cb370a11f9aabac746df67fe5)
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg/opkg_0.3.2.bb')
-rw-r--r-- | meta/recipes-devtools/opkg/opkg_0.3.2.bb | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg/opkg_0.3.2.bb b/meta/recipes-devtools/opkg/opkg_0.3.2.bb new file mode 100644 index 0000000000..0251b7dadc --- /dev/null +++ b/meta/recipes-devtools/opkg/opkg_0.3.2.bb | |||
@@ -0,0 +1,73 @@ | |||
1 | SUMMARY = "Open Package Manager" | ||
2 | SUMMARY_libopkg = "Open Package Manager library" | ||
3 | SECTION = "base" | ||
4 | HOMEPAGE = "http://code.google.com/p/opkg/" | ||
5 | BUGTRACKER = "http://code.google.com/p/opkg/issues/list" | ||
6 | LICENSE = "GPLv2+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
8 | file://src/opkg.c;beginline=2;endline=21;md5=90435a519c6ea69ef22e4a88bcc52fa0" | ||
9 | |||
10 | DEPENDS = "libarchive" | ||
11 | |||
12 | PE = "1" | ||
13 | |||
14 | SRC_URI = "http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz \ | ||
15 | file://opkg-configure.service \ | ||
16 | file://opkg.conf \ | ||
17 | file://0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch \ | ||
18 | " | ||
19 | |||
20 | SRC_URI[md5sum] = "b2cc1baa89d0b3d49e63ab002fd2e0a6" | ||
21 | SRC_URI[sha256sum] = "c9fa948a779a4e493b9669c239de317d43c43accbccbb0cf84056f9b269ba7b0" | ||
22 | |||
23 | inherit autotools pkgconfig systemd | ||
24 | |||
25 | SYSTEMD_SERVICE_${PN} = "opkg-configure.service" | ||
26 | |||
27 | target_localstatedir := "${localstatedir}" | ||
28 | OPKGLIBDIR = "${target_localstatedir}/lib" | ||
29 | |||
30 | PACKAGECONFIG ??= "" | ||
31 | |||
32 | PACKAGECONFIG[gpg] = "--enable-gpg,--disable-gpg,gpgme libgpg-error,gnupg" | ||
33 | PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl" | ||
34 | PACKAGECONFIG[ssl-curl] = "--enable-ssl-curl,--disable-ssl-curl,curl openssl" | ||
35 | PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl" | ||
36 | PACKAGECONFIG[sha256] = "--enable-sha256,--disable-sha256" | ||
37 | PACKAGECONFIG[pathfinder] = "--enable-pathfinder,--disable-pathfinder,pathfinder" | ||
38 | PACKAGECONFIG[libsolv] = "--with-libsolv,--without-libsolv,libsolv" | ||
39 | |||
40 | do_install_append () { | ||
41 | install -d ${D}${sysconfdir}/opkg | ||
42 | install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf | ||
43 | echo "option lists_dir ${OPKGLIBDIR}/opkg/lists" >>${D}${sysconfdir}/opkg/opkg.conf | ||
44 | |||
45 | # We need to create the lock directory | ||
46 | install -d ${D}${OPKGLIBDIR}/opkg | ||
47 | |||
48 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then | ||
49 | install -d ${D}${systemd_unitdir}/system | ||
50 | install -m 0644 ${WORKDIR}/opkg-configure.service ${D}${systemd_unitdir}/system/ | ||
51 | sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ | ||
52 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
53 | -e 's,@BINDIR@,${bindir},g' \ | ||
54 | -e 's,@SYSTEMD_UNITDIR@,${systemd_unitdir},g' \ | ||
55 | ${D}${systemd_unitdir}/system/opkg-configure.service | ||
56 | fi | ||
57 | } | ||
58 | |||
59 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config run-postinsts libarchive" | ||
60 | RDEPENDS_${PN}_class-native = "" | ||
61 | RDEPENDS_${PN}_class-nativesdk = "" | ||
62 | RREPLACES_${PN} = "opkg-nogpg opkg-collateral" | ||
63 | RCONFLICTS_${PN} = "opkg-collateral" | ||
64 | RPROVIDES_${PN} = "opkg-collateral" | ||
65 | |||
66 | PACKAGES =+ "libopkg" | ||
67 | |||
68 | FILES_libopkg = "${libdir}/*.so.* ${OPKGLIBDIR}/opkg/" | ||
69 | FILES_${PN} += "${systemd_unitdir}/system/" | ||
70 | |||
71 | BBCLASSEXTEND = "native nativesdk" | ||
72 | |||
73 | CONFFILES_${PN} = "${sysconfdir}/opkg/opkg.conf" | ||