diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-10-04 21:33:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-10-04 21:33:51 +0000 |
commit | 2116a0f73473f5c509196f8139fbf6db1d148daa (patch) | |
tree | d5a0c2263838cfb478d4b97ec9f2b3b1c487c3e2 /sys-process/dcron | |
parent | old (diff) | |
download | gentoo-2-2116a0f73473f5c509196f8139fbf6db1d148daa.tar.gz gentoo-2-2116a0f73473f5c509196f8139fbf6db1d148daa.tar.bz2 gentoo-2-2116a0f73473f5c509196f8139fbf6db1d148daa.zip |
Version bump.
(Portage version: 2.1.2_pre2)
Diffstat (limited to 'sys-process/dcron')
-rw-r--r-- | sys-process/dcron/ChangeLog | 10 | ||||
-rw-r--r-- | sys-process/dcron/dcron-3.2.ebuild | 49 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron-3.2-pidfile.patch | 20 | ||||
-rw-r--r-- | sys-process/dcron/files/digest-dcron-2.9-r4 | 2 | ||||
-rw-r--r-- | sys-process/dcron/files/digest-dcron-3.2 | 3 |
5 files changed, 82 insertions, 2 deletions
diff --git a/sys-process/dcron/ChangeLog b/sys-process/dcron/ChangeLog index 3c74288a9c09..a9012c45262b 100644 --- a/sys-process/dcron/ChangeLog +++ b/sys-process/dcron/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-process/dcron -# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/ChangeLog,v 1.2 2005/09/06 04:43:32 vapier Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/ChangeLog,v 1.3 2006/10/04 21:33:51 vapier Exp $ + +*dcron-3.2 (04 Oct 2006) + + 04 Oct 2006; Mike Frysinger <vapier@gentoo.org> + +files/dcron-3.2-pidfile.patch, +dcron-3.2.ebuild: + Version bump. 06 Sep 2005; Mike Frysinger <vapier@gentoo.org> +files/dcron-2.9-EDITOR.patch, files/dcron-2.9-pidfile.patch, diff --git a/sys-process/dcron/dcron-3.2.ebuild b/sys-process/dcron/dcron-3.2.ebuild new file mode 100644 index 000000000000..a97a6c7d509f --- /dev/null +++ b/sys-process/dcron/dcron-3.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/dcron-3.2.ebuild,v 1.1 2006/10/04 21:33:51 vapier Exp $ + +inherit cron toolchain-funcs + +DESCRIPTION="A cute little cron from Matt Dillon" +HOMEPAGE="http://apollo.backplane.com/FreeSrc/" +SRC_URI="http://apollo.backplane.com/FreeSrc/${PN}${PV//.}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~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 + epatch "${FILESDIR}"/dcron-2.9-EDITOR.patch +} + +src_compile() { + emake CC="$(tc-getCC)" || die +} + +src_install() { + docrondir + docron crond -m0700 -o root -g wheel + docrontab + + dodoc CHANGELOG README "${FILESDIR}"/crontab + doman crontab.1 crond.8 + + newinitd "${FILESDIR}"/dcron.init dcron + newconfd "${FILESDIR}"/dcron.confd dcron + + insinto /etc/logrotate.d + newins "${FILESDIR}"/dcron.logrotate dcron + + insinto /etc + doins "${FILESDIR}"/crontab +} diff --git a/sys-process/dcron/files/dcron-3.2-pidfile.patch b/sys-process/dcron/files/dcron-3.2-pidfile.patch new file mode 100644 index 000000000000..9ef687746909 --- /dev/null +++ b/sys-process/dcron/files/dcron-3.2-pidfile.patch @@ -0,0 +1,20 @@ +write out a pidfile + +--- dcron/main.c ++++ dcron/main.c +@@ -120,8 +120,14 @@ + perror("fork"); + exit(1); + } +- if (pid > 0) ++ if (pid > 0) { ++ FILE *fp; ++ if ((fp = fopen("/var/run/cron.pid", "w")) != NULL) { ++ fprintf(fp, "%d\n", pid); ++ fclose(fp); ++ } + exit(0); ++ } + } + + /* diff --git a/sys-process/dcron/files/digest-dcron-2.9-r4 b/sys-process/dcron/files/digest-dcron-2.9-r4 index bf4decff8ad3..757aa6f6435e 100644 --- a/sys-process/dcron/files/digest-dcron-2.9-r4 +++ b/sys-process/dcron/files/digest-dcron-2.9-r4 @@ -1 +1,3 @@ MD5 120fb2ca3d91496b32df0ab01dcaec5e dcron29.tgz 15608 +RMD160 99fb2c6bf686531b8e76464cb0b240e7ceaef881 dcron29.tgz 15608 +SHA256 118876c6e7a6b9cdcfd028536493f4d6ccb1b6cdf0d90352528aa7ca1e308f9a dcron29.tgz 15608 diff --git a/sys-process/dcron/files/digest-dcron-3.2 b/sys-process/dcron/files/digest-dcron-3.2 new file mode 100644 index 000000000000..3a289eb33583 --- /dev/null +++ b/sys-process/dcron/files/digest-dcron-3.2 @@ -0,0 +1,3 @@ +MD5 c2c816deb389b4bfb00761f26afe3efd dcron32.tgz 22184 +RMD160 202036b917fd4fd48fe0a7d057d7dc5ae4c64ac5 dcron32.tgz 22184 +SHA256 3236828eeead5ca3f4c4abef1c0ad0305582158eb5492aac6d34912e407f5318 dcron32.tgz 22184 |