summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-10-07 16:21:25 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-10-07 16:21:25 +0000
commit0ea7472583fdcb7caa90907cb2cc3cb3874f2319 (patch)
treee34b5425ba81aa7b7a8c309d6d5663afa763b2e9 /meta/classes/rootfs_rpm.bbclass
parentd1a327beded59df0aaf2b1859ebee017862d763c (diff)
downloadpoky-0ea7472583fdcb7caa90907cb2cc3cb3874f2319.tar.gz
rootfs_rpm.bbclass: added generation of feed entries
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5434 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index e331cf5b48..292e3bb60d 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -15,6 +15,31 @@ export YUM_ARCH_FORCE = "${TARGET_ARCH}"
15 15
16AWKPOSTINSTSCRIPT = "${STAGING_BINDIR_NATIVE}/extract-postinst.awk" 16AWKPOSTINSTSCRIPT = "${STAGING_BINDIR_NATIVE}/extract-postinst.awk"
17 17
18RPM_POSTPROCESS_COMMANDS = "rpm_insert_feeds_uris"
19
20rpm_insert_feeds_uris () {
21
22 echo "Building from feeds activated!"
23
24 mkdir -p ${IMAGE_ROOTFS}/etc/yum/repos.d/
25 for line in ${RPM_FEED_URIS}
26 do
27 # strip leading and trailing spaces/tabs, then split into name and uri
28 line_clean="`echo "$line"|sed 's/^[ \t]*//;s/[ \t]*$//'`"
29 feed_name="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\1/p'`"
30 feed_uri="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\2/p'`"
31
32 echo "Added $feed_name feed with URL $feed_uri"
33
34 FEED_FILE=${IMAGE_ROOTFS}/etc/yum/repos.d/$feed_name
35
36 echo "[poky-feed-$feed_name]" >> $FEED_FILE
37 echo "name = $feed_name" >> $FEED_FILE
38 echo "baseurl = $feed_uri" >> $FEED_FILE
39 echo "gpgcheck = 0" >> $FEED_FILE
40 done
41}
42
18fakeroot rootfs_rpm_do_rootfs () { 43fakeroot rootfs_rpm_do_rootfs () {
19 set -x 44 set -x
20 45
@@ -134,6 +159,7 @@ EOF
134 install -d ${IMAGE_ROOTFS}/${sysconfdir} 159 install -d ${IMAGE_ROOTFS}/${sysconfdir}
135 echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version 160 echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
136 161
162 ${RPM_POSTPROCESS_COMMANDS}
137 ${ROOTFS_POSTPROCESS_COMMAND} 163 ${ROOTFS_POSTPROCESS_COMMAND}
138 164
139 rm -rf ${IMAGE_ROOTFS}/var/cache2/ 165 rm -rf ${IMAGE_ROOTFS}/var/cache2/