diff options
author | Richard Purdie <richard@openedhand.com> | 2008-09-03 23:20:58 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-09-03 23:20:58 +0000 |
commit | a6f3e46936b913032ead27dd67e6fe03f03cd36c (patch) | |
tree | 17382ab6ac86691ec7b23cd295420a19b852e6e9 /meta/packages/yum | |
parent | f9cefb630eab68f2998702baded4a2acab697caf (diff) | |
download | poky-a6f3e46936b913032ead27dd67e6fe03f03cd36c.tar.gz |
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
Diffstat (limited to 'meta/packages/yum')
-rw-r--r-- | meta/packages/yum/yum-native/extract-postinst.awk | 11 | ||||
-rw-r--r-- | meta/packages/yum/yum-native_3.2.18.bb | 8 |
2 files changed, 18 insertions, 1 deletions
diff --git a/meta/packages/yum/yum-native/extract-postinst.awk b/meta/packages/yum/yum-native/extract-postinst.awk new file mode 100644 index 0000000000..8f2836b32c --- /dev/null +++ b/meta/packages/yum/yum-native/extract-postinst.awk | |||
@@ -0,0 +1,11 @@ | |||
1 | /Name:.*/ { | ||
2 | package = substr($0, 7) | ||
3 | next | ||
4 | } | ||
5 | /postinstall.*scriptlet .*/ { | ||
6 | next | ||
7 | } | ||
8 | { | ||
9 | print $0 >> ENVIRON["D"] "/etc/rpm-postinsts/" package ".sh" | ||
10 | } | ||
11 | |||
diff --git a/meta/packages/yum/yum-native_3.2.18.bb b/meta/packages/yum/yum-native_3.2.18.bb index d90f158cd6..76e92b34a9 100644 --- a/meta/packages/yum/yum-native_3.2.18.bb +++ b/meta/packages/yum/yum-native_3.2.18.bb | |||
@@ -2,7 +2,8 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" | |||
2 | 2 | ||
3 | SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ | 3 | SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ |
4 | file://hacks.patch;patch=1 \ | 4 | file://hacks.patch;patch=1 \ |
5 | file://paths.patch;patch=1" | 5 | file://paths.patch;patch=1 \ |
6 | file://extract-postinst.awk" | ||
6 | PR = "r4" | 7 | PR = "r4" |
7 | 8 | ||
8 | DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native" | 9 | DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native" |
@@ -15,3 +16,8 @@ do_compile_append () { | |||
15 | sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum.py | 16 | sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum.py |
16 | sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum-updatesd.py | 17 | sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum-updatesd.py |
17 | } | 18 | } |
19 | |||
20 | do_install_append () { | ||
21 | install -d ${STAGING_BINDIR}/ | ||
22 | install ${WORKDIR}/extract-postinst.awk ${STAGING_BINDIR}/ | ||
23 | } | ||