2008-03-17 12:59:15 +00:00
|
|
|
DESCRIPTION = "Open Package Manager"
|
|
|
|
DESCRIPTION_libopkg = "Open Package Manager Library"
|
2008-03-19 15:35:50 +00:00
|
|
|
DESCRIPTION_update-alternatives-cworth = "Update alternatives"
|
2008-03-17 12:59:15 +00:00
|
|
|
SECTION = "base"
|
2010-07-21 02:58:28 +00:00
|
|
|
HOMEPAGE = "http://code.google.com/p/opkg/"
|
|
|
|
BUGTRACKER = "http://code.google.com/p/opkg/issues/list"
|
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
|
|
|
|
file://src/opkg-cl.c;beginline=1;endline=20;md5=321f658c3f6b6c832e25c8850b5dffba"
|
2010-01-13 22:06:05 +00:00
|
|
|
DEPENDS_virtclass-native = "curl-native"
|
|
|
|
DEPENDS_virtclass-nativesdk = "curl-nativesdk"
|
2009-02-09 11:10:17 +00:00
|
|
|
|
2010-07-21 02:58:28 +00:00
|
|
|
PE = "1"
|
2012-01-20 22:11:34 +00:00
|
|
|
INC_PR = "r7"
|
2008-03-17 12:59:15 +00:00
|
|
|
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
FILESDIR = "${@os.path.dirname(d.getVar('FILE',1))}/opkg"
|
2010-01-13 22:06:05 +00:00
|
|
|
|
2009-05-23 22:10:57 +00:00
|
|
|
# Werror gives all kinds bounds issuses with gcc 4.3.3
|
|
|
|
do_configure_prepend() {
|
2010-07-21 02:58:28 +00:00
|
|
|
sed -i -e s:-Werror::g ${S}/libopkg/Makefile.am
|
2009-05-23 22:10:57 +00:00
|
|
|
}
|
|
|
|
|
2010-04-26 16:41:05 +00:00
|
|
|
inherit autotools pkgconfig
|
2011-05-15 06:47:04 +00:00
|
|
|
EXTRA_OECONF += " --disable-gpg \
|
|
|
|
--disable-openssl \
|
|
|
|
--disable-ssl-curl \
|
|
|
|
--disable-curl \
|
|
|
|
--disable-sha256"
|
2010-01-13 22:06:05 +00:00
|
|
|
|
2010-08-26 04:39:07 +00:00
|
|
|
target_localstatedir := "${localstatedir}"
|
2011-05-15 06:47:04 +00:00
|
|
|
EXTRA_OECONF += "--with-opkglibdir=${localstatedir}/lib"
|
2010-08-26 04:39:07 +00:00
|
|
|
EXTRA_OECONF_virtclass-native = "--with-opkglibdir=${target_localstatedir}/lib --disable-gpg --disable-curl --disable-openssl"
|
|
|
|
EXTRA_OECONF_virtclass-nativesdk = "--with-opkglibdir=${target_localstatedir}/lib --disable-gpg --disable-curl --disable-openssl"
|
2010-01-13 22:06:05 +00:00
|
|
|
|
2012-01-20 19:05:16 +00:00
|
|
|
PROVIDES += "virtual/update-alternatives"
|
|
|
|
RPROVIDES_update-alternatives-cworth += "update-alternatives"
|
|
|
|
RCONFLICTS_update-alternatives-cworth = "update-alternatives-dpkg"
|
|
|
|
RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base"
|
|
|
|
RDEPENDS_${PN}_virtclass-native = ""
|
|
|
|
RDEPENDS_${PN}_virtclass-nativesdk = ""
|
|
|
|
PACKAGE_ARCH_update-alternatives-cworth = "all"
|
|
|
|
RREPLACES_${PN} = "opkg-nogpg"
|
|
|
|
|
2012-01-20 22:11:34 +00:00
|
|
|
PACKAGES =+ "libopkg${PKGSUFFIX}-dev libopkg${PKGSUFFIX}-staticdev libopkg${PKGSUFFIX} update-alternatives-cworth${PKGSUFFIX}"
|
2012-01-20 19:05:16 +00:00
|
|
|
|
|
|
|
FILES_update-alternatives-cworth${PKGSUFFIX} = "${bindir}/update-alternatives"
|
2012-01-20 22:11:34 +00:00
|
|
|
FILES_libopkg${PKGSUFFIX}-dev = "${libdir}/*.la ${libdir}/*.so"
|
|
|
|
FILES_libopkg${PKGSUFFIX}-staticdev = "${libdir}/*.a"
|
2012-01-20 19:05:16 +00:00
|
|
|
FILES_libopkg${PKGSUFFIX} = "${libdir}/*.so.* ${localstatedir}/lib/opkg/"
|
|
|
|
|
|
|
|
# We need to create the lock directory
|
|
|
|
do_install_append() {
|
|
|
|
install -d ${D}${localstatedir}/lib/opkg
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst_${PN} () {
|
|
|
|
#!/bin/sh
|
|
|
|
if [ "x$D" != "x" ]; then
|
|
|
|
install -d $D${sysconfdir}/rcS.d
|
|
|
|
# this happens at S98 where our good 'ole packages script used to run
|
|
|
|
echo "#!/bin/sh
|
|
|
|
opkg-cl configure
|
|
|
|
rm -f /${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure
|
|
|
|
" > $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure
|
|
|
|
chmod 0755 $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure
|
|
|
|
fi
|
|
|
|
|
|
|
|
update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm_${PN} () {
|
|
|
|
#!/bin/sh
|
|
|
|
update-alternatives --remove opkg ${bindir}/opkg-cl
|
|
|
|
}
|
|
|
|
|
2010-01-13 22:06:05 +00:00
|
|
|
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
2011-01-20 22:43:25 +00:00
|
|
|
|
|
|
|
PKGSUFFIX = ""
|
|
|
|
PKGSUFFIX_virtclass-nativesdk = "-nativesdk"
|
2011-04-18 14:23:27 +00:00
|
|
|
|
|
|
|
# Define a variable to allow distros to run configure earlier.
|
|
|
|
# (for example, to enable loading of ethernet kernel modules before networking starts)
|
|
|
|
POSTINSTALL_INITPOSITION ?= "98"
|