diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-04 23:42:58 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-04 23:42:58 +0000 |
commit | e5019015693c29a383f0d01f2cddbaa14fb8358b (patch) | |
tree | 8128d0a12b3d7f3e737af58d79f64af12ac1e5ef | |
parent | Marked ppc stable for bug #84017. (diff) | |
download | gentoo-2-e5019015693c29a383f0d01f2cddbaa14fb8358b.tar.gz gentoo-2-e5019015693c29a383f0d01f2cddbaa14fb8358b.tar.bz2 gentoo-2-e5019015693c29a383f0d01f2cddbaa14fb8358b.zip |
Move sys-apps/dcron -> sys-process/dcron
(Portage version: 2.0.51.19)
-rw-r--r-- | sys-process/dcron/ChangeLog | 173 | ||||
-rw-r--r-- | sys-process/dcron/Manifest | 24 | ||||
-rw-r--r-- | sys-process/dcron/dcron-2.9-r2.ebuild | 84 | ||||
-rw-r--r-- | sys-process/dcron/dcron-2.9-r4.ebuild | 68 | ||||
-rw-r--r-- | sys-process/dcron/files/crontab | 23 | ||||
-rwxr-xr-x | sys-process/dcron/files/dcron | 25 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron-2.7-Makefile-gentoo.diff | 25 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron-2.9-Makefile.patch | 27 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron-2.9-ldflags.patch | 24 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron-2.9-pidfile.patch | 20 | ||||
-rwxr-xr-x | sys-process/dcron/files/dcron-r4 | 24 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron.logrotate | 3 | ||||
-rw-r--r-- | sys-process/dcron/files/digest-dcron-2.9-r2 | 1 | ||||
-rw-r--r-- | sys-process/dcron/files/digest-dcron-2.9-r4 | 1 | ||||
-rw-r--r-- | sys-process/dcron/metadata.xml | 8 |
15 files changed, 530 insertions, 0 deletions
diff --git a/sys-process/dcron/ChangeLog b/sys-process/dcron/ChangeLog new file mode 100644 index 000000000000..524b5a84621a --- /dev/null +++ b/sys-process/dcron/ChangeLog @@ -0,0 +1,173 @@ +# ChangeLog for sys-process/dcron +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/ChangeLog,v 1.1 2005/03/04 23:42:58 ciaranm Exp $ + +*dcron-2.9-r4 (04 Mar 2005) + + 04 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> +metadata.xml, + +files/crontab, +files/dcron, +files/dcron-2.7-Makefile-gentoo.diff, + +files/dcron-2.9-Makefile.patch, +files/dcron-2.9-ldflags.patch, + +files/dcron-2.9-pidfile.patch, +files/dcron-r4, +files/dcron.logrotate, + +dcron-2.9-r2.ebuild, +dcron-2.9-r4.ebuild: + Move sys-apps/dcron -> sys-process/dcron + + 04 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> dcron-2.9-r2.ebuild: + Move sys-apps/cronbase -> sys-process/cronbase + +*dcron-2.9-r4 (19 Feb 2005) + + 19 Feb 2005; Mike Frysinger <vapier@gentoo.org> + +files/dcron-2.9-Makefile.patch, +files/dcron-2.9-pidfile.patch, + +files/dcron-r4, +dcron-2.9-r4.ebuild: + Clean up the init.d script and add support for writing of the pid file in + dcron itself. + +*dcron-2.9-r3 (09 Feb 2005) + + 09 Feb 2005; Mike Frysinger <vapier@gentoo.org> +dcron-2.9-r3.ebuild: + Add support for cron.eclass by Aaron Walker #78077. + + 10 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> dcron-2.9-r2.ebuild: + Added in a message with a link to the Cron Guide, bug #77320 + + 10 Nov 2004; Mike Frysinger <vapier@gentoo.org> +files/dcron.logrotate, + dcron-2.9-r2.ebuild: + Install a logrotate file #52672 by BlueRaven. + + 04 Sep 2004; <solar@gentoo.org> +files/dcron-2.9-ldflags.patch, + dcron-2.9-r2.ebuild: + use non-lazy bindings for +s apps installed by this package + + 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> dcron-2.9.ebuild: + Masked dcron-2.9.ebuild stable for ppc + + 27 Aug 2004; Mike Frysinger <vapier@gentoo.org> files/dcron.rc6: + Dont need logger, use logger #57787 by Paul Varner. + + 21 Jul 2004; Tom Gall <tgall@gentoo.org> dcron-2.9-r2.ebuild: + stable on ppc64, bug #57579 + + 22 Apr 2004; Jon Portnoy <avenj@gentoo.org> dcron-2.9-r2.ebuild : + Stable on x86. + + 19 Apr 2004; Jon Portnoy <avenj@gentoo.org> files/crontab : + Updated to do run-crons every 10 minutes rather than every minute. + Bug #46628. + + 09 Apr 2004; Guy Martin <gmsoft@gentoo.org> dcron-2.9-r2.ebuild: + Marked stable on hppa. + + 08 Apr 2004; Joshua Kinard <kumba@gentoo.org> dcron-2.9-r2.ebuild: + Marked stable on mips. + + 08 Apr 2004; Luca Barbato <lu_zero@gentoo.org> dcron-2.9-r2.ebuild: + Marked ppc + + 07 Apr 2004; Jason Wever <weeve@gentoo.org> dcron-2.9-r2.ebuild: + Marked stable on sparc wrt bug #42908. + + 07 Apr 2004; Jon Portnoy <avenj@gentoo.org> dcron-2.9-r2.ebuild : + Stable on AMD64. + + 07 Apr 2004; <kloeri@gentoo.org> dcron-2.9-r2.ebuild: + Stable on Alpha. + +*dcron-2.9-r2 (25 Feb 2004) + + 25 Feb 2004; <solar@gentoo.org> dcron-2.9-r2.ebuild: + reset execopts after setuid install of crontab to prevent init.d/dcron from + being installed setuid as well + + 28 Dec 2003; Joshua Kinard <kumba@gentoo.org> dcron-2.9.ebuild: + Move to mips stable (~mips -> mips) + + 26 Dec 2003; Seemant Kulleen <seemant@gentoo.org> dcron-2.7-r10.ebuild, + dcron-2.9-r1.ebuild, dcron-2.9.ebuild: + keepdir instead of dodir, closing bug #36221 by Anders Bruun Olsen + <anders@bruun-olsen.net> + + 12 Dec 2003; Chris PeBenito <pebenito@gentoo.org> files/crontab, + files/crontab-2.9-r1: + Changed daily, weekly, and monthly runtimes to FreeBSD times (3:01, 4:15, + 5:30, respectively) per #3296. + +*dcron-2.9-r1 (19 Nov 2003) + + 19 Nov 2003; Preston A. Elder <prez@gentoo.org> dcron-2.9-r1.ebuild: + Changed so run-crons is run every minute. This will only work right + with the newer cronbase. + +*dcron-2.9 (19 Mar 2003) + + 15 Jul 2003; Martin Holzer <mholzer@gentoo.org> dcron-2.9.ebuild: + Marked x86 stable + + 25 Jul 2003; Guy Martin <gmsoft@gentoo.org> dcron-2.9.ebuild : + Marked stable on hppa. + + 22 Jun 2003; Joshua Kinard <kumba@gentoo.org> dcron-2.9.ebuild: + Changed ~sparc to sparc, added ~mips + + 20 May 2003; Tavis Ormandy <taviso@gentoo.org> dcron-2.9.ebuild: + Removing gcc hardcode, marking alpha + + 16 Apr 2003; Tavis Ormandy <taviso@gentoo.org> dcron-2.9.ebuild: + Marking ~alpha. + + 19 Mar 2003; Martin Holzer <mholzer@gentoo.org> dcron-2.9.ebuild: + Version bumped. Closes #14702. + +*dcron-2.7-r10 (14 Feb 2003) + + 18 Apr 2003; Jan Seidel <tuxus@gentoo.org> dcron-2.7-r10.ebuild : + Added mips to keywords. + + 19 Feb 2003; Martin Holzer <mholzer@gentoo.org> dcron-2.7-r10.ebuild : + added keepdir /var/spool/cron/crontabs/ + + 14 Feb 2003; Martin Holzer <mholzer@gentoo.org> dcron-2.7-r10.ebuild : + Added pid in init-script. Closes #15664. + +*dcron-2.7-r9 (20 Apr 2002) + + 12 Feb 2003; Guy Martin <gmsoft@gentoo.org> dcron-2.7-r9.ebuild : + Added hppa to keywords. + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords + + 4 May 2002; Thilo Bangert <bangert@gentoo.org> dcron-2.7-r8.ebuild + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> dcron-2.7-r8.ebuild : + Added LICENSE, KEYWORDS, SLOT. + + made lintool happy - added LICENSE + + 14 Jul 2002; phoen][x <phoenix@gentoo.org> dcron-2.7-r9.ebuild : + Added KEYWORDS, SLOT. + + 20 Apr 2002; Thilo Bangert <bangert@gentoo.org> files/crontab + + fixed /var/spool/cron/lastrun + added support for cron.hourly + + 20 Apr 2002; Thilo Bangert <bangert@gentoo.org> dcron-2.7-r8.ebuild + + add PROVIDE="virtual/cron" and RDEPEND="!virtual/cron sys-apps/cronbase" + added config section to activate /etc/cron.{hourly..etc} + + 20 Apr 2002; Thilo Bangert <bangert@gentoo.org> files/cron.rc6 + + add "provide cron" to use + + 20 April 2002; Martin Schlemmer <azarah@gentoo.org> files/dcron.rc6 : + + Update to NEED "logger" + + +*dcron-2.7-r8 (21 Mar 2002) + + 21 Mar 2002; Donny Davies <woodchip@gentoo.org> dcron-2.7-r8.ebuild, + files/dcron-2.7-whitespace.diff : + + Added patch from Matt Dillon to fix crontabs that begin with whitespace. + Thanks to everybody who helped analyze this problem. diff --git a/sys-process/dcron/Manifest b/sys-process/dcron/Manifest new file mode 100644 index 000000000000..a9ee328fa6ca --- /dev/null +++ b/sys-process/dcron/Manifest @@ -0,0 +1,24 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 f8e77cf7e824c232f0ebad1f95364ea2 dcron-2.9-r2.ebuild 2070 +MD5 390ef8d511baa2ddb39474b537c921e8 ChangeLog 5500 +MD5 24fe0dd2110878b2afcd38e8c99d6b92 dcron-2.9-r4.ebuild 1663 +MD5 d0dad7daa0e6d356fc35f778fed36006 metadata.xml 225 +MD5 a82da32a58b097ea2ccd1b7a4aed72f3 files/dcron-2.9-ldflags.patch 590 +MD5 1de333010665696629a381be64dad25a files/dcron-2.9-Makefile.patch 629 +MD5 932978359b7a3b3a2d29a96827ceca83 files/dcron-2.7-Makefile-gentoo.diff 534 +MD5 d519d4b16f6ee59279bc96409ae9d492 files/dcron-r4 531 +MD5 562feacfdde7b16558e57b142a98326f files/crontab 824 +MD5 2db10e843ecdf10a2b3aa5f70322310b files/digest-dcron-2.9-r2 55 +MD5 577b9903a5bc13b51ed4e9a7e5d8b17e files/dcron.logrotate 36 +MD5 bedf02492e4cc8875b735c6a4bcdd272 files/dcron 614 +MD5 2db10e843ecdf10a2b3aa5f70322310b files/digest-dcron-2.9-r4 55 +MD5 cd9a521d56c9c4df0fd79e9dd71bd32b files/dcron-2.9-pidfile.patch 493 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.6 (GNU/Linux) + +iD8DBQFCKO+PLLFUmVNQ7rkRAmj+AKDSQwDIDCa2acDlQdoNxcK07UoVJQCgjJf8 +/Q8ygb7Z8OV9wt3qu0xVcO8= +=4bio +-----END PGP SIGNATURE----- diff --git a/sys-process/dcron/dcron-2.9-r2.ebuild b/sys-process/dcron/dcron-2.9-r2.ebuild new file mode 100644 index 000000000000..3a378790fee7 --- /dev/null +++ b/sys-process/dcron/dcron-2.9-r2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/dcron-2.9-r2.ebuild,v 1.1 2005/03/04 23:42:58 ciaranm Exp $ + +inherit eutils toolchain-funcs + +MY_PV=29 +DESCRIPTION="A cute little cron from Matt Dillon" +HOMEPAGE="http://apollo.backplane.com/" +SRC_URI="http://apollo.backplane.com/FreeSrc/${PN}${MY_PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86" +IUSE="" + +DEPEND="virtual/libc + >=sys-apps/sed-4 + >=sys-apps/portage-2.0.51" +RDEPEND="!virtual/cron + >=sys-process/cronbase-0.2.1-r3 + virtual/mta" +PROVIDE="virtual/cron" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/dcron-2.7-Makefile-gentoo.diff + epatch ${FILESDIR}/dcron-2.9-ldflags.patch + + # fix 'crontab -e' to look at $EDITOR and not $VISUAL + sed -i 's:VISUAL:EDITOR:g' crontab.{c,1} + + # remove gcc hardcode + sed -i "s:\(CC = \)gcc:\1$(tc-getCC):" Makefile +} + +src_compile() { + make || die +} + +src_install() { + #this does not work if the directory already exists + diropts -m 0750 -o root -g cron + keepdir /var/spool/cron/crontabs + + exeopts -m 0700 -o root -g wheel + exeinto /usr/sbin + doexe crond || die + + exeopts -m 4750 -o root -g cron + exeinto /usr/bin + doexe crontab || die + # reset execopts after setuid install of crontab to + # prevent init.d/dcron from being installed setuid as well + exeopts -m 0750 -o root -g root + + dodoc CHANGELOG README ${FILESDIR}/crontab + doman crontab.1 crond.8 + + doinitd ${FILESDIR}/dcron + + insinto /etc/logrotate.d + newins ${FILESDIR}/dcron.logrotate dcron + + insopts -o root -g root -m 0644 + insinto /etc + doins ${FILESDIR}/crontab +} + +pkg_postinst() { + echo + einfo "To activate /etc/cron.{hourly|daily|weekly|montly} please run: " + einfo "crontab /etc/crontab" + echo + einfo "!!! That will replace root's current crontab !!!" + echo + einfo "You may wish to read the Gentoo Linux Cron Guide, which can be" + einfo "found online at:" + einfo " http://www.gentoo.org/doc/en/cron-guide.xml" + echo +} diff --git a/sys-process/dcron/dcron-2.9-r4.ebuild b/sys-process/dcron/dcron-2.9-r4.ebuild new file mode 100644 index 000000000000..771da34ce6d3 --- /dev/null +++ b/sys-process/dcron/dcron-2.9-r4.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/dcron-2.9-r4.ebuild,v 1.1 2005/03/04 23:42:58 ciaranm Exp $ + +inherit cron toolchain-funcs + +MY_PV=29 +DESCRIPTION="A cute little cron from Matt Dillon" +HOMEPAGE="http://apollo.backplane.com/" +SRC_URI="http://apollo.backplane.com/FreeSrc/${PN}${MY_PV}.tgz" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="" + +DEPEND=">=sys-apps/portage-2.0.51" +RDEPEND="" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/dcron-2.9-Makefile.patch + epatch "${FILESDIR}"/dcron-2.9-pidfile.patch + + # fix 'crontab -e' to look at $EDITOR and not $VISUAL + sed -i 's:VISUAL:EDITOR:g' crontab.{c,1} + + # remove gcc hardcode + sed -i "s:\(CC = \)gcc:\1$(tc-getCC):" Makefile +} + +src_compile() { + make || die +} + +src_install() { + #this does not work if the directory already exists + docrondir + docron crond -m0700 -o root -g wheel + docrontab + + dodoc CHANGELOG README ${FILESDIR}/crontab + doman crontab.1 crond.8 + + newinitd ${FILESDIR}/dcron-r4 dcron + + insinto /etc/logrotate.d + newins ${FILESDIR}/dcron.logrotate dcron + + insopts -o root -g root -m 0644 + insinto /etc + doins ${FILESDIR}/crontab +} + +pkg_postinst() { + echo + einfo "To activate /etc/cron.{hourly|daily|weekly|montly} please run: " + einfo "crontab /etc/crontab" + echo + einfo "!!! That will replace root's current crontab !!!" + echo + einfo "You may wish to read the Gentoo Linux Cron Guide, which can be" + einfo "found online at:" + einfo " http://www.gentoo.org/doc/en/cron-guide.xml" + echo +} diff --git a/sys-process/dcron/files/crontab b/sys-process/dcron/files/crontab new file mode 100644 index 000000000000..42b52f5203ee --- /dev/null +++ b/sys-process/dcron/files/crontab @@ -0,0 +1,23 @@ + +# /etc/crontab +# 20 Apr 2002; Thilo Bangert <bangert@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/files/crontab,v 1.1 2005/03/04 23:42:58 ciaranm Exp $ + +# fcron || dcron: +# This is NOT the system crontab! fcron and dcron do not support a system crontab. +# to get /etc/cron.{hourly|daily|weekly|montly} working with fcron or dcron do +# crontab /etc/crontab +# as root. +# NOTE: This will REPLACE root's current crontab!! + + +# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly + +*/15 * * * * test -x /usr/sbin/run-crons && /usr/sbin/run-crons +0 * * * * rm -f /var/spool/cron/lastrun/cron.hourly +0 3 * * * rm -f /var/spool/cron/lastrun/cron.daily +15 4 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly +30 5 1 * * rm -f /var/spool/cron/lastrun/cron.monthly + + + diff --git a/sys-process/dcron/files/dcron b/sys-process/dcron/files/dcron new file mode 100755 index 000000000000..65d89bf86eb9 --- /dev/null +++ b/sys-process/dcron/files/dcron @@ -0,0 +1,25 @@ +#!/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/dcron/files/dcron,v 1.1 2005/03/04 23:42:58 ciaranm Exp $ + +depend() { + use logger + need clock hostname + provide cron +} + +start() { + ebegin "Starting dcron" + start-stop-daemon --start --quiet --exec /usr/sbin/crond \ + -- >>/var/log/cron.log 2>&1 + /usr/bin/pgrep -x -u 0 -P 1 crond > /var/run/cron.pid + eend $? +} + +stop() { + ebegin "Stopping dcron" + start-stop-daemon --stop --quiet --pidfile /var/run/cron.pid \ + --exec /usr/sbin/crond + eend $? +} diff --git a/sys-process/dcron/files/dcron-2.7-Makefile-gentoo.diff b/sys-process/dcron/files/dcron-2.7-Makefile-gentoo.diff new file mode 100644 index 000000000000..0272185e550e --- /dev/null +++ b/sys-process/dcron/files/dcron-2.7-Makefile-gentoo.diff @@ -0,0 +1,25 @@ +--- Makefile.orig Tue Feb 27 01:13:24 2001 ++++ Makefile Tue Feb 27 16:32:34 2001 +@@ -2,7 +2,7 @@ + # + + CC = gcc +-CFLAGS = -O2 -Wall -Wstrict-prototypes ++CFLAGS += -Wall -Wstrict-prototypes + LIB = + SRCS = main.c subs.c database.c job.c + OBJS = main.o subs.o database.o job.o +@@ -15,11 +15,11 @@ + + crond: ${OBJS} + ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} +- strip crond ++ + + crontab: ${D_OBJS} + ${CC} ${CFLAGS} -o crontab ${D_OBJS} +- strip crontab ++ + + protos.h: ${SRCS} ${D_SRCS} + fgrep -h Prototype ${SRCS} ${D_SRCS} >protos.h diff --git a/sys-process/dcron/files/dcron-2.9-Makefile.patch b/sys-process/dcron/files/dcron-2.9-Makefile.patch new file mode 100644 index 000000000000..88b542042185 --- /dev/null +++ b/sys-process/dcron/files/dcron-2.9-Makefile.patch @@ -0,0 +1,27 @@ +--- Makefile ++++ Makefile +@@ -2,7 +2,8 @@ + # + + CC = gcc +-CFLAGS = -O2 -Wall -Wstrict-prototypes ++CFLAGS += -Wall -Wstrict-prototypes ++LDFLAGS += -Wl,-z,now + LIB = + SRCS = main.c subs.c database.c job.c + OBJS = main.o subs.o database.o job.o +@@ -14,12 +15,10 @@ + all: ${PROTOS} crond crontab + + crond: ${OBJS} +- ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} +- strip crond ++ ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} ${LDFLAGS} + + crontab: ${D_OBJS} +- ${CC} ${CFLAGS} -o crontab ${D_OBJS} +- strip crontab ++ ${CC} ${CFLAGS} -o crontab ${D_OBJS} ${LDFLAGS} + + protos.h: ${SRCS} ${D_SRCS} + fgrep -h Prototype ${SRCS} ${D_SRCS} >protos.h diff --git a/sys-process/dcron/files/dcron-2.9-ldflags.patch b/sys-process/dcron/files/dcron-2.9-ldflags.patch new file mode 100644 index 000000000000..5eedfc8246c8 --- /dev/null +++ b/sys-process/dcron/files/dcron-2.9-ldflags.patch @@ -0,0 +1,24 @@ +--- Makefile.orig 2004-09-04 20:15:28.000000000 -0400 ++++ Makefile 2004-09-04 20:18:53.000000000 -0400 +@@ -3,6 +3,7 @@ + + CC = gcc + CFLAGS += -Wall -Wstrict-prototypes ++LDFLAGS += -Wl,-z,now + LIB = + SRCS = main.c subs.c database.c job.c + OBJS = main.o subs.o database.o job.o +@@ -14,11 +15,11 @@ + all: ${PROTOS} crond crontab + + crond: ${OBJS} +- ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} ++ ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} ${LDFLAGS} + + + crontab: ${D_OBJS} +- ${CC} ${CFLAGS} -o crontab ${D_OBJS} ++ ${CC} ${CFLAGS} -o crontab ${D_OBJS} ${LDFLAGS} + + + protos.h: ${SRCS} ${D_SRCS} diff --git a/sys-process/dcron/files/dcron-2.9-pidfile.patch b/sys-process/dcron/files/dcron-2.9-pidfile.patch new file mode 100644 index 000000000000..61b009f399ae --- /dev/null +++ b/sys-process/dcron/files/dcron-2.9-pidfile.patch @@ -0,0 +1,20 @@ +--- dcron/main.c.orig 2005-02-19 15:19:13.000000000 -0500 ++++ dcron/main.c 2005-02-19 15:27:28.000000000 -0500 +@@ -122,8 +122,15 @@ + perror("fork"); + exit(1); + } +- if (pid > 0) +- exit(0); ++ if (pid > 0) { ++ int fdpid; ++ char pidstr[24]; ++ fdpid = open("/var/run/cron.pid", O_WRONLY|O_CREAT|O_TRUNC, 0664); ++ sprintf(pidstr, "%d\n", pid); ++ write(fdpid, pidstr, strlen(pidstr)); ++ close(fdpid); ++ exit(0); ++ } + } + + /* diff --git a/sys-process/dcron/files/dcron-r4 b/sys-process/dcron/files/dcron-r4 new file mode 100755 index 000000000000..94072c8e5a51 --- /dev/null +++ b/sys-process/dcron/files/dcron-r4 @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/files/dcron-r4,v 1.1 2005/03/04 23:42:58 ciaranm Exp $ + +depend() { + use logger + need clock hostname + provide cron +} + +start() { + ebegin "Starting dcron" + /usr/sbin/crond >> /var/log/cron.log 2>&1 + eend $? +} + +stop() { + ebegin "Stopping dcron" + start-stop-daemon --stop --quiet --pidfile /var/run/cron.pid + local ret=$? + rm -f /var/run/cron.pid + eend ${ret} +} diff --git a/sys-process/dcron/files/dcron.logrotate b/sys-process/dcron/files/dcron.logrotate new file mode 100644 index 000000000000..0577ad1186ae --- /dev/null +++ b/sys-process/dcron/files/dcron.logrotate @@ -0,0 +1,3 @@ +/var/log/cron.log { + copytruncate +} diff --git a/sys-process/dcron/files/digest-dcron-2.9-r2 b/sys-process/dcron/files/digest-dcron-2.9-r2 new file mode 100644 index 000000000000..bf4decff8ad3 --- /dev/null +++ b/sys-process/dcron/files/digest-dcron-2.9-r2 @@ -0,0 +1 @@ +MD5 120fb2ca3d91496b32df0ab01dcaec5e dcron29.tgz 15608 diff --git a/sys-process/dcron/files/digest-dcron-2.9-r4 b/sys-process/dcron/files/digest-dcron-2.9-r4 new file mode 100644 index 000000000000..bf4decff8ad3 --- /dev/null +++ b/sys-process/dcron/files/digest-dcron-2.9-r4 @@ -0,0 +1 @@ +MD5 120fb2ca3d91496b32df0ab01dcaec5e dcron29.tgz 15608 diff --git a/sys-process/dcron/metadata.xml b/sys-process/dcron/metadata.xml new file mode 100644 index 000000000000..80004f356047 --- /dev/null +++ b/sys-process/dcron/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +<maintainer> + <email>vapier@gentoo.org</email> +</maintainer> +</pkgmetadata> |