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