1 |
commit: 2919bd92a88850f39364f67a905bc02610361c00 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 9 18:21:41 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 9 18:22:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2919bd92 |
7 |
|
8 |
sys-process/systemd-cron: bump to 1.5.12 |
9 |
|
10 |
Fixes rootprefix issues. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/625400 |
13 |
Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7 |
14 |
|
15 |
sys-process/systemd-cron/Manifest | 1 + |
16 |
.../systemd-cron/systemd-cron-1.5.12.ebuild | 75 ++++++++++++++++++++++ |
17 |
2 files changed, 76 insertions(+) |
18 |
|
19 |
diff --git a/sys-process/systemd-cron/Manifest b/sys-process/systemd-cron/Manifest |
20 |
index 8a912e0b25a..c18c8f04b7f 100644 |
21 |
--- a/sys-process/systemd-cron/Manifest |
22 |
+++ b/sys-process/systemd-cron/Manifest |
23 |
@@ -1,3 +1,4 @@ |
24 |
DIST systemd-cron-1.5.10.tar.gz 31191 BLAKE2B c58a0cfec82534baf3daba6f706d054347f3bc5a2d272eb003228b48fc58c9df61ed2045526403295aed3edc9a0c84eaa589c5aea66562bf35d531b4f5ffacd7 SHA512 9a4bbf78c81adf74e589cd9431b5742d5dab63b0346a2330403a7e24bdab62833096445d9fd3e5f6a91f722b3f8176e52734dcc5e2ee0ec23b555e6d01805094 |
25 |
+DIST systemd-cron-1.5.12.tar.gz 31417 BLAKE2B d0776d2c4aa2d86289dd8ab5dade47f083ee7abc16f54c9527130f587049064d6100eaccd4a3a0a461d21ac8286910d3cb0590db14ea1d3a32e591b7ede0a59e SHA512 6f85cef0870cde5ff6b397fb640a30a8a567e09e3cac48456498f1f102395f12f174731ca9cc8e826bb6c49a0d3a6dd49a9aec63e7b75648b7dccfaa499dcea4 |
26 |
DIST systemd-cron-1.5.3.tar.gz 29105 BLAKE2B c7c95df9be0383aa39a8525d3a5179a04ef1edc77d6c0e34095eb0fe26045c139e4d0c340d6999405baa99d00181cc6c2fb14d87ad401a685aaf3ad7adb5e006 SHA512 ea0241f93b8d92497fa020d84630ee153dc299d9b16b17567784a4dcb5ddf0a4589e7e033428562a862218ef79b192245178df2d7dcc69f779ef9156921674c7 |
27 |
DIST systemd-cron-1.5.4.tar.gz 30436 BLAKE2B 5ce72e30e68cafbf812690704de4841d0436a97e6a9df12802374a0ef7fe2af4294310e4c14c68d5aa2508c9664402c17dcacb7b6a637f7b83853d97c78c557f SHA512 e6fe60de9d6cbc223b8358bd6b1a060e11f1ea16a8f0b24662914ddb18d827f7b4c62fd40dbefed3d0ac38b1e748998ec5e0430d4ea751e8a20b94b9803bcb89 |
28 |
|
29 |
diff --git a/sys-process/systemd-cron/systemd-cron-1.5.12.ebuild b/sys-process/systemd-cron/systemd-cron-1.5.12.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..f3b6cfa0938 |
32 |
--- /dev/null |
33 |
+++ b/sys-process/systemd-cron/systemd-cron-1.5.12.ebuild |
34 |
@@ -0,0 +1,75 @@ |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=5 |
39 |
+PYTHON_COMPAT=( pypy3 python3_{4,5,6} ) |
40 |
+inherit eutils python-single-r1 systemd |
41 |
+ |
42 |
+DESCRIPTION="systemd units to create timers for cron directories and crontab" |
43 |
+HOMEPAGE="https://github.com/systemd-cron/systemd-cron/" |
44 |
+SRC_URI="https://github.com/systemd-cron/${PN}/archive/v${PV}.tar.gz -> systemd-cron-${PV}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="cron-boot etc-crontab-systemd minutely setgid test yearly" |
50 |
+ |
51 |
+RDEPEND=">=sys-apps/systemd-217 |
52 |
+ sys-apps/debianutils |
53 |
+ !etc-crontab-systemd? ( !sys-process/dcron ) |
54 |
+ ${PYTHON_DEPS} |
55 |
+ sys-process/cronbase" |
56 |
+ |
57 |
+DEPEND="sys-process/cronbase |
58 |
+ test? ( sys-apps/man-db dev-python/pyflakes )" |
59 |
+ |
60 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ python_fix_shebang --force "${S}/src/bin" |
64 |
+ |
65 |
+ sed -i \ |
66 |
+ -e 's/^crontab/crontab-systemd/' \ |
67 |
+ -e 's/^CRONTAB/CRONTAB-SYSTEMD/' \ |
68 |
+ -- "${S}/src/man/crontab."{1,5}".in" || die |
69 |
+ |
70 |
+ sed -i \ |
71 |
+ -e 's!/crontab$!/crontab-systemd!' \ |
72 |
+ -e 's!/crontab\(\.[15]\)$!/crontab-systemd\1!' \ |
73 |
+ -e 's/pyflakes3/pyflakes/' \ |
74 |
+ -- "${S}/Makefile.in" || die |
75 |
+ |
76 |
+ if use etc-crontab-systemd |
77 |
+ then sed -i \ |
78 |
+ -e "s!/etc/crontab!/etc/crontab-systemd!" \ |
79 |
+ -- "${S}/src/man/crontab."{1,5}".in" \ |
80 |
+ "${S}/src/bin/systemd-crontab-generator.py" || die |
81 |
+ fi |
82 |
+ |
83 |
+ epatch_user |
84 |
+} |
85 |
+ |
86 |
+my_use_enable() { |
87 |
+ if use ${1}; then |
88 |
+ echo --enable-${2:-${1}}=yes |
89 |
+ else |
90 |
+ echo --enable-${2:-${1}}=no |
91 |
+ fi |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ ./configure \ |
96 |
+ --prefix="${EPREFIX}/usr" \ |
97 |
+ --confdir="${EPREFIX}/etc" \ |
98 |
+ --runparts="${EPREFIX}/bin/run-parts" \ |
99 |
+ --mandir="${EPREFIX}/usr/share/man" \ |
100 |
+ --unitdir="$(systemd_get_unitdir)" \ |
101 |
+ --generatordir="$(systemd_get_systemgeneratordir)" \ |
102 |
+ $(my_use_enable cron-boot boot) \ |
103 |
+ $(my_use_enable minutely) \ |
104 |
+ $(my_use_enable yearly) \ |
105 |
+ $(my_use_enable yearly quarterly) \ |
106 |
+ $(my_use_enable yearly semi_annually) \ |
107 |
+ $(my_use_enable setgid) \ |
108 |
+ --enable-persistent=yes |
109 |
+} |