diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-06 04:43:32 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-06 04:43:32 +0000 |
commit | 0a05f8576e0ace490c77d17d881a9d16b4a298b9 (patch) | |
tree | d6d3a49363c3e2a22a8b69ceeac64fd52f22bbdc /sys-process/dcron | |
parent | add support for building/install C++ manpages (diff) | |
download | gentoo-2-0a05f8576e0ace490c77d17d881a9d16b4a298b9.tar.gz gentoo-2-0a05f8576e0ace490c77d17d881a9d16b4a298b9.tar.bz2 gentoo-2-0a05f8576e0ace490c77d17d881a9d16b4a298b9.zip |
Touch up build ebuild and related files.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-process/dcron')
-rw-r--r-- | sys-process/dcron/ChangeLog | 10 | ||||
-rw-r--r-- | sys-process/dcron/dcron-2.9-r4.ebuild | 38 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron-2.9-EDITOR.patch | 20 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron-2.9-pidfile.patch | 6 | ||||
-rw-r--r-- | sys-process/dcron/files/dcron.confd | 4 | ||||
-rwxr-xr-x | sys-process/dcron/files/dcron.init (renamed from sys-process/dcron/files/dcron-r4) | 7 |
6 files changed, 49 insertions, 36 deletions
diff --git a/sys-process/dcron/ChangeLog b/sys-process/dcron/ChangeLog index 524b5a84621a..3c74288a9c09 100644 --- a/sys-process/dcron/ChangeLog +++ b/sys-process/dcron/ChangeLog @@ -1,6 +1,12 @@ # 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 $ +# 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 $ + + 06 Sep 2005; Mike Frysinger <vapier@gentoo.org> + +files/dcron-2.9-EDITOR.patch, files/dcron-2.9-pidfile.patch, + -files/dcron-r4, +files/dcron.confd, +files/dcron.init, + dcron-2.9-r4.ebuild: + Touch up build ebuild and related files. *dcron-2.9-r4 (04 Mar 2005) diff --git a/sys-process/dcron/dcron-2.9-r4.ebuild b/sys-process/dcron/dcron-2.9-r4.ebuild index c634185da328..de7ad61d8541 100644 --- a/sys-process/dcron/dcron-2.9-r4.ebuild +++ b/sys-process/dcron/dcron-2.9-r4.ebuild @@ -1,13 +1,12 @@ # 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.2 2005/09/06 03:55:47 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/dcron-2.9-r4.ebuild,v 1.3 2005/09/06 04:43:32 vapier 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" +SRC_URI="http://apollo.backplane.com/FreeSrc/${PN}${PV//.}.tgz" LICENSE="GPL-2" KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86" @@ -23,46 +22,27 @@ src_unpack() { 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 + epatch "${FILESDIR}"/dcron-2.9-EDITOR.patch } src_compile() { - make || die + emake CC=$(tc-getCC) || 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 + dodoc CHANGELOG README "${FILESDIR}"/crontab doman crontab.1 crond.8 - newinitd ${FILESDIR}/dcron-r4 dcron + newinitd "${FILESDIR}"/dcron.init dcron + newconfd "${FILESDIR}"/dcron.confd dcron insinto /etc/logrotate.d - newins ${FILESDIR}/dcron.logrotate dcron + 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 + doins "${FILESDIR}"/crontab } diff --git a/sys-process/dcron/files/dcron-2.9-EDITOR.patch b/sys-process/dcron/files/dcron-2.9-EDITOR.patch new file mode 100644 index 000000000000..08c20bc0d13e --- /dev/null +++ b/sys-process/dcron/files/dcron-2.9-EDITOR.patch @@ -0,0 +1,20 @@ +fix 'crontab -e' to look at $EDITOR and not $VISUAL + +--- crontab.1 ++++ crontab.1 +@@ -27,5 +27,5 @@ + specify a different user and/or crontab directory. Generally the -e + option is used to edit your crontab. crontab will use /usr/bin/vi or +-the editor specified by your VISUAL environment variable to edit the ++the editor specified by your EDITOR environment variable to edit the + crontab. + .PP +--- crontab.c ++++ crontab.c +@@ -312,5 +312,5 @@ + if (ChangeUser(user, 1) < 0) + exit(0); +- if ((ptr = getenv("VISUAL")) == NULL || strlen(ptr) > 256) ++ if ((ptr = getenv("EDITOR")) == NULL || strlen(ptr) > 256) + ptr = PATH_VI; + diff --git a/sys-process/dcron/files/dcron-2.9-pidfile.patch b/sys-process/dcron/files/dcron-2.9-pidfile.patch index 61b009f399ae..ff74521ff173 100644 --- a/sys-process/dcron/files/dcron-2.9-pidfile.patch +++ b/sys-process/dcron/files/dcron-2.9-pidfile.patch @@ -1,5 +1,7 @@ ---- dcron/main.c.orig 2005-02-19 15:19:13.000000000 -0500 -+++ dcron/main.c 2005-02-19 15:27:28.000000000 -0500 +Write out a pidfile + +--- dcron/main.c ++++ dcron/main.c @@ -122,8 +122,15 @@ perror("fork"); exit(1); diff --git a/sys-process/dcron/files/dcron.confd b/sys-process/dcron/files/dcron.confd new file mode 100644 index 000000000000..f895bd7013e3 --- /dev/null +++ b/sys-process/dcron/files/dcron.confd @@ -0,0 +1,4 @@ +# /etc/conf.d/dcron + +# Options to pass to dcron at startup +DCRON_OPTS="" diff --git a/sys-process/dcron/files/dcron-r4 b/sys-process/dcron/files/dcron.init index fccf9154d3ce..841c7bc99170 100755 --- a/sys-process/dcron/files/dcron-r4 +++ b/sys-process/dcron/files/dcron.init @@ -1,7 +1,7 @@ #!/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.2 2005/04/20 01:57:28 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/files/dcron.init,v 1.1 2005/09/06 04:43:32 vapier Exp $ depend() { use logger clock hostname @@ -10,13 +10,14 @@ depend() { start() { ebegin "Starting dcron" - /usr/sbin/crond >> /var/log/cron.log 2>&1 + setsid /usr/sbin/crond ${DCRON_OPTS} >> /var/log/cron.log 2>&1 eend $? } stop() { ebegin "Stopping dcron" - start-stop-daemon --stop --quiet --pidfile /var/run/cron.pid + start-stop-daemon --stop --quiet \ + --pidfile /var/run/cron.pid --exec /usr/sbin/crond local ret=$? rm -f /var/run/cron.pid eend ${ret} |