summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2007-10-04 17:17:36 +0200
committerBertrand Jacquin <beber@meleeweb.net>2007-10-04 17:17:36 +0200
commitfd37db9e0c5324433f49a6638615f2c4def81283 (patch)
treea175e21a72119569a39f7337296d531f538db07f
parentmeleeweb release of iputils (minimal version) (diff)
downloadportage-fd37db9e0c5324433f49a6638615f2c4def81283.tar.xz
meleeweb version of fcron (user/group)
-rw-r--r--sys-process/fcron/Manifest32
-rw-r--r--sys-process/fcron/fcron-3.0.2-r1.ebuild232
-rw-r--r--sys-process/fcron/files/crontab19
-rw-r--r--sys-process/fcron/files/digest-fcron-3.0.2-r13
-rw-r--r--sys-process/fcron/files/fcron-2.0.0-configure.diff34
-rw-r--r--sys-process/fcron/files/fcron-2.9.5.1-fix-mail-output.diff11
-rwxr-xr-xsys-process/fcron/files/fcron.init50
-rwxr-xr-xsys-process/fcron/files/fcron.rc631
-rw-r--r--sys-process/fcron/files/fcrontab5
9 files changed, 417 insertions, 0 deletions
diff --git a/sys-process/fcron/Manifest b/sys-process/fcron/Manifest
new file mode 100644
index 00000000..c1c6075d
--- /dev/null
+++ b/sys-process/fcron/Manifest
@@ -0,0 +1,32 @@
+AUX crontab 832 RMD160 ac7e347d5cedccec74ad7301fb20857ac30a4df0 SHA1 bc8c0f0ea498a97c0533c815511a13bb933d5cc9 SHA256 052c8cfefc9d801cc7a1619e6932264d35c4f076b4fa3225791a91809ce49a59
+MD5 92d3b4a42f3e88041e50bb552b9104fd files/crontab 832
+RMD160 ac7e347d5cedccec74ad7301fb20857ac30a4df0 files/crontab 832
+SHA256 052c8cfefc9d801cc7a1619e6932264d35c4f076b4fa3225791a91809ce49a59 files/crontab 832
+AUX fcron-2.0.0-configure.diff 716 RMD160 e50fbd501e1a3419e8a4c0dea748951b719cc019 SHA1 f2b851ebd40d458779a9199444351f19fd0421f9 SHA256 6b5fa1bad1a64e0af09b963887b6ffca8afb19f63e955f16baa82c55f11e9c3c
+MD5 cb4f2a8ba719a085eaa3b67918fbd0f5 files/fcron-2.0.0-configure.diff 716
+RMD160 e50fbd501e1a3419e8a4c0dea748951b719cc019 files/fcron-2.0.0-configure.diff 716
+SHA256 6b5fa1bad1a64e0af09b963887b6ffca8afb19f63e955f16baa82c55f11e9c3c files/fcron-2.0.0-configure.diff 716
+AUX fcron-2.9.5.1-fix-mail-output.diff 415 RMD160 52ebf91af0ad51548586ee52c8dea8d0d51fe7ec SHA1 742604340d9f82f1a4ef57824d0281de3dbc9268 SHA256 74312697660a07fab97d0f4e19b656b99195a22e967a2309d158b53d5308dd24
+MD5 e87691832e6f48a5aed1c6cf3b681bce files/fcron-2.9.5.1-fix-mail-output.diff 415
+RMD160 52ebf91af0ad51548586ee52c8dea8d0d51fe7ec files/fcron-2.9.5.1-fix-mail-output.diff 415
+SHA256 74312697660a07fab97d0f4e19b656b99195a22e967a2309d158b53d5308dd24 files/fcron-2.9.5.1-fix-mail-output.diff 415
+AUX fcron.init 1582 RMD160 e0fd0cadddac8b344ea84f70c3c6e645d9badce2 SHA1 fd5fddb75378af57c37fa57432f3c068521e4a68 SHA256 f5bc89e7204906790b0046bd30a865b7b04c4d21e7ef4154cbad3ae1213d6526
+MD5 b11f00bf3bc6908198332acd56a0cbee files/fcron.init 1582
+RMD160 e0fd0cadddac8b344ea84f70c3c6e645d9badce2 files/fcron.init 1582
+SHA256 f5bc89e7204906790b0046bd30a865b7b04c4d21e7ef4154cbad3ae1213d6526 files/fcron.init 1582
+AUX fcron.rc6 732 RMD160 c06263fd78998360780ec55df8bd08bd9332f705 SHA1 2308179d6630c614f1789d473f4ffcf8cced17e9 SHA256 4ce3a3395ce032c3e21594211055dd038153f506ba54f0008850d43bba01fa6e
+MD5 69137c81685b56b4e3195203a14bbb8b files/fcron.rc6 732
+RMD160 c06263fd78998360780ec55df8bd08bd9332f705 files/fcron.rc6 732
+SHA256 4ce3a3395ce032c3e21594211055dd038153f506ba54f0008850d43bba01fa6e files/fcron.rc6 732
+AUX fcrontab 332 RMD160 062faddf0551bebbf9834b796f9957cf49dbc967 SHA1 063f77dd90a76170a793352530a35c60922283e4 SHA256 ab5c104248c51471d61e3312f52bf738d74ab3319b8c01cd0cc5c74458fb8fcc
+MD5 2a70bc60b59e15361fa609e3505f504f files/fcrontab 332
+RMD160 062faddf0551bebbf9834b796f9957cf49dbc967 files/fcrontab 332
+SHA256 ab5c104248c51471d61e3312f52bf738d74ab3319b8c01cd0cc5c74458fb8fcc files/fcrontab 332
+DIST fcron-3.0.2.src.tar.gz 540559 RMD160 822f559550780c61c5822f4034fe99dd47577847 SHA1 76df8bdfb874df78e81885eca90f1b9c91b0bd24 SHA256 ea25f4e9a78f6872c65cc97aa18c018b548e9fcd73b06d77c312e635ecf9ad48
+EBUILD fcron-3.0.2-r1.ebuild 8068 RMD160 e878d20e320e6c741262e42347100dac80c82e7a SHA1 c378d4fdae44a51d80cb0b8a1a9cfd8953f6f063 SHA256 34b0ffb31d4436bdedfbd7c065fd7f8b3bc1012f62260e11664c89c2899580cb
+MD5 02d02792842045c43ce4d033479bcb62 fcron-3.0.2-r1.ebuild 8068
+RMD160 e878d20e320e6c741262e42347100dac80c82e7a fcron-3.0.2-r1.ebuild 8068
+SHA256 34b0ffb31d4436bdedfbd7c065fd7f8b3bc1012f62260e11664c89c2899580cb fcron-3.0.2-r1.ebuild 8068
+MD5 24d2ff586b2fb5d7014a19619d6e34d5 files/digest-fcron-3.0.2-r1 247
+RMD160 a80a8667bc13f224ee3c332f4a53af41d533a83b files/digest-fcron-3.0.2-r1 247
+SHA256 30748f48c2fe7ff5126a09e4791b186aee9cddc4b85d7c785b786ffbe5a3be9f files/digest-fcron-3.0.2-r1 247
diff --git a/sys-process/fcron/fcron-3.0.2-r1.ebuild b/sys-process/fcron/fcron-3.0.2-r1.ebuild
new file mode 100644
index 00000000..9a6f00e3
--- /dev/null
+++ b/sys-process/fcron/fcron-3.0.2-r1.ebuild
@@ -0,0 +1,232 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/fcron-3.0.2-r1.ebuild,v 1.12 2007/04/24 11:02:03 eroyf Exp $
+
+inherit cron pam eutils
+
+DESCRIPTION="A command scheduler with extended capabilities over cron and anacron"
+HOMEPAGE="http://fcron.free.fr/"
+SRC_URI="http://fcron.free.fr/archives/${P}.src.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 hppa mips ppc sparc x86 ~x86-fbsd"
+IUSE="debug doc pam selinux"
+
+DEPEND="app-editors/vim
+ doc? ( >=app-text/docbook-dsssl-stylesheets-1.77 )
+ selinux? ( sys-libs/libselinux )
+ pam? ( virtual/pam )
+ virtual/mta"
+
+pkg_setup() {
+ enewgroup fcron
+ enewuser fcron -1 -1 -1 fcron,cron
+ ROOTUSER=$(egetent passwd 0 | cut -d ':' -f 1)
+ ROOTGROUP=$(egetent group 0 | cut -d ':' -f 1)
+ if useq debug; then
+ ewarn
+ ewarn "WARNING: debug USE flag active!"
+ ewarn "The debug USE flag makes fcron start in debug mode"
+ ewarn "by default, thus not detaching into background."
+ ewarn "This will make your system HANG on bootup if"
+ ewarn "fcron is to be started automatically by the"
+ ewarn "init system!"
+ ewarn
+ ebeep 5
+ epause 60
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-2.0.0-configure.diff
+ # respect LDFLAGS
+ sed -i "s:\(@LIBS@\):\$(LDFLAGS) \1:" Makefile.in || die "sed failed"
+}
+
+src_compile() {
+ local myconf
+
+ autoconf || die "autoconf failed"
+
+ use doc && \
+ myconf="${myconf} --with-dsssl-dir=/usr/share/sgml/stylesheets/dsssl/docbook"
+
+ [[ -n "${ROOTUSER}" ]] && myconf="${myconf} --with-rootname=${ROOTUSER}"
+ [[ -n "${ROOTGROUP}" ]] && myconf="${myconf} --with-rootgroup=${ROOTGROUP}"
+
+ # QA security notice fix; see "[gentoo-core] Heads up changes in suid
+ # handing with portage >=51_pre21" for more details.
+ append-ldflags $(bindnow-flags)
+
+ econf \
+ $(use_with pam) \
+ $(use_with selinux) \
+ $(use_with debug) \
+ --with-username=cron \
+ --with-groupname=cron \
+ --with-piddir=/var/run \
+ --with-etcdir=/etc/fcron \
+ --with-spooldir=/var/spool/cron \
+ --with-fifodir=/var/run \
+ --with-sendmail=/usr/sbin/sendmail \
+ --with-fcrondyn=yes \
+ --with-editor=/usr/bin/vim \
+ --with-shell=/bin/bash \
+ ${myconf} \
+ || die "Configure problem"
+
+ emake || die "Compile problem"
+}
+
+src_install() {
+ # cron eclass stuff
+ docron fcron -m0755 -o ${ROOTUSER:-root} -g ${ROOTGROUP:-root}
+ docrondir /var/spool/cron/fcrontabs -m6770 -o fcron -g fcron
+ docrontab fcrontab -m6755 -o fcron -g fcron
+
+ # install fcron tools
+ insinto /usr/bin
+ # fcronsighup needs to be suid root, because it sends a HUP
+ # to the running fcron daemon
+ insopts -m6755 -o ${ROOTUSER:-root} -g fcron
+ doins fcronsighup
+ insopts -m6755 -o fcron -g fcron
+ doins fcrondyn
+
+ # /etc stuff
+ diropts -m0750 -o ${ROOTUSER:-root} -g fcron
+ dodir /etc/fcron
+ insinto /etc/fcron
+ insopts -m0640 -o ${ROOTUSER:-root} -g fcron
+ doins files/fcron.{allow,deny,conf}
+ dosed 's:^\(fcrontabs.*=.*\)$:\1/fcrontabs:' /etc/fcron/fcron.conf \
+ || die "dosed fcron.conf failed"
+
+ # install PAM files
+ newpamd files/fcron.pam fcron
+ newpamd files/fcrontab.pam fcrontab
+
+ # install /etc/crontab and /etc/fcrontab
+ insopts -m0640 -o ${ROOTUSER:-root} -g ${ROOTGROUP:-root}
+ insinto /etc
+ doins ${FILESDIR}/crontab ${FILESDIR}/fcrontab
+
+ # install init script
+ newinitd ${FILESDIR}/fcron.init fcron || die "newinitd failed"
+
+ # install the very handy check_system_crontabs script
+ mv script/check_system_crontabs script/check_system_crontabs.orig
+ sed -e 's:^FCRONTABS_DIR=.*$:FCRONTABS_DIR=/var/spool/cron/fcrontabs:' \
+ script/check_system_crontabs.orig > script/check_system_crontabs
+ dosbin script/check_system_crontabs
+
+ # doc stuff
+ dodoc MANIFEST VERSION
+ newdoc files/fcron.conf fcron.conf.sample
+ dodoc ${FILESDIR}/crontab
+ dodoc doc/en/txt/{readme,thanks,faq,todo,relnotes,changes}.txt
+ rm -f doc/en/man/*.3 # ugly hack for bitstring.3 manpage
+ doman doc/en/man/*.[0-9]
+ use doc && dohtml doc/en/HTML/*.html
+
+ # localized docs
+ local LANGUAGES=$(sed -n 's:LANGUAGES =::p' doc/Makefile)
+ LANGUAGES="${LANGUAGES/en/}"
+ local lang
+ for lang in ${LANGUAGES}; do
+ hasq ${lang} ${LINGUAS} || continue
+ rm -f doc/${lang}/man/*.3 # ugly hack for bitstring.3 manpage
+ doman -i18n=${lang} doc/${lang}/man/*.[0-9]
+ use doc && docinto html/${lang} && dohtml doc/${lang}/HTML/*.html
+ done
+}
+
+pkg_postinst() {
+ einfo
+ einfo "fcron has some important differences compared to vixie-cron:"
+ einfo
+ einfo "1. fcron stores the crontabs in /var/spool/cron/fcrontabs"
+ einfo
+ einfo "2. fcron uses a special binary file format for storing the"
+ einfo " crontabs in /var/spool/cron/fcrontabs/USERNAME,"
+ einfo " but the original plain text version is saved as"
+ einfo " /var/spool/cron/fcrontabs/USERNAME.orig for your"
+ einfo " reference (and for being edited with fcrontab)."
+ einfo
+ einfo "3. fcron does not feature a system crontab in exactly the"
+ einfo " same way as vixie-cron does. This version of fcron"
+ einfo " features a crontab for a pseudo-user 'systab' for use"
+ einfo " as the system crontab. Running a command like"
+ einfo
+ einfo " fcrontab -u systab /etc/crontab"
+ einfo
+ einfo " will write /etc/crontab to the fcron crontabs directory as"
+ einfo
+ einfo " /var/spool/cron/fcrontabs/systab"
+ einfo
+ einfo " Please note that changes to /etc/crontab will not become"
+ einfo " active automatically! fcron also does not use the directory"
+ einfo " /etc/cron.d by default like vixie-cron does."
+ einfo " Fortunately, it's possible to emulate vixie-cron's behavior"
+ einfo " with regards to /etc/crontab and /etc/cron.d by using a"
+ einfo " little helper script called 'check_system_crontabs'."
+ einfo " The file /etc/fcrontab (not /etc/crontab!) has been set up"
+ einfo " to run the script once a while to check whether"
+ einfo " /etc/fcrontab, /etc/crontab or files in /etc/cron.d/ have"
+ einfo " changed since the last generation of the systab and"
+ einfo " regenerate it from those three locations as necessary."
+ einfo " You should now run 'check_system_crontabs' once to properly"
+ einfo " generate an initial systab:"
+ einfo
+ einfo " check_system_crontabs -v -i -f"
+ einfo
+ einfo " The file /etc/fcrontab should only be used to run that"
+ einfo " script in order to ensure independence from the standard"
+ einfo " system crontab file /etc/crontab."
+ einfo " You may of course adjust the schedule for the script"
+ einfo " 'check_system_crontabs' or any other setting in"
+ einfo " /etc/fcrontab as you desire."
+ einfo
+ einfo "If you do NOT want to use 'check_system_crontabs', you"
+ einfo "might still want to activate the use of the well known"
+ einfo "directories /etc/cron.{hourly|daily|weekly|monthly} by"
+ einfo "just generating a systab once from /etc/crontab:"
+ einfo
+ einfo " fcrontab -u systab /etc/crontab"
+ einfo
+ einfo "Happy fcron'ing!"
+ einfo
+
+ ewarn
+ ewarn "Fixing permissions and ownership of /var/spool/cron/fcrontabs"
+ chown fcron:fcron /var/spool/cron/fcrontabs
+ chmod 6770 /var/spool/cron/fcrontabs
+ chown root:root /var/spool/cron/fcrontabs/*
+ chmod 0600 /var/spool/cron/fcrontabs/*
+ chown fcron:fcron /var/spool/cron/fcrontabs/*.orig
+ chmod 0640 /var/spool/cron/fcrontabs/*.orig
+ ewarn "Fixing permissions and ownership of /usr/bin/fcron{tab,dyn,sighup}"
+ chown fcron:fcron /usr/bin/fcron{tab,dyn}
+ chown ${ROOTUSER:-root}:fcron /usr/bin/fcronsighup
+ chmod 6755 /usr/bin/fcron{tab,dyn,sighup}
+ ewarn "Fixing permissions and ownership of /etc/{fcron,fcrontab,crontab}"
+ chown -R ${ROOTUSER:-root}:fcron /etc/{fcron,fcrontab,crontab}
+ chmod -R g+rX,o= /etc/fcron /etc/{fcron,fcrontab,crontab}
+ ewarn
+ ewarn "WARNING: fcron now uses a dedicated user and group"
+ ewarn "'fcron' for the suid/sgid programs/files instead of"
+ ewarn "the user and group 'cron' that were previously used."
+ ewarn
+ ewarn "fcron usage can now only be restricted by adding users"
+ ewarn "to the following files instead of to the group 'cron':"
+ ewarn
+ ewarn " /etc/fcron/fcron.allow"
+ ewarn " /etc/fcron/fcron.deny"
+ ewarn
+
+ ebeep 5
+ epause 10
+
+}
diff --git a/sys-process/fcron/files/crontab b/sys-process/fcron/files/crontab
new file mode 100644
index 00000000..1bc63cd4
--- /dev/null
+++ b/sys-process/fcron/files/crontab
@@ -0,0 +1,19 @@
+# /etc/crontab
+#
+# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/files/crontab,v 1.1 2005/03/04 23:50:36 ciaranm Exp $
+
+# fcron || dcron:
+# This is NOT the system crontab! fcron and dcron do not support a system crontab.
+# to get /etc/cron.{hourly|daily|weekly|montly} working with fcron or dcron do
+# crontab /etc/crontab
+# as root.
+# NOTE: This will REPLACE root's current crontab!!
+# 20 Apr 2002; Thilo Bangert <bangert@gentoo.org>
+
+# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
+
+0 * * * * rm -f /var/spool/cron/lastrun/cron.hourly
+1 3 * * * rm -f /var/spool/cron/lastrun/cron.daily
+15 4 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly
+30 5 1 * * rm -f /var/spool/cron/lastrun/cron.monthly
+*/10 * * * * /usr/bin/test -x /usr/sbin/run-crons && /usr/sbin/run-crons
diff --git a/sys-process/fcron/files/digest-fcron-3.0.2-r1 b/sys-process/fcron/files/digest-fcron-3.0.2-r1
new file mode 100644
index 00000000..c39f78dc
--- /dev/null
+++ b/sys-process/fcron/files/digest-fcron-3.0.2-r1
@@ -0,0 +1,3 @@
+MD5 f35e6af41d356ebcb38882f86a14fb94 fcron-3.0.2.src.tar.gz 540559
+RMD160 822f559550780c61c5822f4034fe99dd47577847 fcron-3.0.2.src.tar.gz 540559
+SHA256 ea25f4e9a78f6872c65cc97aa18c018b548e9fcd73b06d77c312e635ecf9ad48 fcron-3.0.2.src.tar.gz 540559
diff --git a/sys-process/fcron/files/fcron-2.0.0-configure.diff b/sys-process/fcron/files/fcron-2.0.0-configure.diff
new file mode 100644
index 00000000..b2c9ed98
--- /dev/null
+++ b/sys-process/fcron/files/fcron-2.0.0-configure.diff
@@ -0,0 +1,34 @@
+--- configure.in.orig 2005-09-25 03:51:51.000000000 -0400
++++ configure.in 2005-09-25 03:55:50.000000000 -0400
+@@ -265,13 +265,7 @@
+ fi
+ ;;
+ *)
+- if test -d "$withval"; then
+ etcdir="$withval"
+- AC_MSG_RESULT($withval)
+- else
+- AC_MSG_ERROR([
+-Directory $withval does not exist])
+- fi
+ ;;
+ esac ],
+ if test -d "/etc"; then
+@@ -795,7 +789,7 @@
+ [ --with-debug=CFLAGS Use default debug flags or CFLAGS if given to compile fcron in debug mode.],
+ [ case "$withval" in
+ no)
+- cflags="-O2 -Wall"
++ cflags="-Wall"
+ debug="0"
+ ;;
+ yes)
+@@ -808,7 +802,7 @@
+ debug="1"
+ ;;
+ esac ],
+- cflags="-O2 -Wall"
++ cflags=""
+ debug="0"
+ )
+ DEBUG=$debug
diff --git a/sys-process/fcron/files/fcron-2.9.5.1-fix-mail-output.diff b/sys-process/fcron/files/fcron-2.9.5.1-fix-mail-output.diff
new file mode 100644
index 00000000..ed322237
--- /dev/null
+++ b/sys-process/fcron/files/fcron-2.9.5.1-fix-mail-output.diff
@@ -0,0 +1,11 @@
+--- job.c 2004-11-14 11:32:36.000000000 -0500
++++ job.c 2005-03-07 01:23:37.181878096 -0500
+@@ -535,7 +535,7 @@
+ foreground = 0;
+
+ /* set stdin to the job's output */
+- if ( fseek(mailf, 0, SEEK_SET ) != 0) die_e("Can't fseek()");
++ if ( lseek(fileno(mailf), 0, SEEK_SET ) == -1) die_e("Can't lseek()");
+ if ( dup2(fileno(mailf), 0) != 0 ) die_e("Can't dup2(fileno(mailf))");
+
+ xcloselog();
diff --git a/sys-process/fcron/files/fcron.init b/sys-process/fcron/files/fcron.init
new file mode 100755
index 00000000..e57421a9
--- /dev/null
+++ b/sys-process/fcron/files/fcron.init
@@ -0,0 +1,50 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/files/fcron.init,v 1.3 2007/04/14 15:57:05 wschlich Exp $
+
+depend() {
+ use logger slapd mysql postgresql
+ need clock hostname
+ # provide the cron service if we are the main instance
+ if [ "${SVCNAME}" = "fcron" ]; then
+ provide cron
+ fi
+}
+
+checkconfig() {
+ FCRON_INSTANCE=${SVCNAME##*.}
+ if [ -n "${FCRON_INSTANCE}" -a "${SVCNAME}" != "fcron" ]; then
+ FCRON_CONF=/etc/fcron/fcron.${FCRON_INSTANCE}.conf
+ else
+ FCRON_CONF=/etc/fcron/fcron.conf
+ fi
+ if [ ! -e ${FCRON_CONF} ]; then
+ eerror "You will need an ${FCRON_CONF} first"
+ eerror "There is a sample in /etc/fcron"
+ return 1
+ fi
+ FCRON_PIDFILE=$(grep '^pidfile' ${FCRON_CONF} 2>/dev/null | sed -e 's:^pidfile[[:space:]]*=[[:space:]]*\(.*\)$:\1:')
+ FCRON_PIDFILE=${FCRON_PIDFILE:-/var/run/fcron.pid}
+ FCRON_SPOOLDIR=$(grep '^fcrontabs' ${FCRON_CONF} 2>/dev/null | sed -e 's:^fcrontabs[[:space:]]*=[[:space:]]*\(.*\)$:\1:')
+ FCRON_SPOOLDIR=${FCRON_SPOOLDIR:-/var/spool/cron/fcrontabs}
+ if [ ! -d ${FCRON_SPOOLDIR} ]; then
+ ebegin "Creating missing spooldir ${FCRON_SPOOLDIR}"
+ /usr/sbin/fcron --newspooldir ${FCRON_SPOOLDIR}
+ eend $?
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --pidfile ${FCRON_PIDFILE} --exec /usr/sbin/fcron -- -c ${FCRON_CONF}
+ eend $?
+}
+
+stop() {
+ checkconfig || return 1
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --pidfile ${FCRON_PIDFILE}
+ eend $?
+}
diff --git a/sys-process/fcron/files/fcron.rc6 b/sys-process/fcron/files/fcron.rc6
new file mode 100755
index 00000000..5836eb33
--- /dev/null
+++ b/sys-process/fcron/files/fcron.rc6
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/files/fcron.rc6,v 1.2 2005/10/27 23:53:50 ka0ttic Exp $
+
+depend() {
+ use logger slapd mysql postgresql
+ need clock hostname
+ provide cron
+}
+
+checkconfig() {
+ if [ ! -e /etc/fcron/fcron.conf ] ; then
+ eerror "You will need an /etc/fcron/fcron.conf first"
+ eerror "There is a sample in /etc/fcron"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting fcron"
+ start-stop-daemon --start --quiet --exec /usr/sbin/fcron
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping fcron"
+ start-stop-daemon --stop --quiet --pidfile /var/run/fcron.pid
+ eend $?
+}
diff --git a/sys-process/fcron/files/fcrontab b/sys-process/fcron/files/fcrontab
new file mode 100644
index 00000000..7034eead
--- /dev/null
+++ b/sys-process/fcron/files/fcrontab
@@ -0,0 +1,5 @@
+# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/files/fcrontab,v 1.1 2006/07/31 02:10:49 wschlich Exp $
+# Script for checking system crontabs and creating the fcron systab.
+# Runs every 10 minutes, does not mail output, doesn't log job runs
+# except for errors.
+@mail(false),nolog(true) 10 /usr/sbin/check_system_crontabs -s 0