diff options
author | Thilo Bangert <bangert@gentoo.org> | 2006-05-16 12:06:30 +0000 |
---|---|---|
committer | Thilo Bangert <bangert@gentoo.org> | 2006-05-16 12:06:30 +0000 |
commit | 6107cbdf400a57ddbf31789d63f6837fde888432 (patch) | |
tree | 220370cf65be06a40a827090ae11ca88afd32df2 /sys-process/bcron | |
parent | Version bump (diff) | |
download | gentoo-2-6107cbdf400a57ddbf31789d63f6837fde888432.tar.gz gentoo-2-6107cbdf400a57ddbf31789d63f6837fde888432.tar.bz2 gentoo-2-6107cbdf400a57ddbf31789d63f6837fde888432.zip |
initial import. This is bcron, a new cron system designed with secureinitial import. This is bcron, a new cron system designed with secure operations in mind.
(Portage version: 2.0.54-r2)
Diffstat (limited to 'sys-process/bcron')
-rw-r--r-- | sys-process/bcron/ChangeLog | 11 | ||||
-rw-r--r-- | sys-process/bcron/Manifest | 4 | ||||
-rw-r--r-- | sys-process/bcron/bcron-0.09.ebuild | 117 | ||||
-rw-r--r-- | sys-process/bcron/files/crontab | 18 | ||||
-rw-r--r-- | sys-process/bcron/files/digest-bcron-0.09 | 1 | ||||
-rw-r--r-- | sys-process/bcron/metadata.xml | 17 |
6 files changed, 168 insertions, 0 deletions
diff --git a/sys-process/bcron/ChangeLog b/sys-process/bcron/ChangeLog new file mode 100644 index 000000000000..4c936054931d --- /dev/null +++ b/sys-process/bcron/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-process/bcron +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/bcron/ChangeLog,v 1.1 2006/05/16 12:06:30 bangert Exp $ + +*bcron-0.09 (16 May 2006) + + 16 May 2006; Thilo Bangert <bangert@gentoo.org> +files/crontab, + +metadata.xml, +bcron-0.09.ebuild: + initial import. This is bcron, a new cron system designed with secure + operations in mind. + diff --git a/sys-process/bcron/Manifest b/sys-process/bcron/Manifest new file mode 100644 index 000000000000..1eb528ba4caa --- /dev/null +++ b/sys-process/bcron/Manifest @@ -0,0 +1,4 @@ +MD5 a19fd666e7c1d34d4a89ad2640816c96 bcron-0.09.ebuild 2829 +MD5 e4197c958169b19b86804f9a3359370f files/crontab 616 +MD5 c92c78bb1efe9d25069124534dbe3f27 files/digest-bcron-0.09 61 +MD5 80f1a0cf0303d7d9b847c8d14a88fc3b metadata.xml 654 diff --git a/sys-process/bcron/bcron-0.09.ebuild b/sys-process/bcron/bcron-0.09.ebuild new file mode 100644 index 000000000000..dda8de2962d5 --- /dev/null +++ b/sys-process/bcron/bcron-0.09.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/bcron/bcron-0.09.ebuild,v 1.1 2006/05/16 12:06:30 bangert Exp $ + +inherit cron eutils toolchain-funcs +DESCRIPTION="A new cron system designed with secure operations in mind by Bruce Guenter" + +HOMEPAGE="http://untroubled.org/bcron/" +SRC_URI="${HOMEPAGE}archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="virtual/libc + >=dev-libs/bglibs-1.031" +RDEPEND="!virtual/cron + >=sys-process/cronbase-0.3.2 + virtual/mta + sys-apps/ucspi-unix + sys-process/daemontools" +PROVIDE="virtual/cron" + +src_compile() { + echo "${ROOT}/usr/include/bglibs" > conf-bgincs + echo "${ROOT}/usr/lib/bglibs" > conf-bglibs + echo "${D}/usr/bin" > conf-bin + echo "$(tc-getCC) ${CFLAGS}" > conf-cc + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld + make || die "make failed" +} + +src_install() { + einstall || die + + #fix permissions of crontab + fperms o-rwx /usr/bin/bcrontab + fowners root:cron /usr/bin/bcrontab + + doman bcrontab.1 crontab.5 bcron-update.8 bcron-start.8 + doman bcron-spool.8 bcron-sched.8 bcron-exec.8 + + dodoc ANNOUNCEMENT NEWS README TODO + + keepdir /etc/cron.d + + keepdir /var/spool/cron/crontabs + keepdir /var/spool/cron/tmp + + for i in crontabs tmp; + do + fowners cron:cron /var/spool/cron/$i + fperms go-rwx /var/spool/cron/$i + done + + dodir /etc/bcron + + insinto /etc + doins ${FILESDIR}/crontab + + insinto /var/lib/supervise/bcron + doins bcron-sched.run + + insinto /var/lib/supervise/bcron/log + doins bcron-sched-log.run + + insinto /var/lib/supervise/bcron-spool + doins bcron-spool.run + + insinto /var/lib/supervise/bcron-update + doins bcron-update.run +} + +pkg_config() { + cd /var/lib/supervise/bcron + [ -e run ] && cp run bcron-sched.run.`date +%Y%m%d%H%M%S` + cp bcron-sched.run run + chmod u+x run + + cd /var/lib/supervise/bcron/log + [ -e run ] && cp run bcron-sched-log.run.`date +%Y%m%d%H%M%S` + cp bcron-sched-log.run run + chmod u+x run + + cd /var/lib/supervise/bcron-spool + [ -e run ] && cp run bcron-spool.run.`date +%Y%m%d%H%M%S` + cp bcron-spool.run run + chmod u+x run + + cd /var/lib/supervise/bcron-update + [ -e run ] && cp run bcron-update.run.`date +%Y%m%d%H%M%S` + cp bcron-update.run run + chmod u+x run + + [ ! -e /var/spool/trigger ] && mkfifo /var/spool/cron/trigger + chown cron:cron /var/spool/cron/trigger + chmod go-rwx /var/spool/cron/trigger +} + +pkg_postinst() { + echo + einfo "Run " + einfo "emerge --config =${PF}" + einfo "to create or update your run files (backups are created) in" + einfo " /var/lib/supervise/bcron (bcron daemon) and" + einfo " /var/lib/supervise/bcron-spool (crontab receiver) and" + einfo " /var/lib/supervise/bcron-update (system crontab updater)" + echo + +#not quiet yet - needs a patch since bcron also +#handles the system crontab correctly +# and a paragraph about bcron is missing in the +# gentoo crontab guide.... +# cron_pkg_postinst + echo +} diff --git a/sys-process/bcron/files/crontab b/sys-process/bcron/files/crontab new file mode 100644 index 000000000000..6185c3544ae8 --- /dev/null +++ b/sys-process/bcron/files/crontab @@ -0,0 +1,18 @@ +# for vixie cron +# +# $Header: /var/cvsroot/gentoo-x86/sys-process/bcron/files/crontab,v 1.1 2006/05/16 12:06:30 bangert Exp $ +# +# + +# Global variables +SHELL=/bin/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +HOME=/ + +# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly +0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly +1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily +15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly +30 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly +*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons diff --git a/sys-process/bcron/files/digest-bcron-0.09 b/sys-process/bcron/files/digest-bcron-0.09 new file mode 100644 index 000000000000..1e5c2ad2cccb --- /dev/null +++ b/sys-process/bcron/files/digest-bcron-0.09 @@ -0,0 +1 @@ +MD5 55348c1509ce3362a392ebd8e210c5eb bcron-0.09.tar.gz 57584 diff --git a/sys-process/bcron/metadata.xml b/sys-process/bcron/metadata.xml new file mode 100644 index 000000000000..89c70c52eeab --- /dev/null +++ b/sys-process/bcron/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>bangert@gentoo.org</email> + <name>Thilo Bangert</name> + </maintainer> + <longdescription> + This is bcron, a new cron system designed with secure operations in + mind. To do this, the system is divided into several seperate programs, + each responsible for a seperate task, with strictly controlled + communications between them. The user interface is a drop-in + replacement for similar systems (such as vixie-cron), but the internals + differ greatly. + </longdescription> +</pkgmetadata> |