Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apache/mod_suphp: ChangeLog mod_suphp-0.6.3.ebuild
Date: Sat, 19 Apr 2008 09:18:53
Message-Id: E1Jn9De-0005f7-W0@stork.gentoo.org
1 hollow 08/04/19 09:18:50
2
3 Modified: ChangeLog
4 Added: mod_suphp-0.6.3.ebuild
5 Log:
6 version bump wrt security #215568
7 (Portage version: 2.1.5_rc3)
8
9 Revision Changes Path
10 1.20 www-apache/mod_suphp/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_suphp/ChangeLog?rev=1.20&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_suphp/ChangeLog?rev=1.20&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_suphp/ChangeLog?r1=1.19&r2=1.20
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_suphp/ChangeLog,v
19 retrieving revision 1.19
20 retrieving revision 1.20
21 diff -u -r1.19 -r1.20
22 --- ChangeLog 23 Mar 2008 12:02:17 -0000 1.19
23 +++ ChangeLog 19 Apr 2008 09:18:50 -0000 1.20
24 @@ -1,6 +1,11 @@
25 # ChangeLog for www-apache/mod_suphp
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_suphp/ChangeLog,v 1.19 2008/03/23 12:02:17 hollow Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_suphp/ChangeLog,v 1.20 2008/04/19 09:18:50 hollow Exp $
29 +
30 +*mod_suphp-0.6.3 (19 Apr 2008)
31 +
32 + 19 Apr 2008; Benedikt Böhm <hollow@g.o> +mod_suphp-0.6.3.ebuild:
33 + version bump wrt security #215568
34
35 23 Mar 2008; Benedikt Böhm <hollow@g.o> mod_suphp-0.6.2-r3.ebuild:
36 fix depend.apache usage wrt #208033
37
38
39
40 1.1 www-apache/mod_suphp/mod_suphp-0.6.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_suphp/mod_suphp-0.6.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_suphp/mod_suphp-0.6.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mod_suphp-0.6.3.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/www-apache/mod_suphp/mod_suphp-0.6.3.ebuild,v 1.1 2008/04/19 09:18:50 hollow Exp $
50
51 inherit apache-module autotools eutils
52
53 MY_P="${P/mod_/}"
54
55 SETIDMODES="mode-force mode-owner mode-paranoid"
56
57 DESCRIPTION="A PHP wrapper for Apache2"
58 HOMEPAGE="http://www.suphp.org/"
59 SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~x86"
64 IUSE="checkpath ${SETIDMODES}"
65
66 S="${WORKDIR}/${MY_P}"
67
68 APXS2_S="${S}/src/apache2"
69 APACHE2_MOD_CONF="70_${PN}"
70 APACHE2_MOD_DEFINE="SUPHP"
71
72 need_apache2_2
73
74 pkg_setup() {
75 modecnt=0
76 for mode in ${SETIDMODES} ; do
77 if use ${mode} ; then
78 if [[ ${modecnt} -eq 0 ]] ; then
79 SUPHP_SETIDMODE=${mode/mode-}
80 let modecnt++
81 elif [[ ${modecnt} -ge 1 ]] ; then
82 die "You can only select ONE mode in your USE flags!"
83 fi
84 fi
85 done
86
87 if [[ ${modecnt} -eq 0 ]] ; then
88 ewarn
89 ewarn "No mode selected, defaulting to paranoid!"
90 ewarn
91 ewarn "If you want to choose another mode, put mode-force OR mode-owner"
92 ewarn "into your USE flags and run emerge again."
93 ewarn
94 SUPHP_SETIDMODE=paranoid
95 fi
96
97 elog
98 elog "Using ${SUPHP_SETIDMODE/mode-} mode"
99 elog
100 elog "You can manipulate several configure options of this"
101 elog "ebuild through environment variables:"
102 elog
103 elog "SUPHP_MINUID: Minimum UID, which is allowed to run scripts (default: 1000)"
104 elog "SUPHP_MINGID: Minimum GID, which is allowed to run scripts (default: 100)"
105 elog "SUPHP_APACHEUSER: Name of the user Apache is running as (default: apache)"
106 elog "SUPHP_LOGFILE: Path to suPHP logfile (default: /var/log/apache2/suphp_log)"
107 elog
108 }
109
110 src_unpack() {
111 unpack ${A}
112 cd "${S}"
113
114 epatch "${FILESDIR}"/${PN}-0.6.2-handler.patch
115 eautoreconf
116 }
117
118 src_compile() {
119 local myargs=""
120 use checkpath || myargs="${myargs} --disable-checkpath"
121
122 : ${SUPHP_MINUID:=1000}
123 : ${SUPHP_MINGID:=100}
124 : ${SUPHP_APACHEUSER:="apache"}
125 : ${SUPHP_LOGFILE:="/var/log/apache2/suphp_log"}
126
127 myargs="${myargs} \
128 --with-setid-mode=${SUPHP_SETIDMODE} \
129 --with-min-uid=${SUPHP_MINUID} \
130 --with-min-gid=${SUPHP_MINGID} \
131 --with-apache-user=${SUPHP_APACHEUSER} \
132 --with-logfile=${SUPHP_LOGFILE} \
133 --with-apxs=${APXS} \
134 --with-apr=/usr/bin/apr-1-config"
135 econf ${myargs} || die "econf failed"
136
137 emake || die "make failed"
138 }
139
140 src_install() {
141 apache-module_src_install
142 dosbin src/suphp
143 fperms 4755 /usr/sbin/suphp
144
145 dodoc ChangeLog doc/CONFIG
146
147 docinto apache
148 dodoc doc/apache/CONFIG doc/apache/INSTALL
149
150 insinto /etc
151 doins "${FILESDIR}/suphp.conf"
152 }
153
154 pkg_postinst() {
155 # Make sure the suphp binary is set setuid
156 chmod 4755 "${ROOT}"/usr/sbin/suphp
157
158 apache-module_pkg_postinst
159 }
160
161
162
163 --
164 gentoo-commits@l.g.o mailing list