summaryrefslogtreecommitdiff
path: root/meta/packages/yum/yum_3.2.27.bb
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-03-23 14:17:58 +0000
committerJoshua Lock <josh@linux.intel.com>2010-03-23 14:51:10 +0000
commitff5e6f4b4d1f0431d6225155430b057028ec3bb2 (patch)
treefaa07b10ea279e92d1eb001dec470a1a702bbba3 /meta/packages/yum/yum_3.2.27.bb
parent1a1361040f081e6a87ff3733ade1d07faf80eb8c (diff)
downloadopenembedded-core-ff5e6f4b4d1f0431d6225155430b057028ec3bb2.tar.gz
openembedded-core-ff5e6f4b4d1f0431d6225155430b057028ec3bb2.tar.bz2
openembedded-core-ff5e6f4b4d1f0431d6225155430b057028ec3bb2.zip
yum: Update yum and createrepo to latest version
Also switch Yum to using BBCLASSEXTEND rather than having separate native and host recipes. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/packages/yum/yum_3.2.27.bb')
-rw-r--r--meta/packages/yum/yum_3.2.27.bb43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/packages/yum/yum_3.2.27.bb b/meta/packages/yum/yum_3.2.27.bb
new file mode 100644
index 0000000000..e51aacd562
--- /dev/null
+++ b/meta/packages/yum/yum_3.2.27.bb
@@ -0,0 +1,43 @@
+HOMEPAGE = "http://linux.duke.edu/projects/yum/"
+PR = "r7"
+
+SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \
+ file://paths.patch;patch=1 \
+ file://paths2.patch;patch=1 \
+ file://yum-install-recommends.py \
+ file://extract-postinst.awk \
+ file://98_yum"
+
+RDEPENDS = "python-rpm python-core python-iniparse python-urlgrabber \
+ python-shell python-re python-logging python-pickle \
+ python-netserver python-compression \
+ python-unixadmin python-xml python-sqlite3 \
+ python-textutils python-fcntl python-email \
+ yum-metadata-parser"
+
+S = "${WORKDIR}/yum-${PV}"
+
+inherit autotools
+
+do_compile_append () {
+ sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum.py
+ sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum-updatesd.py
+}
+
+do_install_append () {
+ install -d ${D}${bindir}/
+ install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/
+ install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/
+ rmdir ${D}${localstatedir}/cache/yum
+ rmdir ${D}${localstatedir}/cache
+ install -d ${D}/etc/default/volatiles
+ install -m 0644 ${WORKDIR}/98_yum ${D}/etc/default/volatiles
+}
+
+pkg_postinst_yum () {
+ /etc/init.d/populate-volatile.sh update
+}
+
+FILES_${PN} += "${libdir}/python* ${datadir}/yum-cli"
+
+BBCLASSEXTEND = "native" \ No newline at end of file