1 |
flameeyes 13/01/02 00:09:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: fcron-3.1.1.ebuild |
5 |
Log: |
6 |
Version bump; add a readline USE flag for the new optional dependency. |
7 |
|
8 |
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342) |
9 |
|
10 |
Revision Changes Path |
11 |
1.100 sys-process/fcron/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/fcron/ChangeLog?rev=1.100&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/fcron/ChangeLog?rev=1.100&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/fcron/ChangeLog?r1=1.99&r2=1.100 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-process/fcron/ChangeLog,v |
20 |
retrieving revision 1.99 |
21 |
retrieving revision 1.100 |
22 |
diff -u -r1.99 -r1.100 |
23 |
--- ChangeLog 23 Dec 2012 12:49:38 -0000 1.99 |
24 |
+++ ChangeLog 2 Jan 2013 00:09:11 -0000 1.100 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sys-process/fcron |
27 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/ChangeLog,v 1.99 2012/12/23 12:49:38 flameeyes Exp $ |
29 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/ChangeLog,v 1.100 2013/01/02 00:09:11 flameeyes Exp $ |
31 |
+ |
32 |
+*fcron-3.1.1 (02 Jan 2013) |
33 |
+ |
34 |
+ 02 Jan 2013; Diego E. Pettenò <flameeyes@g.o> +fcron-3.1.1.ebuild, |
35 |
+ +files/fcron-3.1.1-noreadline.patch: |
36 |
+ Version bump; add a readline USE flag for the new optional dependency. |
37 |
|
38 |
*fcron-3.1.0 (23 Dec 2012) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-process/fcron/fcron-3.1.1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/fcron/fcron-3.1.1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/fcron/fcron-3.1.1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: fcron-3.1.1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/fcron-3.1.1.ebuild,v 1.1 2013/01/02 00:09:11 flameeyes Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
WANT_AUTOMAKE=none |
57 |
|
58 |
inherit cron pam eutils flag-o-matic user autotools |
59 |
|
60 |
MY_P=${P/_/-} |
61 |
DESCRIPTION="A command scheduler with extended capabilities over cron and anacron" |
62 |
HOMEPAGE="http://fcron.free.fr/" |
63 |
SRC_URI="http://fcron.free.fr/archives/${MY_P}.src.tar.gz" |
64 |
|
65 |
LICENSE="GPL-2" |
66 |
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd" |
67 |
IUSE="debug pam selinux linguas_fr +system-crontab readline" |
68 |
|
69 |
DEPEND="selinux? ( sys-libs/libselinux ) |
70 |
pam? ( virtual/pam ) |
71 |
readline? ( sys-libs/readline )" |
72 |
|
73 |
# see bug 282214 for the reason to depend on bash |
74 |
RDEPEND="${DEPEND} |
75 |
app-shells/bash |
76 |
>=app-misc/editor-wrapper-3 |
77 |
pam? ( >=sys-auth/pambase-20100310 )" |
78 |
|
79 |
S="${WORKDIR}/${MY_P}" |
80 |
|
81 |
pkg_setup() { |
82 |
enewgroup fcron |
83 |
enewuser fcron -1 -1 -1 fcron |
84 |
rootuser=$(egetent passwd 0 | cut -d ':' -f 1) |
85 |
[[ ${rootuser} ]] || rootuser=root |
86 |
rootgroup=$(egetent group 0 | cut -d ':' -f 1) |
87 |
[[ ${rootgroup} ]] || rootgroup=root |
88 |
} |
89 |
|
90 |
src_prepare() { |
91 |
# respect LDFLAGS |
92 |
sed -i "s:\(@LIBS@\):\$(LDFLAGS) \1:" Makefile.in || die "sed failed" |
93 |
|
94 |
sed -i -e 's:/etc/fcrontab:/etc/fcron/fcrontab:' script/check_system_crontabs.sh || die |
95 |
|
96 |
epatch "${FILESDIR}"/${P}-noreadline.patch |
97 |
eautoconf |
98 |
} |
99 |
|
100 |
src_configure() { |
101 |
local myconf |
102 |
|
103 |
# Don't try to pass --with-debug as it'll play with cflags as |
104 |
# well, and run foreground which is a _very_ nasty idea for |
105 |
# Gentoo. |
106 |
use debug && append-flags -DDEBUG |
107 |
|
108 |
# bindir is used just for calling fcronsighup |
109 |
econf \ |
110 |
--with-cflags="${CFLAGS}" \ |
111 |
--bindir=/usr/libexec \ |
112 |
$(use_with pam) \ |
113 |
$(use_with selinux) \ |
114 |
$(use_with readline) \ |
115 |
--without-audit \ |
116 |
--sysconfdir=/etc/fcron \ |
117 |
--with-username=fcron \ |
118 |
--with-groupname=fcron \ |
119 |
--with-piddir=/var/run \ |
120 |
--with-spooldir=/var/spool/fcron \ |
121 |
--with-fifodir=/var/run \ |
122 |
--with-fcrondyn=yes \ |
123 |
--disable-checks \ |
124 |
--with-editor=/usr/libexec/editor \ |
125 |
--with-sendmail=/usr/sbin/sendmail \ |
126 |
--with-shell=/bin/sh \ |
127 |
--without-db2man --without-dsssl-dir \ |
128 |
--with-rootname=${rootuser} \ |
129 |
--with-rootgroup=${rootgroup} |
130 |
} |
131 |
|
132 |
src_compile() { |
133 |
default |
134 |
|
135 |
# bug #216460 |
136 |
sed -i \ |
137 |
-e 's:/usr/local/etc/fcron:/etc/fcron/fcron:g' \ |
138 |
-e 's:/usr/local/etc:/etc:g' \ |
139 |
-e 's:/usr/local/:/usr/:g' \ |
140 |
doc/*/*/*.{txt,1,5,8,html} \ |
141 |
|| die "unable to fix documentation references" |
142 |
} |
143 |
|
144 |
src_install() { |
145 |
keepdir /var/spool/fcron |
146 |
|
147 |
exeinto /usr/libexec |
148 |
doexe fcron fcronsighup |
149 |
|
150 |
dobin fcrondyn fcrontab |
151 |
|
152 |
insinto /etc/fcron |
153 |
doins files/fcron.{allow,deny,conf} |
154 |
|
155 |
if use system-crontab; then |
156 |
dosym fcrontab /usr/bin/crontab |
157 |
|
158 |
exeinto /usr/libexec |
159 |
newexe script/check_system_crontabs.sh check_system_crontabs |
160 |
|
161 |
insinto /etc/fcron |
162 |
newins "${FILESDIR}"/fcrontab.2 fcrontab |
163 |
|
164 |
fowners ${rootuser}:fcron /etc/fcron/fcrontab |
165 |
fperms 0640 /etc/fcron/fcrontab |
166 |
|
167 |
insinto /etc |
168 |
doins "${FILESDIR}"/crontab |
169 |
fi |
170 |
|
171 |
fowners fcron:fcron \ |
172 |
/var/spool/fcron \ |
173 |
/usr/bin/fcron{dyn,tab} |
174 |
|
175 |
# fcronsighup needs to be suid root, because it sends a HUP to the |
176 |
# running fcron daemon, but only has to be called by the fcron group |
177 |
# anyway |
178 |
fowners ${rootuser}:fcron \ |
179 |
/usr/libexec/fcronsighup \ |
180 |
/etc/fcron/fcron.{allow,deny,conf} \ |
181 |
/etc/fcron |
182 |
|
183 |
fperms 6770 /var/spool/fcron |
184 |
fperms 6775 /usr/bin/fcron{dyn,tab} |
185 |
|
186 |
fperms 4710 /usr/libexec/fcronsighup |
187 |
|
188 |
fperms 0750 /etc/fcron |
189 |
fperms 0640 /etc/fcron/fcron.{allow,deny,conf} |
190 |
|
191 |
pamd_mimic system-services fcron auth account session |
192 |
cat > "${T}"/fcrontab.pam <<- EOF |
193 |
# Don't ask for the user's password; fcrontab will only allow to |
194 |
# change user if running as root. |
195 |
auth sufficient pam_permit.so |
196 |
|
197 |
# Still use the system-auth stack for account and session as the |
198 |
# sysadmin might have set up stuff properly, and also avoids |
199 |
# sidestepping limits (since fcrontab will run \$EDITOR). |
200 |
account include system-auth |
201 |
session include system-auth |
202 |
EOF |
203 |
newpamd "${T}"/fcrontab.pam fcrontab |
204 |
|
205 |
newinitd "${FILESDIR}"/fcron.init.3 fcron |
206 |
|
207 |
dodoc MANIFEST VERSION "${FILESDIR}"/crontab \ |
208 |
doc/en/txt/{readme,thanks,faq,todo,relnotes,changes}.txt |
209 |
newdoc files/fcron.conf fcron.conf.sample |
210 |
dohtml doc/en/HTML/*.html |
211 |
doman doc/en/man/*.{1,5,8} |
212 |
|
213 |
for lang in fr; do |
214 |
use linguas_${lang} || continue |
215 |
|
216 |
doman -i18n=${lang} doc/${lang}/man/*.{1,5,8} || die |
217 |
docinto html/${lang} |
218 |
dohtml doc/${lang}/HTML/*.html || die |
219 |
done |
220 |
} |
221 |
|
222 |
pkg_postinst() { |
223 |
elog "If it's the first time you install fcron make sure to execute" |
224 |
elog " emerge --config ${CATEGORY}/${PN}" |
225 |
elog "to configure the proper settings." |
226 |
if ! use system-crontab; then |
227 |
echo "" |
228 |
ewarn "Remember that fcron will *not* use /etc/cron.d in this configuration" |
229 |
echo "" |
230 |
fi |
231 |
} |
232 |
|
233 |
pkg_config() { |
234 |
if [[ $(fcrontab -l -u systab 2>/dev/null) ]]; then |
235 |
eerror "We're not going to make any change to your systab as long as" |
236 |
eerror "it contains data; please clear it before proceeding." |
237 |
return 1 |
238 |
fi |
239 |
|
240 |
if use system-crontab; then |
241 |
elog "This is going to set up fcron to execute check_system_crontabs." |
242 |
elog "In this configuration, you're no longer free to edit the systab" |
243 |
elog "at your leisure, at it'll be rewritten the moment the crontabs" |
244 |
elog "are modified." |
245 |
/usr/libexec/check_system_crontabs -v -i -f |
246 |
else |
247 |
elog "This is going to set up fcron to set up a default systab that" |
248 |
elog "executes /etc/cron.{hourly,daily,weekly,monthly}." |
249 |
fcrontab -u systab - <<- EOF |
250 |
0 * * * * rm -f /var/spool/cron/lastrun/cron.hourly |
251 |
1 3 * * * rm -f /var/spool/cron/lastrun/cron.daily |
252 |
15 4 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly |
253 |
30 5 1 * * rm -f /var/spool/cron/lastrun/cron.monthly |
254 |
EOF |
255 |
fi |
256 |
} |