Gentoo Archives: gentoo-commits

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