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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Aug 20 17:36:31 2007 UTC (7 years, 3 months ago) by voxus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
* bump
(Portage version: 2.1.3.6)

1 # Copyright 1999-2007 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.5.30.ebuild,v 1.1 2007/07/30 10:23:36 voxus Exp $
4
5 inherit eutils ssl-cert
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 flv imap pcre perl ssl status webdav 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 pkg_setup() {
23 ebegin "Creating nginx user and group"
24 enewgroup nginx
25 enewuser nginx -1 -1 /dev/null nginx
26 eend ${?}
27 }
28
29 src_compile() {
30 local myconf
31
32 # threads support is broken atm.
33 #
34 # if use threads; then
35 # einfo
36 # ewarn "threads support is experimental at the moment"
37 # ewarn "do not use it on production systems - you've been warned"
38 # einfo
39 # myconf="${myconf} --with-threads"
40 # fi
41
42 use fastcgi || myconf="${myconf} --without-http_fastcgi_module"
43 use fastcgi && myconf="${myconf} --with-http_realip_module"
44 use flv && myconf="${myconf} --with-http_flv_module"
45 use zlib || myconf="${myconf} --without-http_gzip_module"
46 use pcre || {
47 myconf="${myconf} --without-pcre --without-http_rewrite_module"
48 }
49 use debug && myconf="${myconf} --with-debug"
50 use ssl && myconf="${myconf} --with-http_ssl_module"
51 use imap && myconf="${myconf} --with-imap" # pop3/imap4 proxy support
52 use perl && myconf="${myconf} --with-http_perl_module"
53 use status && myconf="${myconf} --with-http_stub_status_module"
54 use webdav && myconf="${myconf} --with-http_dav_module"
55
56 ./configure \
57 --prefix=/usr \
58 --conf-path=/etc/${PN}/${PN}.conf \
59 --http-log-path=/var/log/${PN}/access_log \
60 --error-log-path=/var/log/${PN}/error_log \
61 --pid-path=/var/run/${PN}.pid \
62 --http-client-body-temp-path=/var/tmp/${PN}/client \
63 --http-proxy-temp-path=/var/tmp/${PN}/proxy \
64 --http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \
65 --with-md5-asm --with-md5=/usr/include \
66 ${myconf} || die "configure failed"
67
68 emake || die "failed to compile"
69 }
70
71 src_install() {
72 keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi}
73
74 dosbin objs/nginx
75 cp ${FILESDIR}/nginx-r1 ${T}/nginx
76 doinitd ${T}/nginx
77
78 cp ${FILESDIR}/nginx.conf-r4 conf/nginx.conf
79
80 use ssl && {
81 if [ ! -f /etc/ssl/${PN}/${PN}.key ]; then
82 dodir /etc/ssl/${PN}
83 insinto /etc/ssl/${PN}
84 docert ${PN}
85 fi
86
87 sed -e 's:# ::' -i conf/nginx.conf
88 }
89
90 dodir /etc/${PN}
91 insinto /etc/${PN}
92 doins conf/*
93
94 dodoc CHANGES{,.ru} LICENSE README
95
96 use perl && {
97 cd ${S}/objs/src/http/modules/perl/
98 make DESTDIR=${D} install || die "failed to install perl stuff"
99 }
100 }

  ViewVC Help
Powered by ViewVC 1.1.20