Gentoo Archives: gentoo-commits

From: "Konstantin Arkhipov (voxus)" <voxus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/nginx: ChangeLog nginx-0.7.1.ebuild nginx-0.6.31.ebuild nginx-0.6.30.ebuild
Date: Tue, 27 May 2008 13:41:10
Message-Id: E1K0zQI-0001So-Pe@stork.gentoo.org
1 voxus 08/05/27 13:41:06
2
3 Modified: ChangeLog
4 Added: nginx-0.7.1.ebuild nginx-0.6.31.ebuild
5 Removed: nginx-0.6.30.ebuild
6 Log:
7 * bump
8 (Portage version: 2.1.5.2)
9
10 Revision Changes Path
11 1.178 www-servers/nginx/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.178&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.178&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?r1=1.177&r2=1.178
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v
20 retrieving revision 1.177
21 retrieving revision 1.178
22 diff -u -r1.177 -r1.178
23 --- ChangeLog 2 May 2008 11:46:12 -0000 1.177
24 +++ ChangeLog 27 May 2008 13:41:06 -0000 1.178
25 @@ -1,6 +1,13 @@
26 # ChangeLog for www-servers/nginx
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.177 2008/05/02 11:46:12 voxus Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.178 2008/05/27 13:41:06 voxus Exp $
30 +
31 +*nginx-0.7.1 (27 May 2008)
32 +*nginx-0.6.31 (27 May 2008)
33 +
34 + 27 May 2008; Konstantin V. Arkhipov <voxus@g.o>
35 + -nginx-0.6.30.ebuild, +nginx-0.6.31.ebuild, +nginx-0.7.1.ebuild:
36 + Version bumps.
37
38 *nginx-0.6.30 (02 May 2008)
39
40
41
42
43 1.1 www-servers/nginx/nginx-0.7.1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.7.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.7.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: nginx-0.7.1.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-0.7.1.ebuild,v 1.1 2008/05/27 13:41:06 voxus Exp $
53
54 inherit eutils ssl-cert
55
56 DESCRIPTION="Robust, small and high performance http and reverse proxy server"
57
58 HOMEPAGE="http://nginx.net/"
59 SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz"
60 LICENSE="BSD"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~x86"
63 IUSE="addition debug fastcgi flv imap pcre perl ssl status sub webdav zlib"
64
65 DEPEND="dev-lang/perl
66 pcre? ( >=dev-libs/libpcre-4.2 )
67 ssl? ( dev-libs/openssl )
68 zlib? ( sys-libs/zlib )
69 perl? ( >=dev-lang/perl-5.8 )"
70
71 pkg_setup() {
72 ebegin "Creating nginx user and group"
73 enewgroup nginx
74 enewuser nginx -1 -1 /dev/null nginx
75 eend ${?}
76 }
77
78 src_compile() {
79 local myconf
80
81 # threads support is broken atm.
82 #
83 # if use threads; then
84 # einfo
85 # ewarn "threads support is experimental at the moment"
86 # ewarn "do not use it on production systems - you've been warned"
87 # einfo
88 # myconf="${myconf} --with-threads"
89 # fi
90
91 use addition && myconf="${myconf} --with-http_addition_module"
92 use fastcgi || myconf="${myconf} --without-http_fastcgi_module"
93 use fastcgi && myconf="${myconf} --with-http_realip_module"
94 use flv && myconf="${myconf} --with-http_flv_module"
95 use zlib || myconf="${myconf} --without-http_gzip_module"
96 use pcre || {
97 myconf="${myconf} --without-pcre --without-http_rewrite_module"
98 }
99 use debug && myconf="${myconf} --with-debug"
100 use ssl && myconf="${myconf} --with-http_ssl_module"
101 use imap && myconf="${myconf} --with-imap" # pop3/imap4 proxy support
102 use perl && myconf="${myconf} --with-http_perl_module"
103 use status && myconf="${myconf} --with-http_stub_status_module"
104 use webdav && myconf="${myconf} --with-http_dav_module"
105 use sub && myconf="${myconf} --with-http_sub_module"
106
107 ./configure \
108 --prefix=/usr \
109 --conf-path=/etc/${PN}/${PN}.conf \
110 --http-log-path=/var/log/${PN}/access_log \
111 --error-log-path=/var/log/${PN}/error_log \
112 --pid-path=/var/run/${PN}.pid \
113 --http-client-body-temp-path=/var/tmp/${PN}/client \
114 --http-proxy-temp-path=/var/tmp/${PN}/proxy \
115 --http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \
116 --with-md5-asm --with-md5=/usr/include \
117 --with-sha1-asm --with-sha1=/usr/include \
118 ${myconf} || die "configure failed"
119
120 emake || die "failed to compile"
121 }
122
123 src_install() {
124 keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi}
125
126 dosbin objs/nginx
127 cp "${FILESDIR}"/nginx-r1 "${T}"/nginx
128 doinitd "${T}"/nginx
129
130 cp "${FILESDIR}"/nginx.conf-r4 conf/nginx.conf
131
132 dodir "${ROOT}"/etc/${PN}
133 insinto "${ROOT}"/etc/${PN}
134 doins conf/*
135
136 dodoc CHANGES{,.ru} LICENSE README
137
138 use perl && {
139 cd "${S}"/objs/src/http/modules/perl/
140 einstall DESTDIR="${D}"|| die "failed to install perl stuff"
141 }
142 }
143
144 pkg_postinst() {
145 use ssl && {
146 if [ ! -f "${ROOT}"/etc/ssl/${PN}/${PN}.key ]; then
147 dodir "${ROOT}"/etc/ssl/${PN}
148 insinto "${ROOT}"etc/ssl/${PN}/
149 insopts -m0644 -o nginx -g nginx
150 install_cert /etc/ssl/nginx/nginx
151 fi
152 }
153 }
154
155
156
157 1.1 www-servers/nginx/nginx-0.6.31.ebuild
158
159 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.6.31.ebuild?rev=1.1&view=markup
160 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.6.31.ebuild?rev=1.1&content-type=text/plain
161
162 Index: nginx-0.6.31.ebuild
163 ===================================================================
164 # Copyright 1999-2008 Gentoo Foundation
165 # Distributed under the terms of the GNU General Public License v2
166 # $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-0.6.31.ebuild,v 1.1 2008/05/27 13:41:06 voxus Exp $
167
168 inherit eutils ssl-cert
169
170 DESCRIPTION="Robust, small and high performance http and reverse proxy server"
171
172 HOMEPAGE="http://nginx.net/"
173 SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz"
174 LICENSE="BSD"
175 SLOT="0"
176 KEYWORDS="~amd64 ~ppc ~x86"
177 IUSE="addition debug fastcgi flv imap pcre perl ssl status sub webdav zlib"
178
179 DEPEND="dev-lang/perl
180 pcre? ( >=dev-libs/libpcre-4.2 )
181 ssl? ( dev-libs/openssl )
182 zlib? ( sys-libs/zlib )
183 perl? ( >=dev-lang/perl-5.8 )"
184
185 pkg_setup() {
186 ebegin "Creating nginx user and group"
187 enewgroup nginx
188 enewuser nginx -1 -1 /dev/null nginx
189 eend ${?}
190 }
191
192 src_compile() {
193 local myconf
194
195 # threads support is broken atm.
196 #
197 # if use threads; then
198 # einfo
199 # ewarn "threads support is experimental at the moment"
200 # ewarn "do not use it on production systems - you've been warned"
201 # einfo
202 # myconf="${myconf} --with-threads"
203 # fi
204
205 use addition && myconf="${myconf} --with-http_addition_module"
206 use fastcgi || myconf="${myconf} --without-http_fastcgi_module"
207 use fastcgi && myconf="${myconf} --with-http_realip_module"
208 use flv && myconf="${myconf} --with-http_flv_module"
209 use zlib || myconf="${myconf} --without-http_gzip_module"
210 use pcre || {
211 myconf="${myconf} --without-pcre --without-http_rewrite_module"
212 }
213 use debug && myconf="${myconf} --with-debug"
214 use ssl && myconf="${myconf} --with-http_ssl_module"
215 use imap && myconf="${myconf} --with-imap" # pop3/imap4 proxy support
216 use perl && myconf="${myconf} --with-http_perl_module"
217 use status && myconf="${myconf} --with-http_stub_status_module"
218 use webdav && myconf="${myconf} --with-http_dav_module"
219 use sub && myconf="${myconf} --with-http_sub_module"
220
221 ./configure \
222 --prefix=/usr \
223 --conf-path=/etc/${PN}/${PN}.conf \
224 --http-log-path=/var/log/${PN}/access_log \
225 --error-log-path=/var/log/${PN}/error_log \
226 --pid-path=/var/run/${PN}.pid \
227 --http-client-body-temp-path=/var/tmp/${PN}/client \
228 --http-proxy-temp-path=/var/tmp/${PN}/proxy \
229 --http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \
230 --with-md5-asm --with-md5=/usr/include \
231 --with-sha1-asm --with-sha1=/usr/include \
232 ${myconf} || die "configure failed"
233
234 emake || die "failed to compile"
235 }
236
237 src_install() {
238 keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi}
239
240 dosbin objs/nginx
241 cp "${FILESDIR}"/nginx-r1 "${T}"/nginx
242 doinitd "${T}"/nginx
243
244 cp "${FILESDIR}"/nginx.conf-r4 conf/nginx.conf
245
246 dodir "${ROOT}"/etc/${PN}
247 insinto "${ROOT}"/etc/${PN}
248 doins conf/*
249
250 dodoc CHANGES{,.ru} LICENSE README
251
252 use perl && {
253 cd "${S}"/objs/src/http/modules/perl/
254 einstall DESTDIR="${D}"|| die "failed to install perl stuff"
255 }
256 }
257
258 pkg_postinst() {
259 use ssl && {
260 if [ ! -f "${ROOT}"/etc/ssl/${PN}/${PN}.key ]; then
261 dodir "${ROOT}"/etc/ssl/${PN}
262 insinto "${ROOT}"etc/ssl/${PN}/
263 insopts -m0644 -o nginx -g nginx
264 install_cert /etc/ssl/nginx/nginx
265 fi
266 }
267 }
268
269
270
271 --
272 gentoo-commits@l.g.o mailing list