ports/64373: [patch] Default program locations are for Linux, not FreeBSD
Kenneth Vestergaard Schmidt
kvs at pil.dk
Wed Mar 17 14:20:21 UTC 2004
>Number: 64373
>Category: ports
>Synopsis: [patch] Default program locations are for Linux, not FreeBSD
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 17 06:20:20 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Kenneth Vestergaard Schmidt <kvs at pil.dk>
>Release: FreeBSD 4.9-RELEASE-p3 i386
>Organization:
pil.dk ApS
>Environment:
System: FreeBSD planck.pil.dk 4.9-RELEASE-p3 FreeBSD 4.9-RELEASE-p3 #2: Wed Mar 3 13:44:49 CET 2004 root at mimer:/usr/obj/usr/src/sys/PLANCK i386
>Description:
When logrotate tries to compress logs, it tries to locate gzip and
gunzip in the wrong locations.
Also, previous versions used /var/lib/logrotate.status, which is also
the RedHat default. The Debian patch altered this to
/var/lib/logrotate/status, which breaks upgrades.
>How-To-Repeat:
Run logrotate with compression of rotated logs.
>Fix:
--- patch-ab begins here ---
diff -ruN config.h config.h
--- logrotate-3.6.5/config.h Sat Aug 3 11:47:41 2002
+++ logrotate-3.6.5/config.h Wed Mar 17 12:50:04 2004
@@ -18,7 +18,7 @@
#endif
#ifndef COMPRESS_COMMAND
- #define COMPRESS_COMMAND "/bin/gzip"
+ #define COMPRESS_COMMAND "/usr/bin/gzip"
#endif
#ifndef COMPRESS_OPTIONS
@@ -30,10 +30,10 @@
#endif
#ifndef UNCOMPRESS_COMMAND
- #define UNCOMPRESS_COMMAND "/bin/gunzip"
+ #define UNCOMPRESS_COMMAND "/usr/bin/gunzip"
#endif
#ifndef STATEFILE
- #define STATEFILE "/var/lib/logrotate/status"
+ #define STATEFILE "/var/lib/logrotate.status"
#endif
--- patch-ab ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list