diff options
author | Thilo Bangert <bangert@gentoo.org> | 2010-08-09 09:41:21 +0000 |
---|---|---|
committer | Thilo Bangert <bangert@gentoo.org> | 2010-08-09 09:41:21 +0000 |
commit | dddcac3dd8a6f7f14ee775de7234af5bb9101d6e (patch) | |
tree | 5a9e5e54f9374c93d9837b91eba91ea7b546b75f /sys-process | |
parent | Renamed cblas to cblas-external wrt bug 330251. (diff) | |
download | historical-dddcac3dd8a6f7f14ee775de7234af5bb9101d6e.tar.gz historical-dddcac3dd8a6f7f14ee775de7234af5bb9101d6e.tar.bz2 historical-dddcac3dd8a6f7f14ee775de7234af5bb9101d6e.zip |
fix socket permissions (#328013) - thanks Pavel Labushev
Package-Manager: portage-2.2_rc67/cvs/Linux i686
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/bcron/ChangeLog | 8 | ||||
-rw-r--r-- | sys-process/bcron/Manifest | 4 | ||||
-rw-r--r-- | sys-process/bcron/bcron-0.09-r2.ebuild | 118 | ||||
-rw-r--r-- | sys-process/bcron/files/bcron-0.09-fix-socket-permissions.patch | 10 |
4 files changed, 138 insertions, 2 deletions
diff --git a/sys-process/bcron/ChangeLog b/sys-process/bcron/ChangeLog index 047c8cbeaeb0..6daa4782c828 100644 --- a/sys-process/bcron/ChangeLog +++ b/sys-process/bcron/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-process/bcron # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/bcron/ChangeLog,v 1.14 2010/01/14 18:26:42 bangert Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/bcron/ChangeLog,v 1.15 2010/08/09 09:41:21 bangert Exp $ + +*bcron-0.09-r2 (09 Aug 2010) + + 09 Aug 2010; Thilo Bangert <bangert@gentoo.org> +bcron-0.09-r2.ebuild, + +files/bcron-0.09-fix-socket-permissions.patch: + fix socket permissions (#328013) *bcron-0.09-r1 (14 Jan 2010) diff --git a/sys-process/bcron/Manifest b/sys-process/bcron/Manifest index 77480174d494..ddcb5ebf30ec 100644 --- a/sys-process/bcron/Manifest +++ b/sys-process/bcron/Manifest @@ -1,7 +1,9 @@ AUX bcron-0.09-fix-parallel-build.patch 520 RMD160 298b46e485e38d32e3093a0a3b9b37ec286737e4 SHA1 49f9cf618f2fc8e2ef0de8cffa66cc7ab4e17a94 SHA256 d78a42edabd033e482c35f38a04cdc6d39b0323141de4d3cabab6795ab442837 +AUX bcron-0.09-fix-socket-permissions.patch 307 RMD160 12f5ff9460069d29d353eab302199e3a733d41c6 SHA1 2d11c3eb69bf5b16e655c6738725f883135f4959 SHA256 f73b8cd1e620ea6a571de31f2bda8f73f41eae5c9fadbfd881ca32a634ca75d4 AUX crontab 592 RMD160 3ff767262f245cbcdc0d836afc9eed2cb22c8d03 SHA1 bbce031d984c5206bd5a78db765be67e6101c19d SHA256 1c39fd7034a3b489f4f92c120760ca31db8a8b1f74fbe12d054d9b29de6d3340 DIST bcron-0.09.tar.gz 57584 RMD160 a7ae646635c2da2a71803020f890453fac62f6d5 SHA1 d2136f1de412b7d8be0adbef298411a1ee1908f0 SHA256 c547ff95ca2f0fb7d4bfd6c3f81cc9f099fe287b566c9511d9d9930380b004c8 EBUILD bcron-0.09-r1.ebuild 2911 RMD160 1e41c34d41a4c03f1c601bb249043a678924aae1 SHA1 075b6c80a17c582210a854de2dcdf8e747848dfa SHA256 c52950515300bb62a4baa035479e43572122053edb2e293e53908f8f252a923e +EBUILD bcron-0.09-r2.ebuild 2973 RMD160 10cb9a861739fe7dcf28b12efc06ac62a5452736 SHA1 82625af588db087f8f65408ed77cbd66b388c30e SHA256 9707cfdabc7beb99a2d1ca2a0bf8bd4115ab4c2ea25a4e7e2d16b35a841dd179 EBUILD bcron-0.09.ebuild 2846 RMD160 e82deb8e29114677d2e2a8917d3d7e3efd65abf3 SHA1 10fc4c6c571eb498c0d16744668affef0849ee08 SHA256 67280aa81e3f90d855743732f0bb6adbd28946e1cfede9f815f0a4ae9ebf181e -MISC ChangeLog 1962 RMD160 98b939a550e99c4b0964317ff30f9f86fa68c5c0 SHA1 3fdd5786cc15e1a96f2017cdac883bad08faa895 SHA256 5747edb33f43916f0abc87952e259cdb1eba5aefdd7efd0239801ef15619a90a +MISC ChangeLog 2151 RMD160 9408f41e108bae94e3dbb722889210dd7415d017 SHA1 8f20016690f79b3accc8dee6eaa5bdf8f74f2174 SHA256 7768f4bb2210fae3453254c9585e91e99b597fbded84508511c5a039b8280689 MISC metadata.xml 651 RMD160 711d8b3b73d0e3395f6fabb9788f087b1316a776 SHA1 d0721037663e7ead7a7a903feca0d711b422145e SHA256 a14dd1c4600d0007439a499ea8e53ba9c35929f6268095ac02850027983e3a70 diff --git a/sys-process/bcron/bcron-0.09-r2.ebuild b/sys-process/bcron/bcron-0.09-r2.ebuild new file mode 100644 index 000000000000..311413e65169 --- /dev/null +++ b/sys-process/bcron/bcron-0.09-r2.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/bcron/bcron-0.09-r2.ebuild,v 1.1 2010/08/09 09:41:21 bangert Exp $ + +EAPI="2" + +inherit cron eutils toolchain-funcs multilib +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" +IUSE="" + +DEPEND=">=dev-libs/bglibs-1.106" +RDEPEND="!virtual/cron + >=sys-process/cronbase-0.3.2 + virtual/mta + sys-apps/ucspi-unix + sys-process/daemontools" +PROVIDE="virtual/cron" + +CRON_SYSTEM_CRONTAB="yes" + +src_prepare() { + epatch "${FILESDIR}/bcron-0.09-fix-parallel-build.patch" + epatch "${FILESDIR}/bcron-0.09-fix-socket-permissions.patch" +} + +src_configure() { + echo "/usr/include/bglibs" > conf-bgincs + echo "/usr/$(get_libdir)/bglibs" > conf-bglibs + echo "${D}/usr/bin" > conf-bin + echo "$(tc-getCC) ${CFLAGS}" > conf-cc + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld +} + +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 "${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 + ' |