diff options
author | Richard Freeman <rich0@gentoo.org> | 2015-07-18 15:48:56 +0000 |
---|---|---|
committer | Richard Freeman <rich0@gentoo.org> | 2015-07-18 15:48:56 +0000 |
commit | 97e3d1746ae98b370ff5e3fd6bfffac4eb5cfe07 (patch) | |
tree | ae5fe4fb2fa55b8bce09fbb47f9c9c7ad1cd1748 /sys-process | |
parent | Introduce sys-process/systemd-cron. Thanks to Lara Maia and others for mainta... (diff) | |
download | historical-97e3d1746ae98b370ff5e3fd6bfffac4eb5cfe07.tar.gz historical-97e3d1746ae98b370ff5e3fd6bfffac4eb5cfe07.tar.bz2 historical-97e3d1746ae98b370ff5e3fd6bfffac4eb5cfe07.zip |
Introduce sys-process/systemd-cron. Thanks to Lara Maia and others for maintaining this outside of the tree until now.
Package-Manager: portage-2.2.20/cvs/Linux x86_64
Manifest-Sign-Key: 0x100565AB52446CB4
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/systemd-cron/Manifest | 24 | ||||
-rw-r--r-- | sys-process/systemd-cron/metadata.xml | 14 | ||||
-rw-r--r-- | sys-process/systemd-cron/systemd-cron-1.5.3.ebuild | 73 |
3 files changed, 109 insertions, 2 deletions
diff --git a/sys-process/systemd-cron/Manifest b/sys-process/systemd-cron/Manifest index 6d63dba02e7d..9545d5cf3654 100644 --- a/sys-process/systemd-cron/Manifest +++ b/sys-process/systemd-cron/Manifest @@ -1,4 +1,24 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + DIST v1.5.3.tar.gz 29105 SHA256 3623b625938e1dc45ea3b7abf6eab35180c73eddf7865f4297cc5f38c8e09aca SHA512 ea0241f93b8d92497fa020d84630ee153dc299d9b16b17567784a4dcb5ddf0a4589e7e033428562a862218ef79b192245178df2d7dcc69f779ef9156921674c7 WHIRLPOOL 51a148f780397b79d5988fb729061318c38afd2c096bf2eb4d62e340db2753f9268be11ca54974a7480d83b424cf9638961c713d843ef2ffaea1b1fe234ba539 -EBUILD systemd-cron-1.5.3.ebuild 1869 SHA256 2b986ec64d407d97a8552fadfda8171092ea802ab7e74b39d734ef9aa020c01b SHA512 20abf3fbda022a98277b34f442a491c9493bbb383d641658412b2786a7a7a0aae958d24383998686d36eff038307c6789145d5cb3306fd85723c1b2b4426aa0d WHIRLPOOL 18ec4240061c97e72bc85194c87b51f4079273fe0bc952a3a3a9a1331d968fd1cdcd80b0810314ffd001a1eb212b5c12e21a0692349634d056c36833a0b49bca -MISC ChangeLog 379 SHA256 5a4f31d9445a29acbbc77c5b79479c499aaaef5c3483003532898fc989958c98 SHA512 33b00e0147289d5af05921ce6720d4a316c64e554c4ed66d65ba7898394f9b5cd633fea547fd4ac88ef3ffc332d90c48f81d93a2e981c815b8ba4f362f4d8fb8 WHIRLPOOL 57503f002cdacd2ad81bfe11fe3b0e4beb86463b0ebed027d0c6f2910ae2f3ef223b400af7149df6751436244999ecae5eab39fb8a97192dfdfe2efd8a61a35a +EBUILD systemd-cron-1.5.3.ebuild 1980 SHA256 5d0e4704237fea82ac1840c664c6291b1bd80932a24ab2925da06ee1b89dd1f0 SHA512 ad9fb943a7d5c134cc17ff37a7fa9aef87f77cba56e3548488fb4dd815ab5756a3f8f579380d12ceb758b9a488128d15f75e46e1b60d4483db248b5627640d90 WHIRLPOOL e8d0fd4d00c9acbbfe3c651341d328a7785e45ae1c954e1032597360913722f22c2514e380e11019c759ac9773c62caf8f5d0bedaa5b526f270d7335aafd4c63 +MISC ChangeLog 474 SHA256 73d821c2a547cabb46b870ef860d8378905b5ef685f76d084205bc6baea73506 SHA512 ad13bf0c14c7170fa6e8ff3ec87fe611481ec038354713e382fa279d72643a384a9f42e4067e61d8bdbda48468031296df8a7e98fd4d9ff81d19ad3d55031dab WHIRLPOOL f9bc95db22bed10539c158777f844d81cd88754a6b1883063e2b4a917b982807a0550a2d3146b5db7ab4affeb89b46cd65f8efa41858c3df96479fba2d795b82 MISC metadata.xml 585 SHA256 ff0e93de5e3227f1ce69da122a63e5530566cc60dde95f217cd35be2d197ab9f SHA512 93331f09741a3d3ee343806628e335920f0150fe98b2f51bbfe584fc58aa68763655e31b98462922332b0cb32b86181c1954cfb0c68dae1a70eac659c8f5aa5b WHIRLPOOL 3d7d055b5c5a40ccd538a4ea4975b84a0de6222456e82b5aa7dfc99357b25c369ae54f2d5298136cf6c5d3d96e841841b72f16f022d936ec6c786295ef7b78e8 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAEBCAAGBQJVqnVkAAoJEPnrMGeMBPQUhCgP/i7bZjfwsxq0B43LQ48XUSgX +xLeI0InpehjmwF5nf0Z5jra1TJQOlZe3DY2Xsk6WMbhAtF2KDdPqmMCHrHwTZjIF +jTz+WM79soVaidVXEd2Nf8afKCsCF/aqqXMacexAkTfFsvdT26vlbBNdPE703RhP +YPi7ILFh6nB+qh5BfLJ74gCdPy7MXeGOSX0JZnvQpHyVrLZyFNbBBj3QxjdVT+3o +IPOfe9TJbyaq8eU3c/JS4yeg51PRUAayGQwn10gQ6UOAdNuUBLcOyZ2j+A2SglBq +haKfP32PLhdL6HKJ/ZlAoW1yXgl6e3Q5UaGGgkitv8RR7Ayv5oCtbnp1TWUy1rg9 +vvh18m7B9xbrTmwx+qgzUhyd0lZ3unhrYd9SE+Jw8Qa5zs624sZCdQoqdEbvOquj +kdno9SzcGjv6JH0iQwuKW56j0okq6vjz5qJ3+f7mc4MLvVS+SGAcGF1jF2iI0pH8 +GlcOPT/VZFbgoWHVhcgfeIH6QOvWObNqVwegPg2tDdS9U077jfmDb7ghlXIyp+CS +WT3lM9MpEoNQ0ksFFg65Psj+oJ9CVB/pyfzBJA9hQWATwKHjXqB4DXf2goXSOvE4 +69N0f5MPxJAmxbzsP1KtSO2aHFZoqUpaD4GGiIWrexLoYMB/kn+U7vWgK3RqZrCc +hfMRNcaBPz25F9dzDTHb +=ctUX +-----END PGP SIGNATURE----- diff --git a/sys-process/systemd-cron/metadata.xml b/sys-process/systemd-cron/metadata.xml new file mode 100644 index 000000000000..862b08239949 --- /dev/null +++ b/sys-process/systemd-cron/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>rich0@gentoo.org</email> +</maintainer> +<use> + <flag name="cron-boot">Include support for the boot timer.</flag> + <flag name="etc-crontab-systemd">Use dedicated /etc/crontab-systemd instead of parsing /etc/crontab</flag> + <flag name="minutely">Support /etc/cron.minutely</flag> + <flag name="yearly">Support /etc/cron.yearly</flag> + <flag name="setgid">Compile setgid C helper for crontab. Needs GCC or Clang.</flag> +</use> +</pkgmetadata> diff --git a/sys-process/systemd-cron/systemd-cron-1.5.3.ebuild b/sys-process/systemd-cron/systemd-cron-1.5.3.ebuild new file mode 100644 index 000000000000..90477653f0c1 --- /dev/null +++ b/sys-process/systemd-cron/systemd-cron-1.5.3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/systemd-cron/systemd-cron-1.5.3.ebuild,v 1.1 2015/07/18 15:48:50 rich0 Exp $ + +EAPI=5 +PYTHON_COMPAT=( pypy3 python{3_3,3_4} ) +inherit eutils python-single-r1 systemd + +DESCRIPTION="systemd units to provide minimal cron daemon functionality by running scripts in cron directories" +HOMEPAGE="https://github.com/systemd-cron/systemd-cron/" +SRC_URI="https://github.com/systemd-cron/${PN}/archive/v${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cron-boot etc-crontab-systemd minutely setgid yearly" + +RDEPEND=">=sys-apps/systemd-217 + sys-apps/debianutils + !etc-crontab-systemd? ( !sys-process/dcron ) + ${PYTHON_DEPS} + sys-process/cronbase" + +DEPEND="sys-process/cronbase" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + python_fix_shebang --force "${S}/src/bin" + + sed -i \ + -e 's/^crontab/crontab-systemd/' \ + -e 's/^CRONTAB/CRONTAB-SYSTEMD/' \ + -- "${S}/src/man/crontab."{1,5}".in" || die + + sed -i \ + -e 's!/crontab$!/crontab-systemd!' \ + -e 's!/crontab\(\.[15]\)$!/crontab-systemd\1!' \ + -- "${S}/Makefile.in" || die + + if use etc-crontab-systemd + then sed -i \ + -e "s!/etc/crontab!/etc/crontab-systemd!" \ + -- "${S}/src/man/crontab."{1,5}".in" \ + "${S}/src/bin/systemd-crontab-generator.py" || die + fi + + epatch_user +} + +my_use_enable() { + if use ${1}; then + echo --enable-${2:-${1}}=yes + else + echo --enable-${2:-${1}}=no + fi +} + +src_configure() { + ./configure \ + --prefix="${EPREFIX}/usr" \ + --confdir="${EPREFIX}/etc" \ + --runparts="${EPREFIX}/bin/run-parts" \ + --mandir="${EPREFIX}/usr/share/man" \ + --unitdir="$(systemd_get_unitdir)" \ + $(my_use_enable cron-boot boot) \ + $(my_use_enable minutely) \ + $(my_use_enable yearly) \ + $(my_use_enable yearly quarterly) \ + $(my_use_enable yearly semi_annually) \ + $(my_use_enable setgid) \ + --enable-persistent=yes +} |