diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2012-04-09 04:51:18 +0200 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2012-04-09 04:54:00 +0200 |
commit | 1d2361f56beeb60e71c8959be2b247f63cd4c00d (patch) | |
tree | 355ea4d3f404ae597723a4da5e9eeb14f58dfde6 /sys-process | |
parent | games-board/infector: Fix manifest (diff) | |
download | betagarden-1d2361f56beeb60e71c8959be2b247f63cd4c00d.tar.gz betagarden-1d2361f56beeb60e71c8959be2b247f63cd4c00d.tar.bz2 betagarden-1d2361f56beeb60e71c8959be2b247f63cd4c00d.zip |
Remove cruft detected by overlint 0.5 (keeping two exceptions)
Exceptions: dev-lang/python-2.2-r8, sys-apps/rng-tools-2_p14
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/dcron/Manifest | 5 | ||||
-rw-r--r-- | sys-process/dcron/dcron-4.5_pre20100203.ebuild | 43 | ||||
-rw-r--r-- | sys-process/dcron/files/crontab | 16 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron-4.4-pidfile.patch | 135 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron.confd | 4 | ||||
-rwxr-xr-x | sys-process/dcron/files/dcron.init | 21 |
6 files changed, 0 insertions, 224 deletions
diff --git a/sys-process/dcron/Manifest b/sys-process/dcron/Manifest deleted file mode 100644 index 31671c7..0000000 --- a/sys-process/dcron/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -AUX crontab 728 RMD160 5f89a59157c63f0bfb5c07c7bb7c387b96a6db92 SHA1 a20c566e003d7623016d2003fc088286ce0c8d60 SHA256 e10c141909e620d3497ae83fa051a92bc58cd9150b4c552f4e56364c8e47caf7 -AUX dcron-4.4-pidfile.patch 4241 RMD160 3a4674e9268b20787991d56cb951682915b71467 SHA1 fee807a2cd266d1f5b4df91d60a6b9a5043b17b1 SHA256 b3847c8be8a51c0cd77742f0454900d575966ffe47b00a49b8480e7a848758cd -AUX dcron.confd 73 RMD160 8fca9ee87632bc3d0d8bddbe23e7685ba4779328 SHA1 a00078f03365bb71ced67c9dd050517f08dbed77 SHA256 40f0d66acfc55d8f54ffa6140587350f7f01e911ef104b9ec0555375e9ef0c3d -AUX dcron.init 423 RMD160 13dd94556056895439aab86357a18b51f148d2bd SHA1 08962173ac27c8f479378cbd875125f3622dfb7d SHA256 6e5752667304d5e70f998089e5c5c765427f2fdef084b04dc89a7fcb93a9464c -EBUILD dcron-4.5_pre20100203.ebuild 833 RMD160 6c6aa9c717258ea1fc2c82f54d322457a3e52b06 SHA1 513d46024ba079c78fed9a3b2a712d3a239d9496 SHA256 c9bea415172c99c9c673c1885212057afd1886e5bf632b4667d303313d063b2f diff --git a/sys-process/dcron/dcron-4.5_pre20100203.ebuild b/sys-process/dcron/dcron-4.5_pre20100203.ebuild deleted file mode 100644 index 7797afb..0000000 --- a/sys-process/dcron/dcron-4.5_pre20100203.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -inherit cron git toolchain-funcs - -DESCRIPTION="Dillon's lightweight cron daemon" -HOMEPAGE="http://www.jimpryor.net/linux/dcron.html" -EGIT_REPO_URI="git://repo.or.cz/dcron.git" -EGIT_COMMIT="dd4f8a190eb674eed67e2be84a1ba2210d14707f" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" - -DEPEND="" -RDEPEND="" - -src_prepare() { - epatch "${FILESDIR}"/dcron-4.4-pidfile.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 - doins "${FILESDIR}"/crontab -} diff --git a/sys-process/dcron/files/crontab b/sys-process/dcron/files/crontab deleted file mode 100644 index afee252..0000000 --- a/sys-process/dcron/files/crontab +++ /dev/null @@ -1,16 +0,0 @@ -# for dcron -# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/files/crontab,v 1.3 2009/12/19 14:47:30 vapier Exp $ - -# dcron: -# This is NOT the system crontab! dcron does not support a system crontab. -# to get /etc/cron.{hourly|daily|weekly|montly} working with dcron run -# 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 -59 * * * * rm -f /var/spool/cron/lastrun/cron.hourly -9 3 * * * rm -f /var/spool/cron/lastrun/cron.daily -19 4 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly -29 5 1 * * rm -f /var/spool/cron/lastrun/cron.monthly -*/10 * * * * test -x /usr/sbin/run-crons && /usr/sbin/run-crons diff --git a/sys-process/dcron/files/dcron-4.4-pidfile.patch b/sys-process/dcron/files/dcron-4.4-pidfile.patch deleted file mode 100644 index c9baaf9..0000000 --- a/sys-process/dcron/files/dcron-4.4-pidfile.patch +++ /dev/null @@ -1,135 +0,0 @@ -From 4330185b22afaf9ebd57427b6bbaef1d71720bf4 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Benedikt=20B=C3=B6hm?= <bb@xnull.de> -Date: Mon, 12 Apr 2010 08:47:22 +0200 -Subject: [PATCH] add pidfile support for background mode - ---- - crond.8 | 7 ++++++- - crond.markdown | 5 ++++- - defs.h | 3 +++ - main.c | 14 ++++++++++++-- - 4 files changed, 25 insertions(+), 4 deletions(-) - -diff --git a/crond.8 b/crond.8 -index 4a218c2..a3d36b5 100644 ---- a/crond.8 -+++ b/crond.8 -@@ -4,7 +4,7 @@ - crond - dillon's lightweight cron daemon - .SH SYNOPSIS - .PP --\f[B]crond [-s dir] [-c dir] [-t dir] [-m user\@host] [-M mailer] [-S|-L file] [-l loglevel] [-b|-f|-d]\f[] -+\f[B]crond [-s dir] [-p pidfile] [-c dir] [-t dir] [-m user\@host] [-M mailer] [-S|-L file] [-l loglevel] [-b|-f|-d]\f[] - .SH OPTIONS - .PP - \f[B]crond\f[] is a background daemon that parses individual -@@ -16,6 +16,11 @@ directory of system crontabs (defaults to /etc/cron.d) - .RS - .RE - .TP -+.B -p pidfile -+file to store process id in background mode (defaults to /var/run/cron.pid) -+.RS -+.RE -+.TP - .B -c dir - directory of per-user crontabs (defaults to /var/spool/cron) - .RS -diff --git a/crond.markdown b/crond.markdown -index 8b097fd..26b80d3 100644 ---- a/crond.markdown -+++ b/crond.markdown -@@ -8,7 +8,7 @@ crond - dillon's lightweight cron daemon - - SYNOPSIS - ======== --**crond [-s dir] [-c dir] [-t dir] [-m user@host] [-M mailhandler] -+**crond [-s dir] [-p pidfile] [-c dir] [-t dir] [-m user@host] [-M mailhandler] - [-S|-L file] [-l loglevel] [-b|-f|-d]** - - OPTIONS -@@ -19,6 +19,9 @@ executes commands on behalf of the users in question. - -s dir - : directory of system crontabs (defaults to /etc/cron.d) - -+-p pidfile -+: file to store process id in background mode (defaults to /var/run/cron.pid) -+ - -c dir - : directory of per-user crontabs (defaults to /var/spool/cron/crontabs) - -diff --git a/defs.h b/defs.h -index 7fb12f4..8f78dc6 100644 ---- a/defs.h -+++ b/defs.h -@@ -47,6 +47,9 @@ - #define Prototype extern - #define arysize(ary) (sizeof(ary)/sizeof((ary)[0])) - -+#ifndef PIDFILE -+#define PIDFILE "/var/run/cron.pid" -+#endif - #ifndef SCRONTABS - #define SCRONTABS "/etc/cron.d" - #endif -diff --git a/main.c b/main.c -index e4a742e..6223da8 100644 ---- a/main.c -+++ b/main.c -@@ -39,6 +39,7 @@ const char *LogFile = NULL; /* opened with mode 0600 */ - const char *LogHeader = LOGHEADER; - const char *SendMail = NULL; - const char *Mailto = NULL; -+const char *PIDFile = PIDFILE; - char *TempDir; - char *TempFileFmt; - -@@ -72,7 +73,7 @@ main(int ac, char **av) - - opterr = 0; - -- while ((i = getopt(ac,av,"dl:L:fbSc:s:m:M:t:")) != -1) { -+ while ((i = getopt(ac,av,"dl:L:fbSc:s:m:M:t:p:")) != -1) { - switch (i) { - case 'l': - { -@@ -162,12 +163,15 @@ main(int ac, char **av) - case 'm': - if (*optarg != 0) Mailto = optarg; - break; -+ case 'p': -+ if (*optarg != 0) PIDFile = optarg; -+ break; - default: - /* - * check for parse error - */ - printf("dillon's cron daemon " VERSION "\n"); -- printf("crond [-s dir] [-c dir] [-t dir] [-m user@host] [-M mailhandler] [-S|-L [file]] [-l loglevel] [-b|-f|-d]\n"); -+ printf("crond [-s dir] [-c dir] [-t dir] [-m user@host] [-M mailhandler] [-S|-L [file]] [-l loglevel] [-p pidfile] [-b|-f|-d]\n"); - printf("-s directory of system crontabs (defaults to %s)\n", SCRONTABS); - printf("-c directory of per-user crontabs (defaults to %s)\n", CRONTABS); - printf("-t directory of timestamps (defaults to %s)\n", CRONSTAMPS); -@@ -178,6 +182,7 @@ main(int ac, char **av) - printf("-l loglevel log events at specified loglevel (defaults to %s)\n", LevelAry[LOG_LEVEL]); - printf("-b run in background (default)\n"); - printf("-f run in foreground and log to stderr\n"); -+ printf("-p pidfile store process id in pidfile if running in background mode\n"); - printf("-d run in debugging mode\n"); - exit(2); - } -@@ -227,6 +232,11 @@ main(int ac, char **av) - exit(1); - } else if (pid > 0) { - /* parent */ -+ FILE *fp; -+ if ((fp = fopen(PIDFile, "w")) != NULL) { -+ fprintf(fp, "%d\n", pid); -+ fclose(fp); -+ } - exit(0); - } - /* child continues */ --- -1.6.4.4 - diff --git a/sys-process/dcron/files/dcron.confd b/sys-process/dcron/files/dcron.confd deleted file mode 100644 index f895bd7..0000000 --- a/sys-process/dcron/files/dcron.confd +++ /dev/null @@ -1,4 +0,0 @@ -# /etc/conf.d/dcron - -# Options to pass to dcron at startup -DCRON_OPTS="" diff --git a/sys-process/dcron/files/dcron.init b/sys-process/dcron/files/dcron.init deleted file mode 100755 index fc9f92c..0000000 --- a/sys-process/dcron/files/dcron.init +++ /dev/null @@ -1,21 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -depend() { - use logger clock hostname - provide cron -} - -start() { - ebegin "Starting dcron" - start-stop-daemon --start --quiet --exec /usr/sbin/crond -- ${DCRON_OPTS} - eend $? -} - -stop() { - ebegin "Stopping dcron" - start-stop-daemon --stop --quiet --pidfile /var/run/cron.pid - eend $? -} |