Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403295 - sys-process/cronie install contrib files
Summary: sys-process/cronie install contrib files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-12 15:54 UTC by Florian Steinel
Modified: 2012-02-13 17:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cronie-1.4.8.ebuild (cronie-1.4.8.ebuild,1.49 KB, text/plain)
2012-02-12 15:56 UTC, Florian Steinel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Steinel 2012-02-12 15:54:44 UTC
- new use flag anacron
- dont't install empty NEWS file
- install contrib file
- install /etc/conf.d/cronie

--- cronie-1.4.8.ebuild.orig    2011-10-28 00:42:32.000000000 +0200
+++ cronie-1.4.8.ebuild 2012-02-12 16:52:35.270090163 +0100
@@ -12,9 +12,10 @@ HOMEPAGE="https://fedorahosted.org/croni

 LICENSE="ISC BSD BSD-2"
 KEYWORDS="amd64 ~arm ~sparc x86"
-IUSE="inotify pam"
+IUSE="inotify pam anacron"

-DEPEND="pam? ( virtual/pam )"
+DEPEND="pam? ( virtual/pam )
+       anacron? ( !sys-process/anacron )"
 RDEPEND="${DEPEND}"

 #cronie supports /etc/crontab
@@ -28,6 +29,7 @@ src_configure() {
        SPOOL_DIR="/var/spool/cron/crontabs" econf \
                $(use_with inotify ) \
                $(use_with pam ) \
+               $(use_enable anacron ) \
                --with-daemon_username=cron \
                --with-daemon_groupname=cron \
                || die "econf failed"
@@ -40,6 +42,11 @@ src_install() {
        fowners root:crontab /usr/bin/crontab
        fperms 2751 /usr/bin/crontab

+       use anacron && keepdir /var/spool/anacron
+
+       insinto /etc/conf.d
+       newins crond.sysconfig
+
        insinto /etc
        newins "${FILESDIR}/${PN}-1.2-crontab" crontab
        newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny
@@ -48,7 +55,8 @@ src_install() {
        newinitd "${FILESDIR}/${PN}-1.2-initd" cronie
        newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond

-       dodoc NEWS AUTHORS README
+       dodoc contrib/*
+       dodoc AUTHORS README
 }

 pkg_postinst() {

Reproducible: Always
Comment 1 Florian Steinel 2012-02-12 15:56:07 UTC
Created attachment 301661 [details]
cronie-1.4.8.ebuild
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-02-13 17:33:25 UTC
+*cronie-1.4.8-r1 (13 Feb 2012)
+
+  13 Feb 2012; Lars Wendler <polynomial-c@gentoo.org> +files/anacron-1.0-initd,
+  +files/cronie-1.3-initd, -cronie-1.4.4-r1.ebuild, -cronie-1.4.6.ebuild,
+  +cronie-1.4.8-r1.ebuild:
+  Added anacron functionality and conf.d file. Thanks to Florian Steinel for
+  providing an ebuild patch in bug #403295. Reworked init script.
+