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
This commit is contained in:
Yasuhiro Kimura 2025-05-04 13:04:52 +09:00
parent f0106cf981
commit 2b01b9af87
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= logcheck
DISTVERSION= 1.4.4
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= DEBIAN_POOL
DISTNAME= ${PORTNAME}_${PORTVERSION}

View file

@ -10,5 +10,5 @@
-@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 logcheck if [ ! -d /run/systemd/system ] && [ -x %%PREFIX%%/sbin/logcheck ]; then nice -n10 %%PREFIX%%/sbin/logcheck -R; fi
+2 * * * * logcheck if [ ! -d /run/systemd/system ] && [ -x %%PREFIX%%/sbin/logcheck ]; then nice -n10 %%PREFIX%%/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