pkgsrc/sysutils/logrotate/patches/patch-examples_logrotate-default
fhajny 9369f6f45f * Fix compilation with GCC, based on https://github.com/joyent/pkgsrc/pull/470.
* Use proper Github support, use tagged releases.
* Use upstream install target.
* Cleanup and legibility.
2017-03-06 12:59:53 +00:00

31 lines
806 B
Text

$NetBSD: patch-examples_logrotate-default,v 1.5 2017/03/06 12:59:53 fhajny Exp $
Add pkgsrc paths compatibility.
--- examples/logrotate-default.orig 2016-12-02 13:12:33.000000000 +0000
+++ examples/logrotate-default
@@ -14,22 +14,7 @@ dateext
# uncomment this if you want your log files compressed
#compress
-# RPM packages drop log rotation information into this directory
-include /etc/logrotate.d
-
-# no packages own wtmp and btmp -- we'll rotate them here
-/var/log/wtmp {
- monthly
- create 0664 root utmp
- minsize 1M
- rotate 1
-}
-
-/var/log/btmp {
- missingok
- monthly
- create 0600 root utmp
- rotate 1
-}
+# Packages drop log rotation information into this directory
+include @PKG_SYSCONFDIR@/logrotate.d
# system-specific logs may be also be configured here.