blob: aff44ca6feb9a14f836979dd8fd3b01274d9f236 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
DESCRIPTION = "yum package manger is an automatic updater for rpm."
HOMEPAGE = "http://yum.baseurl.org/"
BUGTRACKER = "http://yum.baseurl.org/report"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760 \
file://yum/sqlutils.py;beginline=2;endline=14;md5=d704ae6a9d69ce90768ab9188236b992"
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"
PR = "r8"
SRC_URI = "http://yum.baseurl.org/download/3.2/yum-${PV}.tar.gz \
file://paths.patch;apply=yes \
file://paths2.patch;apply=yes \
file://yum-install-recommends.py \
file://extract-postinst.awk \
file://98_yum"
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"
|