mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
yum-native: Add extract-postinst.awk script for use during rootfs generation
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5133 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
/Name:.*/ {
|
||||||
|
package = substr($0, 7)
|
||||||
|
next
|
||||||
|
}
|
||||||
|
/postinstall.*scriptlet .*/ {
|
||||||
|
next
|
||||||
|
}
|
||||||
|
{
|
||||||
|
print $0 >> ENVIRON["D"] "/etc/rpm-postinsts/" package ".sh"
|
||||||
|
}
|
||||||
|
|
||||||
@@ -2,7 +2,8 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/"
|
|||||||
|
|
||||||
SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \
|
SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \
|
||||||
file://hacks.patch;patch=1 \
|
file://hacks.patch;patch=1 \
|
||||||
file://paths.patch;patch=1"
|
file://paths.patch;patch=1 \
|
||||||
|
file://extract-postinst.awk"
|
||||||
PR = "r4"
|
PR = "r4"
|
||||||
|
|
||||||
DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native"
|
DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native"
|
||||||
@@ -15,3 +16,8 @@ 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.py
|
||||||
sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum-updatesd.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}/
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user