freebsd-ports/security/logcheck/files/extra-patch-debian__logcheck.cron.d.in
Greg Larkin a2336cced0 - Parameterized all non-hier(7)-compliant paths in the logcheck script,
man page and config files, adding support for a custom PREFIX setting.
- Parameterized the shebang line in the logtail script
- Bumped PORTREVISION

PR:		ports/140981
Submitted by:	Dan Langille <dan@langille.org>
2009-12-18 01:31:19 +00:00

16 lines
805 B
D

--- ./debian/logcheck.cron.d.orig 2006-08-06 19:10:49.000000000 -0400
+++ ./debian/logcheck.cron.d 2008-09-06 19:11:28.000000000 -0400
@@ -1,9 +1,5 @@
-# /etc/cron.d/logcheck: crontab entries for the logcheck package
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+# crontab entries for the logcheck package
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
MAILTO=root
-
-@reboot logcheck if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck -R; fi
-2 * * * * logcheck if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi
-
-# EOF
+@reboot if [ -x %%PREFIX%%/sbin/logcheck ]; then nice -n10 %%PREFIX%%/sbin/logcheck -R; fi
+2 * * * * if [ -x %%PREFIX%%/sbin/logcheck ]; then nice -n10 %%PREFIX%%/sbin/logcheck; fi