summaryrefslogtreecommitdiff
blob: 45f51bcbe74e0a54b86019ae50dc45db301730ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/dcron/dcron-2.7.ebuild,v 1.6 2000/12/25 16:17:42 achim Exp $

A=dcron27.tgz
S=${WORKDIR}/dcron
DESCRIPTION="A cute little cron from Matt Dillon (kung-fu master)"
SRC_URI="http://apollo.backplane.com/FreeSrc/${A}"

HOMEPAGE="http://apollo.backplane.com"

DEPEND=">=sys-libs/glibc-2.1.3"

src_compile() {                           
	try make
}

src_install() {
	#to use cron, you must be part of the "cron" group
	dobin crontab
	dosbin crond
	chown root.wheel ${D}/usr/sbin/crond
	chown root.cron ${D}/usr/bin/crontab
	chmod 700 ${D}/usr/sbin/crond
	chmod 4750 ${D}/usr/bin/crontab
	doman *.[18]
	diropts -m0750
	dodir /var/spool/cron/crontabs /var/cron/lastrun
	dodoc CHANGELOG README

	#set up supervise support
	dodir /var/supervise/dcron /etc/supervise
	exeinto /var/supervise/dcron
	newexe ${FILESDIR}/dcron-run run
	#this next line tells svcan to start the log process too (and set up a pipe)
	chmod +t ${D}/var/supervise/dcron
	exeinto /var/supervise/dcron/log
	newexe ${FILESDIR}/log-run run
	dosym /var/supervise/dcron /etc/supervise/dcron 	

	#install rc script
	exeinto /etc/rc.d/init.d
	doexe ${FILESDIR}/dcron

	insinto /etc
	doins ${FILESDIR}/crontab
}