apt: add volatiles support for /var/cache/apt
authorJeremy Lainé <jeremy.laine@m4x.org>
Wed, 30 Sep 2009 14:04:18 +0000 (16:04 +0200)
committerJeremy Lainé <jeremy.laine@m4x.org>
Wed, 30 Sep 2009 14:04:18 +0000 (16:04 +0200)
recipes/apt/apt-package.inc
recipes/apt/apt.inc
recipes/apt/apt_0.7.14.bb
recipes/apt/apt_0.7.19.bb
recipes/apt/apt_0.7.20.2.bb
recipes/apt/files/volatiles [new file with mode: 0644]

index 2b4f6d5..350bebd 100644 (file)
@@ -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
 }
index 4a4de17..2e1524a 100644 (file)
@@ -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}"
 
index 251ed64..f64fa00 100644 (file)
@@ -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"
 
index 251ed64..f64fa00 100644 (file)
@@ -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"
 
index 88047cc..d696ca2 100644 (file)
@@ -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 (file)
index 0000000..fea465b
--- /dev/null
@@ -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