Package: logrotate Version: 3.6.5 Revision: 3 Description: Rotates, compresses, removes and mails logs License: GPL DescDetail: << The logrotate utility is designed to simplify the administration of log files on a system which 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 would be run as a daily cron job. << DescUsage: << Most of the log file rotation in Darwin / Mac OS X is already handled by /etc/weekly etc. but /Library/Logs, ~/Library/Logs/CrashReporter and httpd logs are not. See the included examples to create new configuration files and setup CRON. Known problems: There appears to be a bug in Darwin's implementation of the glob(3) routine, even as of Mac OS X 10.2.6 (Darwin 6.6): error: error accessing /Users/Shared/Library/Logs/CrashReporter/: No such file or directory error: Users:16 glob failed for /Users/*/Library/Logs/CrashReporter/*.log glibc2 in a similar situation would not return an error. The only workaround for the present time is to make sure wildcard expressions in logrotate.conf always have a positive match, by creating any missing directories: mkdir -p /Users/Shared/Library/Logs/CrashReporter It is still not clear whether the problem really is in glob, however anyone with technical insight into this problem should contact the maintainer of this package and consider filing a bug report with Apple at . << Suggests: cron-service Homepage: http://packages.debian.org/testing/admin/logrotate.html DocFiles: CHANGES COPYING logrotate.spec BuildDepends: popt Depends: popt-shlibs SourceDirectory: %n-%v PatchScript: cat %a/%n.patch | sed 's_@PREFIX@_%p_g' | patch -p1 CompileScript: << make logrotate BASEDIR=%p MANDIR=%p/share/man RPM_OPT_FLAGS='${LDFLAGS} -prebind -D__darwin -DSTATEFILE=\"%p/var/run/logrotate.status\"' << ConfFiles: << %p/var/run/logrotate.status %p/etc/logrotate.conf %p/etc/logrotate.d/Fink %p/etc/logrotate.d/httpd %p/etc/logrotate.d/Library %p/etc/logrotate.d/Users << InstallScript: << make install PREFIX=%i BASEDIR= MANDIR=share/man OS_NAME=Linux mkdir -p %i/share/doc/%n/test mkdir -p %i/share/doc/%n/examples install -m 644 test/* %i/share/doc/%n/test install -m 644 examples/* %i/share/doc/%n/examples mkdir -p %i/etc/logrotate.d install -m 644 examples/logrotate-default %i/etc/logrotate.conf install -m 644 examples/Fink %i/etc/logrotate.d/Fink install -m 644 examples/Library %i/etc/logrotate.d/Library install -m 664 examples/Users %i/etc/logrotate.d/Users install -m 644 examples/httpd %i/etc/logrotate.d/httpd mkdir -p %i/var/run/ touch %i/var/run/logrotate.status << Source: mirror:debian:pool/main/l/%n/%n_%v.orig.tar.gz Source-MD5: 1c707f826f783ffc461a32b34cba5056 Maintainer: Carsten Klapp DescPort: << install some basic Darwin / OS X scripts in %p/etc/logrotate.d/ Changed paths in cron and man files appropriate to Darwin and Fink. Added Darwin paths in config.h. Patched to include for u_int32_t typedef. Solution for a similar porting problem found at: http://www.suares.com/pipermail/qmail-ldap-archive/1998-November/000075.html << DescPackaging: << 1. 'make logrotate' is used instead of just 'make', to prevent the C preprocessor from choking on the -E flag. (Took forever to figure this one out.) 2. The Makefile ignores CFLAGS and LDFLAGS, instead we sneak them in with RPM_OPT_FLAGS so the linker can find the required libs in %p/lib and to use fink prefix for the statefile. Not elegant but it works. 3. 'PREFIX' is used instead of 'prefix' so InstallScript is needed to build the deb file properly (another silly problem for which a fix eluded me far far too long DOH). 4. Install examples and test dirs into docs dir. <<