Skip to content

Commit

Permalink
logrotate: patch for 3.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fxcoudert committed May 15, 2017
1 parent 956a793 commit c9f30eb
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions logrotate/3.9.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
diff --git i/Makefile w/Makefile
index 5a42fb6..e53f4f7 100644
--- i/Makefile
+++ w/Makefile
@@ -86,6 +86,22 @@ ifneq ($(POPT_DIR),)
LOADLIBES += -L$(POPT_DIR)
endif

+ifneq ($(COMPRESS_COMMAND),)
+ CFLAGS += -DCOMPRESS_COMMAND=\"$(COMPRESS_COMMAND)\"
+endif
+
+ifneq ($(COMPRESS_EXT),)
+ CFLAGS += -DCOMPRESS_EXT=\"$(COMPRESS_EXT)\"
+endif
+
+ifneq ($(UNCOMPRESS_COMMAND),)
+ CFLAGS += -DUNCOMPRESS_COMMAND=\"$(UNCOMPRESS_COMMAND)\"
+endif
+
+ifneq ($(DEFAULT_MAIL_COMMAND),)
+ CFLAGS += -DDEFAULT_MAIL_COMMAND=\"$(DEFAULT_MAIL_COMMAND)\"
+endif
+
ifneq ($(STATEFILE),)
CFLAGS += -DSTATEFILE=\"$(STATEFILE)\"
endif
diff --git i/examples/logrotate-default w/examples/logrotate-default
index 56e9103..c61a33a 100644
--- i/examples/logrotate-default
+++ w/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
+# Homebrew 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
-}
-
# system-specific logs may be also be configured here.

0 comments on commit c9f30eb

Please sign in to comment.