diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2015-10-24 20:48:36 +0300 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2015-10-24 20:50:00 +0300 |
commit | 251b45bcf6a46407dc82ae70cf11a33c08c9b14d (patch) | |
tree | 3fe03139fb29438cec0f1f137a1bc537f48e50a1 /sys-process/bcron | |
parent | dev-python/capturer: Version Bump (diff) | |
download | gentoo-251b45bcf6a46407dc82ae70cf11a33c08c9b14d.tar.gz gentoo-251b45bcf6a46407dc82ae70cf11a33c08c9b14d.tar.bz2 gentoo-251b45bcf6a46407dc82ae70cf11a33c08c9b14d.zip |
sys-process/bcron: version bump
Non-maintainer commit, due to security reasons
Port to EAPI 5, add epatch user
Gentoo-Bug: 453310
Package-Manager: portage-2.2.20
Diffstat (limited to 'sys-process/bcron')
-rw-r--r-- | sys-process/bcron/Manifest | 1 | ||||
-rw-r--r-- | sys-process/bcron/bcron-0.10.ebuild | 118 |
2 files changed, 119 insertions, 0 deletions
diff --git a/sys-process/bcron/Manifest b/sys-process/bcron/Manifest index b5cb01605804..cef851f0c6b5 100644 --- a/sys-process/bcron/Manifest +++ b/sys-process/bcron/Manifest @@ -1 +1,2 @@ DIST bcron-0.09.tar.gz 57584 SHA256 c547ff95ca2f0fb7d4bfd6c3f81cc9f099fe287b566c9511d9d9930380b004c8 SHA512 78595d618a14a185e2d149969758b3a9f7cc9f71c27cf8a39efa365d95bf1e249d2da851d781338d8a63e04dd7fdb87a6ad41b6efc34da15c15d6cfb79d16c88 WHIRLPOOL 27d90d1e4dddebed5cbf588f54e1f309093a8298b632009bbd08c86c449409f9497ed7fb47f659ba10bf14b61f30d289ae3826a892330e3d1e6218ac0449dcad +DIST bcron-0.10.tar.gz 68314 SHA256 322394a1fbf1b44c65a623a01c684044d56f026619e240ad74fe4f466ccd1dad SHA512 cfc61651a77bedbaa3e6d9b5e5e8fa070883dfaf1cf314fc47b6114575ad4818f22fb5dd52959a0af077c3f30e2e902fed79feb51dc83adc3b36d20cc587f4a1 WHIRLPOOL 362db8d71ab78ad81ea6be9d473b43e60c1090e5532ad9db668ac18e8a19b845aca124d98966818cbefb08275825fc5a9eca7f3dc55eb791a7a57720f0f6e57d diff --git a/sys-process/bcron/bcron-0.10.ebuild b/sys-process/bcron/bcron-0.10.ebuild new file mode 100644 index 000000000000..f9eaa6c9afe8 --- /dev/null +++ b/sys-process/bcron/bcron-0.10.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cron eutils multilib 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" + +DEPEND=">=dev-libs/bglibs-1.106" +RDEPEND="${DEPEND} + >=sys-process/cronbase-0.3.2 + virtual/mta + sys-apps/ucspi-unix + virtual/daemontools" + +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 +} |