Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o, wschlich@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-process/fcron: ChangeLog fcron-3.0.4.ebuild
Date: Fri, 09 Nov 2007 09:12:22
Message-Id: 20071109090805.GD5516@supernova
1 On 08:54 Fri 09 Nov , Wolfram Schlich (wschlich) wrote:
2 > 1.1 sys-process/fcron/fcron-3.0.4.ebuild
3 >
4 > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/fcron/fcron-3.0.4.ebuild?rev=1.1&view=markup
5 > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/fcron/fcron-3.0.4.ebuild?rev=1.1&content-type=text/plain
6
7 > if useq debug; then
8
9 use() is useq() now. Dunno whether this is common enough to deserve a
10 repoman check.
11
12 > if ls -1 /var/spool/cron/fcrontabs/* >&/dev/null; then
13
14 This particular check ignores ROOT, and so does the rest of
15 pkg_postinst(). Seems to me that a cron daemon is a package relatively
16 likely to be installed using ROOT, so it's worth fixing.
17
18 > ewarn
19 > ewarn "WARNING: fcron now uses a dedicated fcron-specific"
20 > ewarn "spooldir /var/spool/fcron instead of the commonly"
21 > ewarn "used /var/spool/cron for several reasons."
22 > ewarn
23 > ewarn "Copying over existing crontabs from /var/spool/cron/fcrontabs"
24 > cp /var/spool/cron/fcrontabs/* /var/spool/fcron/ >&/dev/null \
25 > || die "failed to migrate existing crontabs"
26 > ewarn "You should now remove /var/spool/cron/fcrontabs!"
27 > ewarn
28 > ewarn "Fixing permissions and ownership of /var/spool/fcron"
29 > chown root:root /var/spool/fcron/* >&/dev/null
30 > chmod 0600 /var/spool/fcron/* >&/dev/null
31 > chown fcron:fcron /var/spool/fcron/*.orig >&/dev/null
32 > chmod 0640 /var/spool/fcron/*.orig >&/dev/null
33 > ewarn
34 > ewarn "*** YOU SHOULD IMMEDIATELY UPDATE THE"
35 > ewarn "*** fcrontabs ENTRY IN /etc/fcron/fcron.conf"
36 > ewarn "*** AND RESTART YOUR FCRON DAEMON!"
37 > ebeep 20
38 > epause 10
39
40 Thanks,
41 Donnie
42 --
43 gentoo-dev@g.o mailing list

Replies