1
0
forked from ports/opt

fcron: move pid and state files to /run

This commit is contained in:
Juergen Daubert 2022-01-21 15:30:43 +01:00
parent fff983feaa
commit 677d9bf7e1
3 changed files with 9 additions and 6 deletions

View File

@ -1,7 +1,7 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/WLwQm/VVGnSYq4VuCQZ78bvOaI9f/BKcwVZtb1Vcr3hBH7aYfE9kpj42Qtf1LO6InCypDefIUL5pfDx+2HHZw4=
SHA256 (Pkgfile) = 0a3d4177fe1e56c8c35b0c1d7d5e3065630ccc67eb65c05af8128468caf3f26e
RWSE3ohX2g5d/brV2khm9eVOb+o0skeZ7rBksu4XbFQYQluXtTjInEzVtOCHFqD5WSA1pqsSRxLkSwoG8MrTP9CxJjjL2l4P6wQ=
SHA256 (Pkgfile) = d58e2b3ec9bcd3069ae3de6afeefde2688920d72c16b09ec59ec81f5c55be60a
SHA256 (.footprint) = db8ea76fb4cbbc5601c5d6cd6d742805ab4935c06dc6951a17e3215c6fe9e688
SHA256 (fcron-3.3.1.src.tar.gz) = f359daa08a63ddfb7fe2f964bb3f5c52244c25aa36f9225a3cc54d36f4681106
SHA256 (fcron) = f57aeeedd1b0ddcc92fd24ad105b45646555ae648ee6d9fedec8c4eafdc6487a
SHA256 (fcron) = 1585434084d9310008debdee188aca2cc1858764ac465d0c4fba085fa8b74a9c
SHA256 (systab.orig) = 768de3cddf3dee50a80a154282a9efa9195dfd60fdb0ba2a0ac4401ac7a9eb69

View File

@ -5,7 +5,7 @@
name=fcron
version=3.3.1
release=1
release=2
source=(http://fcron.free.fr/archives/$name-$version.src.tar.gz
fcron systab.orig)
@ -17,6 +17,8 @@ build () {
--sysconfdir=/etc/fcron \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-piddir=/run/fcron \
--with-fifodir=/run/fcron \
--with-spooldir=/var/spool/fcron \
--with-boot-install=no \
--with-answer-all=no \
@ -30,7 +32,7 @@ build () {
make
make DESTDIR=$PKG install
rm -r $PKG/{usr/share/{doc,man/{fr,man3}},var/run}
rm -r $PKG/{usr/share/{doc,man/{fr,man3}},run}
install -D -m 644 files/fcron.pam $PKG/etc/pam.d/fcron
install -D -m 644 files/fcrontab.pam $PKG/etc/pam.d/fcrontab

View File

@ -5,11 +5,12 @@
SSD=/sbin/start-stop-daemon
PROG=/usr/sbin/fcron
PID=/var/run/fcron.pid
PID=/run/fcron/fcron.pid
OPTS="--background"
case $1 in
start)
mkdir -p /run/fcron
$SSD --start --pidfile $PID --exec $PROG -- $OPTS
RETVAL=$?
if [ $RETVAL -eq 0 -a ! -f /var/spool/fcron/systab ]; then