summaryrefslogtreecommitdiff
path: root/sys-process/bcron
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-process/bcron
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-process/bcron')
-rw-r--r--sys-process/bcron/Manifest7
-rw-r--r--sys-process/bcron/bcron-0.10.ebuild122
-rw-r--r--sys-process/bcron/files/bcron-0.09-fix-socket-permissions.patch10
-rw-r--r--sys-process/bcron/files/crontab14
-rw-r--r--sys-process/bcron/metadata.xml16
5 files changed, 169 insertions, 0 deletions
diff --git a/sys-process/bcron/Manifest b/sys-process/bcron/Manifest
new file mode 100644
index 000000000000..9dbf62704974
--- /dev/null
+++ b/sys-process/bcron/Manifest
@@ -0,0 +1,7 @@
+AUX bcron-0.09-fix-socket-permissions.patch 307 SHA256 f73b8cd1e620ea6a571de31f2bda8f73f41eae5c9fadbfd881ca32a634ca75d4 SHA512 71437e686615b6962a25121dc96f785af020c1b8db2e3a73416455e494a863dafc22ac744779885b64d296342b0d08f3fb3f03a398ebc66cde9cec721dd3d9f6 WHIRLPOOL c2709eead171de0b62122d7961b73f202ab43a11934c1de5951b6e284135b40da383d0c118131f7f002bd2ad8c3172804e9094649249c0a81da8b1d2fb52351b
+AUX crontab 485 SHA256 cf12694e9402b28542d87e1e1fc08a895a46c258b4108ad1ba26cbcdc3af4ae1 SHA512 0a67b137f67b4910cddc8e40da01d78df46a6404a683839eb04a8a4883d03e2cfc3f61b4ac40f5cdbd963ba0ea9a070e13eff1b85623b1a6b50b5f379bde3957 WHIRLPOOL d4cccd2f75095700be3d9d296ae54383fcb9798b1d79e74b9673f1b5aa23c72645980962ca316bcbbf7caa28a7330ea3b1d889897c717956d4aa069e60d9e4fb
+DIST bcron-0.10.tar.gz 68314 SHA256 322394a1fbf1b44c65a623a01c684044d56f026619e240ad74fe4f466ccd1dad SHA512 cfc61651a77bedbaa3e6d9b5e5e8fa070883dfaf1cf314fc47b6114575ad4818f22fb5dd52959a0af077c3f30e2e902fed79feb51dc83adc3b36d20cc587f4a1 WHIRLPOOL 362db8d71ab78ad81ea6be9d473b43e60c1090e5532ad9db668ac18e8a19b845aca124d98966818cbefb08275825fc5a9eca7f3dc55eb791a7a57720f0f6e57d
+EBUILD bcron-0.10.ebuild 2962 SHA256 133aabc2071e03397fc4abfbec0c34304eeae941cb23365e4073a801fa8ef0c7 SHA512 ac962512008c044a3aa510f8dcc09ac7c56716c56afaa49c747ac81da91bc20218f98a767b527bf0c4e095e322546aa6c003d21784e97c3e18ae788f9e79642f WHIRLPOOL 516265ec4d37b33e0af2647519d90d77947e5805cfa51e90f82d029af8001718690069bcd1e73cbd3bb6030dca7d26f7626b8bcc5bceb24cdebeeab777d21278
+MISC ChangeLog 3716 SHA256 a004537ed7d6623baef24b6695979b6c7ae2de6226627eb7db7fa5442e5af93d SHA512 06224f7dcbb64b8c41e05348b813fac2ee9ec820baaacee83a70421cf20e84eb9179a14b2ecd0741e53a46fd191709dc5886fc5ac8eaef593e5d07fce3e9be99 WHIRLPOOL b560758443102f42ae19079a3e11233c8e6b7790ab09190d12484823feb34b2b2c42cdb00ae08cf60ee1330bfe1441b89d7a39efc0f9f0675330ea88d192e233
+MISC ChangeLog-2015 2631 SHA256 f8d4dcd72c127ac0e3e407751d5f92522eb023221439297ac14b575b5d5aff8f SHA512 a8cc8318617325ac2624681d638cf4ba3c1e8d4cc352151a96e513168583f110794bf3204d5d745568e75b04aa71345fde8efda9b6224f00e9dd9f42dc7533a9 WHIRLPOOL 5bbe67806baff1641730ba8817d3721c01eb80c3b5adf4b3bc2cd8b83b71b6245486446ae079ff2aaeefa030c62be14845f8cb1fbcd038fa4cfcc752aa07cc97
+MISC metadata.xml 655 SHA256 bf77288880213a745636362a578220ba840d0b1d3c8586f51575c936671d9e7c SHA512 f52e0972ece1cff730d00c2806fe526dbe9dded0ceb8af15aa2aa080b7f10a77f2dae075f0399de3acc20dfcb430d993046ae25506822b54681af8734c47742b WHIRLPOOL 6789e7380163af675ee1481160615245aea2d965b061e0398e47056fc154a51aa6cbb695ccc86fcff8fc8d803c9efea9cc9e092d897f4649cf20b6c7c3c6e708
diff --git a/sys-process/bcron/bcron-0.10.ebuild b/sys-process/bcron/bcron-0.10.ebuild
new file mode 100644
index 000000000000..80624f8a2864
--- /dev/null
+++ b/sys-process/bcron/bcron-0.10.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit cron eutils multilib python-any-r1 toolchain-funcs
+
+DESCRIPTION="A new cron system designed with secure operations in mind by Bruce Guenter"
+HOMEPAGE="http://untroubled.org/bcron/"
+SRC_URI="http://untroubled.org/bcron/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ >=sys-process/cronbase-0.3.2
+ virtual/mta
+ sys-apps/ucspi-unix
+ virtual/daemontools
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ >=dev-libs/bglibs-1.106
+"
+
+CRON_SYSTEM_CRONTAB="yes"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-0.09-fix-socket-permissions.patch"
+ epatch_user
+}
+
+src_configure() {
+ echo "/usr/include/bglibs" > conf-bgincs || die
+ echo "/usr/$(get_libdir)/bglibs" > conf-bglibs || die
+ echo "${D}/usr/bin" > conf-bin || die
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die
+ echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS}" > conf-ld || die
+ echo "${D}/usr/share/man" > conf-man || die
+}
+
+src_install() {
+ # DESTDIR is not supported in Makefile
+ emake install
+
+ #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 "${ROOT}"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 "${ROOT}"/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 "${ROOT}"/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 "${ROOT}"/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 "${ROOT}"/var/spool/cron/trigger ] && mkfifo "${ROOT}"var/spool/cron/trigger
+ chown cron:cron /var/spool/cron/trigger
+ chmod go-rwx /var/spool/cron/trigger
+}
+
+pkg_postinst() {
+ echo
+ elog "Run "
+ elog "emerge --config =${PF}"
+ elog "to create or update your run files (backups are created) in"
+ elog " /var/lib/supervise/bcron (bcron daemon) and"
+ elog " /var/lib/supervise/bcron-spool (crontab receiver) and"
+ elog " /var/lib/supervise/bcron-update (system crontab updater)"
+
+ cron_pkg_postinst
+}
diff --git a/sys-process/bcron/files/bcron-0.09-fix-socket-permissions.patch b/sys-process/bcron/files/bcron-0.09-fix-socket-permissions.patch
new file mode 100644
index 000000000000..a8b13038e608
--- /dev/null
+++ b/sys-process/bcron/files/bcron-0.09-fix-socket-permissions.patch
@@ -0,0 +1,10 @@
+--- a/bcron-spool.run 2005-06-09 04:14:42.000000000 +0400
++++ b/bcron-spool/run 2010-07-12 01:29:24.000000000 +0400
+@@ -5,6 +5,6 @@
+ envuidgid cron \
+ sh -c '
+ exec \
+-unixserver -U ${BCRON_SOCKET:-/var/run/bcron-spool} \
++unixserver -U ${BCRON_SOCKET:-/var/run/bcron-spool} -r 16 -p 0660 \
+ bcron-spool
+ '
diff --git a/sys-process/bcron/files/crontab b/sys-process/bcron/files/crontab
new file mode 100644
index 000000000000..393d8c764912
--- /dev/null
+++ b/sys-process/bcron/files/crontab
@@ -0,0 +1,14 @@
+# for bcron
+
+# 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
+59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
+9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
+19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
+29 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/metadata.xml b/sys-process/bcron/metadata.xml
new file mode 100644
index 000000000000..dfaf600f0de7
--- /dev/null
+++ b/sys-process/bcron/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cron-bugs@gentoo.org</email>
+ <name>Gentoo Cron Project</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>