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: metadata.xml ChangeLog nginx-0.7.64-r3.ebuild
Date: Sun, 03 Jan 2010 20:29:42
Message-Id: E1NRX52-00081m-Mw@stork.gentoo.org
1 djc 10/01/03 20:29:40
2
3 Modified: metadata.xml ChangeLog
4 Added: nginx-0.7.64-r3.ebuild
5 Log:
6 Fix bug 296168 (logrotate) and 247474 (realip use flag) in www-servers/nginx.
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.7 www-servers/nginx/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/metadata.xml?rev=1.7&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/metadata.xml?rev=1.7&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/metadata.xml?r1=1.6&r2=1.7
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-servers/nginx/metadata.xml,v
19 retrieving revision 1.6
20 retrieving revision 1.7
21 diff -u -r1.6 -r1.7
22 --- metadata.xml 3 Jan 2010 19:51:40 -0000 1.6
23 +++ metadata.xml 3 Jan 2010 20:29:40 -0000 1.7
24 @@ -18,6 +18,7 @@
25 <flag name='securelink'>Enable HTTP secure link module</flag>
26 <flag name='status'>Enables stub_status module</flag>
27 <flag name='sub'>Enables sub_filter module</flag>
28 + <flag name='realip'>Enables realip module</flag>
29 <flag name='webdav'>Enable webdav support</flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.239 www-servers/nginx/ChangeLog
36
37 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.239&view=markup
38 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.239&content-type=text/plain
39 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?r1=1.238&r2=1.239
40
41 Index: ChangeLog
42 ===================================================================
43 RCS file: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v
44 retrieving revision 1.238
45 retrieving revision 1.239
46 diff -u -r1.238 -r1.239
47 --- ChangeLog 3 Jan 2010 20:07:38 -0000 1.238
48 +++ ChangeLog 3 Jan 2010 20:29:40 -0000 1.239
49 @@ -1,6 +1,12 @@
50 # ChangeLog for www-servers/nginx
51 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
52 -# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.238 2010/01/03 20:07:38 djc Exp $
53 +# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.239 2010/01/03 20:29:40 djc Exp $
54 +
55 +*nginx-0.7.64-r3 (03 Jan 2010)
56 +
57 + 03 Jan 2010; Dirkjan Ochtman <djc@g.o> +nginx-0.7.64-r3.ebuild,
58 + +files/nginx.logrotate, metadata.xml:
59 + Fix bug 296168 (logrotate) and 247474 (realip use flag).
60
61 03 Jan 2010; Dirkjan Ochtman <djc@g.o> -nginx-0.7.64-r1.ebuild,
62 -nginx-0.8.17.ebuild, -files/nginx, -files/nginx.conf,
63
64
65
66 1.1 www-servers/nginx/nginx-0.7.64-r3.ebuild
67
68 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.7.64-r3.ebuild?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.7.64-r3.ebuild?rev=1.1&content-type=text/plain
70
71 Index: nginx-0.7.64-r3.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-r3.ebuild,v 1.1 2010/01/03 20:29: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 realip 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 realip && myconf="${myconf} --with-http_realip_module"
134 use static-gzip && myconf="${myconf} --with-http_gzip_static_module"
135 use random-index && myconf="${myconf} --with-http_random_index_module"
136
137 if use smtp || use pop || use imap; then
138 myconf="${myconf} --with-mail"
139 use ssl && myconf="${myconf} --with-mail_ssl_module"
140 fi
141 use imap || myconf="${myconf} --without-mail_imap_module"
142 use pop || myconf="${myconf} --without-mail_pop3_module"
143 use smtp || myconf="${myconf} --without-mail_smtp_module"
144
145 tc-export CC
146 ./configure \
147 --prefix=/usr \
148 --with-cc-opt="-I${ROOT}/usr/include" \
149 --with-ld-opt="-L${ROOT}/usr/lib" \
150 --conf-path=/etc/${PN}/${PN}.conf \
151 --http-log-path=/var/log/${PN}/access_log \
152 --error-log-path=/var/log/${PN}/error_log \
153 --pid-path=/var/run/${PN}.pid \
154 --http-client-body-temp-path=/var/tmp/${PN}/client \
155 --http-proxy-temp-path=/var/tmp/${PN}/proxy \
156 --http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \
157 ${myconf} || die "configure failed"
158
159 emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" || die "failed to compile"
160 }
161
162 src_install() {
163 keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi}
164
165 dosbin objs/nginx
166 newinitd "${FILESDIR}"/nginx.init-r2 nginx || die
167
168 cp "${FILESDIR}"/nginx.conf-r4 conf/nginx.conf
169
170 dodir /etc/${PN}
171 insinto /etc/${PN}
172 doins conf/*
173
174 dodoc CHANGES{,.ru} README
175
176 # logrotate
177 insinto /etc/logrotate.d
178 newins "${FILESDIR}"/nginx.logrotate nginx || die
179
180 use perl && {
181 cd "${S}"/objs/src/http/modules/perl/
182 einstall DESTDIR="${D}" INSTALLDIRS=vendor || die "failed to install perl stuff"
183 fixlocalpod
184 }
185 }
186
187 pkg_postinst() {
188 use ssl && {
189 if [ ! -f "${ROOT}"/etc/ssl/${PN}/${PN}.key ]; then
190 install_cert /etc/ssl/${PN}/${PN}
191 chown ${PN}:${PN} "${ROOT}"/etc/ssl/${PN}/${PN}.{crt,csr,key,pem}
192 fi
193 }
194 }