Gentoo Archives: gentoo-commits

From: "Raphael Marichez (falco)" <falco@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-process/cronbase: ChangeLog cronbase-0.3.2-r1.ebuild
Date: Wed, 26 Sep 2007 21:44:59
Message-Id: E1IaeYW-0004mM-7L@stork.gentoo.org
1 falco 07/09/26 21:36:28
2
3 Modified: ChangeLog
4 Added: cronbase-0.3.2-r1.ebuild
5 Log:
6 Enforce proper permissions on existing directories (security bug 182998)
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.20 sys-process/cronbase/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/cronbase/ChangeLog?rev=1.20&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/cronbase/ChangeLog?rev=1.20&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/cronbase/ChangeLog?r1=1.19&r2=1.20
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-process/cronbase/ChangeLog,v
19 retrieving revision 1.19
20 retrieving revision 1.20
21 diff -u -r1.19 -r1.20
22 --- ChangeLog 2 Nov 2006 22:33:11 -0000 1.19
23 +++ ChangeLog 26 Sep 2007 21:36:27 -0000 1.20
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-process/cronbase
26 -# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/ChangeLog,v 1.19 2006/11/02 22:33:11 bangert Exp $
28 +# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/ChangeLog,v 1.20 2007/09/26 21:36:27 falco Exp $
30 +
31 +*cronbase-0.3.2-r1 (26 Sep 2007)
32 +
33 + 26 Sep 2007; Raphael Marichez <falco@g.o>
34 + +cronbase-0.3.2-r1.ebuild:
35 + Enforce proper permissions on existing directories (security bug 182998)
36
37 02 Nov 2006; Thilo Bangert <bangert@g.o> -files/README,
38 cronbase-0.2.1-r3.ebuild, cronbase-0.3.ebuild, cronbase-0.3.1.ebuild,
39
40
41
42 1.1 sys-process/cronbase/cronbase-0.3.2-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/cronbase/cronbase-0.3.2-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/cronbase/cronbase-0.3.2-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cronbase-0.3.2-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/cronbase-0.3.2-r1.ebuild,v 1.1 2007/09/26 21:36:27 falco Exp $
52
53 inherit eutils
54
55 DESCRIPTION="base for all cron ebuilds"
56 HOMEPAGE="http://www.gentoo.org/"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
61 IUSE=""
62
63 pkg_setup() {
64 enewgroup cron 16
65 enewuser cron 16 -1 /var/spool/cron cron
66 }
67
68 src_install() {
69 newsbin "${FILESDIR}"/run-crons-${PV} run-crons || die
70
71 diropts -m0750; keepdir /etc/cron.hourly
72 diropts -m0750; keepdir /etc/cron.daily
73 diropts -m0750; keepdir /etc/cron.weekly
74 diropts -m0750; keepdir /etc/cron.monthly
75
76 diropts -m0750 -o root -g cron; keepdir /var/spool/cron
77
78 diropts -m0750; keepdir /var/spool/cron/lastrun
79 }
80
81 pkg_postinst() {
82 if has_version '<sys-process/cronbase-0.3.2-r1' ; then
83 echo
84 elog "Previous ebuilds didn't enforce proper permissions on already"
85 elog "existing directories. Appropriate permissions are now being set on"
86 elog "${ROOT}/etc/cron.{hourly,daily,weekly,monthly},"
87 elog "${ROOT}/var/spool/cron/ and ${ROOT}/var/spool/cron/lastrun/"
88 elog "(see bug 182998)"
89 echo
90 chmod 0750 "${ROOT}"/etc/cron.{hourly,daily,weekly,monthly} \
91 || die "chmod failed"
92 chmod 0750 "${ROOT}"/var/spool/{cron,cron/lastrun} || die "chmod failed"
93 chown root:cron "${ROOT}/var/spool/cron" || die "chown failed"
94 fi
95 }
96
97
98
99
100 --
101 gentoo-commits@g.o mailing list