/[gentoo-x86]/sys-process/bcron/bcron-0.09.ebuild
Gentoo

Contents of /sys-process/bcron/bcron-0.09.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Wed Apr 20 17:52:34 2011 UTC (4 years, 2 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +2 -4 lines
Don't PROVIDE and don't block against virtual/cron, bug 360109.

(Portage version: 2.1.9.46/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-process/bcron/bcron-0.09.ebuild,v 1.12 2011/01/29 21:52:09 bangert Exp $
4
5 CRON_SYSTEM_CRONTAB="yes"
6
7 inherit cron eutils toolchain-funcs
8 DESCRIPTION="A new cron system designed with secure operations in mind by Bruce Guenter"
9
10 HOMEPAGE="http://untroubled.org/bcron/"
11 SRC_URI="http://untroubled.org/bcron/archive/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE=""
17
18 DEPEND=">=dev-libs/bglibs-1.031"
19 RDEPEND=">=sys-process/cronbase-0.3.2
20 virtual/mta
21 sys-apps/ucspi-unix
22 virtual/daemontools"
23
24 src_compile() {
25 echo "/usr/include/bglibs" > conf-bgincs
26 echo "/usr/lib/bglibs" > conf-bglibs
27 echo "${D}/usr/bin" > conf-bin
28 echo "$(tc-getCC) ${CFLAGS}" > conf-cc
29 echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
30 # bug #278459
31 emake -j1 || die "make failed"
32 }
33
34 src_install() {
35 einstall || die
36
37 #fix permissions of crontab
38 fperms o-rwx /usr/bin/bcrontab
39 fowners root:cron /usr/bin/bcrontab
40
41 doman bcrontab.1 crontab.5 bcron-update.8 bcron-start.8
42 doman bcron-spool.8 bcron-sched.8 bcron-exec.8
43
44 dodoc ANNOUNCEMENT NEWS README TODO
45
46 keepdir /etc/cron.d
47
48 keepdir /var/spool/cron/crontabs
49 keepdir /var/spool/cron/tmp
50
51 for i in crontabs tmp;
52 do
53 fowners cron:cron /var/spool/cron/$i
54 fperms go-rwx /var/spool/cron/$i
55 done
56
57 dodir /etc/bcron
58
59 insinto /etc
60 doins "${FILESDIR}"/crontab
61
62 insinto /var/lib/supervise/bcron
63 doins bcron-sched.run
64
65 insinto /var/lib/supervise/bcron/log
66 doins bcron-sched-log.run
67
68 insinto /var/lib/supervise/bcron-spool
69 doins bcron-spool.run
70
71 insinto /var/lib/supervise/bcron-update
72 doins bcron-update.run
73 }
74
75 pkg_config() {
76 cd "${ROOT}"var/lib/supervise/bcron
77 [ -e run ] && cp run bcron-sched.run.`date +%Y%m%d%H%M%S`
78 cp bcron-sched.run run
79 chmod u+x run
80
81 cd "${ROOT}"/var/lib/supervise/bcron/log
82 [ -e run ] && cp run bcron-sched-log.run.`date +%Y%m%d%H%M%S`
83 cp bcron-sched-log.run run
84 chmod u+x run
85
86 cd "${ROOT}"/var/lib/supervise/bcron-spool
87 [ -e run ] && cp run bcron-spool.run.`date +%Y%m%d%H%M%S`
88 cp bcron-spool.run run
89 chmod u+x run
90
91 cd "${ROOT}"/var/lib/supervise/bcron-update
92 [ -e run ] && cp run bcron-update.run.`date +%Y%m%d%H%M%S`
93 cp bcron-update.run run
94 chmod u+x run
95
96 [ ! -e "${ROOT}"/var/spool/cron/trigger ] && mkfifo "${ROOT}"var/spool/cron/trigger
97 chown cron:cron /var/spool/cron/trigger
98 chmod go-rwx /var/spool/cron/trigger
99 }
100
101 pkg_postinst() {
102 echo
103 elog "Run "
104 elog "emerge --config =${PF}"
105 elog "to create or update your run files (backups are created) in"
106 elog " /var/lib/supervise/bcron (bcron daemon) and"
107 elog " /var/lib/supervise/bcron-spool (crontab receiver) and"
108 elog " /var/lib/supervise/bcron-update (system crontab updater)"
109
110 cron_pkg_postinst
111 }

  ViewVC Help
Powered by ViewVC 1.1.20