Gentoo Archives: gentoo-commits

From: "Wolfram Schlich (wschlich)" <wschlich@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-process/fcron: ChangeLog fcron-3.0.4.ebuild
Date: Tue, 20 Nov 2007 00:52:17
Message-Id: E1IuHLT-0003no-SB@stork.gentoo.org
1 wschlich 07/11/20 00:52:07
2
3 Modified: ChangeLog fcron-3.0.4.ebuild
4 Log:
5 convert pkg_postinst() magic to ROOT variable
6 (Portage version: 2.1.3.19)
7
8 Revision Changes Path
9 1.51 sys-process/fcron/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/fcron/ChangeLog?rev=1.51&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/fcron/ChangeLog?rev=1.51&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/fcron/ChangeLog?r1=1.50&r2=1.51
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-process/fcron/ChangeLog,v
18 retrieving revision 1.50
19 retrieving revision 1.51
20 diff -u -r1.50 -r1.51
21 --- ChangeLog 9 Nov 2007 08:54:59 -0000 1.50
22 +++ ChangeLog 20 Nov 2007 00:52:07 -0000 1.51
23 @@ -1,6 +1,9 @@
24 # ChangeLog for sys-process/fcron
25 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/ChangeLog,v 1.50 2007/11/09 08:54:59 wschlich Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/ChangeLog,v 1.51 2007/11/20 00:52:07 wschlich Exp $
28 +
29 + 20 Nov 2007; Wolfram Schlich <wschlich@g.o> fcron-3.0.4.ebuild:
30 + convert pkg_postinst() magic to ROOT variable
31
32 *fcron-3.0.4 (09 Nov 2007)
33
34
35
36
37 1.2 sys-process/fcron/fcron-3.0.4.ebuild
38
39 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/fcron/fcron-3.0.4.ebuild?rev=1.2&view=markup
40 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/fcron/fcron-3.0.4.ebuild?rev=1.2&content-type=text/plain
41 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/fcron/fcron-3.0.4.ebuild?r1=1.1&r2=1.2
42
43 Index: fcron-3.0.4.ebuild
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/sys-process/fcron/fcron-3.0.4.ebuild,v
46 retrieving revision 1.1
47 retrieving revision 1.2
48 diff -u -r1.1 -r1.2
49 --- fcron-3.0.4.ebuild 9 Nov 2007 08:54:59 -0000 1.1
50 +++ fcron-3.0.4.ebuild 20 Nov 2007 00:52:07 -0000 1.2
51 @@ -1,6 +1,6 @@
52 # Copyright 1999-2007 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 -# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/fcron-3.0.4.ebuild,v 1.1 2007/11/09 08:54:59 wschlich Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/fcron-3.0.4.ebuild,v 1.2 2007/11/20 00:52:07 wschlich Exp $
56
57 inherit cron pam eutils
58
59 @@ -146,13 +146,13 @@
60 einfo
61 einfo "fcron has some important differences compared to vixie-cron:"
62 einfo
63 - einfo "1. fcron stores the crontabs in /var/spool/fcron"
64 - einfo " instead of /var/spool/cron/crontabs"
65 + einfo "1. fcron stores the crontabs in ${ROOT}var/spool/fcron"
66 + einfo " instead of ${ROOT}var/spool/cron/crontabs"
67 einfo
68 einfo "2. fcron uses a special binary file format for storing the"
69 - einfo " crontabs in /var/spool/fcron/USERNAME,"
70 + einfo " crontabs in ${ROOT}var/spool/fcron/USERNAME,"
71 einfo " but the original plain text version is saved as"
72 - einfo " /var/spool/fcron/USERNAME.orig for your"
73 + einfo " ${ROOT}var/spool/fcron/USERNAME.orig for your"
74 einfo " reference (and for being edited with fcrontab)."
75 einfo
76 einfo "3. fcron does not feature a system crontab in exactly the"
77 @@ -160,21 +160,21 @@
78 einfo " features a crontab for a pseudo-user 'systab' for use"
79 einfo " as the system crontab. Running a command like"
80 einfo
81 - einfo " fcrontab -u systab /etc/crontab"
82 + einfo " fcrontab -u systab ${ROOT}etc/crontab"
83 einfo
84 - einfo " will write /etc/crontab to the fcron crontabs directory as"
85 + einfo " will write ${ROOT}etc/crontab to the fcron crontabs directory as"
86 einfo
87 - einfo " /var/spool/fcron/systab"
88 + einfo " ${ROOT}var/spool/fcron/systab"
89 einfo
90 - einfo " Please note that changes to /etc/crontab will not become"
91 + einfo " Please note that changes to ${ROOT}etc/crontab will not become"
92 einfo " active automatically! fcron also does not use the directory"
93 - einfo " /etc/cron.d by default like vixie-cron does."
94 + einfo " ${ROOT}etc/cron.d by default like vixie-cron does."
95 einfo " Fortunately, it's possible to emulate vixie-cron's behavior"
96 - einfo " with regards to /etc/crontab and /etc/cron.d by using a"
97 + einfo " with regards to ${ROOT}etc/crontab and ${ROOT}etc/cron.d by using a"
98 einfo " little helper script called 'check_system_crontabs'."
99 - einfo " The file /etc/fcrontab (not /etc/crontab!) has been set up"
100 + einfo " The file ${ROOT}etc/fcrontab (not ${ROOT}etc/crontab!) has been set up"
101 einfo " to run the script once a while to check whether"
102 - einfo " /etc/fcrontab, /etc/crontab or files in /etc/cron.d/ have"
103 + einfo " ${ROOT}etc/fcrontab, ${ROOT}etc/crontab or files in ${ROOT}etc/cron.d/ have"
104 einfo " changed since the last generation of the systab and"
105 einfo " regenerate it from those three locations as necessary."
106 einfo " You should now run 'check_system_crontabs' once to properly"
107 @@ -182,31 +182,31 @@
108 einfo
109 einfo " check_system_crontabs -v -i -f"
110 einfo
111 - einfo " The file /etc/fcrontab should only be used to run that"
112 + einfo " The file ${ROOT}etc/fcrontab should only be used to run that"
113 einfo " script in order to ensure independence from the standard"
114 - einfo " system crontab file /etc/crontab."
115 + einfo " system crontab file ${ROOT}etc/crontab."
116 einfo " You may of course adjust the schedule for the script"
117 einfo " 'check_system_crontabs' or any other setting in"
118 - einfo " /etc/fcrontab as you desire."
119 + einfo " ${ROOT}etc/fcrontab as you desire."
120 einfo
121 einfo "If you do NOT want to use 'check_system_crontabs', you"
122 einfo "might still want to activate the use of the well known"
123 - einfo "directories /etc/cron.{hourly|daily|weekly|monthly} by"
124 - einfo "just generating a systab once from /etc/crontab:"
125 + einfo "directories ${ROOT}etc/cron.{hourly|daily|weekly|monthly} by"
126 + einfo "just generating a systab once from ${ROOT}etc/crontab:"
127 einfo
128 - einfo " fcrontab -u systab /etc/crontab"
129 + einfo " fcrontab -u systab ${ROOT}etc/crontab"
130 einfo
131 einfo "Happy fcron'ing!"
132 einfo
133
134 ewarn
135 - ewarn "Fixing permissions and ownership of /usr/bin/fcron{tab,dyn,sighup}"
136 - chown fcron:fcron /usr/bin/fcron{tab,dyn} >&/dev/null
137 - chown ${rootuser:-root}:fcron /usr/bin/fcronsighup >&/dev/null
138 - chmod 6755 /usr/bin/fcron{tab,dyn,sighup} >&/dev/null
139 - ewarn "Fixing permissions and ownership of /etc/{fcron,fcrontab,crontab}"
140 - chown -R ${rootuser:-root}:fcron /etc/{fcron,fcrontab,crontab} >&/dev/null
141 - chmod -R g+rX,o= /etc/fcron /etc/{fcron,fcrontab,crontab} >&/dev/null
142 + ewarn "Fixing permissions and ownership of ${ROOT}usr/bin/fcron{tab,dyn,sighup}"
143 + chown fcron:fcron ${ROOT}usr/bin/fcron{tab,dyn} >&/dev/null
144 + chown ${rootuser:-root}:fcron ${ROOT}usr/bin/fcronsighup >&/dev/null
145 + chmod 6755 ${ROOT}usr/bin/fcron{tab,dyn,sighup} >&/dev/null
146 + ewarn "Fixing permissions and ownership of ${ROOT}etc/{fcron,fcrontab,crontab}"
147 + chown -R ${rootuser:-root}:fcron ${ROOT}etc/{fcron,fcrontab,crontab} >&/dev/null
148 + chmod -R g+rX,o= ${ROOT}etc/fcron ${ROOT}etc/{fcron,fcrontab,crontab} >&/dev/null
149 ewarn
150
151 ewarn
152 @@ -217,31 +217,31 @@
153 ewarn "fcron usage can now only be restricted by adding users"
154 ewarn "to the following files instead of to the group 'cron':"
155 ewarn
156 - ewarn " /etc/fcron/fcron.allow"
157 - ewarn " /etc/fcron/fcron.deny"
158 + ewarn " ${ROOT}etc/fcron/fcron.allow"
159 + ewarn " ${ROOT}etc/fcron/fcron.deny"
160 ewarn
161 ebeep 10
162 epause 10
163
164 - if ls -1 /var/spool/cron/fcrontabs/* >&/dev/null; then
165 + if ls -1 ${ROOT}var/spool/cron/fcrontabs/* >&/dev/null; then
166 ewarn
167 ewarn "WARNING: fcron now uses a dedicated fcron-specific"
168 - ewarn "spooldir /var/spool/fcron instead of the commonly"
169 - ewarn "used /var/spool/cron for several reasons."
170 + ewarn "spooldir ${ROOT}var/spool/fcron instead of the commonly"
171 + ewarn "used ${ROOT}var/spool/cron for several reasons."
172 ewarn
173 - ewarn "Copying over existing crontabs from /var/spool/cron/fcrontabs"
174 - cp /var/spool/cron/fcrontabs/* /var/spool/fcron/ >&/dev/null \
175 + ewarn "Copying over existing crontabs from ${ROOT}var/spool/cron/fcrontabs"
176 + cp ${ROOT}var/spool/cron/fcrontabs/* ${ROOT}var/spool/fcron/ >&/dev/null \
177 || die "failed to migrate existing crontabs"
178 - ewarn "You should now remove /var/spool/cron/fcrontabs!"
179 + ewarn "You should now remove ${ROOT}var/spool/cron/fcrontabs!"
180 ewarn
181 - ewarn "Fixing permissions and ownership of /var/spool/fcron"
182 - chown root:root /var/spool/fcron/* >&/dev/null
183 - chmod 0600 /var/spool/fcron/* >&/dev/null
184 - chown fcron:fcron /var/spool/fcron/*.orig >&/dev/null
185 - chmod 0640 /var/spool/fcron/*.orig >&/dev/null
186 + ewarn "Fixing permissions and ownership of ${ROOT}var/spool/fcron"
187 + chown root:root ${ROOT}var/spool/fcron/* >&/dev/null
188 + chmod 0600 ${ROOT}var/spool/fcron/* >&/dev/null
189 + chown fcron:fcron ${ROOT}var/spool/fcron/*.orig >&/dev/null
190 + chmod 0640 ${ROOT}var/spool/fcron/*.orig >&/dev/null
191 ewarn
192 ewarn "*** YOU SHOULD IMMEDIATELY UPDATE THE"
193 - ewarn "*** fcrontabs ENTRY IN /etc/fcron/fcron.conf"
194 + ewarn "*** fcrontabs ENTRY IN ${ROOT}etc/fcron/fcron.conf"
195 ewarn "*** AND RESTART YOUR FCRON DAEMON!"
196 ebeep 20
197 epause 10
198
199
200
201 --
202 gentoo-commits@g.o mailing list