summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin V. Arkhipov <voxus@gentoo.org>2005-03-02 17:05:53 +0000
committerKonstantin V. Arkhipov <voxus@gentoo.org>2005-03-02 17:05:53 +0000
commitcd65c50d363551efa7dd910cc72d213e0a6152ee (patch)
tree79fcc38398d633b798dfcfdf66542537d9557ed4 /www-servers/nginx
parentdo stripping ourselves (diff)
downloadgentoo-2-cd65c50d363551efa7dd910cc72d213e0a6152ee.tar.gz
gentoo-2-cd65c50d363551efa7dd910cc72d213e0a6152ee.tar.bz2
gentoo-2-cd65c50d363551efa7dd910cc72d213e0a6152ee.zip
+ nginx' initial revision
Diffstat (limited to 'www-servers/nginx')
-rw-r--r--www-servers/nginx/ChangeLog8
-rw-r--r--www-servers/nginx/Manifest4
-rw-r--r--www-servers/nginx/files/digest-nginx-0.1.231
-rw-r--r--www-servers/nginx/files/nginx29
-rw-r--r--www-servers/nginx/files/nginx.conf67
-rw-r--r--www-servers/nginx/metadata.xml8
-rw-r--r--www-servers/nginx/nginx-0.1.23.ebuild69
7 files changed, 186 insertions, 0 deletions
diff --git a/www-servers/nginx/ChangeLog b/www-servers/nginx/ChangeLog
new file mode 100644
index 000000000000..8e32667a964c
--- /dev/null
+++ b/www-servers/nginx/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for www-servers/nginx
+# Copyright 2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/ChangeLog,v 1.1 2005/03/02 17:05:53 voxus Exp $
+
+*nginx-0.1.23 (02 Mar 2005)
+
+ 02 Mar 2005; Konstantin Arkhipov <voxus@gentoo.org> +nginx-0.1.23.ebuild:
+ Initial revision.
diff --git a/www-servers/nginx/Manifest b/www-servers/nginx/Manifest
new file mode 100644
index 000000000000..4f888382bf32
--- /dev/null
+++ b/www-servers/nginx/Manifest
@@ -0,0 +1,4 @@
+MD5 5dea521e7fa1046dfe053eec2235bb3c nginx-0.1.23.ebuild 651
+MD5 c8746318e6c834ffe1b900dadf5f2c5b ChangeLog 236
+MD5 822f3c821527e6a34f23a6a92a884766 metadata.xml 220
+MD5 373afb3b6eb255483f9dab56d9ab83ee files/digest-nginx-0.1.23 64
diff --git a/www-servers/nginx/files/digest-nginx-0.1.23 b/www-servers/nginx/files/digest-nginx-0.1.23
new file mode 100644
index 000000000000..f6d0dedbcf20
--- /dev/null
+++ b/www-servers/nginx/files/digest-nginx-0.1.23
@@ -0,0 +1 @@
+MD5 9825f213518755f903e5bd4386363a10 nginx-0.1.23.tar.gz 285255
diff --git a/www-servers/nginx/files/nginx b/www-servers/nginx/files/nginx
new file mode 100644
index 000000000000..b15d9c39dbf5
--- /dev/null
+++ b/www-servers/nginx/files/nginx
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx,v 1.1 2005/03/02 17:05:53 voxus Exp $
+
+depend() {
+ need net
+ use dns logger
+}
+
+start() {
+ ebegin "Starting nginx"
+ start-stop-daemon --start --pidfile /var/run/nginx.pid \
+ --exec /usr/sbin/nginx -- -c /etc/nginx/nginx.conf
+ eend $? "Failed to start nginx"
+}
+
+stop() {
+ ebegin "Stopping nginx"
+ start-stop-daemon --stop --pidfile /var/run/nginx.pid
+ eend $? "Failed to stop nginx"
+ rm -f /var/run/nginx.pid
+}
+
+reload() {
+ ebegin "Refreshing nginx' configuration"
+ kill -HUP `cat /var/run/nginx.pid` &>/dev/null
+ eend $? "Failed to reload nginx"
+}
diff --git a/www-servers/nginx/files/nginx.conf b/www-servers/nginx/files/nginx.conf
new file mode 100644
index 000000000000..9b2b82a9a802
--- /dev/null
+++ b/www-servers/nginx/files/nginx.conf
@@ -0,0 +1,67 @@
+user apache apache;
+
+worker_processes 5;
+
+error_log /var/log/nginx/error_log;
+
+events {
+ connections 2048;
+}
+
+http {
+ include /etc/nginx/mime.types;
+ default_type application/octet-stream;
+
+ log_format main '%addr - - [%time] "%request" %status '
+ '%length "%{Referer}i" "%{User-Agent}i" '
+ '"%proxy" "%gzip_ratio"';
+
+ log_format download '%addr - - [%time] "%request" %status '
+ '%length "%{Referer}i" "%{User-Agent}i" '
+ '"%{Range}i" "%{Content-Range}o"';
+
+ post_accept_timeout 60;
+ client_header_timeout 3m;
+ client_body_timeout 3m;
+ send_timeout 3m;
+
+ connection_pool_size 256;
+ client_header_buffer_size 1k;
+ large_client_header_buffers 4 2k;
+ request_pool_size 4k;
+
+ gzip on;
+ gzip_min_length 1100;
+ gzip_buffers 4 8k;
+ gzip_types text/plain;
+
+ output_buffers 1 32k;
+ postpone_output 1460;
+
+ sendfile on;
+ tcp_nopush on;
+ tcp_nodelay on;
+
+ keepalive_timeout 75 20;
+
+ server {
+ listen 80;
+
+ charset on;
+ source_charset koi8-r;
+
+ access_log /var/log/nginx/access_log main;
+
+ location / {
+ root /var/www/localhost/htdocs;
+ index index.html;
+ allow all;
+ }
+
+ location ~* ^.+\.(jpg|jpeg|gif)$ {
+ root /var/www/localhost/htdocs;
+ access_log off;
+ expires 30d;
+ }
+ }
+}
diff --git a/www-servers/nginx/metadata.xml b/www-servers/nginx/metadata.xml
new file mode 100644
index 000000000000..5087b39b3449
--- /dev/null
+++ b/www-servers/nginx/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>voxus@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/www-servers/nginx/nginx-0.1.23.ebuild b/www-servers/nginx/nginx-0.1.23.ebuild
new file mode 100644
index 000000000000..7dc377af25f1
--- /dev/null
+++ b/www-servers/nginx/nginx-0.1.23.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/nginx-0.1.23.ebuild,v 1.1 2005/03/02 17:05:53 voxus Exp $
+
+inherit eutils
+
+DESCRIPTION="Robust, small and high performance http and reverse proxy server"
+
+HOMEPAGE="http://sysoev.ru/nginx/"
+SRC_URI="http://sysoev.ru/nginx/${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl zlib threads"
+
+DEPEND="dev-lang/perl
+ ssl? ( dev-libs/openssl )
+ zlib? ( sys-libs/zlib )"
+
+src_compile() {
+ local myconf
+
+ use ssl && myconf="${myconf} --with-http_ssl_module"
+ use threads && myconf="${myconf} --with-threads"
+ use zlib || myconf="${myconf} --without-http_gzip_module"
+
+# use charset-mod || myconf = "${myconf} --without-http_charset_module"
+# use userid-mod || myconf = "${myconf} --without-http_userid_module"
+# use access-mod || myconf = "${myconf} --without-http_access_module"
+# use autoindex-mod || myconf = "${myconf} --without-http_autoindex_module"
+# use geo-mod || myconf = "${myconf} --without-http_geo_module"
+# use rewrite-mod || myconf = "${myconf} --without-http_rewrite_module"
+# use proxy-mod || myconf = "${myconf} --without-http_proxy_module"
+# use fastcgi-mod || myconf = "${myconf} --without-http_fastcgi_module"
+
+ cd ${S}
+ ./configure \
+ --prefix=/usr \
+ --conf-path=/etc/${PN}/${PN}.conf \
+ --http-log-path=/var/log/${PN}/access_log \
+ --error-log-path=/var/log/${PN}/error_log \
+ --pid-path=/var/run/${PN}.pid \
+ --http-client-body-temp-path=/var/tmp/${PN}/client \
+ --http-proxy-temp-path=/var/tmp/${PN}/proxy \
+ --http-fastcgi-temp-path=/var/tmp/${PN}/fastcgi \
+ --with-md5-asm \
+ ${myconf}
+
+ emake || "failed to compile"
+}
+
+src_install() {
+ cd ${S} || die
+
+ dodir /var/log/${PN}
+ dodir /var/tmp/${PN}
+ dodir /var/tmp/${PN}/client
+ dodir /var/tmp/${PN}/proxy
+ dodir /var/tmp/${PN}/fastcgi
+ dodir /etc/${PN}
+
+ dosbin objs/nginx
+ doinitd ${FILESDIR}/nginx
+
+ insinto /etc/${PN}
+ rm conf/nginx.conf
+ doins -r conf
+ doins ${FILESDIR}/nginx.conf
+}