summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Freeman <rich0@gentoo.org>2015-07-18 15:48:50 +0000
committerRichard Freeman <rich0@gentoo.org>2015-07-18 15:48:50 +0000
commit9540db8fa5770570cd51419c0ea4865d73510688 (patch)
treebd3a145f67524ddf4111f71f9759a75dfa8598e3 /sys-process
parentMask sys-process/systemd-cron. (diff)
downloadgentoo-2-9540db8fa5770570cd51419c0ea4865d73510688.tar.gz
gentoo-2-9540db8fa5770570cd51419c0ea4865d73510688.tar.bz2
gentoo-2-9540db8fa5770570cd51419c0ea4865d73510688.zip
Introduce sys-process/systemd-cron. Thanks to Lara Maia and others for maintaining this outside of the tree until now.
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 100565AB52446CB4)
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/systemd-cron/ChangeLog11
-rw-r--r--sys-process/systemd-cron/Manifest4
-rw-r--r--sys-process/systemd-cron/metadata.xml14
-rw-r--r--sys-process/systemd-cron/systemd-cron-1.5.3.ebuild73
4 files changed, 102 insertions, 0 deletions
diff --git a/sys-process/systemd-cron/ChangeLog b/sys-process/systemd-cron/ChangeLog
new file mode 100644
index 000000000000..b092eaeb3208
--- /dev/null
+++ b/sys-process/systemd-cron/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-process/systemd-cron
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/systemd-cron/ChangeLog,v 1.1 2015/07/18 15:48:50 rich0 Exp $
+
+*systemd-cron-1.5.3 (18 Jul 2015)
+
+ 18 Jul 2015; Richard Freeman <rich0@gentoo.org> +systemd-cron-1.5.3.ebuild,
+ +metadata.xml:
+ Introduce sys-process/systemd-cron. Thanks to Lara Maia and others for
+ maintaining this outside of the tree until now.
+
diff --git a/sys-process/systemd-cron/Manifest b/sys-process/systemd-cron/Manifest
new file mode 100644
index 000000000000..6d63dba02e7d
--- /dev/null
+++ b/sys-process/systemd-cron/Manifest
@@ -0,0 +1,4 @@
+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
+MISC metadata.xml 585 SHA256 ff0e93de5e3227f1ce69da122a63e5530566cc60dde95f217cd35be2d197ab9f SHA512 93331f09741a3d3ee343806628e335920f0150fe98b2f51bbfe584fc58aa68763655e31b98462922332b0cb32b86181c1954cfb0c68dae1a70eac659c8f5aa5b WHIRLPOOL 3d7d055b5c5a40ccd538a4ea4975b84a0de6222456e82b5aa7dfc99357b25c369ae54f2d5298136cf6c5d3d96e841841b72f16f022d936ec6c786295ef7b78e8
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
+}