Browse Source

add logrotate support

Michael Vogt 17 years ago
parent
commit
b574dd1fac
3 changed files with 10 additions and 0 deletions
  1. 1 0
      debian/apt.dirs
  2. 8 0
      debian/apt.logrotate
  3. 1 0
      debian/rules

+ 1 - 0
debian/apt.dirs

@@ -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

+ 8 - 0
debian/apt.logrotate

@@ -0,0 +1,8 @@
+/var/log/apt/term.log {
+  rotate 6
+  monthly
+  compress
+  missingok
+  notifempty
+}
+

+ 1 - 0
debian/rules

@@ -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