From d02483f74fe64610bf6334efd1c406127bfa625a Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 29 Oct 2008 17:35:14 +0000 Subject: yum: Use volatiles for the yum cache directory --- meta/packages/yum/files/98_yum | 1 + meta/packages/yum/yum_3.2.18.bb | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 meta/packages/yum/files/98_yum (limited to 'meta/packages/yum') 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" -- cgit v1.2.3