diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-06-07 00:05:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-06-07 00:05:29 +0000 |
commit | b09a6b3248d9ad171e6b42c43f25d528120f1727 (patch) | |
tree | 2a2aa57d7b8be6d0e36b2f2206e13b95b669c5cc /sys-process/dcron | |
parent | Version bump (diff) | |
download | gentoo-2-b09a6b3248d9ad171e6b42c43f25d528120f1727.tar.gz gentoo-2-b09a6b3248d9ad171e6b42c43f25d528120f1727.tar.bz2 gentoo-2-b09a6b3248d9ad171e6b42c43f25d528120f1727.zip |
old
Diffstat (limited to 'sys-process/dcron')
-rw-r--r-- | sys-process/dcron/dcron-2.9-r4.ebuild | 48 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron-2.9-pidfile.patch | 22 | ||||
-rw-r--r-- | sys-process/dcron/files/digest-dcron-2.9-r4 | 3 |
3 files changed, 0 insertions, 73 deletions
diff --git a/sys-process/dcron/dcron-2.9-r4.ebuild b/sys-process/dcron/dcron-2.9-r4.ebuild deleted file mode 100644 index be3ce1f2a804..000000000000 --- a/sys-process/dcron/dcron-2.9-r4.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2007 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.5 2007/03/26 08:01:58 antarus Exp $ - -inherit cron toolchain-funcs - -DESCRIPTION="A cute little cron from Matt Dillon" -HOMEPAGE="http://apollo.backplane.com/" -SRC_URI="http://apollo.backplane.com/FreeSrc/${PN}${PV//.}.tgz" - -LICENSE="GPL-2" -KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" -IUSE="" - -DEPEND="" -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-2.9-pidfile.patch b/sys-process/dcron/files/dcron-2.9-pidfile.patch deleted file mode 100644 index ff74521ff173..000000000000 --- a/sys-process/dcron/files/dcron-2.9-pidfile.patch +++ /dev/null @@ -1,22 +0,0 @@ -Write out a pidfile - ---- dcron/main.c -+++ dcron/main.c -@@ -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/digest-dcron-2.9-r4 b/sys-process/dcron/files/digest-dcron-2.9-r4 deleted file mode 100644 index 757aa6f6435e..000000000000 --- a/sys-process/dcron/files/digest-dcron-2.9-r4 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 120fb2ca3d91496b32df0ab01dcaec5e dcron29.tgz 15608 -RMD160 99fb2c6bf686531b8e76464cb0b240e7ceaef881 dcron29.tgz 15608 -SHA256 118876c6e7a6b9cdcfd028536493f4d6ccb1b6cdf0d90352528aa7ca1e308f9a dcron29.tgz 15608 |