diff options
author | Rob Bradford <rob@chaos.oh> | 2008-10-29 17:35:14 +0000 |
---|---|---|
committer | Rob Bradford <rob@linux.intel.com> | 2008-10-29 18:22:42 +0000 |
commit | d02483f74fe64610bf6334efd1c406127bfa625a (patch) | |
tree | 5b5b4bc71f7d1c97e373049171b5103f9d16bd78 /meta/packages/yum | |
parent | db5f7b918b7384bfd7a83b5fd17c181cd1d9487b (diff) | |
download | poky-d02483f74fe64610bf6334efd1c406127bfa625a.tar.gz |
yum: Use volatiles for the yum cache directory
Diffstat (limited to 'meta/packages/yum')
-rw-r--r-- | meta/packages/yum/files/98_yum | 1 | ||||
-rw-r--r-- | meta/packages/yum/yum_3.2.18.bb | 10 |
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 @@ | |||
1 | HOMEPAGE = "http://linux.duke.edu/projects/yum/" | 1 | HOMEPAGE = "http://linux.duke.edu/projects/yum/" |
2 | PR = "r5" | 2 | PR = "r6" |
3 | 3 | ||
4 | SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ | 4 | SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ |
5 | file://paths.patch;patch=1 \ | 5 | file://paths.patch;patch=1 \ |
@@ -27,6 +27,14 @@ do_install_append () { | |||
27 | install -d ${D}${bindir}/ | 27 | install -d ${D}${bindir}/ |
28 | install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/ | 28 | install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/ |
29 | install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/ | 29 | install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/ |
30 | rmdir ${D}${localstatedir}/cache/yum | ||
31 | rmdir ${D}${localstatedir}/cache | ||
32 | install -d ${D}/etc/default/volatiles | ||
33 | install -m 0644 ${WORKDIR}/98_yum ${D}/etc/default/volatiles | ||
34 | } | ||
35 | |||
36 | pkg_postinst_yum () { | ||
37 | /etc/init.d/populate-volatile.sh update | ||
30 | } | 38 | } |
31 | 39 | ||
32 | FILES_${PN} += "${libdir}/python* ${datadir}/yum-cli" | 40 | FILES_${PN} += "${libdir}/python* ${datadir}/yum-cli" |