summaryrefslogtreecommitdiff
path: root/fcron
diff options
context:
space:
mode:
authorJohannes Winkelmann <jw@smts.ch>2006-02-23 15:26:10 +0000
committerJohannes Winkelmann <jw@smts.ch>2006-02-23 15:26:10 +0000
commitbdea7e6c6a535e57a07d376a3139d0788efaaa41 (patch)
tree1a7334c99fa39b1ad1a7a35c113b18cb0d92413c /fcron
downloadopt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.gz
opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.xz
create branch for 2.2
Diffstat (limited to 'fcron')
-rw-r--r--fcron/.footprint27
-rw-r--r--fcron/.md5sum4
-rw-r--r--fcron/Pkgfile32
-rw-r--r--fcron/fcron26
-rw-r--r--fcron/fcron-config.patch19
-rw-r--r--fcron/root.orig13
6 files changed, 121 insertions, 0 deletions
diff --git a/fcron/.footprint b/fcron/.footprint
new file mode 100644
index 000000000..1bb9f9a93
--- /dev/null
+++ b/fcron/.footprint
@@ -0,0 +1,27 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/fcron/
+-rw-r----- root/daemon etc/fcron/fcron.allow
+-rw-r----- root/daemon etc/fcron/fcron.conf
+-rw-r----- root/daemon etc/fcron/fcron.deny
+drwxr-xr-x root/root etc/rc.d/
+-rwxr-xr-x root/root etc/rc.d/fcron
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+---s--s--x daemon/daemon usr/bin/fcrondyn
+---s--x--- root/daemon usr/bin/fcronsighup
+---s--s--x daemon/daemon usr/bin/fcrontab
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/fcrondyn.1.gz
+-rw-r--r-- root/root usr/man/man1/fcrontab.1.gz
+drwxr-xr-x root/root usr/man/man5/
+-rw-r--r-- root/root usr/man/man5/fcron.conf.5.gz
+-rw-r--r-- root/root usr/man/man5/fcrontab.5.gz
+drwxr-xr-x root/root usr/man/man8/
+-rw-r--r-- root/root usr/man/man8/fcron.8.gz
+drwxr-xr-x root/root usr/sbin/
+---x--x--- root/root usr/sbin/fcron
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/spool/
+drwxrwx--- daemon/daemon var/spool/fcron/
+-rw------- root/root var/spool/fcron/root.orig
diff --git a/fcron/.md5sum b/fcron/.md5sum
new file mode 100644
index 000000000..af7263cb1
--- /dev/null
+++ b/fcron/.md5sum
@@ -0,0 +1,4 @@
+646ff958524a01da4069b33c5b48b52a fcron
+8e5dcb3a646c11294294895954ef0a48 fcron-3.0.1.src.tar.gz
+58ccf07493af3c154502fbd1376d0dc1 fcron-config.patch
+39072065ed7a9ea70bc40308f622ebcf root.orig
diff --git a/fcron/Pkgfile b/fcron/Pkgfile
new file mode 100644
index 000000000..b28bccccc
--- /dev/null
+++ b/fcron/Pkgfile
@@ -0,0 +1,32 @@
+# Description: Enhanced periodical command scheduler like cron
+# URL: http://fcron.free.fr
+# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
+
+name=fcron
+version=3.0.1
+release=1
+source=(http://fcron.free.fr/archives/$name-$version.src.tar.gz \
+ $name-config.patch fcron root.orig)
+
+build () {
+ cd $name-$version
+ patch -p1 < $SRC/$name-config.patch
+ autoconf
+ ./configure --prefix=/usr \
+ --with-etcdir=/etc/fcron \
+ --with-docdir=/usr/doc \
+ --with-spooldir=/var/spool/fcron \
+ --with-fifodir=/var/run \
+ --with-boot-install=no \
+ --with-username=daemon \
+ --with-groupname=daemon \
+ --with-pam=no
+ make
+ make DESTDIR=$PKG install
+ rm -r $PKG/usr/{doc,man/{fr,man3}}
+ chown root:root $PKG/{var,var/spool}
+ chmod 755 $PKG/{var,var/spool}
+
+ install -D -m 755 $SRC/fcron $PKG/etc/rc.d/fcron
+ install -m 600 $SRC/root.orig $PKG/var/spool/fcron
+}
diff --git a/fcron/fcron b/fcron/fcron
new file mode 100644
index 000000000..dfe71c3b7
--- /dev/null
+++ b/fcron/fcron
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# /etc/rc.d/fcron: start/stop fcron daemon
+#
+
+case $1 in
+start)
+ /usr/sbin/fcron -b
+ if [ ! -f /var/spool/fcron/root ]; then
+ /usr/bin/fcrontab -u root -z
+ fi
+ ;;
+stop)
+ killall -q /usr/sbin/fcron
+ ;;
+restart)
+ $0 stop
+ sleep 2
+ $0 start
+ ;;
+*)
+ echo "usage: $0 [start|stop|restart]"
+ ;;
+esac
+
+# End of file
diff --git a/fcron/fcron-config.patch b/fcron/fcron-config.patch
new file mode 100644
index 000000000..c4ba8841a
--- /dev/null
+++ b/fcron/fcron-config.patch
@@ -0,0 +1,19 @@
+diff -Nru fcron-3.0.1.orig/configure.in fcron-3.0.1/configure.in
+--- fcron-3.0.1.orig/configure.in 2006-02-07 18:02:49.000000000 +0100
++++ fcron-3.0.1/configure.in 2006-02-07 18:03:02.000000000 +0100
+@@ -268,13 +268,8 @@
+ fi
+ ;;
+ *)
+- if test -d "$withval"; then
+- etcdir="$withval"
+- AC_MSG_RESULT($withval)
+- else
+- AC_MSG_ERROR([
+-Directory $withval does not exist])
+- fi
++ etcdir="$withval"
++ AC_MSG_RESULT($withval)
+ ;;
+ esac ],
+ if test -d "/etc"; then
diff --git a/fcron/root.orig b/fcron/root.orig
new file mode 100644
index 000000000..4c8489e81
--- /dev/null
+++ b/fcron/root.orig
@@ -0,0 +1,13 @@
+#
+# /var/spool/fcron/root.org: fcron(8) configuration
+#
+
+!mailto(root)
+!noticenotrun(yes)
+
+
+%daily * * /usr/sbin/runjobs /etc/cron/daily
+%weekly * * /usr/sbin/runjobs /etc/cron/weekly
+%monthly * * * /usr/sbin/runjobs /etc/cron/monthly
+
+# End of file \ No newline at end of file

Generated by cgit