diff options
author | Thilo Bangert <bangert@gentoo.org> | 2009-02-17 22:09:35 +0000 |
---|---|---|
committer | Thilo Bangert <bangert@gentoo.org> | 2009-02-17 22:09:35 +0000 |
commit | b00a818e18b38c514d3a313ab6fffe48e0e7087a (patch) | |
tree | ea9fe85548096f9b5963432b21bd03bc510b509b /sys-process | |
parent | r1 version that should fix a few currently open bugs (diff) | |
download | historical-b00a818e18b38c514d3a313ab6fffe48e0e7087a.tar.gz historical-b00a818e18b38c514d3a313ab6fffe48e0e7087a.tar.bz2 historical-b00a818e18b38c514d3a313ab6fffe48e0e7087a.zip |
cronie - a vixie-cron fork by the fedora people
Package-Manager: portage-2.2_rc20/cvs/Linux 2.6.28-gentoo i686
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/cronie/ChangeLog | 13 | ||||
-rw-r--r-- | sys-process/cronie/Manifest | 8 | ||||
-rw-r--r-- | sys-process/cronie/cronie-1.2.ebuild | 55 | ||||
-rw-r--r-- | sys-process/cronie/files/cronie-1.2-cron.deny | 5 | ||||
-rw-r--r-- | sys-process/cronie/files/cronie-1.2-crontab | 18 | ||||
-rwxr-xr-x | sys-process/cronie/files/cronie-1.2-initd | 22 | ||||
-rw-r--r-- | sys-process/cronie/files/cronie-1.2-pathnames.h-fix-SPOOL_DIR.patch | 11 | ||||
-rw-r--r-- | sys-process/cronie/metadata.xml | 19 |
8 files changed, 151 insertions, 0 deletions
diff --git a/sys-process/cronie/ChangeLog b/sys-process/cronie/ChangeLog new file mode 100644 index 000000000000..cfd0221334fc --- /dev/null +++ b/sys-process/cronie/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for sys-process/cronie +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/ChangeLog,v 1.1 2009/02/17 22:09:35 bangert Exp $ + +*cronie-1.2 (17 Feb 2009) + + 17 Feb 2009; Thilo Bangert <bangert@gentoo.org> + +files/cronie-1.2-cron.deny, +files/cronie-1.2-crontab, + +files/cronie-1.2-initd, + +files/cronie-1.2-pathnames.h-fix-SPOOL_DIR.patch, +metadata.xml, + +cronie-1.2.ebuild: + cronie - a vixie-cron fork by the fedora people + diff --git a/sys-process/cronie/Manifest b/sys-process/cronie/Manifest new file mode 100644 index 000000000000..cb533cc9a562 --- /dev/null +++ b/sys-process/cronie/Manifest @@ -0,0 +1,8 @@ +AUX cronie-1.2-cron.deny 216 RMD160 768f5ecd49ad62568e0e6924b2436423b6b415d0 SHA1 e5c64f18d907e27e0590e7889c5a11c6f4c4aa6b SHA256 4a857b2c58bb10d4aefbdd7d4a41710456a8cc27774c365e361ca5271128e0b8 +AUX cronie-1.2-crontab 614 RMD160 65a4db897dc1e563c0ebfdc33dcdbbd6645d3de8 SHA1 150b834b570498b4ef59bb3fad66fc30791bd291 SHA256 14d9a85302bedddd267b91877f79fce9614e98dde91cf0b7a6b3d90e0daa92a6 +AUX cronie-1.2-initd 522 RMD160 7bb3c6e1824b59bfd95e79eb3f04083f6865da18 SHA1 177b9de44154590b2f2e49db8d753e50ef8c7705 SHA256 a2ae854440229bc79112f378de93312a9b4784eaef7c3c8e11512f783f0d66b3 +AUX cronie-1.2-pathnames.h-fix-SPOOL_DIR.patch 404 RMD160 f4a3663ede830b04e9511fdf49c3e92239ce361d SHA1 e27ad3741cf46ffc81116f0ce88339bfe17ed4a6 SHA256 08ae523246c464b7d58f778dd1d690fbd4ae0214fe85f618a84f1c57679fd5f0 +DIST cronie-1.2.tar.gz 169323 RMD160 a1e0455dab61846288753572ca3489650cf7b3be SHA1 efe291aec190b211f7a4cc50707a6cbb873c79d1 SHA256 261280d0143f39643c1e4c6e1fcffc875c35ca6690e20dac99ef5da93ea9616e +EBUILD cronie-1.2.ebuild 1317 RMD160 b40cc860349b87b6e061fd0b117375b1d093aee0 SHA1 edff2e3efeb159b143a4c8fbff2eca542fd6f470 SHA256 418aed950e64cc05cd9b006d44db1d2c1bcd2779bde9a692648dcfdb94289ca6 +MISC ChangeLog 513 RMD160 3bdd12c63fc1636758bf78df6d8b2c7d6c73fc15 SHA1 4a51e34133f1993be0279daf50978d9f82a7ee34 SHA256 3ebf253c908693d8d49521f7cafc6c5b8351a491f7f87a0d06319c28b012b664 +MISC metadata.xml 863 RMD160 fee6b5d78ce004bc6f49637750bce22e40e48e7e SHA1 4a780ebb7ecb4a90161bc911cbd95f67e48b3b0c SHA256 21553d285c1a0573e79a66747e5c62d13148181832d2180880bb2cbf69c08fd5 diff --git a/sys-process/cronie/cronie-1.2.ebuild b/sys-process/cronie/cronie-1.2.ebuild new file mode 100644 index 000000000000..d99a22ddffa8 --- /dev/null +++ b/sys-process/cronie/cronie-1.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/cronie-1.2.ebuild,v 1.1 2009/02/17 22:09:35 bangert Exp $ + +inherit cron eutils + +DESCRIPTION="Cronie is a standard UNIX daemon cron based on the original vixie-cron." +SRC_URI="https://fedorahosted.org/releases/c/r/cronie/${P}.tar.gz" +HOMEPAGE="https://fedorahosted.org/cronie/wiki" + +LICENSE="as-is BSD BSD-2" +KEYWORDS="~x86" +IUSE="inotify pam" + +DEPEND="pam? ( virtual/pam )" + +#cronie supports /etc/crontab +CRON_SYSTEM_CRONTAB="yes" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-pathnames.h-fix-SPOOL_DIR.patch" +} + +src_compile() { + econf \ + $(use_with inotify ) \ + $(use_with pam ) \ + --with-daemon_username=cron \ + --with-daemon_groupname=cron \ + --with-crontabdir=/var/spool/cron/crontabs \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + make install DESTDIR="${D}" || die "install failed" + + docrondir + fowners root:cron /usr/bin/crontab + fperms 2750 /usr/bin/crontab + + insinto /etc + newins "${FILESDIR}/${P}-crontab" crontab + newins "${FILESDIR}/${P}-cron.deny" cron.deny + + keepdir /etc/cron.d + newinitd "${FILESDIR}/${P}-initd" cronie + dodoc NEWS AUTHORS README +} + +pkg_postinst() { + cron_pkg_postinst +} diff --git a/sys-process/cronie/files/cronie-1.2-cron.deny b/sys-process/cronie/files/cronie-1.2-cron.deny new file mode 100644 index 000000000000..f909922dea25 --- /dev/null +++ b/sys-process/cronie/files/cronie-1.2-cron.deny @@ -0,0 +1,5 @@ +# $Id: cronie-1.2-cron.deny,v 1.1 2009/02/17 22:09:35 bangert Exp $ +# If for any reason you have users in the 'cron' group who should not +# be allowed to run crontab, add them to this file (one username per +# line) + diff --git a/sys-process/cronie/files/cronie-1.2-crontab b/sys-process/cronie/files/cronie-1.2-crontab new file mode 100644 index 000000000000..8e18f4aed700 --- /dev/null +++ b/sys-process/cronie/files/cronie-1.2-crontab @@ -0,0 +1,18 @@ +# for vixie cron +# +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/files/cronie-1.2-crontab,v 1.1 2009/02/17 22:09:35 bangert Exp $ +# +# + +# Global variables +SHELL=/bin/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +HOME=/ + +# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly +0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly +1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily +15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly +30 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly +*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons diff --git a/sys-process/cronie/files/cronie-1.2-initd b/sys-process/cronie/files/cronie-1.2-initd new file mode 100755 index 000000000000..7590a7d85ffb --- /dev/null +++ b/sys-process/cronie/files/cronie-1.2-initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronie/files/cronie-1.2-initd,v 1.1 2009/02/17 22:09:35 bangert Exp $ + +depend() { + use clock logger + need localmount + provide cron +} + +start() { + ebegin "Starting cronie" + start-stop-daemon --start --quiet --exec /usr/sbin/crond + eend $? +} + +stop() { + ebegin "Stopping cronie" + start-stop-daemon --stop --quiet --pidfile /var/run/crond.pid + eend $? +} diff --git a/sys-process/cronie/files/cronie-1.2-pathnames.h-fix-SPOOL_DIR.patch b/sys-process/cronie/files/cronie-1.2-pathnames.h-fix-SPOOL_DIR.patch new file mode 100644 index 000000000000..9ea70c14f3b2 --- /dev/null +++ b/sys-process/cronie/files/cronie-1.2-pathnames.h-fix-SPOOL_DIR.patch @@ -0,0 +1,11 @@ +--- src/pathnames.h.orig 2009-02-17 22:43:14.000000000 +0100 ++++ src/pathnames.h 2009-02-17 22:43:31.000000000 +0100 +@@ -46,7 +46,7 @@ + * newer than they were last time around (or which + * didn't exist last time around...) + */ +-#define SPOOL_DIR "cron" ++#define SPOOL_DIR "cron/crontabs" + + /* cron allow/deny file. At least cron.deny must + * exist for ordinary users to run crontab. diff --git a/sys-process/cronie/metadata.xml b/sys-process/cronie/metadata.xml new file mode 100644 index 000000000000..10169d7ce5a1 --- /dev/null +++ b/sys-process/cronie/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>cron</herd> +<maintainer> + <email>bangert@gentoo.org</email> + <name>Thilo Bangert</name> +</maintainer> + <longdescription lang="en"> + Cronie contains the standard UNIX daemon crond that runs specified programs at + scheduled times and related tools. It is based on the original cron and + has security and configuration enhancements like the ability to use pam and + SELinux. + And why cronie? See http://www.urbandictionary.com/define.php?term=cronie + </longdescription> + <use> + <flag name='inotify'>Enable inotify filesystem monitoring support.</flag> + </use> +</pkgmetadata> |