Gentoo Archives: gentoo-commits

From: "Christian Ruppert (idl0r)" <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-process/vixie-cron: vixie-cron-4.1-r12.ebuild ChangeLog vixie-cron-4.1-r11.ebuild
Date: Sat, 31 Dec 2011 14:58:31
Message-Id: 20111231145821.1D6932004B@flycatcher.gentoo.org
1 idl0r 11/12/31 14:58:21
2
3 Modified: ChangeLog
4 Added: vixie-cron-4.1-r12.ebuild
5 Removed: vixie-cron-4.1-r11.ebuild
6 Log:
7 Revbump, improves the init script, bug 368189.
8
9 (Portage version: 2.1.10.41/cvs/Linux i686, RepoMan options: --force)
10
11 Revision Changes Path
12 1.63 sys-process/vixie-cron/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/vixie-cron/ChangeLog?rev=1.63&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/vixie-cron/ChangeLog?rev=1.63&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/vixie-cron/ChangeLog?r1=1.62&r2=1.63
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-process/vixie-cron/ChangeLog,v
21 retrieving revision 1.62
22 retrieving revision 1.63
23 diff -u -r1.62 -r1.63
24 --- ChangeLog 20 Sep 2011 15:13:51 -0000 1.62
25 +++ ChangeLog 31 Dec 2011 14:58:21 -0000 1.63
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-process/vixie-cron
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-process/vixie-cron/ChangeLog,v 1.62 2011/09/20 15:13:51 idl0r Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-process/vixie-cron/ChangeLog,v 1.63 2011/12/31 14:58:21 idl0r Exp $
31 +
32 +*vixie-cron-4.1-r12 (31 Dec 2011)
33 +
34 + 31 Dec 2011; Christian Ruppert <idl0r@g.o> -vixie-cron-4.1-r11.ebuild,
35 + +vixie-cron-4.1-r12.ebuild, +files/vixie-cron.rc7:
36 + Revbump, improves the init script, bug 368189.
37
38 20 Sep 2011; Christian Ruppert <idl0r@g.o> files/crontab-3.0.1-r4,
39 files/crontab:
40
41
42
43 1.1 sys-process/vixie-cron/vixie-cron-4.1-r12.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/vixie-cron/vixie-cron-4.1-r12.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/vixie-cron/vixie-cron-4.1-r12.ebuild?rev=1.1&content-type=text/plain
47
48 Index: vixie-cron-4.1-r12.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-process/vixie-cron/vixie-cron-4.1-r12.ebuild,v 1.1 2011/12/31 14:58:21 idl0r Exp $
53
54 inherit cron toolchain-funcs pam
55
56 # no useful homepage, bug #65898
57 HOMEPAGE="ftp://ftp.isc.org/isc/cron/"
58 DESCRIPTION="Paul Vixie's cron daemon, a fully featured crond implementation"
59
60 SELINUX_PATCH="${P}-selinux-1.diff"
61 GENTOO_PATCH_REV="r4"
62
63 SRC_URI="mirror://gentoo/${P}.tar.bz2
64 mirror://gentoo/${P}-gentoo-${GENTOO_PATCH_REV}.patch.bz2"
65
66 LICENSE="ISC BSD-2 BSD"
67 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
68 IUSE="selinux pam debug"
69
70 DEPEND="selinux? ( sys-libs/libselinux )
71 pam? ( virtual/pam )"
72
73 RDEPEND="selinux? ( sys-libs/libselinux )
74 pam? ( virtual/pam )"
75
76 #vixie-cron supports /etc/crontab
77 CRON_SYSTEM_CRONTAB="yes"
78
79 pkg_setup() {
80 enewgroup crontab
81 }
82
83 src_unpack() {
84 unpack ${A}
85 cd ${S}
86
87 epatch ${WORKDIR}/${P}-gentoo-${GENTOO_PATCH_REV}.patch
88 epatch ${FILESDIR}/crontab.5.diff
89 epatch ${FILESDIR}/${P}-commandline.patch
90 epatch ${FILESDIR}/${P}-basename.diff
91 epatch ${FILESDIR}/${P}-setuid_check.patch
92 epatch ${FILESDIR}/${P}-hardlink.patch
93
94 use pam && epatch ${FILESDIR}/${P}-pam.patch
95 use selinux && epatch ${FILESDIR}/${SELINUX_PATCH}
96 }
97
98 src_compile() {
99 use debug && append-flags -DDEBUGGING
100
101 sed -i -e "s:gcc \(-Wall.*\):$(tc-getCC) \1 ${CFLAGS}:" \
102 -e "s:^\(LDFLAGS[ \t]\+=\).*:\1 ${LDFLAGS}:" Makefile \
103 || die "sed Makefile failed"
104
105 emake || die "emake failed"
106 }
107
108 src_install() {
109 docrondir -m 1730 -o root -g crontab
110 docron
111 docrontab -m 2755 -o root -g crontab
112
113 # /etc stuff
114 insinto /etc
115 newins ${FILESDIR}/crontab-3.0.1-r4 crontab
116 newins ${FILESDIR}/${P}-cron.deny cron.deny
117
118 keepdir /etc/cron.d
119 newpamd ${FILESDIR}/pamd.compatible cron
120 newinitd ${FILESDIR}/vixie-cron.rc7 vixie-cron
121
122 # doc stuff
123 doman crontab.1 crontab.5 cron.8
124 dodoc ${FILESDIR}/crontab
125 dodoc CHANGES CONVERSION FEATURES MAIL README THANKS
126 }
127
128 pkg_preinst() {
129 has_version "<${CATEGORY}/${PN}-4.1-r10"
130 fix_spool_dir_perms=$?
131 }
132
133 pkg_postinst() {
134 if [[ -f ${ROOT}/etc/init.d/vcron ]]
135 then
136 ewarn "Please run:"
137 ewarn "rc-update del vcron"
138 ewarn "rc-update add vixie-cron default"
139 fi
140
141 # bug 71326
142 if [[ -u ${ROOT}/etc/pam.d/cron ]] ; then
143 echo
144 ewarn "Warning: previous ebuilds didn't reset permissions prior"
145 ewarn "to installing crontab, resulting in /etc/pam.d/cron being"
146 ewarn "installed with the SUID and executable bits set."
147 ewarn
148 ewarn "Run the following as root to set the proper permissions:"
149 ewarn " chmod 0644 /etc/pam.d/cron"
150 echo
151 fi
152
153 # bug 164466
154 if [[ $fix_spool_dir_perms = 0 ]] ; then
155 echo
156 ewarn "Previous ebuilds didn't correctly set permissions on"
157 ewarn "the crontabs spool directory. Proper permissions are"
158 ewarn "now being set on ${ROOT}var/spool/cron/crontabs/"
159 ewarn "Look at this directory if you have a specific configuration"
160 ewarn "that needs special ownerships or permissions."
161 echo
162 chmod 1730 "${ROOT}/var/spool/cron/crontabs" || die "chmod failed"
163 chgrp -R crontab "${ROOT}/var/spool/cron/crontabs" || die "chgrp failed"
164 cd "${ROOT}/var/spool/cron/crontabs/"
165 for cronfile in * ; do
166 [[ ! -f $cronfile ]] || chown "$cronfile:crontab" "$cronfile" \
167 || ewarn "chown failed on $cronfile, you probably have an orphan file."
168 done
169 fi
170
171 cron_pkg_postinst
172 }