summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-06 04:43:32 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-06 04:43:32 +0000
commitfbf93c1b2bf2e5f9d5f6735174285e68c0fb6f82 (patch)
tree0952c928801fff8fae00e2307b6c6f39a1b5c33a /sys-process/dcron/dcron-2.9-r4.ebuild
parentadd support for building/install C++ manpages (diff)
downloadhistorical-fbf93c1b2bf2e5f9d5f6735174285e68c0fb6f82.tar.gz
historical-fbf93c1b2bf2e5f9d5f6735174285e68c0fb6f82.tar.bz2
historical-fbf93c1b2bf2e5f9d5f6735174285e68c0fb6f82.zip
Touch up build ebuild and related files.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'sys-process/dcron/dcron-2.9-r4.ebuild')
-rw-r--r--sys-process/dcron/dcron-2.9-r4.ebuild38
1 files changed, 9 insertions, 29 deletions
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
}