/[gentoo-x86]/www-servers/nginx/nginx-0.3.38.ebuild
Gentoo

Contents of /www-servers/nginx/nginx-0.3.38.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Apr 17 21:36:27 2006 UTC (8 years, 11 months ago) by voxus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
* bump
(Portage version: 2.1_pre7-r5)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-0.3.38.ebuild,v 1.1 2006/04/14 09:46:08 voxus Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Robust, small and high performance http and reverse proxy server"
8
9 HOMEPAGE="http://sysoev.ru/nginx/"
10 SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz"
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~x86"
14 IUSE="debug fastcgi imap pcre perl threads ssl zlib"
15
16 DEPEND="dev-lang/perl
17 pcre? ( >=dev-libs/libpcre-4.2 )
18 ssl? ( dev-libs/openssl )
19 zlib? ( sys-libs/zlib )
20 perl? ( >=dev-lang/perl-5.8 )"
21
22 src_compile() {
23 local myconf
24
25 if use threads; then
26 einfo
27 ewarn "threads support is experimental at the moment"
28 ewarn "do not use it on production systems - you've been warned"
29 einfo
30 myconf="${myconf} --with-threads"
31 fi
32
33 use fastcgi || myconf="${myconf} --without-http_fastcgi_module"
34 use zlib || myconf="${myconf} --without-http_gzip_module"
35 use pcre || {
36 myconf="${myconf} --without-pcre --without-http_rewrite_module"
37 }
38 use debug && myconf="${myconf} --with-debug"
39 use ssl && myconf="${myconf} --with-http_ssl_module"
40 use imap && myconf="${myconf} --with-imap" # pop3/imap4 proxy support
41 use perl && myconf="${myconf} --with-http_perl_module"
42
43 ./configure \
44 --prefix=/usr \
45 --conf-path=/etc/${PN}/${PN}.conf \
46 --http-log-path=/var/log/${PN}/access_log \
47 --error-log-path=/var/log/${PN}/error_log \
48 --pid-path=/var/run/${PN}.pid \
49 --http-client-body-temp-path=/var/tmp/${PN}/client \
50 --http-proxy-temp-path=/var/tmp/${PN}/proxy \
51 --http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \
52 --with-md5-asm --with-md5=/usr/include \
53 ${myconf} || die "configure failed"
54
55 emake || die "failed to compile"
56 }
57
58 src_install() {
59 keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi}
60
61 dosbin objs/nginx
62 doinitd ${FILESDIR}/nginx
63
64 rm conf/nginx.conf
65 cp ${FILESDIR}/nginx.conf-r2 ${T}/nginx.conf
66
67 dodir /etc/${PN}
68 insinto /etc/${PN}
69 doins conf/* ${T}/nginx.conf
70
71 dodoc CHANGES{,.ru} LICENSE README
72 }

  ViewVC Help
Powered by ViewVC 1.1.20