summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Glagolev2009-02-04 11:54:45 +0300
committerVlad Glagolev2009-02-04 11:54:45 +0300
commit1c7b7234025763d61d0a5294a7182c9b55bd0de7 (patch)
treec6b48b551f65da08de278c57a5bf588d409f5b4d
parent7578a97ea0e1729f552492d4b1b42692bd9a78b9 (diff)
nginx: new spell, HTTP server and mail proxy server
-rw-r--r--ChangeLog3
-rwxr-xr-xaccounts1
-rwxr-xr-xgroups1
-rwxr-xr-xhttp/nginx/BUILD13
-rwxr-xr-xhttp/nginx/DEPENDS9
-rwxr-xr-xhttp/nginx/DETAILS38
-rw-r--r--http/nginx/HISTORY2
-rw-r--r--http/nginx/init.d/nginx9
8 files changed, 76 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 52c37abe09..f0cd8cbef9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2009-02-04 Vlad Glagolev <stealth@sourcemage.org>
+ * http/nginx: new spell, HTTP server and mail proxy server
+
2009-02-02 Eric Sandall <sandalle@sourcemage.org>
* kde4-look/plasmoid-netgraph: Removed, no longer maintained and doesn't
compile with stable KDE4, use system monitor plasmoid
diff --git a/accounts b/accounts
index 2847f964f4..836d1442b7 100755
--- a/accounts
+++ b/accounts
@@ -74,4 +74,5 @@ nsd:160:164
polkituser:161:165
backuppc:162:166
pulse:163:167
+nginx:164:170
nobody:65534:65534
diff --git a/groups b/groups
index c0de25a786..f383cf4668 100755
--- a/groups
+++ b/groups
@@ -90,5 +90,6 @@ backuppc:166:
pulse:167:
pulse-rt:168:
pulse-access:169:
+nginx:170:
users:1000:
nogroup:65534:
diff --git a/http/nginx/BUILD b/http/nginx/BUILD
new file mode 100755
index 0000000000..82981f2fd4
--- /dev/null
+++ b/http/nginx/BUILD
@@ -0,0 +1,13 @@
+create_account nginx &&
+
+./configure --prefix="$INSTALL_ROOT/etc/nginx" \
+ --conf-path="$INSTALL_ROOT/etc/nginx/nginx.conf" \
+ --sbin-path="$INSTALL_ROOT/usr/sbin/nginx" \
+ --pid-path="$INSTALL_ROOT/var/run/nginx.pid" \
+ --user=nginx \
+ --group=nginx \
+ --http-log-path="$INSTALL_ROOT/var/log/nginx/access.log" \
+ --error-log-path="$INSTALL_ROOT/var/log/nginx/error.log" \
+ $OPTS &&
+
+make
diff --git a/http/nginx/DEPENDS b/http/nginx/DEPENDS
new file mode 100755
index 0000000000..d0ee1c7c45
--- /dev/null
+++ b/http/nginx/DEPENDS
@@ -0,0 +1,9 @@
+depends openssl &&
+
+optional_depends pcre \
+ "" "--without-pcre" \
+ "for PCRE library usage" &&
+
+optional_depends perl \
+ "--with-http_perl_module" "" \
+ "for embedded Perl support"
diff --git a/http/nginx/DETAILS b/http/nginx/DETAILS
new file mode 100755
index 0000000000..ede2756d26
--- /dev/null
+++ b/http/nginx/DETAILS
@@ -0,0 +1,38 @@
+ SPELL=nginx
+ VERSION=0.6.35
+ SOURCE=$SPELL-$VERSION.tar.gz
+ SOURCE_URL[0]=http://sysoev.ru/$SPELL/$SOURCE
+ SOURCE_HASH=sha512:b9008329fd7541ecb73935980ca2b57fe4c689a61e59be6967059aaaf15885d310439e96541c769d46ec4a327084400f9223e2b946001fb060587b863fbf1623
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE=http://nginx.net/
+ LICENSE[0]=BSD
+ ENTERED=20090203
+ SHORT="HTTP server and mail proxy server"
+cat << EOF
+nginx [engine x] is a HTTP server and mail proxy server.
+
+The basic HTTP features:
+* Handling of static files, index files, and autoindexing; open file
+ descriptor cache.
+* Accelerated reverse proxying without caching, simple load balancing
+ and fault tolerance.
+* Accelerated support without caching of remote FastCGI servers,
+ simple load balancing and fault tolerance.
+* Modular architecture. Filters include gzipping, byte ranges,
+ chunked responses, and SSI. Multiple SSI inclusions within a single
+ page can be processed in parallel if they are handled by FastCGI or
+ proxied servers.
+* SSL and TLS SNI support.
+
+Mail proxy server features:
+* User redirection to IMAP/POP3 backend using an external HTTP
+ authentication server.
+* User authentication using an external HTTP authentication server
+ and connection redirection to internal SMTP backend.
+* Authentication methods:
+ o POP3: USER/PASS, APOP, AUTH LOGIN PLAIN CRAM-MD5
+ o IMAP: LOGIN, AUTH LOGIN PLAIN CRAM-MD5
+ o SMTP: AUTH LOGIN PLAIN CRAM-MD5
+* SSL support.
+* STARTTLS and STLS support.
+EOF
diff --git a/http/nginx/HISTORY b/http/nginx/HISTORY
new file mode 100644
index 0000000000..0524794ade
--- /dev/null
+++ b/http/nginx/HISTORY
@@ -0,0 +1,2 @@
+2009-02-03 Vlad Glagolev <stealth@sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, init.d/nginx: spell created
diff --git a/http/nginx/init.d/nginx b/http/nginx/init.d/nginx
new file mode 100644
index 0000000000..61b77be969
--- /dev/null
+++ b/http/nginx/init.d/nginx
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+PIDFILE=/var/run/nginx.pid
+PROGRAM=/usr/sbin/nginx
+ARGS="-c /etc/nginx/nginx.conf"
+RUNLEVEL=3
+NEEDS="+network +remote_fs"
+
+. /etc/init.d/smgl_init