]> git.saurik.com Git - apt.git/commitdiff
add logrotate support
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 19 Jul 2007 09:46:47 +0000 (10:46 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 19 Jul 2007 09:46:47 +0000 (10:46 +0100)
debian/apt.dirs
debian/apt.logrotate [new file with mode: 0644]
debian/rules

index 26bb0683cae3107c3ffa9bee82261f1477cf217b..8ce9b175abcebab01436b9f80197dc3c2a169ee1 100644 (file)
@@ -4,6 +4,7 @@ usr/lib/dpkg/methods/apt
 etc/apt
 etc/apt/apt.conf.d
 etc/apt/sources.list.d
+etc/logrotate.d
 var/cache/apt/archives/partial
 var/lib/apt/lists/partial
 var/lib/apt/periodic
diff --git a/debian/apt.logrotate b/debian/apt.logrotate
new file mode 100644 (file)
index 0000000..3e924d3
--- /dev/null
@@ -0,0 +1,8 @@
+/var/log/apt/term.log {
+  rotate 6
+  monthly
+  compress
+  missingok
+  notifempty
+}
+
index 3ebecfba4de55e07c475fb83e2b29f63fbe39414..dfee44fde60dd621a053322055100695aa181997 100755 (executable)
@@ -209,6 +209,7 @@ apt: build debian/shlibs.local
        cp -r $(BLD)/locale debian/$@/usr/share/
 
        cp debian/bugscript debian/$@/usr/share/bug/apt/script
+       cp debian/apt.logrotate debian/$@/etc/logrorate.d/apt
 
        cp share/debian-archive.gpg debian/$@/usr/share/$@
        cp debian/apt.conf.autoremove debian/$@/etc/apt/apt.conf.d/01autoremove