From a2810985afabcc31d3eace5e61d8ea25b852ba17 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 7 May 2019 11:18:59 +0100 Subject: gentoo resync : 07.05.2019 --- sys-process/bcron/Manifest | 2 + sys-process/bcron/bcron-0.11.ebuild | 101 ++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 sys-process/bcron/bcron-0.11.ebuild (limited to 'sys-process/bcron') diff --git a/sys-process/bcron/Manifest b/sys-process/bcron/Manifest index 84b7090e6d9c..a80bcfe185b7 100644 --- a/sys-process/bcron/Manifest +++ b/sys-process/bcron/Manifest @@ -1,5 +1,7 @@ AUX bcron-0.09-fix-socket-permissions.patch 307 BLAKE2B 4b1f28579f75af2ab6547e2601ed5e0013b70ef8ac5e112ada22e79ed51cf70b10715816f5e856b6d83a7e3959bca5d9d15db66106ff1909a2ed0d416255de95 SHA512 71437e686615b6962a25121dc96f785af020c1b8db2e3a73416455e494a863dafc22ac744779885b64d296342b0d08f3fb3f03a398ebc66cde9cec721dd3d9f6 AUX crontab 485 BLAKE2B ef44f29195b3d50ea360cdd76d2f7854961161c2ac4579dc7526fe02f4b86e8d1c5f28f90d54a36ca32a24ad347b7f2770ee35326ea21929c4dc68e5ec7af769 SHA512 0a67b137f67b4910cddc8e40da01d78df46a6404a683839eb04a8a4883d03e2cfc3f61b4ac40f5cdbd963ba0ea9a070e13eff1b85623b1a6b50b5f379bde3957 DIST bcron-0.10.tar.gz 68314 BLAKE2B faa7204703af18108675ddb2f2e835cdfcc230f03d80a27b66734110c6354c120f1a2e6357c476b27d72e95935c9bfd805f901521087632cb7e1c26d3b59ba98 SHA512 cfc61651a77bedbaa3e6d9b5e5e8fa070883dfaf1cf314fc47b6114575ad4818f22fb5dd52959a0af077c3f30e2e902fed79feb51dc83adc3b36d20cc587f4a1 +DIST bcron-0.11.tar.gz 69950 BLAKE2B 9aaf9e7d8e468a184da97324ccaa6ea557c2d8c3c3557bb90ba9b43b98ac1ddf9bc7d879300394b73c3e5921f9fd7ad8859393076a77a99b9ec3a909e6493a17 SHA512 730e0f4d6fe717ddf89e787d570449f1f7b4b5c44beb2e11b6c88a92177ea02480063f16992f32a13877327b895ca085617dda65de90effd8fb465e578444f05 EBUILD bcron-0.10.ebuild 2962 BLAKE2B d7e090f9bbff85c5e35a965f5b3c03e50c5aed0eb5759716ffd62c77fb032a15cc407ff0ce090e142e28c25f1c37f306249be83fb01ae6430b7b74394aaa6bfe SHA512 ac962512008c044a3aa510f8dcc09ac7c56716c56afaa49c747ac81da91bc20218f98a767b527bf0c4e095e322546aa6c003d21784e97c3e18ae788f9e79642f +EBUILD bcron-0.11.ebuild 2833 BLAKE2B a77db52383894fccfa3b04a77b7c7aefce49b6e2bab7819447cc4b6a89de4f881b10143d578897dcf7743c48b1a79d906c9596937007b2dbddaa9ab0b8560541 SHA512 9df17f3b59eaf26b9d8028a62a972a272a3b1a683fcd5e3bb9b69bade95197ab0290d23a85bb123e0ae5fc5e08bf5be266da1f301b1c135c3168d6f2fc1eab4d MISC metadata.xml 566 BLAKE2B f8a972c8a51fd2768ef8a02b68a26c03b69950961e47e176c98073968dd0361c98eec302369b5ddc7453692bf16820ce249625b676af39e9fb2d3dc4ca5168f1 SHA512 95d7ef6f7548ee75046a45715c6976a1e2acf74b57dd68b225ed111f1e28ccfb8ec8263d3b8708798f9f5e6de1995f9ad7185ec8806978fa8b757c88eeda4dc1 diff --git a/sys-process/bcron/bcron-0.11.ebuild b/sys-process/bcron/bcron-0.11.ebuild new file mode 100644 index 000000000000..329c71869b3c --- /dev/null +++ b/sys-process/bcron/bcron-0.11.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit cron python-any-r1 toolchain-funcs + +DESCRIPTION="A new cron system designed with secure operations in mind by Bruce Guenter" +HOMEPAGE="https://untroubled.org/bcron/" +SRC_URI="https://untroubled.org/bcron/archive/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="sys-apps/ucspi-unix + sys-process/cronbase + virtual/daemontools + virtual/mta" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + >=dev-libs/bglibs-2.04" + +CRON_SYSTEM_CRONTAB="yes" + +PATCHES=( "${FILESDIR}/${PN}-0.09-fix-socket-permissions.patch" ) + +src_configure() { + echo "${ED}/usr/bin" > conf-bin || die + echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die + echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS} -L${EPREFIX}/usr/$(get_libdir)/bglibs" > conf-ld || die + echo "${ED}/usr/share/man" > conf-man || die +} + +src_install() { + default + + docrontab bcrontab + docrondir -o cron -g cron + docrondir /var/spool/cron/tmp -o cron -g cron + + keepdir /etc/cron.d + 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 + + 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 +} + +pkg_config() { + cd "${EROOT}"/var/lib/supervise/bcron || die + [[ -e run ]] && ( cp run bcron-sched.run.`date +%Y%m%d%H%M%S` || die ) + cp bcron-sched.run run || die + chmod u+x run || die + + cd "${EROOT}"/var/lib/supervise/bcron/log || die + [[ -e run ]] && ( cp run bcron-sched-log.run.`date +%Y%m%d%H%M%S` || die ) + cp bcron-sched-log.run run || die + chmod u+x run || die + + cd "${EROOT}"/var/lib/supervise/bcron-spool || die + [[ -e run ]] && ( cp run bcron-spool.run.`date +%Y%m%d%H%M%S` || die ) + cp bcron-spool.run run || die + chmod u+x run || die + + cd "${EROOT}"/var/lib/supervise/bcron-update || die + [[ -e run ]] && ( cp run bcron-update.run.`date +%Y%m%d%H%M%S` || die ) + cp bcron-update.run run || die + chmod u+x run || die + + [[ ! -e "${EROOT}"/var/spool/cron/trigger ]] && ( mkfifo "${EROOT}"/var/spool/cron/trigger || die ) + chown cron:cron "${EROOT}"/var/spool/cron/trigger || die + chmod go-rwx "${EROOT}"/var/spool/cron/trigger || die +} + +pkg_postinst() { + elog "Run " + elog "emerge --config '=${CATEGORY}/${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 +} -- cgit v1.2.3