aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/logrotate
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2003-07-30 17:41:58 +0800
committerkrion <krion@FreeBSD.org>2003-07-30 17:41:58 +0800
commit30eed2987752bda6fa2d1669e6a70bd5bd72eb1c (patch)
tree48078f018a78dfd29a079cc7cb886885cc266ac1 /sysutils/logrotate
parent3702bf9a8038f68911889a704ff5e7023e167ab1 (diff)
downloadfreebsd-ports-gnome-30eed2987752bda6fa2d1669e6a70bd5bd72eb1c.tar.gz
freebsd-ports-gnome-30eed2987752bda6fa2d1669e6a70bd5bd72eb1c.tar.zst
freebsd-ports-gnome-30eed2987752bda6fa2d1669e6a70bd5bd72eb1c.zip
Fix build on -current
PR: 54613 Submitted by: krion Approved by: fjoe (mentor) (implicit) Maintainer timeout: one week
Diffstat (limited to 'sysutils/logrotate')
-rw-r--r--sysutils/logrotate/files/patch-ac22
-rw-r--r--sysutils/logrotate/files/patch-logrotate.c43
2 files changed, 43 insertions, 22 deletions
diff --git a/sysutils/logrotate/files/patch-ac b/sysutils/logrotate/files/patch-ac
deleted file mode 100644
index 1c3ca0adb866..000000000000
--- a/sysutils/logrotate/files/patch-ac
+++ /dev/null
@@ -1,22 +0,0 @@
---- logrotate.c.orig Thu Jun 17 04:37:19 1999
-+++ logrotate.c Wed Dec 29 11:31:57 1999
-@@ -1,9 +1,7 @@
--#include <alloca.h>
- #include <ctype.h>
- #include <dirent.h>
- #include <errno.h>
- #include <fcntl.h>
--#include <getopt.h>
- #include <popt.h>
- #include <stdio.h>
- #include <stdlib.h>
-@@ -457,6 +455,9 @@
- hasErrors = 1;
- }
- }
-+
-+ message(MESS_DEBUG, "sleep 10 to wait daemon close log\n");
-+ sleep(10);
-
- if (!hasErrors && !log->rotateCount) {
- message(MESS_DEBUG, "removing rotated log (rotateCount == 0)");
diff --git a/sysutils/logrotate/files/patch-logrotate.c b/sysutils/logrotate/files/patch-logrotate.c
new file mode 100644
index 000000000000..527211d5677b
--- /dev/null
+++ b/sysutils/logrotate/files/patch-logrotate.c
@@ -0,0 +1,43 @@
+--- logrotate.c.orig Fri Aug 4 20:27:38 2000
++++ logrotate.c Fri Jul 18 15:20:13 2003
+@@ -1,9 +1,7 @@
+-#include <alloca.h>
+ #include <ctype.h>
+ #include <dirent.h>
+ #include <errno.h>
+ #include <fcntl.h>
+-#include <getopt.h>
+ #include <popt.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -395,8 +393,7 @@
+ if (log->pre && !(log->flags & LOG_FLAG_SHAREDSCRIPTS)) {
+ message(MESS_DEBUG, "running prerotate script\n");
+ if (runScript(log->files[logNum], log->pre)) {
+- fprintf(errorFile, "error running prerotate script --
+- leaving old log in place\n");
++ fprintf(errorFile, "error running prerotate script -- leaving old log in place\n");
+ hasErrors = 1;
+ }
+ }
+@@ -471,6 +468,9 @@
+ }
+ }
+
++ message(MESS_DEBUG, "sleep 10 to wait daemon close log\n");
++ sleep(10);
++
+ if (!hasErrors && !log->rotateCount) {
+ message(MESS_DEBUG, "removing rotated log (rotateCount == 0)");
+ if (unlink(finalName)) {
+@@ -634,8 +634,8 @@
+ if (log->pre && (log->flags & LOG_FLAG_SHAREDSCRIPTS)) {
+ message(MESS_DEBUG, "running shared prerotate script\n");
+ if (runScript(log->pattern, log->pre)) {
+- fprintf(errorFile, "error running shared prerotate script for %s--
+- leaving old logs in place\n", log->pattern);
++ fprintf(errorFile, "error running shared prerotate script for %s-- "
++ "leaving old logs in place\n", log->pattern);
+ hasErrors = 1;
+ }
+ }