summaryrefslogtreecommitdiff
path: root/meta/packages/yum
diff options
context:
space:
mode:
authorRob Bradford <rob@chaos.oh>2008-10-29 17:35:14 +0000
committerRob Bradford <rob@linux.intel.com>2008-10-29 18:22:42 +0000
commitd02483f74fe64610bf6334efd1c406127bfa625a (patch)
tree5b5b4bc71f7d1c97e373049171b5103f9d16bd78 /meta/packages/yum
parentdb5f7b918b7384bfd7a83b5fd17c181cd1d9487b (diff)
downloadopenembedded-core-d02483f74fe64610bf6334efd1c406127bfa625a.tar.gz
openembedded-core-d02483f74fe64610bf6334efd1c406127bfa625a.tar.bz2
openembedded-core-d02483f74fe64610bf6334efd1c406127bfa625a.zip
yum: Use volatiles for the yum cache directory
Diffstat (limited to 'meta/packages/yum')
-rw-r--r--meta/packages/yum/files/98_yum1
-rw-r--r--meta/packages/yum/yum_3.2.18.bb10
2 files changed, 10 insertions, 1 deletions
diff --git a/meta/packages/yum/files/98_yum b/meta/packages/yum/files/98_yum
new file mode 100644
index 0000000000..cb4047ad2b
--- /dev/null
+++ b/meta/packages/yum/files/98_yum
@@ -0,0 +1 @@
+d root root 0755 /var/cache/yum none
diff --git a/meta/packages/yum/yum_3.2.18.bb b/meta/packages/yum/yum_3.2.18.bb
index 3a60cc2f76..a487a3c26f 100644
--- a/meta/packages/yum/yum_3.2.18.bb
+++ b/meta/packages/yum/yum_3.2.18.bb
@@ -1,5 +1,5 @@
HOMEPAGE = "http://linux.duke.edu/projects/yum/"
-PR = "r5"
+PR = "r6"
SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \
file://paths.patch;patch=1 \
@@ -27,6 +27,14 @@ do_install_append () {
install -d ${D}${bindir}/
install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/
install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/
+ rmdir ${D}${localstatedir}/cache/yum
+ rmdir ${D}${localstatedir}/cache
+ install -d ${D}/etc/default/volatiles
+ install -m 0644 ${WORKDIR}/98_yum ${D}/etc/default/volatiles
+}
+
+pkg_postinst_yum () {
+ /etc/init.d/populate-volatile.sh update
}
FILES_${PN} += "${libdir}/python* ${datadir}/yum-cli"