Hi,

The apt-cacher-ng profile got merged, for good reason, but I'd like to
propose the following patch to it. It allows specifying an alternate
data storage location for the apt-cacher-ng meta information and cached
packages (my personal installation has it in an alternate location).

=== modified file 'ubuntu/12.04/usr.sbin.apt-cacher-ng'
--- ubuntu/12.04/usr.sbin.apt-cacher-ng 2011-11-29 23:33:57 +0000
+++ ubuntu/12.04/usr.sbin.apt-cacher-ng 2011-11-30 00:14:55 +0000
@@ -1,5 +1,7 @@
 # Author: Felix Geyer <[email protected]>
 
+@{APT_CACHE_DIR}=/var/cache/apt-cacher-ng
+
 #include <tunables/global>
 
 /usr/sbin/apt-cacher-ng {
@@ -10,8 +12,8 @@
   /etc/apt-cacher-ng/ r,
   /etc/apt-cacher-ng/** r,
   /{,var/}run/apt-cacher-ng/* rw,
-  /var/cache/apt-cacher-ng/ r,
-  /var/cache/apt-cacher-ng/** rw,
+  @{APT_CACHE_DIR}/ r,
+  @{APT_CACHE_DIR}/** rw,
   /var/log/apt-cacher-ng/ r,
   /var/log/apt-cacher-ng/* rw,
 


-- 
Steve Beattie
<[email protected]>
http://NxNW.org/~steve/

Attachment: signature.asc
Description: Digital signature

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to