This commit is contained in:
commit
0c192715da
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
logrotate-3.7.4.tar.bz2
Normal file
3
logrotate-3.7.4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cdfcf9a1e632da8ed054c14833b6e06ec82773353d5a06588b3d7c649b705017
|
||||
size 33844
|
146
logrotate-addextension.dif
Normal file
146
logrotate-addextension.dif
Normal file
@ -0,0 +1,146 @@
|
||||
--- config.c
|
||||
+++ config.c
|
||||
@@ -301,6 +301,7 @@
|
||||
/* first, last */ NULL, NULL,
|
||||
/* logAddress */ NULL,
|
||||
/* extension */ NULL,
|
||||
+ /* addextension */ NULL,
|
||||
/* compress_prog */ NULL,
|
||||
/* uncompress_prog */ NULL,
|
||||
/* compress_ext */ NULL,
|
||||
@@ -876,6 +877,22 @@
|
||||
message(MESS_DEBUG, "extension is now %s\n",
|
||||
newlog->extension);
|
||||
|
||||
+ } else if (!strcmp(start, "addextension")) {
|
||||
+ *endtag = oldchar, start = endtag;
|
||||
+
|
||||
+ if (!isolateValue
|
||||
+ (configFile, lineNum, "addextension name", &start,
|
||||
+ &endtag)) {
|
||||
+ oldchar = *endtag, *endtag = '\0';
|
||||
+
|
||||
+ newlog->addextension = strdup(start);
|
||||
+
|
||||
+ *endtag = oldchar, start = endtag;
|
||||
+ }
|
||||
+
|
||||
+ message(MESS_DEBUG, "addextension is now %s\n",
|
||||
+ newlog->addextension);
|
||||
+
|
||||
} else if (!strcmp(start, "compresscmd")) {
|
||||
*endtag = oldchar, start = endtag;
|
||||
if (!
|
||||
--- logrotate.8
|
||||
+++ logrotate.8
|
||||
@@ -142,6 +142,15 @@
|
||||
a \fBlogrotate\fR configuration file:
|
||||
|
||||
.TP
|
||||
+\fBaddextension \fIext\fR
|
||||
+Log files are given the final extension \fIext\fR after rotation. If
|
||||
+the original file already ends with \fIext\fR, the extension is not
|
||||
+duplicated, but merely moved to the end, i.e. both \fBfilename\fR and
|
||||
+\fBfilename\fIext\fR would get rotated to filename.1\fIext\fR. If
|
||||
+compression is used, the compression extension (normally \fB.gz\fR)
|
||||
+appears after \fIext\fR.
|
||||
+
|
||||
+.TP
|
||||
\fBcompress\fR
|
||||
Old versions of log files are compressed with \fBgzip\fR by default. See also
|
||||
\fBnocompress\fR.
|
||||
--- logrotate.c
|
||||
+++ logrotate.c
|
||||
@@ -99,6 +99,7 @@
|
||||
freeLogItem(last);
|
||||
freeLogItem(logAddress);
|
||||
freeLogItem(extension);
|
||||
+ freeLogItem(addextension);
|
||||
freeLogItem(compress_prog);
|
||||
freeLogItem(uncompress_prog);
|
||||
freeLogItem(compress_ext);
|
||||
@@ -591,6 +592,25 @@
|
||||
|
||||
rotNames->baseName = strdup(ourBaseName(log->files[logNum]));
|
||||
|
||||
+ if (log->addextension) {
|
||||
+ size_t baseLen = strlen(rotNames->baseName);
|
||||
+ size_t extLen = strlen(log->addextension);
|
||||
+ if (baseLen >= extLen &&
|
||||
+ strncmp(&(rotNames->baseName[baseLen - extLen]),
|
||||
+ log->addextension, extLen) == 0) {
|
||||
+ char *tempstr;
|
||||
+
|
||||
+ fileext = log->addextension;
|
||||
+ tempstr = calloc(baseLen - extLen + 1, sizeof(char));
|
||||
+ strncat(tempstr, rotNames->baseName, baseLen - extLen);
|
||||
+ free(rotNames->baseName);
|
||||
+ rotNames->baseName = tempstr;
|
||||
+ } else {
|
||||
+ fileext = log->addextension;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+
|
||||
alloc_size = strlen(rotNames->dirName) + strlen(rotNames->baseName) +
|
||||
strlen(log->files[logNum]) + strlen(fileext) +
|
||||
strlen(compext) + 18;
|
||||
--- logrotate.h
|
||||
+++ logrotate.h
|
||||
@@ -40,6 +40,7 @@
|
||||
char *pre, *post, *first, *last;
|
||||
char *logAddress;
|
||||
char *extension;
|
||||
+ char *addextension;
|
||||
char *compress_prog;
|
||||
char *uncompress_prog;
|
||||
char *compress_ext;
|
||||
--- test/test
|
||||
+++ test/test
|
||||
@@ -354,4 +354,26 @@
|
||||
|
||||
rm -rf testdir
|
||||
|
||||
+# check rotation with extension appended to the filename
|
||||
+cleanup 14
|
||||
+
|
||||
+preptest test.log 14 1 0
|
||||
+$RLR test-config.14 --force
|
||||
+
|
||||
+checkoutput <<EOF
|
||||
+test.log 0
|
||||
+test.log.1.newext 0 zero
|
||||
+EOF
|
||||
+
|
||||
+# check rotation with extension moved after the number
|
||||
+cleanup 15
|
||||
+
|
||||
+preptest test.log 15 1 0
|
||||
+$RLR test-config.15 --force
|
||||
+
|
||||
+checkoutput <<EOF
|
||||
+test.log 0
|
||||
+test.1.log 0 zero
|
||||
+EOF
|
||||
+
|
||||
cleanup
|
||||
--- test/test-config.14.in
|
||||
+++ test/test-config.14.in
|
||||
@@ -0,0 +1,7 @@
|
||||
+create
|
||||
+
|
||||
+&DIR&/test.log {
|
||||
+ monthly
|
||||
+ rotate 1
|
||||
+ addextension .newext
|
||||
+}
|
||||
--- test/test-config.15.in
|
||||
+++ test/test-config.15.in
|
||||
@@ -0,0 +1,7 @@
|
||||
+create
|
||||
+
|
||||
+&DIR&/test.log {
|
||||
+ monthly
|
||||
+ rotate 1
|
||||
+ addextension .log
|
||||
+}
|
69
logrotate-autoext.dif
Normal file
69
logrotate-autoext.dif
Normal file
@ -0,0 +1,69 @@
|
||||
--- config.c
|
||||
+++ config.c
|
||||
@@ -343,7 +343,7 @@
|
||||
logInfo ** logsPtr, int *numLogsPtr)
|
||||
{
|
||||
int fd;
|
||||
- char *buf, *endtag;
|
||||
+ char *buf, *endtag, *compresscmd_base;
|
||||
char oldchar, foo;
|
||||
int length;
|
||||
int lineNum = 1;
|
||||
@@ -889,6 +889,18 @@
|
||||
message(MESS_DEBUG, "compress_prog is now %s\n",
|
||||
newlog->compress_prog);
|
||||
|
||||
+ compresscmd_base=strdup(basename(newlog->compress_prog));
|
||||
+ i=0; /* have to check whether we may do this! */
|
||||
+ /* we check whether we changed the compress_cmd. In case we use the apropriate extension
|
||||
+ as listed in compress_cmd_list */
|
||||
+ while ((i>=0)&&(strcmp(compress_cmd_list[i][0], "EOLIST"))){
|
||||
+ if (0==strcmp(compress_cmd_list[i][0], compresscmd_base)){
|
||||
+ newlog->compress_ext=strdup((char *)compress_cmd_list[i][1]);
|
||||
+ message(MESS_DEBUG, "compress_ext was changed to %s\n", newlog->compress_ext);
|
||||
+ i=-10; /* terminate loop! */
|
||||
+ }
|
||||
+ i++;
|
||||
+ }
|
||||
} else if (!strcmp(start, "uncompresscmd")) {
|
||||
*endtag = oldchar, start = endtag;
|
||||
if (!
|
||||
--- logrotate.c
|
||||
+++ logrotate.c
|
||||
@@ -50,6 +50,15 @@
|
||||
|
||||
int debug = 0;
|
||||
char *mailCommand = DEFAULT_MAIL_COMMAND;
|
||||
+/* This is the declaration. Note the "2" is needed in the definition (logrotate.h), too! */
|
||||
+const char * compress_cmd_list[][2] = {
|
||||
+ {"gzip", ".gz"},
|
||||
+ {"bzip2", ".bz2"},
|
||||
+ {"compress", ".Z"},
|
||||
+ {"zip", "zip"},
|
||||
+ {"EOLIST", "EOLIST"} /* end-marker */
|
||||
+};
|
||||
+
|
||||
time_t nowSecs = 0;
|
||||
|
||||
static int globerr(const char *pathname, int theerr)
|
||||
@@ -263,7 +272,7 @@
|
||||
char *uncompressCommand, char *address, char *subject)
|
||||
{
|
||||
int mailInput;
|
||||
- pid_t mailChild, uncompressChild;
|
||||
+ pid_t mailChild, uncompressChild=(pid_t) 0;
|
||||
int mailStatus, uncompressStatus;
|
||||
int uncompressPipe[2];
|
||||
char *mailArgv[] = { mailCommand, "-s", subject, address, NULL };
|
||||
--- logrotate.h
|
||||
+++ logrotate.h
|
||||
@@ -51,6 +51,9 @@
|
||||
int compress_options_count;
|
||||
} logInfo;
|
||||
|
||||
+/* This is the definition. Note we have to carry the "2" within the declaration (logrotate.c), too! */
|
||||
+extern const char * compress_cmd_list[][2];
|
||||
+
|
||||
int readAllConfigPaths(const char **paths, logInfo ** logsPtr,
|
||||
int *numLogsPtr);
|
||||
|
44
logrotate-conf.dif
Normal file
44
logrotate-conf.dif
Normal file
@ -0,0 +1,44 @@
|
||||
--- examples/logrotate-default
|
||||
+++ examples/logrotate-default
|
||||
@@ -11,14 +11,22 @@
|
||||
# uncomment this if you want your log files compressed
|
||||
#compress
|
||||
|
||||
+# uncomment these to switch compression to use gzip or another
|
||||
+# compression scheme
|
||||
+compresscmd /usr/bin/bzip2
|
||||
+uncompresscmd /usr/bin/bunzip2
|
||||
+
|
||||
+# former versions had to have the compressext set accordingly
|
||||
+#compressext .bz2
|
||||
+
|
||||
# RPM packages drop log rotation information into this directory
|
||||
include /etc/logrotate.d
|
||||
|
||||
# no packages own wtmp -- we'll rotate them here
|
||||
-/var/log/wtmp {
|
||||
- monthly
|
||||
- create 0664 root utmp
|
||||
- rotate 1
|
||||
-}
|
||||
+#/var/log/wtmp {
|
||||
+# monthly
|
||||
+# create 0664 root utmp
|
||||
+# rotate 1
|
||||
+#}
|
||||
|
||||
# system-specific logs may be also be configured here.
|
||||
--- examples/logrotate.wtmp
|
||||
+++ examples/logrotate.wtmp
|
||||
@@ -0,0 +1,11 @@
|
||||
+/var/log/wtmp {
|
||||
+ compress
|
||||
+ dateext
|
||||
+ maxage 365
|
||||
+ rotate 99
|
||||
+ size=+400k
|
||||
+ notifempty
|
||||
+ missingok
|
||||
+ copytruncate
|
||||
+}
|
||||
+
|
34
logrotate-suse.dif
Normal file
34
logrotate-suse.dif
Normal file
@ -0,0 +1,34 @@
|
||||
--- Makefile
|
||||
+++ Makefile
|
||||
@@ -60,7 +60,7 @@
|
||||
endif
|
||||
|
||||
BINDIR = $(BASEDIR)/sbin
|
||||
-MANDIR = $(BASEDIR)/man
|
||||
+MANDIR = $(BASEDIR)/share/man
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
|
||||
--- examples/logrotate.cron
|
||||
+++ examples/logrotate.cron
|
||||
@@ -1,8 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
-/usr/sbin/logrotate /etc/logrotate.conf
|
||||
-EXITVALUE=$?
|
||||
+TMPF=`mktemp /tmp/logrotate.XXXXXXXXXX`
|
||||
+
|
||||
+/usr/sbin/logrotate /etc/logrotate.conf 2>&1 | tee $TMPF
|
||||
+EXITVALUE=${PIPESTATUS[0]}
|
||||
+
|
||||
if [ $EXITVALUE != 0 ]; then
|
||||
- /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
|
||||
+ # wait a sec, we might just have restarted syslog
|
||||
+ sleep 1
|
||||
+ # tell what went wrong
|
||||
+ /bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
|
||||
+ /bin/logger -t logrotate -f $TMPF
|
||||
fi
|
||||
+
|
||||
+rm -f $TMPF
|
||||
exit 0
|
290
logrotate.changes
Normal file
290
logrotate.changes
Normal file
@ -0,0 +1,290 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 7 18:07:58 CEST 2006 - ro@suse.de
|
||||
|
||||
- try adding new option "addextension" which provides what
|
||||
some users expected the old "extension" keyword to do
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 21 12:40:30 CEST 2006 - ro@suse.de
|
||||
|
||||
- update to 3.7.4
|
||||
- adds the "minsize" option
|
||||
- clean up comments in sample logrotate.conf (#183440)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:37:59 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 11 19:05:18 CET 2006 - ro@suse.de
|
||||
|
||||
- fixed segfault in autoext patch (#142021)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 9 14:58:46 CET 2005 - ro@suse.de
|
||||
|
||||
- updated to 3.7.3
|
||||
- removed upstreamed patches
|
||||
- added autoext patch for determining file extension
|
||||
from used compression program
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 18 12:42:16 CEST 2005 - ro@suse.de
|
||||
|
||||
- update to upstream patchkit
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 11 02:19:17 CEST 2005 - ro@suse.de
|
||||
|
||||
- update to 3.7.2 and some upstream patches
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 11 01:41:53 CEST 2005 - ro@suse.de
|
||||
|
||||
- fix else case in maxage patch (thanks to pvrabec)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 26 16:26:57 CEST 2005 - ro@suse.de
|
||||
|
||||
- added noTMPDIR and selinux patches
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 20 00:28:58 CEST 2005 - ro@suse.de
|
||||
|
||||
- update to 3.7.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 20 17:12:50 CEST 2005 - ro@suse.de
|
||||
|
||||
- cron-script: give some more details when things fail
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 6 17:44:42 CEST 2004 - ro@suse.de
|
||||
|
||||
- changed patch sequence, simple ones first
|
||||
- added one-liner fix from cvs
|
||||
- fix mail call
|
||||
- fix uninitialized variable when mailing out first rotation
|
||||
- fix number of logs kept with dateext
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 25 16:40:34 CET 2004 - ro@suse.de
|
||||
|
||||
- adapted logger path (#36947)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 23 15:58:48 CET 2004 - ro@suse.de
|
||||
|
||||
- update to version 3.7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 17 11:51:01 CEST 2003 - ro@suse.de
|
||||
|
||||
- don't build as root
|
||||
- use defattr
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 13 16:19:27 CEST 2003 - ro@suse.de
|
||||
|
||||
- updated to 3.6.10 and ported patches
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 12 11:14:24 CEST 2003 - kukuk@suse.de
|
||||
|
||||
- /etc/logrotate.d is part of filesystem
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 23 01:47:13 CET 2003 - ro@suse.de
|
||||
|
||||
- update to 3.6.6 (some tmpfile fixes, new options supported)
|
||||
- remove system-config /etc/logrotate.d/aaa_base and all code
|
||||
messing with it (all logrotate configs have been moved to
|
||||
their respective packages)
|
||||
- add /etc/logrotate.d/wtmp
|
||||
|
||||
------------------------------------------------------------------
|
||||
Thu Jan 23 00:34:41 CET 2003 - ro@suse.de
|
||||
|
||||
- remove mgetty logfiles
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 20 18:13:36 CET 2003 - ro@suse.de
|
||||
|
||||
- remove i4l logfiles
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 16 00:00:40 CET 2003 - ro@suse.de
|
||||
|
||||
- removed xdm logfile from main config (in XFree86 now)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 15 15:12:06 CET 2003 - ro@suse.de
|
||||
|
||||
- removed more files from main config and moved to their packages
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 11 00:23:01 CET 2002 - ro@suse.de
|
||||
|
||||
- fix deprecated multiline string literals
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 14 12:30:53 CEST 2002 - ro@suse.de
|
||||
|
||||
- remove postgresql logfile from config on update (#20860)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 14 11:24:50 CEST 2002 - ro@suse.de
|
||||
|
||||
- moved syslog logrotation config to syslogd package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 23 15:41:35 CEST 2002 - ro@suse.de
|
||||
|
||||
- mark logrotate.del as missingok
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 15:05:11 CEST 2002 - ro@suse.de
|
||||
|
||||
- remove handling of /var/account/pacct (moved to acct package)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 16 11:20:47 CEST 2002 - ro@suse.de
|
||||
|
||||
- dropped insserv from prereq (not used)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 5 08:57:21 CEST 2002 - kukuk@suse.de
|
||||
|
||||
- Add rm and mv to PreRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 31 00:47:28 CEST 2002 - ro@suse.de
|
||||
|
||||
- fixed typo in specfile
|
||||
- added comment in config-file about bzip2 usage
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 29 17:53:09 CEST 2002 - ro@suse.de
|
||||
|
||||
- removed fetchmail logrotate entry (#17279)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 29 16:24:17 CEST 2002 - ro@suse.de
|
||||
|
||||
- removed apache,smail,perforce,abuild components
|
||||
- remove old entries also from logrotate.d/aaa_base on update
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 29 14:32:24 CEST 2002 - ro@suse.de
|
||||
|
||||
- squid components removed (done in squid package now) (#17278)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 19 16:23:39 CEST 2002 - gd@suse.de
|
||||
|
||||
- fixed samba log paths
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 12 13:49:04 CEST 2002 - kukuk@suse.de
|
||||
|
||||
- Fix post-install script for the case that there is no rc.config
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 24 14:00:30 CEST 2002 - ro@suse.de
|
||||
|
||||
- fixed squid log paths (#16557)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 8 23:27:09 CEST 2002 - ro@suse.de
|
||||
|
||||
- uucp-logfiles are handled by own config
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 18 23:26:12 CET 2002 - ro@suse.de
|
||||
|
||||
- don't rotate any file for /var/log/news.*
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 1 00:13:07 CET 2002 - ro@suse.de
|
||||
|
||||
- don't overwrite logfiles with dateext if run more than once
|
||||
a day (partial solution for #13202)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 25 14:29:46 CET 2002 - ro@suse.de
|
||||
|
||||
- install etc_logfiles as 644
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 19 00:24:25 CET 2002 - ro@suse.de
|
||||
|
||||
- removed yast from logrotate.d
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 16 12:50:25 CET 2002 - ro@suse.de
|
||||
|
||||
- removed postgresql logfile (handled by package)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 7 00:13:27 CET 2002 - ro@suse.de
|
||||
|
||||
- take wtmp out of default config
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 14 15:00:17 CET 2001 - ro@suse.de
|
||||
|
||||
- really remove old variable from rc.config
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 12 13:51:59 CET 2001 - ro@suse.de
|
||||
|
||||
- mark files in /etc/logrotate.d as noreplace
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 11 01:43:54 CET 2001 - ro@suse.de
|
||||
|
||||
- implement maxage if dateext is not used
|
||||
- uncompress log for mail if maillast is used
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 10 14:01:53 CET 2001 - ro@suse.de
|
||||
|
||||
- added etc_logfiles as reminder to sources
|
||||
- moved convert script into postinstall and try to find
|
||||
old etc/logfiles and use etc_logfiles as fallback
|
||||
- added yast and syslog to /etc/logrotate.d as config files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 10 01:24:03 CET 2001 - ro@suse.de
|
||||
|
||||
- added maxage extension
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 6 12:44:14 CET 2001 - ro@suse.de
|
||||
|
||||
- split patches for purpose
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 17:52:14 CET 2001 - ro@suse.de
|
||||
|
||||
- archiving option changed to "dateext" and
|
||||
works completely transparent otherwise
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 27 02:05:26 CET 2001 - ro@suse.de
|
||||
|
||||
- added multiple rotation criteria can be selected at one time
|
||||
- added/completed implementation for days (max days)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 26 18:11:14 CET 2001 - ro@suse.de
|
||||
|
||||
- added archiving option
|
||||
- added script to convert /etc/logfiles
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 13 11:59:20 CET 2001 - ro@suse.de
|
||||
|
||||
- initial package for SuSE Linux (version 3.5.9)
|
||||
|
213
logrotate.spec
Normal file
213
logrotate.spec
Normal file
@ -0,0 +1,213 @@
|
||||
#
|
||||
# spec file for package logrotate (Version 3.7.4)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: logrotate
|
||||
BuildRequires: popt-devel
|
||||
Summary: Rotate, Compress, Remove, and Mail System Log Files
|
||||
Version: 3.7.4
|
||||
Release: 2
|
||||
License: GPL
|
||||
Group: System/Base
|
||||
Source: ftp://people.redhat.com/sopwith/logrotate-%{version}.tar.bz2
|
||||
Patch: logrotate-suse.dif
|
||||
Patch1: logrotate-conf.dif
|
||||
Patch2: logrotate-autoext.dif
|
||||
Patch3: logrotate-addextension.dif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
PreReq: %fillup_prereq /bin/rm /bin/mv
|
||||
|
||||
%description
|
||||
The logrotate utility is designed to simplify the administration of log
|
||||
files on a system that generates a lot of log files. Logrotate allows
|
||||
for the automatic rotation, compression, removal, and mailing of log
|
||||
files. Logrotate can be set to handle a log file daily, weekly,
|
||||
monthly, or when the log file gets to a certain size. Normally,
|
||||
logrotate runs as a daily cron job.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Erik Troan <ewt@redhat.com>
|
||||
Matt Wilson <msw@redhat.com>
|
||||
Preston Brown <pbrown@redhat.com>
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3
|
||||
|
||||
%build
|
||||
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
||||
make test
|
||||
|
||||
%install
|
||||
make PREFIX=$RPM_BUILD_ROOT install
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,cron.daily}
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
||||
install -m 644 examples/logrotate-default $RPM_BUILD_ROOT/etc/logrotate.conf
|
||||
install -m 755 examples/logrotate.cron $RPM_BUILD_ROOT/etc/cron.daily/logrotate
|
||||
install -m 644 examples/logrotate.wtmp $RPM_BUILD_ROOT/etc/logrotate.d/wtmp
|
||||
|
||||
%post
|
||||
%{remove_and_set MAX_DAYS_FOR_LOG_FILES}
|
||||
if [ -f /etc/logrotate.d/aaa_base ] ; then
|
||||
echo "Saving old logrotate system confguration"
|
||||
mv -v /etc/logrotate.d/aaa_base /etc/logrotate.d.aaa_base.save
|
||||
fi
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES
|
||||
/usr/sbin/logrotate
|
||||
%{_mandir}/man8/logrotate.8*
|
||||
/etc/cron.daily/logrotate
|
||||
%config /etc/logrotate.conf
|
||||
%config(noreplace)/etc/logrotate.d/wtmp
|
||||
|
||||
%changelog -n logrotate
|
||||
* Mon Aug 07 2006 - ro@suse.de
|
||||
- try adding new option "addextension" which provides what
|
||||
some users expected the old "extension" keyword to do
|
||||
* Wed Jun 21 2006 - ro@suse.de
|
||||
- update to 3.7.4
|
||||
- adds the "minsize" option
|
||||
- clean up comments in sample logrotate.conf (#183440)
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Wed Jan 11 2006 - ro@suse.de
|
||||
- fixed segfault in autoext patch (#142021)
|
||||
* Fri Dec 09 2005 - ro@suse.de
|
||||
- updated to 3.7.3
|
||||
- removed upstreamed patches
|
||||
- added autoext patch for determining file extension
|
||||
from used compression program
|
||||
* Tue Oct 18 2005 - ro@suse.de
|
||||
- update to upstream patchkit
|
||||
* Tue Oct 11 2005 - ro@suse.de
|
||||
- update to 3.7.2 and some upstream patches
|
||||
* Tue Oct 11 2005 - ro@suse.de
|
||||
- fix else case in maxage patch (thanks to pvrabec)
|
||||
* Tue Jul 26 2005 - ro@suse.de
|
||||
- added noTMPDIR and selinux patches
|
||||
* Fri May 20 2005 - ro@suse.de
|
||||
- update to 3.7.1
|
||||
* Wed Apr 20 2005 - ro@suse.de
|
||||
- cron-script: give some more details when things fail
|
||||
* Mon Sep 06 2004 - ro@suse.de
|
||||
- changed patch sequence, simple ones first
|
||||
- added one-liner fix from cvs
|
||||
- fix mail call
|
||||
- fix uninitialized variable when mailing out first rotation
|
||||
- fix number of logs kept with dateext
|
||||
* Thu Mar 25 2004 - ro@suse.de
|
||||
- adapted logger path (#36947)
|
||||
* Mon Feb 23 2004 - ro@suse.de
|
||||
- update to version 3.7
|
||||
* Fri Oct 17 2003 - ro@suse.de
|
||||
- don't build as root
|
||||
- use defattr
|
||||
* Mon Oct 13 2003 - ro@suse.de
|
||||
- updated to 3.6.10 and ported patches
|
||||
* Thu Jun 12 2003 - kukuk@suse.de
|
||||
- /etc/logrotate.d is part of filesystem
|
||||
* Thu Jan 23 2003 - ro@suse.de
|
||||
- update to 3.6.6 (some tmpfile fixes, new options supported)
|
||||
- remove system-config /etc/logrotate.d/aaa_base and all code
|
||||
messing with it (all logrotate configs have been moved to
|
||||
their respective packages)
|
||||
- add /etc/logrotate.d/wtmp
|
||||
* Thu Jan 23 2003 - ro@suse.de
|
||||
- remove mgetty logfiles
|
||||
* Mon Jan 20 2003 - ro@suse.de
|
||||
- remove i4l logfiles
|
||||
* Thu Jan 16 2003 - ro@suse.de
|
||||
- removed xdm logfile from main config (in XFree86 now)
|
||||
* Wed Jan 15 2003 - ro@suse.de
|
||||
- removed more files from main config and moved to their packages
|
||||
* Mon Nov 11 2002 - ro@suse.de
|
||||
- fix deprecated multiline string literals
|
||||
* Mon Oct 14 2002 - ro@suse.de
|
||||
- remove postgresql logfile from config on update (#20860)
|
||||
* Mon Oct 14 2002 - ro@suse.de
|
||||
- moved syslog logrotation config to syslogd package
|
||||
* Mon Sep 23 2002 - ro@suse.de
|
||||
- mark logrotate.del as missingok
|
||||
* Mon Sep 09 2002 - ro@suse.de
|
||||
- remove handling of /var/account/pacct (moved to acct package)
|
||||
* Fri Aug 16 2002 - ro@suse.de
|
||||
- dropped insserv from prereq (not used)
|
||||
* Mon Aug 05 2002 - kukuk@suse.de
|
||||
- Add rm and mv to PreRequires
|
||||
* Wed Jul 31 2002 - ro@suse.de
|
||||
- fixed typo in specfile
|
||||
- added comment in config-file about bzip2 usage
|
||||
* Mon Jul 29 2002 - ro@suse.de
|
||||
- removed fetchmail logrotate entry (#17279)
|
||||
* Mon Jul 29 2002 - ro@suse.de
|
||||
- removed apache,smail,perforce,abuild components
|
||||
- remove old entries also from logrotate.d/aaa_base on update
|
||||
* Mon Jul 29 2002 - ro@suse.de
|
||||
- squid components removed (done in squid package now) (#17278)
|
||||
* Fri Jul 19 2002 - gd@suse.de
|
||||
- fixed samba log paths
|
||||
* Fri Jul 12 2002 - kukuk@suse.de
|
||||
- Fix post-install script for the case that there is no rc.config
|
||||
* Mon Jun 24 2002 - ro@suse.de
|
||||
- fixed squid log paths (#16557)
|
||||
* Wed May 08 2002 - ro@suse.de
|
||||
- uucp-logfiles are handled by own config
|
||||
* Mon Mar 18 2002 - ro@suse.de
|
||||
- don't rotate any file for /var/log/news.*
|
||||
* Fri Mar 01 2002 - ro@suse.de
|
||||
- don't overwrite logfiles with dateext if run more than once
|
||||
a day (partial solution for #13202)
|
||||
* Mon Feb 25 2002 - ro@suse.de
|
||||
- install etc_logfiles as 644
|
||||
* Tue Feb 19 2002 - ro@suse.de
|
||||
- removed yast from logrotate.d
|
||||
* Sat Feb 16 2002 - ro@suse.de
|
||||
- removed postgresql logfile (handled by package)
|
||||
* Mon Jan 07 2002 - ro@suse.de
|
||||
- take wtmp out of default config
|
||||
* Fri Dec 14 2001 - ro@suse.de
|
||||
- really remove old variable from rc.config
|
||||
* Wed Dec 12 2001 - ro@suse.de
|
||||
- mark files in /etc/logrotate.d as noreplace
|
||||
* Tue Dec 11 2001 - ro@suse.de
|
||||
- implement maxage if dateext is not used
|
||||
- uncompress log for mail if maillast is used
|
||||
* Mon Dec 10 2001 - ro@suse.de
|
||||
- added etc_logfiles as reminder to sources
|
||||
- moved convert script into postinstall and try to find
|
||||
old etc/logfiles and use etc_logfiles as fallback
|
||||
- added yast and syslog to /etc/logrotate.d as config files
|
||||
* Mon Dec 10 2001 - ro@suse.de
|
||||
- added maxage extension
|
||||
* Thu Dec 06 2001 - ro@suse.de
|
||||
- split patches for purpose
|
||||
* Tue Dec 04 2001 - ro@suse.de
|
||||
- archiving option changed to "dateext" and
|
||||
works completely transparent otherwise
|
||||
* Tue Nov 27 2001 - ro@suse.de
|
||||
- added multiple rotation criteria can be selected at one time
|
||||
- added/completed implementation for days (max days)
|
||||
* Mon Nov 26 2001 - ro@suse.de
|
||||
- added archiving option
|
||||
- added script to convert /etc/logfiles
|
||||
* Tue Nov 13 2001 - ro@suse.de
|
||||
- initial package for SuSE Linux (version 3.5.9)
|
Loading…
x
Reference in New Issue
Block a user