1 |
commit: de55e57bfe35efd3fc4c83b0d21c73bbb47e30ee |
2 |
Author: Stefan Strogin <steils <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 6 10:36:45 2019 +0000 |
4 |
Commit: Stefan Strogin <steils <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 6 11:12:32 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de55e57b |
7 |
|
8 |
sys-process/bcron: bump version to 0.11 |
9 |
|
10 |
Mask it temporarily since it depends on masked >=dev-libs/bglibs-2.04. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/670694 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/11903 |
14 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
15 |
Signed-off-by: Stefan Strogin <steils <AT> gentoo.org> |
16 |
|
17 |
profiles/package.mask | 4 ++ |
18 |
sys-process/bcron/Manifest | 1 + |
19 |
sys-process/bcron/bcron-0.11.ebuild | 101 ++++++++++++++++++++++++++++++++++++ |
20 |
3 files changed, 106 insertions(+) |
21 |
|
22 |
diff --git a/profiles/package.mask b/profiles/package.mask |
23 |
index 8c1c1f9fc0f..7bc2fc653ef 100644 |
24 |
--- a/profiles/package.mask |
25 |
+++ b/profiles/package.mask |
26 |
@@ -29,6 +29,10 @@ |
27 |
|
28 |
#--- END OF EXAMPLES --- |
29 |
|
30 |
+# Stefan Strogin <stefan.strogin@×××××.com> (05 May 2019) |
31 |
+# Depends on >=dev-libs/bglibs-2.04. Bug #670694. |
32 |
+>=sys-process/bcron-0.11 |
33 |
+ |
34 |
# Stefan Strogin <stefan.strogin@×××××.com> (04 May 2019) |
35 |
# Masked for testing reverse dependencies. Bug #591300. |
36 |
>=dev-libs/bglibs-2.04 |
37 |
|
38 |
diff --git a/sys-process/bcron/Manifest b/sys-process/bcron/Manifest |
39 |
index 2879932b638..8d7c3fd040c 100644 |
40 |
--- a/sys-process/bcron/Manifest |
41 |
+++ b/sys-process/bcron/Manifest |
42 |
@@ -1 +1,2 @@ |
43 |
DIST bcron-0.10.tar.gz 68314 BLAKE2B faa7204703af18108675ddb2f2e835cdfcc230f03d80a27b66734110c6354c120f1a2e6357c476b27d72e95935c9bfd805f901521087632cb7e1c26d3b59ba98 SHA512 cfc61651a77bedbaa3e6d9b5e5e8fa070883dfaf1cf314fc47b6114575ad4818f22fb5dd52959a0af077c3f30e2e902fed79feb51dc83adc3b36d20cc587f4a1 |
44 |
+DIST bcron-0.11.tar.gz 69950 BLAKE2B 9aaf9e7d8e468a184da97324ccaa6ea557c2d8c3c3557bb90ba9b43b98ac1ddf9bc7d879300394b73c3e5921f9fd7ad8859393076a77a99b9ec3a909e6493a17 SHA512 730e0f4d6fe717ddf89e787d570449f1f7b4b5c44beb2e11b6c88a92177ea02480063f16992f32a13877327b895ca085617dda65de90effd8fb465e578444f05 |
45 |
|
46 |
diff --git a/sys-process/bcron/bcron-0.11.ebuild b/sys-process/bcron/bcron-0.11.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..329c71869b3 |
49 |
--- /dev/null |
50 |
+++ b/sys-process/bcron/bcron-0.11.ebuild |
51 |
@@ -0,0 +1,101 @@ |
52 |
+# Copyright 1999-2019 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=7 |
56 |
+ |
57 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
58 |
+ |
59 |
+inherit cron python-any-r1 toolchain-funcs |
60 |
+ |
61 |
+DESCRIPTION="A new cron system designed with secure operations in mind by Bruce Guenter" |
62 |
+HOMEPAGE="https://untroubled.org/bcron/" |
63 |
+SRC_URI="https://untroubled.org/bcron/archive/${P}.tar.gz" |
64 |
+ |
65 |
+LICENSE="GPL-2+" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64 ~x86" |
68 |
+ |
69 |
+RDEPEND="sys-apps/ucspi-unix |
70 |
+ sys-process/cronbase |
71 |
+ virtual/daemontools |
72 |
+ virtual/mta" |
73 |
+DEPEND="${RDEPEND} |
74 |
+ ${PYTHON_DEPS} |
75 |
+ >=dev-libs/bglibs-2.04" |
76 |
+ |
77 |
+CRON_SYSTEM_CRONTAB="yes" |
78 |
+ |
79 |
+PATCHES=( "${FILESDIR}/${PN}-0.09-fix-socket-permissions.patch" ) |
80 |
+ |
81 |
+src_configure() { |
82 |
+ echo "${ED}/usr/bin" > conf-bin || die |
83 |
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die |
84 |
+ echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS} -L${EPREFIX}/usr/$(get_libdir)/bglibs" > conf-ld || die |
85 |
+ echo "${ED}/usr/share/man" > conf-man || die |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ default |
90 |
+ |
91 |
+ docrontab bcrontab |
92 |
+ docrondir -o cron -g cron |
93 |
+ docrondir /var/spool/cron/tmp -o cron -g cron |
94 |
+ |
95 |
+ keepdir /etc/cron.d |
96 |
+ dodir /etc/bcron |
97 |
+ insinto /etc |
98 |
+ doins "${FILESDIR}"/crontab |
99 |
+ |
100 |
+ insinto /var/lib/supervise/bcron |
101 |
+ doins bcron-sched.run |
102 |
+ |
103 |
+ insinto /var/lib/supervise/bcron/log |
104 |
+ doins bcron-sched-log.run |
105 |
+ |
106 |
+ insinto /var/lib/supervise/bcron-spool |
107 |
+ doins bcron-spool.run |
108 |
+ |
109 |
+ insinto /var/lib/supervise/bcron-update |
110 |
+ doins bcron-update.run |
111 |
+ |
112 |
+ doman bcrontab.1 crontab.5 bcron-update.8 bcron-start.8 |
113 |
+ doman bcron-spool.8 bcron-sched.8 bcron-exec.8 |
114 |
+ dodoc ANNOUNCEMENT NEWS README TODO |
115 |
+} |
116 |
+ |
117 |
+pkg_config() { |
118 |
+ cd "${EROOT}"/var/lib/supervise/bcron || die |
119 |
+ [[ -e run ]] && ( cp run bcron-sched.run.`date +%Y%m%d%H%M%S` || die ) |
120 |
+ cp bcron-sched.run run || die |
121 |
+ chmod u+x run || die |
122 |
+ |
123 |
+ cd "${EROOT}"/var/lib/supervise/bcron/log || die |
124 |
+ [[ -e run ]] && ( cp run bcron-sched-log.run.`date +%Y%m%d%H%M%S` || die ) |
125 |
+ cp bcron-sched-log.run run || die |
126 |
+ chmod u+x run || die |
127 |
+ |
128 |
+ cd "${EROOT}"/var/lib/supervise/bcron-spool || die |
129 |
+ [[ -e run ]] && ( cp run bcron-spool.run.`date +%Y%m%d%H%M%S` || die ) |
130 |
+ cp bcron-spool.run run || die |
131 |
+ chmod u+x run || die |
132 |
+ |
133 |
+ cd "${EROOT}"/var/lib/supervise/bcron-update || die |
134 |
+ [[ -e run ]] && ( cp run bcron-update.run.`date +%Y%m%d%H%M%S` || die ) |
135 |
+ cp bcron-update.run run || die |
136 |
+ chmod u+x run || die |
137 |
+ |
138 |
+ [[ ! -e "${EROOT}"/var/spool/cron/trigger ]] && ( mkfifo "${EROOT}"/var/spool/cron/trigger || die ) |
139 |
+ chown cron:cron "${EROOT}"/var/spool/cron/trigger || die |
140 |
+ chmod go-rwx "${EROOT}"/var/spool/cron/trigger || die |
141 |
+} |
142 |
+ |
143 |
+pkg_postinst() { |
144 |
+ elog "Run " |
145 |
+ elog "emerge --config '=${CATEGORY}/${PF}'" |
146 |
+ elog "to create or update your run files (backups are created) in" |
147 |
+ elog " /var/lib/supervise/bcron (bcron daemon) and" |
148 |
+ elog " /var/lib/supervise/bcron-spool (crontab receiver) and" |
149 |
+ elog " /var/lib/supervise/bcron-update (system crontab updater)" |
150 |
+ |
151 |
+ cron_pkg_postinst |
152 |
+} |