From 575934ff449e9d1f1f8ce00e8b40f6f19760c86f Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Mon, 22 Dec 2014 11:35:11 +0100 Subject: Bump systemd-cron --- sys-process/systemd-cron/ChangeLog | 5 ++ sys-process/systemd-cron/Manifest | 2 +- sys-process/systemd-cron/systemd-cron-1.5.1.ebuild | 80 ---------------------- sys-process/systemd-cron/systemd-cron-1.5.2.ebuild | 72 +++++++++++++++++++ 4 files changed, 78 insertions(+), 81 deletions(-) delete mode 100644 sys-process/systemd-cron/systemd-cron-1.5.1.ebuild create mode 100644 sys-process/systemd-cron/systemd-cron-1.5.2.ebuild diff --git a/sys-process/systemd-cron/ChangeLog b/sys-process/systemd-cron/ChangeLog index 4f075f04..ff168669 100644 --- a/sys-process/systemd-cron/ChangeLog +++ b/sys-process/systemd-cron/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*systemd-cron-1.5.2 (22 Dec 2014) + + 12 Dec 2014; Martin Väth : + Version bump, remove old ebuild + *systemd-cron-1.5.1 (14 Dec 2014) 12 Dec 2014; Martin Väth : diff --git a/sys-process/systemd-cron/Manifest b/sys-process/systemd-cron/Manifest index 236a055a..81396b9c 100644 --- a/sys-process/systemd-cron/Manifest +++ b/sys-process/systemd-cron/Manifest @@ -1 +1 @@ -DIST systemd-cron-1.5.1.tar.gz 25085 SHA256 f3280353df4cb550f9eef9518b60d2c3f7b18bef4c93a797fdf2047c8defafb7 SHA512 5bae12d0104ef577fe2010efb05ade3d752c1aaf3d40ec62862343f529970ef92fb5e7a1494b3a6e6748c1b276ab43d256f5ecde03a031c987fbe8579dc8f5d9 WHIRLPOOL 6f778e2fe1f971f8dacad27c09c07a7db8d12f12b5ab3f127d49545233cb7b2ebc20dcffe30710a82e3bd4dceb7bc49ba10ac2772c076d858fffc9075c8fb992 +DIST systemd-cron-1.5.2.tar.gz 25516 SHA256 43d9c0c9b891f4a55be2cc049f9954e5fdbdbc44d3ecb9c1a3230b55267a6588 SHA512 93b2be9e0924c17484c728cd787bec58c013db9f0657479331a35cc5e2c5967e04b70c3e20d033ba3695d00a9b661fa32bde93633cabe7c0dffc83d672851262 WHIRLPOOL d380edcd701abc0837a4685fad6ab7360942054103e7f0f0877dda6ff26379c7f8a6511e9f75b7dbab7dabf68403b1d11a8b7cae62ac59ec45f974bc424c2fa0 diff --git a/sys-process/systemd-cron/systemd-cron-1.5.1.ebuild b/sys-process/systemd-cron/systemd-cron-1.5.1.ebuild deleted file mode 100644 index 4122cc65..00000000 --- a/sys-process/systemd-cron/systemd-cron-1.5.1.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 -RESTRICT="mirror" -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 -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="cron-boot +etc-crontab minutely setgid yearly" - -COMMON_DEPEND="sys-process/cronbase" -RDEPEND=">=sys-apps/systemd-217 - sys-apps/debianutils - ${COMMON_DEPEND}" -DEPEND="${COMMON_DEPEND}" - -src_prepare() { - python_setup - python_fix_shebang --force "${S}/src/bin" - mv "${S}/src/man/crontab"{,-systemd}".1.in" || die - mv "${S}/src/man/crontab"{,-systemd}".5.in" || die - sed -i \ - -e 's/^crontab/crontab-systemd/' \ - -e 's/^CRONTAB/CRONTAB-SYSTEMD/' \ - "${S}/src/man/crontab-systemd."{1,5}".in" || die - sed -i \ - -e 's!/crontab$!/crontab-systemd!' \ - -e 's!/crontab\(\.[15]\)!/crontab-systemd\1!' \ - -e 's/\([: ]\)crontab/\1cron/' \ - "${S}/Makefile.in" || die - use etc-crontab || sed -i \ - -e "s!/etc/crontab!/dev/null!" \ - "${S}/src/bin/systemd-crontab-generator.py" || die - 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 -} - -src_install() { - dodir "$(systemd_get_unitdir)" /usr/share/man/man{1,5,7,8} - default -} - -pkg_postinst() { - if use etc-crontab && { - has_version sys-process/dcron || ! has_version virtual/cron - } - then ewarn "sys-process/systemd-cron[etc-crontab] does not work with the /etc/crontab" - ewarn "installed by sys-process/dcron" - fi -} diff --git a/sys-process/systemd-cron/systemd-cron-1.5.2.ebuild b/sys-process/systemd-cron/systemd-cron-1.5.2.ebuild new file mode 100644 index 00000000..695f1fc1 --- /dev/null +++ b/sys-process/systemd-cron/systemd-cron-1.5.2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +RESTRICT="mirror" +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 -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cron-boot +etc-crontab minutely setgid yearly" + +COMMON_DEPEND="sys-process/cronbase" +RDEPEND=">=sys-apps/systemd-217 + sys-apps/debianutils + ${COMMON_DEPEND}" +DEPEND="${COMMON_DEPEND}" + +src_prepare() { + python_setup + 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 + use etc-crontab || sed -i \ + -e "s!/etc/crontab!/dev/null!" \ + "${S}/src/bin/systemd-crontab-generator.py" || die + 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 +} + +pkg_postinst() { + if use etc-crontab && { + has_version sys-process/dcron || ! has_version virtual/cron + } + then ewarn "sys-process/systemd-cron[etc-crontab] does not work with the /etc/crontab" + ewarn "installed by sys-process/dcron" + fi +} -- cgit v1.2.3-65-gdbad