wok rev 24542

updated fcron (3.2.1 -> 3.3.1)
author Hans-G?nter Theisgen
date Thu Feb 24 14:25:23 2022 +0100 (2022-02-24)
parents 7dc646816bdc
children 7a94a8614d8b
files fcron/description.txt fcron/receipt fcron/stuff/fcron
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/fcron/description.txt	Thu Feb 24 14:25:23 2022 +0100
     1.3 @@ -0,0 +1,11 @@
     1.4 +Fcron is a periodical command scheduler which aims at replacing
     1.5 +Vixie Cron, so it implements most of its functionalities.
     1.6 +
     1.7 +But fcron makes no assumptions on whether your system is running
     1.8 +all the time or regularly: you can, for instance, tell fcron to
     1.9 +execute tasks every x hours y minutes of system up time or to do
    1.10 +a job only once in a specified interval of time.
    1.11 +
    1.12 +Fcron has also much more functionalities: you can also set a nice
    1.13 +value to a job, run it depending on the system load average and
    1.14 +much more!
     2.1 --- a/fcron/receipt	Wed Feb 23 17:37:38 2022 +0000
     2.2 +++ b/fcron/receipt	Thu Feb 24 14:25:23 2022 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="fcron"
     2.7 -VERSION="3.2.1"
     2.8 +VERSION="3.3.1"
     2.9  CATEGORY="network"
    2.10  TAGS="cron scheduler"
    2.11  SHORT_DESC="Periodical command scheduler."
    2.12 @@ -12,7 +12,7 @@
    2.13  TARBALL="$PACKAGE-$VERSION.src.tar.gz"
    2.14  WGET_URL="http://fcron.free.fr/archives/$TARBALL"
    2.15  
    2.16 -DEPENDS=""
    2.17 +DEPENDS="readline"
    2.18  BUILD_DEPENDS="perl readline-dev"
    2.19  
    2.20  # What is the latest version available today?
    2.21 @@ -25,23 +25,24 @@
    2.22  # Rules to configure and make the package.
    2.23  compile_rules()
    2.24  {
    2.25 -	./configure					\
    2.26 -		--prefix=/usr				\
    2.27 -		--sysconfdir=/etc			\
    2.28 -		--localstatedir=/var			\
    2.29 -		--without-sendmail			\
    2.30 -		--with-username=nobody			\
    2.31 -		--with-groupname=nogroup		\
    2.32 -		--with-pam=no				\
    2.33 -		--with-selinux=no			\
    2.34 -		--with-answer-all=no			\
    2.35 -		--with-boot-install=no			\
    2.36 -		--with-editor=/bin/vi			\
    2.37 -		--with-sysfcrontab=yes			\
    2.38 -		--with-systemdsystemunitdir=none	\
    2.39 +	./configure				\
    2.40 +		LIBS="-lrt"			\
    2.41 +		--prefix=/usr			\
    2.42 +		--sysconfdir=/etc		\
    2.43 +		--localstatedir=/var		\
    2.44 +		--without-sendmail		\
    2.45 +		--with-answer-all=no		\
    2.46 +		--with-boot-install=no		\
    2.47 +		--with-editor=/bin/vi		\
    2.48 +		--with-groupname=nogroup	\
    2.49 +		--with-pam=no			\
    2.50 +		--with-selinux=no		\
    2.51 +		--with-sysfcrontab=yes		\
    2.52 +		--with-systemdsystemunitdir=no	\
    2.53 +		--with-username=nobody		\
    2.54  		$CONFIGURE_ARGS &&
    2.55  	make &&
    2.56 -	make DESTDIR=$DESTDIR install
    2.57 +	make install DESTDIR=$DESTDIR
    2.58  }
    2.59  
    2.60  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.61 @@ -57,3 +58,18 @@
    2.62  
    2.63  	cp -a stuff/fcron		$fs/etc/init.d
    2.64  }
    2.65 +
    2.66 +# Post install commands for Tazpkg
    2.67 +post_install()
    2.68 +{
    2.69 +	if ! grep -q ^FCRON_OPTIONS "$1/etc/daemons.conf"
    2.70 +	  then
    2.71 +		echo -e '
    2.72 +# inserted by post_install of fcron:
    2.73 +# Fcron daemon options.
    2.74 +FCRON_OPTIONS="-b"
    2.75 +
    2.76 +' >> "$1/etc/daemons.conf"
    2.77 +	fi
    2.78 +}
    2.79 +
     3.1 --- a/fcron/stuff/fcron	Wed Feb 23 17:37:38 2022 +0000
     3.2 +++ b/fcron/stuff/fcron	Thu Feb 24 14:25:23 2022 +0100
     3.3 @@ -1,8 +1,8 @@
     3.4  #!/bin/sh
     3.5 -# /etc/init.d/fcron : Start, stop and fcron on SliTaz, at
     3.6 -# boot time or with the command line.
     3.7 +# /etc/init.d/fcron : Start, stop and restart fcron on SliTaz,
     3.8 +# at boot time or with the command line.
     3.9  #
    3.10 -# To start SSH server at boot time, just put fcron in the $RUN_DAEMONS
    3.11 +# To start fcron server at boot time, just put fcron in the RUN_DAEMONS
    3.12  # variable of /etc/rcS.conf and configure options with /etc/daemons.conf
    3.13  #
    3.14  . /etc/init.d/rc.functions
    3.15 @@ -11,44 +11,48 @@
    3.16  NAME=fcron
    3.17  DESC="$(_ '%s daemon' Cron)"
    3.18  DAEMON=/usr/bin/fcron
    3.19 -OPTIONS=-b
    3.20 +OPTIONS="$FCRON_OPTIONS"
    3.21 +[ -n "$FCRON_OPTIONS" ] || OPTIONS="-b"
    3.22  PIDFILE=/var/run/fcron.pid
    3.23  
    3.24  case "$1" in
    3.25 -  start)
    3.26 -    if active_pidfile $PIDFILE fcron ; then
    3.27 -      _ '%s is already running.' $NAME
    3.28 -      exit 1
    3.29 -    fi
    3.30 -    action 'Starting %s: %s...' "$DESC" $NAME
    3.31 -    $DAEMON $OPTIONS
    3.32 -    status
    3.33 -    ;;
    3.34 -  stop)
    3.35 -    if ! active_pidfile $PIDFILE fcron ; then
    3.36 -      _ '%s is not running.' $NAME
    3.37 -      exit 1
    3.38 -    fi
    3.39 -    action 'Stopping %s: %s...' "$DESC" $NAME
    3.40 -    kill $(cat $PIDFILE)
    3.41 -    status
    3.42 -    ;;
    3.43 -  restart)
    3.44 -    if ! active_pidfile $PIDFILE fcron ; then
    3.45 -      _ '%s is not running.' $NAME
    3.46 -      exit 1
    3.47 -    fi
    3.48 -    action 'Restarting %s: %s...' "$DESC" $NAME
    3.49 -    kill $(cat $PIDFILE)
    3.50 -    sleep 2
    3.51 -    $DAEMON $OPTIONS
    3.52 -    status
    3.53 -    ;;
    3.54 -  *)
    3.55 -    emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]"
    3.56 -    newline
    3.57 -    exit 1
    3.58 -    ;;
    3.59 +	(start)
    3.60 +		if active_pidfile $PIDFILE fcron
    3.61 +		  then
    3.62 +			_ '%s is already running.' $NAME
    3.63 +			exit 1
    3.64 +		fi
    3.65 +		action 'Starting %s: %s...' "$DESC" $NAME
    3.66 +		$DAEMON $OPTIONS
    3.67 +		status
    3.68 +		;;
    3.69 +	(stop)
    3.70 +		if ! active_pidfile $PIDFILE fcron
    3.71 +		  then
    3.72 +			_ '%s is not running.' $NAME
    3.73 +			exit 1
    3.74 +		fi
    3.75 +		action 'Stopping %s: %s...' "$DESC" $NAME
    3.76 +		kill $(cat $PIDFILE)
    3.77 +		status
    3.78 +		;;
    3.79 +	(restart)
    3.80 +		if ! active_pidfile $PIDFILE fcron
    3.81 +		  then
    3.82 +			_ '%s is not running.' $NAME
    3.83 +			exit 1
    3.84 +		fi
    3.85 +		action 'Restarting %s: %s...' "$DESC" $NAME
    3.86 +		kill $(cat $PIDFILE)
    3.87 +		sleep 2
    3.88 +		$DAEMON $OPTIONS
    3.89 +		status
    3.90 +		;;
    3.91 +	(*)
    3.92 +		emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]"
    3.93 +		newline
    3.94 +		exit 1
    3.95 +		;;
    3.96  esac
    3.97  
    3.98  exit 0