Gentoo Archives: gentoo-commits

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