Gentoo Archives: gentoo-commits

From: "Dirkjan Ochtman (djc)" <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/nginx: ChangeLog metadata.xml nginx-0.7.64-r2.ebuild
Date: Sun, 03 Jan 2010 19:51:43
Message-Id: E1NRWUG-0005eY-Rb@stork.gentoo.org
1 djc 10/01/03 19:51:40
2
3 Modified: ChangeLog metadata.xml
4 Added: nginx-0.7.64-r2.ebuild
5 Log:
6 Revision bump www-servers/nginx to -r2 (bug 247746 and 272964).
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.237 www-servers/nginx/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.237&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.237&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?r1=1.236&r2=1.237
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v
19 retrieving revision 1.236
20 retrieving revision 1.237
21 diff -u -r1.236 -r1.237
22 --- ChangeLog 3 Jan 2010 19:05:39 -0000 1.236
23 +++ ChangeLog 3 Jan 2010 19:51:40 -0000 1.237
24 @@ -1,6 +1,12 @@
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.236 2010/01/03 19:05:39 djc Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.237 2010/01/03 19:51:40 djc Exp $
29 +
30 +*nginx-0.7.64-r2 (03 Jan 2010)
31 +
32 + 03 Jan 2010; Dirkjan Ochtman <djc@g.o> +nginx-0.7.64-r2.ebuild,
33 + +files/nginx.init-r2, metadata.xml:
34 + Fix bug 272964 and bug 272964 in nginx-0.7.64-r2.
35
36 *nginx-0.7.64-r1 (03 Jan 2010)
37
38
39
40
41 1.6 www-servers/nginx/metadata.xml
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/metadata.xml?rev=1.6&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/metadata.xml?rev=1.6&content-type=text/plain
45 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/metadata.xml?r1=1.5&r2=1.6
46
47 Index: metadata.xml
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/www-servers/nginx/metadata.xml,v
50 retrieving revision 1.5
51 retrieving revision 1.6
52 diff -u -r1.5 -r1.6
53 --- metadata.xml 3 Jan 2010 19:05:39 -0000 1.5
54 +++ metadata.xml 3 Jan 2010 19:51:40 -0000 1.6
55 @@ -11,6 +11,7 @@
56 <use>
57 <flag name='addition'>Enables HTTP addition filter module</flag>
58 <flag name='flv'>Enables special processing module for flv files</flag>
59 + <flag name='static-gzip'>Enables support for gzipping static content</flag>
60 <flag name='pop'>Enables POP3 proxy support</flag>
61 <flag name='random-index'>Enables HTTP random index module</flag>
62 <flag name='smtp'>Enables SMTP proxy support</flag>
63
64
65
66 1.1 www-servers/nginx/nginx-0.7.64-r2.ebuild
67
68 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.7.64-r2.ebuild?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.7.64-r2.ebuild?rev=1.1&content-type=text/plain
70
71 Index: nginx-0.7.64-r2.ebuild
72 ===================================================================
73 # Copyright 1999-2010 Gentoo Foundation
74 # Distributed under the terms of the GNU General Public License v2
75 # $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-0.7.64-r2.ebuild,v 1.1 2010/01/03 19:51:40 djc Exp $
76
77 inherit eutils ssl-cert toolchain-funcs perl-module
78
79 DESCRIPTION="Robust, small and high performance http and reverse proxy server"
80
81 HOMEPAGE="http://nginx.net/"
82 SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz"
83 LICENSE="BSD"
84 SLOT="0"
85 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
86 IUSE="addition debug fastcgi flv imap pcre perl pop random-index smtp ssl static-gzip status sub webdav zlib"
87
88 DEPEND="dev-lang/perl
89 dev-libs/openssl
90 pcre? ( >=dev-libs/libpcre-4.2 )
91 zlib? ( sys-libs/zlib )
92 perl? ( >=dev-lang/perl-5.8 )"
93
94 pkg_setup() {
95 ebegin "Creating nginx user and group"
96 enewgroup ${PN}
97 enewuser ${PN} -1 -1 -1 ${PN}
98 eend ${?}
99 }
100
101 src_unpack() {
102 unpack ${A}
103 sed -i 's/ make/ \\$(MAKE)/' "${S}"/auto/lib/perl/make || die
104 }
105
106 src_compile() {
107 local myconf
108
109 # threads support is broken atm.
110 #
111 # if use threads; then
112 # einfo
113 # ewarn "threads support is experimental at the moment"
114 # ewarn "do not use it on production systems - you've been warned"
115 # einfo
116 # myconf="${myconf} --with-threads"
117 # fi
118
119 use addition && myconf="${myconf} --with-http_addition_module"
120 use fastcgi || myconf="${myconf} --without-http_fastcgi_module"
121 use fastcgi && myconf="${myconf} --with-http_realip_module"
122 use flv && myconf="${myconf} --with-http_flv_module"
123 use zlib || myconf="${myconf} --without-http_gzip_module"
124 use pcre || {
125 myconf="${myconf} --without-pcre --without-http_rewrite_module"
126 }
127 use debug && myconf="${myconf} --with-debug"
128 use ssl && myconf="${myconf} --with-http_ssl_module"
129 use perl && myconf="${myconf} --with-http_perl_module"
130 use status && myconf="${myconf} --with-http_stub_status_module"
131 use webdav && myconf="${myconf} --with-http_dav_module"
132 use sub && myconf="${myconf} --with-http_sub_module"
133 use static-gzip && myconf="${myconf} --with-http_gzip_static_module"
134 use random-index && myconf="${myconf} --with-http_random_index_module"
135
136 if use smtp || use pop || use imap; then
137 myconf="${myconf} --with-mail"
138 use ssl && myconf="${myconf} --with-mail_ssl_module"
139 fi
140 use imap || myconf="${myconf} --without-mail_imap_module"
141 use pop || myconf="${myconf} --without-mail_pop3_module"
142 use smtp || myconf="${myconf} --without-mail_smtp_module"
143
144 tc-export CC
145 ./configure \
146 --prefix=/usr \
147 --with-cc-opt="-I${ROOT}/usr/include" \
148 --with-ld-opt="-L${ROOT}/usr/lib" \
149 --conf-path=/etc/${PN}/${PN}.conf \
150 --http-log-path=/var/log/${PN}/access_log \
151 --error-log-path=/var/log/${PN}/error_log \
152 --pid-path=/var/run/${PN}.pid \
153 --http-client-body-temp-path=/var/tmp/${PN}/client \
154 --http-proxy-temp-path=/var/tmp/${PN}/proxy \
155 --http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \
156 ${myconf} || die "configure failed"
157
158 emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" || die "failed to compile"
159 }
160
161 src_install() {
162 keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi}
163
164 dosbin objs/nginx
165 newinitd "${FILESDIR}"/nginx.init-r2 nginx || die
166
167 cp "${FILESDIR}"/nginx.conf-r4 conf/nginx.conf
168
169 dodir /etc/${PN}
170 insinto /etc/${PN}
171 doins conf/*
172
173 dodoc CHANGES{,.ru} README
174
175 use perl && {
176 cd "${S}"/objs/src/http/modules/perl/
177 einstall DESTDIR="${D}" INSTALLDIRS=vendor || die "failed to install perl stuff"
178 fixlocalpod
179 }
180 }
181
182 pkg_postinst() {
183 use ssl && {
184 if [ ! -f "${ROOT}"/etc/ssl/${PN}/${PN}.key ]; then
185 install_cert /etc/ssl/${PN}/${PN}
186 chown ${PN}:${PN} "${ROOT}"/etc/ssl/${PN}/${PN}.{crt,csr,key,pem}
187 fi
188 }
189 }