summaryrefslogtreecommitdiffstats
path: root/scripts/rootfs_rpm-extract-postinst.awk
diff options
context:
space:
mode:
authorMark Hatle <mhatle@windriver.com>2010-07-20 12:57:19 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-24 00:46:57 +0100
commitd668b80e866c8bb512a10bad22b0080d7afe3453 (patch)
tree959d6729ff8bd6ce1a1e722ad2d01666a5f62520 /scripts/rootfs_rpm-extract-postinst.awk
parent8760cde94aca80a920cb50230d61c187d3cfeee4 (diff)
downloadopenembedded-core-d668b80e866c8bb512a10bad22b0080d7afe3453.tar.gz
openembedded-core-d668b80e866c8bb512a10bad22b0080d7afe3453.tar.bz2
openembedded-core-d668b80e866c8bb512a10bad22b0080d7afe3453.zip
meta/classes/rootfs_rpm.bbclass: re implement base on rpm5
Re implement the rootfs generation using rpm5. This also gets rid of the need for yum, and handles all dep resolving internal to the script itself. The new file scripts/rootfs_rpm-extract-postinst.awk comes from the original yum integration work. It has been unchanged, but since yum is no longer used we needed to move the script somewhere else. Signed-off-by: Mark Hatle <mhatle@windriver.com>
Diffstat (limited to 'scripts/rootfs_rpm-extract-postinst.awk')
-rw-r--r--scripts/rootfs_rpm-extract-postinst.awk11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/rootfs_rpm-extract-postinst.awk b/scripts/rootfs_rpm-extract-postinst.awk
new file mode 100644
index 0000000000..8f2836b32c
--- /dev/null
+++ b/scripts/rootfs_rpm-extract-postinst.awk
@@ -0,0 +1,11 @@
+/Name:.*/ {
+ package = substr($0, 7)
+ next
+}
+/postinstall.*scriptlet .*/ {
+ next
+}
+{
+ print $0 >> ENVIRON["D"] "/etc/rpm-postinsts/" package ".sh"
+}
+