1 |
dev-zero 10/04/26 09:50:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nginx-0.8.36.ebuild |
5 |
Log: |
6 |
Version bump. Make sure we don't depend on perl unconditionally. |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.256 www-servers/nginx/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.256&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.256&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?r1=1.255&r2=1.256 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v |
19 |
retrieving revision 1.255 |
20 |
retrieving revision 1.256 |
21 |
diff -u -r1.255 -r1.256 |
22 |
--- ChangeLog 11 Apr 2010 19:52:34 -0000 1.255 |
23 |
+++ ChangeLog 26 Apr 2010 09:50:08 -0000 1.256 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for www-servers/nginx |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.255 2010/04/11 19:52:34 dev-zero Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.256 2010/04/26 09:50:08 dev-zero Exp $ |
29 |
+ |
30 |
+*nginx-0.8.36 (26 Apr 2010) |
31 |
+ |
32 |
+ 26 Apr 2010; Tiziano Müller <dev-zero@g.o> +nginx-0.8.36.ebuild: |
33 |
+ Version bump. Make sure we don't depend on perl unconditionally. |
34 |
|
35 |
*nginx-0.8.35 (11 Apr 2010) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 www-servers/nginx/nginx-0.8.36.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.8.36.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.8.36.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: nginx-0.8.36.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-0.8.36.ebuild,v 1.1 2010/04/26 09:50:08 dev-zero Exp $ |
50 |
|
51 |
EAPI="2" |
52 |
|
53 |
USE_RUBY="ruby18" |
54 |
RUBY_OPTIONAL="yes" |
55 |
PASSENGER_PV="2.2.11" |
56 |
HTTP_PUSH_MODULE_P="nginx_http_push_module-0.692" |
57 |
GENTOO_DEPEND_ON_PERL="no" |
58 |
|
59 |
inherit eutils ssl-cert toolchain-funcs perl-module ruby-ng flag-o-matic |
60 |
|
61 |
DESCRIPTION="Robust, small and high performance http and reverse proxy server" |
62 |
HOMEPAGE="http://nginx.net/ http://pushmodule.slact.net/" |
63 |
SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz |
64 |
nginx_modules_http_passenger? ( mirror://rubyforge/passenger/passenger-${PASSENGER_PV}.tar.gz ) |
65 |
nginx_modules_http_push? ( http://pushmodule.slact.net/downloads/${HTTP_PUSH_MODULE_P}.tar.gz )" |
66 |
|
67 |
LICENSE="BSD" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
70 |
|
71 |
NGINX_MODULES_STD="access auth_basic autoindex browser charset empty_gif fastcgi |
72 |
geo gzip limit_req limit_zone map memcached proxy referer rewrite ssi |
73 |
upstream_ip_hash userid" |
74 |
NGINX_MODULES_OPT="addition dav degradation flv geoip gzip_static image_filter |
75 |
perl random_index realip secure_link stub_status sub xslt" |
76 |
NGINX_MODULES_MAIL="imap pop3 smtp" |
77 |
NGINX_MODULES_3RD="http_passenger http_push" |
78 |
|
79 |
IUSE="aio debug +http +http-cache ipv6 libatomic +pcre ssl" |
80 |
|
81 |
for mod in $NGINX_MODULES_STD; do |
82 |
IUSE="${IUSE} +nginx_modules_http_${mod}" |
83 |
done |
84 |
|
85 |
for mod in $NGINX_MODULES_OPT; do |
86 |
IUSE="${IUSE} nginx_modules_http_${mod}" |
87 |
done |
88 |
|
89 |
for mod in $NGINX_MODULES_MAIL; do |
90 |
IUSE="${IUSE} nginx_modules_mail_${mod}" |
91 |
done |
92 |
|
93 |
for mod in $NGINX_MODULES_3RD; do |
94 |
IUSE="${IUSE} nginx_modules_${mod}" |
95 |
done |
96 |
|
97 |
CDEPEND=" |
98 |
pcre? ( >=dev-libs/libpcre-4.2 ) |
99 |
ssl? ( dev-libs/openssl ) |
100 |
http-cache? ( userland_GNU? ( dev-libs/openssl ) ) |
101 |
nginx_modules_http_geo? ( dev-libs/geoip ) |
102 |
nginx_modules_http_gzip? ( sys-libs/zlib ) |
103 |
nginx_modules_http_gzip_static? ( sys-libs/zlib ) |
104 |
nginx_modules_http_image_filter? ( media-libs/gd ) |
105 |
nginx_modules_http_perl? ( >=dev-lang/perl-5.8 ) |
106 |
nginx_modules_http_rewrite? ( >=dev-libs/libpcre-4.2 ) |
107 |
nginx_modules_http_secure_link? ( userland_GNU? ( dev-libs/openssl ) ) |
108 |
nginx_modules_http_xslt? ( dev-libs/libxml2 dev-libs/libxslt ) |
109 |
nginx_modules_http_passenger? ( |
110 |
$(ruby_implementation_depend ruby18) |
111 |
>=dev-ruby/rubygems-0.9.0 |
112 |
>=dev-ruby/rake-0.8.1 |
113 |
>=dev-ruby/fastthread-1.0.1 |
114 |
>=dev-ruby/rack-1.0.0 |
115 |
)" |
116 |
RDEPEND="${CDEPEND}" |
117 |
DEPEND="${CDEPEND} |
118 |
arm? ( dev-libs/libatomic_ops ) |
119 |
libatomic? ( dev-libs/libatomic_ops )" |
120 |
|
121 |
# Maintainer notes: |
122 |
# - http_rewrite-independent pcre-support makes sense for matching locations without an actual rewrite |
123 |
# - any http-module activates the main http-functionality and overrides USE=-http |
124 |
# - keep the following 3 requirements in mind before adding external modules: |
125 |
# * alive upstream |
126 |
# * sane packaging |
127 |
# * builds cleanly |
128 |
# - TODO: passenger currently builds some stuff in src_configure |
129 |
# - TODO: test the google-perftools module (included in vanilla tarball) |
130 |
|
131 |
pkg_setup() { |
132 |
ebegin "Creating nginx user and group" |
133 |
enewgroup ${PN} |
134 |
enewuser ${PN} -1 -1 -1 ${PN} |
135 |
eend ${?} |
136 |
|
137 |
if use ipv6; then |
138 |
ewarn "Note that ipv6 support in nginx is still experimental." |
139 |
ewarn "Be sure to read comments on gentoo bug #274614" |
140 |
ewarn "http://bugs.gentoo.org/show_bug.cgi?id=274614" |
141 |
fi |
142 |
|
143 |
if use libatomic; then |
144 |
ewarn "GCC 4.1+ features built-in atomic operations." |
145 |
ewarn "Using libatomic_ops is only needed if using" |
146 |
ewarn "a different compiler or a GCC prior to 4.1" |
147 |
fi |
148 |
|
149 |
if [[ -n $NGINX_ADD_MODULES ]]; then |
150 |
ewarn "You are building custom modules via \$NGINX_ADD_MODULES!" |
151 |
ewarn "This nginx installation is not supported!" |
152 |
ewarn "Make sure you can reproduce the bug without those modules" |
153 |
ewarn "_before_ reporting bugs." |
154 |
fi |
155 |
|
156 |
if use nginx_modules_http_passenger; then |
157 |
ruby-ng_pkg_setup |
158 |
use debug && append-flags -DPASSENGER_DEBUG |
159 |
fi |
160 |
|
161 |
if use !http ; then |
162 |
ewarn "To actually disable all http-functionality you also have to disable" |
163 |
ewarn "all nginx http modules." |
164 |
fi |
165 |
} |
166 |
|
167 |
src_unpack() { |
168 |
# prevent ruby-ng.eclass from messing with src_unpack |
169 |
default |
170 |
} |
171 |
|
172 |
src_prepare() { |
173 |
sed -i 's/ make/ \\$(MAKE)/' "${S}"/auto/lib/perl/make |
174 |
|
175 |
if use nginx_modules_http_passenger; then |
176 |
cd "${WORKDIR}"/passenger-${PASSENGER_PV} |
177 |
epatch "${FILESDIR}"/passenger-CFLAGS.patch |
178 |
fi |
179 |
} |
180 |
|
181 |
src_configure() { |
182 |
local myconf= http_enabled= mail_enabled= |
183 |
|
184 |
use aio && myconf="${myconf} --with-file-aio --with-aio_module" |
185 |
use debug && myconf="${myconf} --with-debug" |
186 |
use ipv6 && myconf="${myconf} --with-ipv6" |
187 |
use libatomic && myconf="${myconf} --with-libatomic" |
188 |
use pcre && myconf="${myconf} --with-pcre" |
189 |
|
190 |
# HTTP modules |
191 |
for mod in $NGINX_MODULES_STD; do |
192 |
if use nginx_modules_http_${mod}; then |
193 |
http_enabled=1 |
194 |
else |
195 |
myconf="${myconf} --without-http_${mod}_module" |
196 |
fi |
197 |
done |
198 |
|
199 |
for mod in $NGINX_MODULES_OPT; do |
200 |
if use nginx_modules_http_${mod}; then |
201 |
http_enabled=1 |
202 |
myconf="${myconf} --with-http_${mod}_module" |
203 |
fi |
204 |
done |
205 |
|
206 |
if use nginx_modules_http_fastcgi; then |
207 |
myconf="${myconf} --with-http_realip_module" |
208 |
fi |
209 |
|
210 |
if use nginx_modules_http_passenger; then |
211 |
http_enabled=1 |
212 |
myconf="${myconf} --add-module=${WORKDIR}/passenger-${PASSENGER_PV}/ext/nginx" |
213 |
fi |
214 |
|
215 |
if use nginx_modules_http_push ; then |
216 |
http_enabled=1 |
217 |
myconf="${myconf} --add-module=${WORKDIR}/${HTTP_PUSH_MODULE_P}" |
218 |
fi |
219 |
|
220 |
if use http || use http-cache; then |
221 |
http_enabled=1 |
222 |
fi |
223 |
|
224 |
if [ $http_enabled ]; then |
225 |
use http-cache || myconf="${myconf} --without-http-cache" |
226 |
use ssl && myconf="${myconf} --with-http_ssl_module" |
227 |
else |
228 |
myconf="${myconf} --without-http --without-http-cache" |
229 |
fi |
230 |
|
231 |
# MAIL modules |
232 |
for mod in $NGINX_MODULES_MAIL; do |
233 |
if use nginx_modules_mail_${mod}; then |
234 |
mail_enabled=1 |
235 |
else |
236 |
myconf="${myconf} --without-mail_${mod}_module" |
237 |
fi |
238 |
done |
239 |
|
240 |
if [ $mail_enabled ]; then |
241 |
myconf="${myconf} --with-mail" |
242 |
use ssl && myconf="${myconf} --with-mail_ssl_module" |
243 |
fi |
244 |
|
245 |
# custom modules |
246 |
for mod in $NGINX_ADD_MODULES; do |
247 |
myconf="${myconf} --add-module=${mod}" |
248 |
done |
249 |
|
250 |
# http://bugs.gentoo.org/show_bug.cgi?id=286772 |
251 |
export LANG=C LC_ALL=C |
252 |
tc-export CC |
253 |
|
254 |
./configure \ |
255 |
--prefix=/usr \ |
256 |
--sbin-path=/usr/sbin/nginx \ |
257 |
--conf-path=/etc/${PN}/${PN}.conf \ |
258 |
--error-log-path=/var/log/${PN}/error_log \ |
259 |
--pid-path=/var/run/${PN}.pid \ |
260 |
--lock-path=/var/lock/nginx.lock \ |
261 |
--user=${PN} --group=${PN} \ |
262 |
--with-cc-opt="-I${ROOT}usr/include" \ |
263 |
--with-ld-opt="-L${ROOT}usr/lib" \ |
264 |
--http-log-path=/var/log/${PN}/access_log \ |
265 |
--http-client-body-temp-path=/var/tmp/${PN}/client \ |
266 |
--http-proxy-temp-path=/var/tmp/${PN}/proxy \ |
267 |
--http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \ |
268 |
${myconf} || die "configure failed" |
269 |
} |
270 |
|
271 |
src_compile() { |
272 |
# http://bugs.gentoo.org/show_bug.cgi?id=286772 |
273 |
export LANG=C LC_ALL=C |
274 |
emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" || die "emake failed" |
275 |
} |
276 |
|
277 |
src_install() { |
278 |
keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi} |
279 |
|
280 |
dosbin objs/nginx |
281 |
newinitd "${FILESDIR}"/nginx.init-r2 nginx |
282 |
|
283 |
cp "${FILESDIR}"/nginx.conf-r4 conf/nginx.conf |
284 |
rm conf/win-utf conf/koi-win conf/koi-utf |
285 |
|
286 |
dodir /etc/${PN} |
287 |
insinto /etc/${PN} |
288 |
doins conf/* |
289 |
|
290 |
dodoc CHANGES* README |
291 |
|
292 |
# logrotate |
293 |
insinto /etc/logrotate.d |
294 |
newins "${FILESDIR}"/nginx.logrotate nginx |
295 |
|
296 |
if use nginx_modules_http_perl; then |
297 |
cd "${S}"/objs/src/http/modules/perl/ |
298 |
einstall DESTDIR="${D}" INSTALLDIRS=vendor || die "failed to install perl stuff" |
299 |
fixlocalpod |
300 |
fi |
301 |
|
302 |
if use nginx_modules_http_push ; then |
303 |
docinto ${HTTP_PUSH_MODULE_P} |
304 |
dodoc "${WORKDIR}/${HTTP_PUSH_MODULE_P}"/{changelog.txt,protocol.txt,README} |
305 |
fi |
306 |
|
307 |
if use nginx_modules_http_passenger; then |
308 |
# passengers Rakefile is so horribly broken that we have to do it |
309 |
# manually |
310 |
cd "${WORKDIR}"/passenger-${PASSENGER_PV} |
311 |
|
312 |
export RUBY="ruby18" |
313 |
|
314 |
insinto $(${RUBY} -rrbconfig -e 'print Config::CONFIG["archdir"]')/phusion_passenger |
315 |
insopts -m 0755 |
316 |
doins ext/phusion_passenger/*.so |
317 |
doruby -r lib/phusion_passenger |
318 |
|
319 |
exeinto /usr/bin |
320 |
doexe bin/passenger-memory-stats bin/passenger-status |
321 |
|
322 |
exeinto /usr/libexec/passenger/bin |
323 |
doexe bin/passenger-spawn-server |
324 |
|
325 |
exeinto /usr/libexec/passenger/ext/nginx |
326 |
doexe ext/nginx/HelperServer |
327 |
fi |
328 |
} |
329 |
|
330 |
pkg_postinst() { |
331 |
if use ssl; then |
332 |
if [ ! -f "${ROOT}"/etc/ssl/${PN}/${PN}.key ]; then |
333 |
install_cert /etc/ssl/${PN}/${PN} |
334 |
chown ${PN}:${PN} "${ROOT}"/etc/ssl/${PN}/${PN}.{crt,csr,key,pem} |
335 |
fi |
336 |
fi |
337 |
} |