diff options
author | Jeremy Lainé <jeremy.laine@m4x.org> | 2009-09-30 16:04:18 +0200 |
---|---|---|
committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2009-09-30 16:04:18 +0200 |
commit | 74d7222aee9f3725adeee1855c862a307b734d0b (patch) | |
tree | f14e2adf28819e5630d4df4b11e9851407a8fa5f /recipes/apt | |
parent | 0427b295ab7f42d0df44daecceb1d34660099ceb (diff) |
apt: add volatiles support for /var/cache/apt
Diffstat (limited to 'recipes/apt')
-rw-r--r-- | recipes/apt/apt-package.inc | 7 | ||||
-rw-r--r-- | recipes/apt/apt.inc | 3 | ||||
-rw-r--r-- | recipes/apt/apt_0.7.14.bb | 7 | ||||
-rw-r--r-- | recipes/apt/apt_0.7.19.bb | 7 | ||||
-rw-r--r-- | recipes/apt/apt_0.7.20.2.bb | 8 | ||||
-rw-r--r-- | recipes/apt/files/volatiles | 3 |
6 files changed, 22 insertions, 13 deletions
diff --git a/recipes/apt/apt-package.inc b/recipes/apt/apt-package.inc index 2b4f6d54a8..350bebd7f6 100644 --- a/recipes/apt/apt-package.inc +++ b/recipes/apt/apt-package.inc @@ -99,4 +99,11 @@ do_install () { install -d ${D}${localstatedir}/cache/apt/archives/partial install -d ${D}${docdir}/apt/examples install -m 0644 doc/examples/* ${D}${docdir}/apt/examples/ + + install -d ${D}${sysconfdir}/default/volatiles + install -m 644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/01_apt +} + +pkg_postinst_${PN} () { + /etc/init.d/populate-volatile.sh update } diff --git a/recipes/apt/apt.inc b/recipes/apt/apt.inc index 4a4de1788a..2e1524a376 100644 --- a/recipes/apt/apt.inc +++ b/recipes/apt/apt.inc @@ -2,7 +2,8 @@ DESCRIPTION = "Advanced front-end for dpkg." LICENSE = "GPL" SECTION = "base" -SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/apt_${PV}.tar.gz" +SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/apt_${PV}.tar.gz \ + file://volatiles " S = "${WORKDIR}/apt-${PV}" diff --git a/recipes/apt/apt_0.7.14.bb b/recipes/apt/apt_0.7.14.bb index 251ed6416d..f64fa0019a 100644 --- a/recipes/apt/apt_0.7.14.bb +++ b/recipes/apt/apt_0.7.14.bb @@ -3,10 +3,9 @@ RDEPENDS = "dpkg" require apt.inc -SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/apt_${PV}.tar.gz \ - file://no-ko-translation.patch;patch=1 \ - file://use-host.patch;patch=1 " -PR = "r2" +SRC_URI += "file://no-ko-translation.patch;patch=1 \ + file://use-host.patch;patch=1 " +PR = "r3" SRC_URI += "file://nodoc.patch;patch=1" diff --git a/recipes/apt/apt_0.7.19.bb b/recipes/apt/apt_0.7.19.bb index 251ed6416d..f64fa0019a 100644 --- a/recipes/apt/apt_0.7.19.bb +++ b/recipes/apt/apt_0.7.19.bb @@ -3,10 +3,9 @@ RDEPENDS = "dpkg" require apt.inc -SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/apt_${PV}.tar.gz \ - file://no-ko-translation.patch;patch=1 \ - file://use-host.patch;patch=1 " -PR = "r2" +SRC_URI += "file://no-ko-translation.patch;patch=1 \ + file://use-host.patch;patch=1 " +PR = "r3" SRC_URI += "file://nodoc.patch;patch=1" diff --git a/recipes/apt/apt_0.7.20.2.bb b/recipes/apt/apt_0.7.20.2.bb index 88047cccce..d696ca2cf5 100644 --- a/recipes/apt/apt_0.7.20.2.bb +++ b/recipes/apt/apt_0.7.20.2.bb @@ -3,10 +3,10 @@ RDEPENDS = "dpkg" require apt.inc -SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/apt_${PV}.tar.gz \ - file://no-doxygen.patch;patch=1 \ - file://no-ko-translation.patch;patch=1 \ - file://use-host.patch;patch=1 " +SRC_URI += "file://no-doxygen.patch;patch=1 \ + file://no-ko-translation.patch;patch=1 \ + file://use-host.patch;patch=1 " +PR = "r1" require apt-package.inc diff --git a/recipes/apt/files/volatiles b/recipes/apt/files/volatiles new file mode 100644 index 0000000000..fea465bcec --- /dev/null +++ b/recipes/apt/files/volatiles @@ -0,0 +1,3 @@ +d root root 0755 /var/cache/apt none +d root root 0755 /var/cache/apt/archives none +d root root 0755 /var/cache/apt/archives/partial none |