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.5.32.ebuild nginx-0.5.31.ebuild
Date: Mon, 01 Oct 2007 10:50:43
Message-Id: E1IcIid-0004eA-86@stork.gentoo.org
1 voxus 07/10/01 10:41:43
2
3 Modified: ChangeLog
4 Added: nginx-0.5.32.ebuild
5 Removed: nginx-0.5.31.ebuild
6 Log:
7 * bump, sub flag, cosmetics
8 (Portage version: 2.1.3.11)
9
10 Revision Changes Path
11 1.162 www-servers/nginx/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.162&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?rev=1.162&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/ChangeLog?r1=1.161&r2=1.162
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v
20 retrieving revision 1.161
21 retrieving revision 1.162
22 diff -u -r1.161 -r1.162
23 --- ChangeLog 25 Sep 2007 07:16:42 -0000 1.161
24 +++ ChangeLog 1 Oct 2007 10:41:42 -0000 1.162
25 @@ -1,6 +1,13 @@
26 # ChangeLog for www-servers/nginx
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.161 2007/09/25 07:16:42 voxus Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.162 2007/10/01 10:41:42 voxus Exp $
30 +
31 +*nginx-0.5.32 (01 Oct 2007)
32 +
33 + 01 Oct 2007; Konstantin V. Arkhipov <voxus@g.o>
34 + -nginx-0.5.31.ebuild, +nginx-0.5.32.ebuild:
35 + Version bump. sub useflag added. Certificate generation moved to
36 + pkg_postinst().
37
38 *nginx-0.6.13 (25 Sep 2007)
39
40
41
42
43 1.1 www-servers/nginx/nginx-0.5.32.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.5.32.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/nginx/nginx-0.5.32.ebuild?rev=1.1&content-type=text/plain
47
48 Index: nginx-0.5.32.ebuild
49 ===================================================================
50 # Copyright 1999-2007 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.5.32.ebuild,v 1.1 2007/10/01 10:41:42 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://sysoev.ru/nginx/"
59 SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz"
60 LICENSE="BSD"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~x86"
63 IUSE="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 fastcgi || myconf="${myconf} --without-http_fastcgi_module"
92 use fastcgi && myconf="${myconf} --with-http_realip_module"
93 use flv && myconf="${myconf} --with-http_flv_module"
94 use zlib || myconf="${myconf} --without-http_gzip_module"
95 use pcre || {
96 myconf="${myconf} --without-pcre --without-http_rewrite_module"
97 }
98 use debug && myconf="${myconf} --with-debug"
99 use ssl && myconf="${myconf} --with-http_ssl_module"
100 use imap && myconf="${myconf} --with-imap" # pop3/imap4 proxy support
101 use perl && myconf="${myconf} --with-http_perl_module"
102 use status && myconf="${myconf} --with-http_stub_status_module"
103 use webdav && myconf="${myconf} --with-http_dav_module"
104 use sub && myconf="${myconf} --with-http_sub_module"
105
106 ./configure \
107 --prefix=/usr \
108 --conf-path=/etc/${PN}/${PN}.conf \
109 --http-log-path=/var/log/${PN}/access_log \
110 --error-log-path=/var/log/${PN}/error_log \
111 --pid-path=/var/run/${PN}.pid \
112 --http-client-body-temp-path=/var/tmp/${PN}/client \
113 --http-proxy-temp-path=/var/tmp/${PN}/proxy \
114 --http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \
115 --with-md5-asm --with-md5=/usr/include \
116 ${myconf} || die "configure failed"
117
118 emake || die "failed to compile"
119 }
120
121 src_install() {
122 keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi}
123
124 dosbin objs/nginx
125 cp "${FILESDIR}"/nginx-r1 "${T}"/nginx
126 doinitd "${T}"/nginx
127
128 cp "${FILESDIR}"/nginx.conf-r4 conf/nginx.conf
129
130 dodir "${ROOT}"/etc/${PN}
131 insinto "${ROOT}"/etc/${PN}
132 doins conf/*
133
134 dodoc CHANGES{,.ru} LICENSE README
135
136 use perl && {
137 cd "${S}"/objs/src/http/modules/perl/
138 einstall DESTDIR="${D}"|| die "failed to install perl stuff"
139 }
140 }
141
142 pkg_postinst() {
143 use ssl && {
144 if [ ! -f "${ROOT}"etc/ssl/${PN}/${PN}.key ]; then
145 insinto "${ROOT}"etc/ssl/${PN}
146 insopts -m0644 -o nginx -g nginx
147 docert nginx
148 fi
149 }
150 }
151
152
153
154 --
155 gentoo-commits@g.o mailing list