blob: 500c89429c6c58770551e4ee811b5188c4fbe9c2 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Jerry A! <jerry@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-admin/fcron/fcron-1.1.1-r6.ebuild,v 1.1 2001/09/03 21:22:27 woodchip Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A replacement for vcron"
SRC_URI="http://fcron.free.fr/${P}.src.tar.gz"
HOMEPAGE="http://fcron.free.fr/"
DEPEND="virtual/glibc virtual/mta"
src_compile() {
if [ ! -d "/etc/fcron" ]; then
mkdir /etc/fcron
fi
try ./configure --prefix=/usr --host=${CHOST} \
--with-etcdir=/etc/fcron \
--with-piddir=/var/run \
--with-spooldir=/var/spool/fcron \
--with-sendmail=/usr/sbin/sendmail \
--with-username=cron \
--with-groupname=cron \
--with-cflags="${CFLAGS}"
try emake
}
src_install() {
dodir /etc/fcron
dodir /usr/bin
dodir /usr/sbin
dodir /usr/share/man{1,8}
dodir /var/spool/fcron
fperms 0770 /var/spool/fcron
fowners root.cron /var/spool/fcron
insinto /usr/bin
insopts -o cron -g cron -m 6111
doins fcrontab
insopts -o root -g root -m 6111
doins fcronsighup
insinto /usr/sbin
insopts -o root -g root -m 0110
doins fcron
cd ${S}/files
insinto /etc/fcron
insopts -m 0640 -o root -g cron
doins fcron.conf fcron.allow fcron.deny
cd ${S}/doc
dodoc CHANGES README LICENSE MANIFEST VERSION
docinto html
dodoc *.html
doman *.{1,8}
insinto /etc/init.d
insopts -m 0755
newins ${FILESDIR}/fcron.rc6 fcron
}
|