From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EE14413888F for ; Sat, 24 Oct 2015 17:50:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43951E07D8; Sat, 24 Oct 2015 17:50:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C47A2E07D8 for ; Sat, 24 Oct 2015 17:50:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C142340845 for ; Sat, 24 Oct 2015 17:50:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E522B17C2 for ; Sat, 24 Oct 2015 17:50:05 +0000 (UTC) From: "Sergey Popov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergey Popov" Message-ID: <1445709000.251b45bcf6a46407dc82ae70cf11a33c08c9b14d.pinkbyte@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/bcron/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/bcron/Manifest sys-process/bcron/bcron-0.10.ebuild X-VCS-Directories: sys-process/bcron/ X-VCS-Committer: pinkbyte X-VCS-Committer-Name: Sergey Popov X-VCS-Revision: 251b45bcf6a46407dc82ae70cf11a33c08c9b14d X-VCS-Branch: master Date: Sat, 24 Oct 2015 17:50:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a2e79334-c3e0-4a12-918f-d2677ee78d9f X-Archives-Hash: f599228df47fba172a5fc282a83b0540 commit: 251b45bcf6a46407dc82ae70cf11a33c08c9b14d Author: Sergey Popov gentoo org> AuthorDate: Sat Oct 24 17:48:36 2015 +0000 Commit: Sergey Popov gentoo org> CommitDate: Sat Oct 24 17:50:00 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=251b45bc 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 sys-process/bcron/Manifest | 1 + sys-process/bcron/bcron-0.10.ebuild | 118 ++++++++++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) diff --git a/sys-process/bcron/Manifest b/sys-process/bcron/Manifest index b5cb016..cef851f 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 0000000..f9eaa6c --- /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 +}