# HG changeset patch # User Eric Joseph-Alexandre # Date 1253714790 0 # Node ID aefe609dbcdf02a5319c07a24234b4429f36303c # Parent 94df704e5b865ebf909456a7efb4f8af21b37ba6 Add: fcron diff -r 94df704e5b86 -r aefe609dbcdf fcron/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fcron/receipt Wed Sep 23 14:06:30 2009 +0000 @@ -0,0 +1,45 @@ +# SliTaz package receipt. + +PACKAGE="fcron" +VERSION="3.0.4" +CATEGORY="network" +SHORT_DESC="Periodical command scheduler" +MAINTAINER="erjo@slitaz.org" +DEPENDS="" +TARBALL="$PACKAGE-$VERSION.src.tar.gz" +WEB_SITE="http://fcron.free.fr/" +WGET_URL="http://fcron.free.fr/archives/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --without-sendmail \ + --with-username=nobody \ + --with-groupname=nogroup \ + --with-pam=no \ + --with-selinux=no \ + --with-answer-all=no \ + --with-boot-install=no \ + --with-editor=/bin/vi \ + --with-sysfcrontab=yes \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/ + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/var $fs/ + cp -a $_pkg/etc $fs/ + cp -a $src/fcron $fs/usr/bin + + cp -a stuff/fcron $fs/etc/init.d +} + diff -r 94df704e5b86 -r aefe609dbcdf fcron/stuff/fcron --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fcron/stuff/fcron Wed Sep 23 14:06:30 2009 +0000 @@ -0,0 +1,55 @@ +#!/bin/sh +# /etc/init.d/fcron : Start, stop and fcron on SliTaz, at +# boot time or with the command line. +# +# To start SSH server at boot time, just put fcron in the $RUN_DAEMONS +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf +# +. /etc/init.d/rc.functions +. /etc/daemons.conf + +NAME=fcron +DESC="Cron daemon" +DAEMON=/usr/bin/fcron +OPTIONS=-b +PIDFILE=/var/run/fcron.pid + +case "$1" in + start) + if active_pidfile $PIDFILE fcron ; then + echo "$NAME already running." + exit 1 + fi + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTIONS + status + ;; + stop) + if ! active_pidfile $PIDFILE fcron ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + kill `cat $PIDFILE` + status + ;; + restart) + if ! active_pidfile $PIDFILE fcron ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + kill `cat $PIDFILE` + sleep 2 + $DAEMON $OPTIONS + status + ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" + echo "" + exit 1 + ;; +esac + +exit 0