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: nginx-0.7.38.ebuild metadata.xml ChangeLog nginx-0.7.34.ebuild
Date: Thu, 26 Feb 2009 15:17:39
Message-Id: E1LchzT-0002KD-0w@stork.gentoo.org
1 voxus 09/02/26 15:17:35
2
3 Modified: metadata.xml ChangeLog
4 Added: nginx-0.7.38.ebuild
5 Removed: nginx-0.7.34.ebuild
6 Log:
7 * version bump
8 + random-index use flag
9 (Portage version: 2.2_rc23/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.3 www-servers/nginx/metadata.xml
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/metadata.xml?rev=1.3&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/metadata.xml?rev=1.3&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/metadata.xml?r1=1.2&r2=1.3
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-servers/nginx/metadata.xml,v
21 retrieving revision 1.2
22 retrieving revision 1.3
23 diff -u -r1.2 -r1.3
24 --- metadata.xml 22 Aug 2008 22:27:37 -0000 1.2
25 +++ metadata.xml 26 Feb 2009 15:17:34 -0000 1.3
26 @@ -8,6 +8,7 @@
27 <use>
28 <flag name='addition'>Enables HTTP addition filter module</flag>
29 <flag name='flv'>Enables special processing module for flv files</flag>
30 + <flag name='random-index'>Enables HTTP random index module</flag>
31 <flag name='status'>Enables stub_status module</flag>
32 <flag name='sub'>Enables sub_filter module</flag>
33 <flag name='webdav'>Enable webdav support</flag>
34
35
36
37 1.205 www-servers/nginx/ChangeLog
38
39 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.205&view=markup
40 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.205&content-type=text/plain
41 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?r1=1.204&r2=1.205
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v
46 retrieving revision 1.204
47 retrieving revision 1.205
48 diff -u -r1.204 -r1.205
49 --- ChangeLog 12 Feb 2009 12:23:00 -0000 1.204
50 +++ ChangeLog 26 Feb 2009 15:17:34 -0000 1.205
51 @@ -1,6 +1,13 @@
52 # ChangeLog for www-servers/nginx
53 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.204 2009/02/12 12:23:00 voxus Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.205 2009/02/26 15:17:34 voxus Exp $
56 +
57 +*nginx-0.7.38 (26 Feb 2009)
58 +
59 + 26 Feb 2009; Konstantin V. Arkhipov <voxus@g.o>
60 + -nginx-0.7.34.ebuild, +nginx-0.7.38.ebuild:
61 + Version bump. Added use flag for optional enabling of random index http
62 + module.
63
64 *nginx-0.7.34 (12 Feb 2009)
65
66
67
68
69 1.1 www-servers/nginx/nginx-0.7.38.ebuild
70
71 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.7.38.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.7.38.ebuild?rev=1.1&content-type=text/plain
73
74 Index: nginx-0.7.38.ebuild
75 ===================================================================
76 # Copyright 1999-2009 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-0.7.38.ebuild,v 1.1 2009/02/26 15:17:34 voxus Exp $
79
80 inherit eutils ssl-cert
81
82 DESCRIPTION="Robust, small and high performance http and reverse proxy server"
83
84 HOMEPAGE="http://nginx.net/"
85 SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz"
86 LICENSE="BSD"
87 SLOT="0"
88 KEYWORDS="~amd64 ~ppc ~x86"
89 IUSE="addition debug fastcgi flv imap pcre perl random-index ssl status sub webdav zlib"
90
91 DEPEND="dev-lang/perl
92 pcre? ( >=dev-libs/libpcre-4.2 )
93 ssl? ( dev-libs/openssl )
94 zlib? ( sys-libs/zlib )
95 perl? ( >=dev-lang/perl-5.8 )"
96
97 pkg_setup() {
98 ebegin "Creating nginx user and group"
99 enewgroup nginx
100 enewuser nginx -1 -1 /dev/null nginx
101 eend ${?}
102 }
103
104 src_compile() {
105 local myconf
106
107 # threads support is broken atm.
108 #
109 # if use threads; then
110 # einfo
111 # ewarn "threads support is experimental at the moment"
112 # ewarn "do not use it on production systems - you've been warned"
113 # einfo
114 # myconf="${myconf} --with-threads"
115 # fi
116
117 use addition && myconf="${myconf} --with-http_addition_module"
118 use fastcgi || myconf="${myconf} --without-http_fastcgi_module"
119 use fastcgi && myconf="${myconf} --with-http_realip_module"
120 use flv && myconf="${myconf} --with-http_flv_module"
121 use zlib || myconf="${myconf} --without-http_gzip_module"
122 use pcre || {
123 myconf="${myconf} --without-pcre --without-http_rewrite_module"
124 }
125 use debug && myconf="${myconf} --with-debug"
126 use ssl && myconf="${myconf} --with-http_ssl_module"
127 use imap && myconf="${myconf} --with-imap" # pop3/imap4 proxy support
128 use perl && myconf="${myconf} --with-http_perl_module"
129 use status && myconf="${myconf} --with-http_stub_status_module"
130 use webdav && myconf="${myconf} --with-http_dav_module"
131 use sub && myconf="${myconf} --with-http_sub_module"
132 use random-index && myconf="${myconf} --with-http_random_index_module"
133
134 ./configure \
135 --prefix=/usr \
136 --conf-path=/etc/${PN}/${PN}.conf \
137 --http-log-path=/var/log/${PN}/access_log \
138 --error-log-path=/var/log/${PN}/error_log \
139 --pid-path=/var/run/${PN}.pid \
140 --http-client-body-temp-path=/var/tmp/${PN}/client \
141 --http-proxy-temp-path=/var/tmp/${PN}/proxy \
142 --http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \
143 --with-md5-asm --with-md5=/usr/include \
144 --with-sha1-asm --with-sha1=/usr/include \
145 ${myconf} || die "configure failed"
146
147 emake || die "failed to compile"
148 }
149
150 src_install() {
151 keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi}
152
153 dosbin objs/nginx
154 cp "${FILESDIR}"/nginx-r1 "${T}"/nginx
155 doinitd "${T}"/nginx
156
157 cp "${FILESDIR}"/nginx.conf-r4 conf/nginx.conf
158
159 dodir "${ROOT}"/etc/${PN}
160 insinto "${ROOT}"/etc/${PN}
161 doins conf/*
162
163 dodoc CHANGES{,.ru} README
164
165 use perl && {
166 cd "${S}"/objs/src/http/modules/perl/
167 einstall DESTDIR="${D}"|| die "failed to install perl stuff"
168 }
169 }
170
171 pkg_postinst() {
172 use ssl && {
173 if [ ! -f "${ROOT}"/etc/ssl/${PN}/${PN}.key ]; then
174 dodir "${ROOT}"/etc/ssl/${PN}
175 insinto "${ROOT}"etc/ssl/${PN}/
176 insopts -m0644 -o nginx -g nginx
177 install_cert /etc/ssl/nginx/nginx
178 fi
179 }
180 }