|
Line 3
Link Here
|
| 3 |
# $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 $ |
3 |
# $Header: $ |
| 4 |
-- |
|
|
|
Line 5
Link Here
|
| 5 |
inherit eutils ssl-cert toolchain-funcs perl-module |
5 |
EAPI="2" |
| 6 |
-- |
|
|
|
Line 7
Link Here
|
| 7 |
DESCRIPTION="Robust, small and high performance http and reverse proxy server" |
7 |
inherit eutils ssl-cert perl-module |
| 8 |
-- |
|
|
|
Line 9
Link Here
|
|
|
9 |
DESCRIPTION="Robust, small and high performance http and reverse proxy server" |
|
Line 11
Link Here
|
|
|
12 |
|
|
Lines 13-14
Link Here
|
| 13 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
15 |
KEYWORDS="~amd64 ~ppc ~x86" |
| 14 |
IUSE="addition debug fastcgi flv imap pcre perl pop random-index realip smtp ssl static-gzip status sub webdav zlib" |
16 |
IUSE="debug ipv6 +pcre perl ssl +zlib" |
| 15 |
-- |
|
|
|
Lines 16-17
Link Here
|
| 16 |
DEPEND="dev-lang/perl |
18 |
MODULES_STD="charset gzip ssi userid access auth_basic autoindex geo map referer rewrite proxy fastcgi memcached limit_zone limit_req empty_gif browser upstream_ip_hash" |
| 17 |
dev-libs/openssl |
19 |
MODULES_OPT="realip addition xslt image_filter geoip sub dav flv gzip_static random_index secure_link stub_status" |
| 18 |
-- |
20 |
MODULES_MAIL="imap pop3 smtp" |
|
|
21 |
|
| 22 |
for module in ${MODULES_STD}; do |
| 23 |
IUSE="${IUSE} +nginx_modules_${module}" |
| 24 |
done |
| 25 |
|
| 26 |
for module in ${MODULES_OPT}; do |
| 27 |
IUSE="${IUSE} nginx_modules_${module}" |
| 28 |
done |
| 29 |
|
| 30 |
for module in ${MODULES_MAIL}; do |
| 31 |
IUSE="${IUSE} nginx_modules_${module}" |
| 32 |
done |
| 33 |
|
| 34 |
DEPEND="ssl? ( dev-libs/openssl ) |
|
Line 21
Link Here
|
|
|
38 |
RDEPEND="${DEPEND}" |
|
Line 34
Link Here
|
| 34 |
src_compile() { |
52 |
src_configure() { |
| 35 |
-- |
|
|
|
Lines 37-54
Link Here
|
| 37 |
# threads support is broken atm. |
|
|
| 38 |
# |
| 39 |
# if use threads; then |
| 40 |
# einfo |
| 41 |
# ewarn "threads support is experimental at the moment" |
| 42 |
# ewarn "do not use it on production systems - you've been warned" |
| 43 |
# einfo |
| 44 |
# myconf="${myconf} --with-threads" |
| 45 |
# fi |
| 46 |
|
| 47 |
use addition && myconf="${myconf} --with-http_addition_module" |
| 48 |
use fastcgi || myconf="${myconf} --without-http_fastcgi_module" |
| 49 |
use fastcgi && myconf="${myconf} --with-http_realip_module" |
| 50 |
use flv && myconf="${myconf} --with-http_flv_module" |
| 51 |
use zlib || myconf="${myconf} --without-http_gzip_module" |
| 52 |
use pcre || { |
| 53 |
myconf="${myconf} --without-pcre --without-http_rewrite_module" |
| 54 |
} |
|
Line 56
Link Here
|
| 56 |
use ssl && myconf="${myconf} --with-http_ssl_module" |
56 |
use ipv6 && myconf="${myconf} --with-ipv6" |
| 57 |
-- |
57 |
use pcre || myconf="${myconf} --without-pcre" |
|
|
58 |
use pcre && myconf="${myconf} --with-pcre" |
|
Lines 58-63
Link Here
|
| 58 |
use status && myconf="${myconf} --with-http_stub_status_module" |
60 |
use ssl && myconf="${myconf} --with-http_ssl_module" |
| 59 |
use webdav && myconf="${myconf} --with-http_dav_module" |
61 |
|
| 60 |
use sub && myconf="${myconf} --with-http_sub_module" |
62 |
use nginx_modules_gzip && ! use zlib && die "nginx gzip module requires zlib" |
| 61 |
use realip && myconf="${myconf} --with-http_realip_module" |
63 |
use nginx_modules_rewrite && ! use pcre && die "nginx rewrite module requires pcre" |
| 62 |
use static-gzip && myconf="${myconf} --with-http_gzip_static_module" |
|
|
| 63 |
use random-index && myconf="${myconf} --with-http_random_index_module" |
| 64 |
-- |
|
Line 65
Link Here
|
| 65 |
if use smtp || use pop || use imap; then |
65 |
for module in ${MODULES_STD} ; do |
| 66 |
-- |
66 |
use "nginx_modules_${module}" || \ |
|
|
67 |
myconf="${myconf} --without-http_${module}_module" |
| 68 |
done |
| 69 |
|
| 70 |
for module in ${MODULES_OPT} ; do |
| 71 |
use "nginx_modules_${module}" && \ |
| 72 |
myconf="${myconf} --with-http_${module}_module" |
| 73 |
done |
| 74 |
|
| 75 |
for module in ${MODULES_MAIL} ; do |
| 76 |
use "nginx_modules_${module}" || \ |
| 77 |
myconf="${myconf} --without-mail_${module}_module" |
| 78 |
done |
| 79 |
|
| 80 |
if use nginx_modules_smtp || use nginx_modules_pop || use nginx_modules_imap; then |
|
Lines 69-71
Link Here
|
| 69 |
use imap || myconf="${myconf} --without-mail_imap_module" |
|
|
| 70 |
use pop || myconf="${myconf} --without-mail_pop3_module" |
| 71 |
use smtp || myconf="${myconf} --without-mail_smtp_module" |
|
Line 73
Link Here
|
| 73 |
tc-export CC |
|
|
|
Lines 86-87
Link Here
|
| 86 |
|
|
|
| 87 |
emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" || die "failed to compile" |