/[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 - (hide annotations) (download)
Wed Apr 20 17:52:34 2011 UTC (2 years, 11 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 bangert 1.12 # Copyright 1999-2011 Gentoo Foundation
2 bangert 1.1 # Distributed under the terms of the GNU General Public License v2
3 ulm 1.13 # $Header: /var/cvsroot/gentoo-x86/sys-process/bcron/bcron-0.09.ebuild,v 1.12 2011/01/29 21:52:09 bangert Exp $
4 bangert 1.3
5     CRON_SYSTEM_CRONTAB="yes"
6 bangert 1.1
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 bangert 1.3 SRC_URI="http://untroubled.org/bcron/archive/${P}.tar.gz"
12 bangert 1.1
13     LICENSE="GPL-2"
14     SLOT="0"
15 maekke 1.9 KEYWORDS="amd64 x86"
16 bangert 1.1 IUSE=""
17    
18 patrick 1.11 DEPEND=">=dev-libs/bglibs-1.031"
19 ulm 1.13 RDEPEND=">=sys-process/cronbase-0.3.2
20 bangert 1.1 virtual/mta
21     sys-apps/ucspi-unix
22 bangert 1.12 virtual/daemontools"
23 bangert 1.1
24     src_compile() {
25 bangert 1.5 echo "/usr/include/bglibs" > conf-bgincs
26     echo "/usr/lib/bglibs" > conf-bglibs
27 bangert 1.1 echo "${D}/usr/bin" > conf-bin
28     echo "$(tc-getCC) ${CFLAGS}" > conf-cc
29     echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
30 flameeyes 1.10 # bug #278459
31     emake -j1 || die "make failed"
32 bangert 1.1 }
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 bangert 1.8 doins "${FILESDIR}"/crontab
61 bangert 1.1
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 bangert 1.8 cd "${ROOT}"var/lib/supervise/bcron
77 bangert 1.1 [ -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 bangert 1.8 cd "${ROOT}"/var/lib/supervise/bcron/log
82 bangert 1.1 [ -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 bangert 1.8 cd "${ROOT}"/var/lib/supervise/bcron-spool
87 bangert 1.1 [ -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 bangert 1.8 cd "${ROOT}"/var/lib/supervise/bcron-update
92 bangert 1.1 [ -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 bangert 1.8 [ ! -e "${ROOT}"/var/spool/cron/trigger ] && mkfifo "${ROOT}"var/spool/cron/trigger
97 bangert 1.1 chown cron:cron /var/spool/cron/trigger
98     chmod go-rwx /var/spool/cron/trigger
99     }
100    
101     pkg_postinst() {
102     echo
103 bangert 1.4 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 bangert 1.1
110 bangert 1.8 cron_pkg_postinst
111 bangert 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20