diff options
Diffstat (limited to 'sys-process/dcron/dcron-4.4.ebuild')
-rw-r--r-- | sys-process/dcron/dcron-4.4.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/sys-process/dcron/dcron-4.4.ebuild b/sys-process/dcron/dcron-4.4.ebuild new file mode 100644 index 000000000000..9d22c3570099 --- /dev/null +++ b/sys-process/dcron/dcron-4.4.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/dcron/dcron-4.4.ebuild,v 1.1 2010/10/26 07:07:10 vapier Exp $ + +EAPI="2" + +inherit cron toolchain-funcs + +DESCRIPTION="A cute little cron from Matt Dillon" +HOMEPAGE="http://www.jimpryor.net/linux/dcron.html http://apollo.backplane.com/FreeSrc/" +SRC_URI="http://www.jimpryor.net/linux/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ldflags.patch + epatch "${FILESDIR}"/${P}-pidfile.patch + epatch "${FILESDIR}"/${P}-prune.patch + tc-export CC + cat <<-EOF > config + PREFIX = /usr + CRONTAB_GROUP = cron + EOF +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc CHANGELOG README "${FILESDIR}"/crontab + + docrondir + docron crond -m0700 -o root -g wheel + docrontab + + insinto /etc + doins "${FILESDIR}"/crontab || die + insinto /etc/cron.d + doins extra/prune-cronstamps || die + dodoc extra/run-cron extra/root.crontab + + newinitd "${FILESDIR}"/dcron.init-4.4 dcron || die + newconfd "${FILESDIR}"/dcron.confd-4.4 dcron + + insinto /etc/logrotate.d + newins extra/crond.logrotate dcron +} |