ports/security/logcheck/files/patch-debian_logcheck.cron.d
Yasuhiro Kimura 2b01b9af87 security/logcheck: Fix misupdate of patch-debian_logcheck.cron.d
With commit d14b5cc7f0 patch-debian_logcheck.cron.d is incorrectly
updated with 2 points.

1. It introduces syntex error of crontab and results in cron job
   error.
2. Change coresponding to commit 4d161fff03 is lost.

Fixes:		d14b5cc7f0 security/logcheck: Update to 1.4.4
2025-05-04 13:15:20 +09:00

14 lines
989 B
Makefile

--- debian/logcheck.cron.d.orig 2025-04-28 15:28:43 UTC
+++ debian/logcheck.cron.d
@@ -1,8 +1,8 @@
# /etc/cron.d/logcheck: crontab entries for the logcheck package
# These do nothing under systemd because the systemd timer will take precedence
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+PATH=%%PREFIX%%/sbin:%%PREFIX%%/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
-@reboot logcheck if [ ! -d /run/systemd/system ] && [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck -R; fi
-2 * * * * logcheck if [ ! -d /run/systemd/system ] && [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi
+@reboot if [ ! -d /run/systemd/system ] && [ -x %%PREFIX%%/sbin/logcheck ]; then /usr/bin/lockf -t 0 /tmp/.logcheck nice -n10 %%PREFIX%%/sbin/logcheck -R; fi
+2 * * * * if [ ! -d /run/systemd/system ] && [ -x %%PREFIX%%/sbin/logcheck ]; then /usr/bin/lockf -t 0 /tmp/.logcheck nice -n10 %%PREFIX%%/sbin/logcheck; fi