2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Additional utilities for the opkg package manager"
|
2014-01-17 10:25:53 +00:00
|
|
|
SUMMARY_update-alternatives-opkg = "Utility for managing the alternatives system"
|
2008-07-17 21:32:43 +00:00
|
|
|
SECTION = "base"
|
2016-06-06 16:08:52 +00:00
|
|
|
HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils"
|
2010-07-21 07:23:57 +00:00
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
|
|
|
|
file://opkg.py;beginline=1;endline=18;md5=15917491ad6bf7acc666ca5f7cc1e083"
|
2015-11-10 21:07:19 +00:00
|
|
|
PROVIDES += "${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'virtual/update-alternatives', '', d)}"
|
2013-12-22 12:55:49 +00:00
|
|
|
|
2017-03-10 01:57:00 +00:00
|
|
|
SRCREV = "1a708fd73d10c2b7677dd4cc4e017746ebbb9166"
|
2016-12-27 20:50:01 +00:00
|
|
|
PV = "0.3.4+git${SRCPV}"
|
2008-07-17 21:32:43 +00:00
|
|
|
|
2016-12-21 04:32:47 +00:00
|
|
|
SRC_URI = "git://git.yoctoproject.org/opkg-utils \
|
2016-12-27 20:50:01 +00:00
|
|
|
"
|
2015-07-10 20:42:12 +00:00
|
|
|
SRC_URI_append_class-native = " file://tar_ignore_error.patch"
|
2008-07-17 21:32:43 +00:00
|
|
|
|
2012-01-31 18:27:53 +00:00
|
|
|
S = "${WORKDIR}/git"
|
2009-08-26 17:10:59 +00:00
|
|
|
|
2013-12-22 12:55:49 +00:00
|
|
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
2009-08-26 17:10:59 +00:00
|
|
|
|
2014-01-17 11:39:40 +00:00
|
|
|
PYTHONRDEPS = "python python-shell python-io python-math python-crypt python-logging python-fcntl python-subprocess python-pickle python-compression python-textutils python-stringold"
|
|
|
|
PYTHONRDEPS_class-native = ""
|
|
|
|
|
2015-11-10 21:07:19 +00:00
|
|
|
PACKAGECONFIG = "python update-alternatives"
|
2014-01-17 11:39:40 +00:00
|
|
|
PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}"
|
2015-11-10 21:07:19 +00:00
|
|
|
PACKAGECONFIG[update-alternatives] = ",,,"
|
2014-01-17 11:39:40 +00:00
|
|
|
|
2010-07-22 05:36:42 +00:00
|
|
|
do_install() {
|
|
|
|
oe_runmake PREFIX=${prefix} DESTDIR=${D} install
|
2015-11-10 21:07:19 +00:00
|
|
|
if ! ${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'true', 'false', d)}; then
|
|
|
|
rm -f "${D}${bindir}/update-alternatives"
|
|
|
|
fi
|
2010-07-22 05:36:42 +00:00
|
|
|
}
|
2010-07-21 21:48:48 +00:00
|
|
|
|
2015-07-24 12:48:48 +00:00
|
|
|
do_install_append_class-target() {
|
2015-11-10 21:07:19 +00:00
|
|
|
if [ -e "${D}${bindir}/update-alternatives" ]; then
|
2016-01-14 20:47:04 +00:00
|
|
|
sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${nonarch_libdir},g'
|
2015-11-10 21:07:19 +00:00
|
|
|
fi
|
2015-07-24 12:48:48 +00:00
|
|
|
}
|
|
|
|
|
2014-01-16 17:59:24 +00:00
|
|
|
PACKAGES =+ "update-alternatives-opkg"
|
|
|
|
FILES_update-alternatives-opkg = "${bindir}/update-alternatives"
|
2014-01-21 23:43:11 +00:00
|
|
|
RPROVIDES_update-alternatives-opkg = "update-alternatives update-alternatives-cworth"
|
|
|
|
RREPLACES_update-alternatives-opkg = "update-alternatives-cworth"
|
|
|
|
RCONFLICTS_update-alternatives-opkg = "update-alternatives-cworth"
|
2013-12-22 12:55:49 +00:00
|
|
|
|
2016-11-10 10:46:19 +00:00
|
|
|
pkg_postrm_update-alternatives-opkg() {
|
2017-01-12 10:42:25 +00:00
|
|
|
rm -rf $D${nonarch_libdir}/opkg/alternatives
|
|
|
|
rmdir $D${nonarch_libdir}/opkg || true
|
2016-11-10 10:46:19 +00:00
|
|
|
}
|
|
|
|
|
2014-01-16 17:59:24 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
2017-01-09 15:16:10 +00:00
|
|
|
|
|
|
|
CLEANBROKEN = "1"
|