summaryrefslogtreecommitdiff
path: root/recipes/yum/yum-native_3.2.18.bb
blob: a9af687eb7fe7795229faa79ec6d37c475ed33a1 (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
HOMEPAGE = "http://linux.duke.edu/projects/yum/"

SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \
           file://hacks.patch \
           file://paths.patch \
	   file://yum-install-recommends.py \
	   file://extract-postinst.awk"
PR = "r7"

DEPENDS = "rpm-native python-native python-iniparse-native intltool-native \
	   python-urlgrabber-native yum-metadata-parser-native libxml2-native"

S = "${WORKDIR}/yum-${PV}"

inherit autotools native

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 ${STAGING_BINDIR}/
	install ${WORKDIR}/extract-postinst.awk ${STAGING_BINDIR}/
	install ${WORKDIR}/yum-install-recommends.py ${STAGING_BINDIR}/
}

SRC_URI[md5sum] = "711f518cb72a698ed98a21a374a4585e"
SRC_URI[sha256sum] = "8b3f300602ce021bf5202496b98271814935f45f3bf3c6730ba4e789b2f323c8"