[Lunar-commits] <moonbase> nginx: version bumped to 10.12.
Florin Braescu
florin at lunar-linux.org
Mon Feb 13 19:05:38 CET 2012
commit c9ee3609e4541afc5b159deaec8fe262eb525ede
Author: Florin Braescu <florin at lunar-linux.org>
Date: Mon Feb 13 19:05:38 2012 +0100
nginx: version bumped to 10.12.
---
zbeta/nginx/BUILD | 35 +++++++++++++++++++++++++++++++++++
zbeta/nginx/DEPENDS | 6 ++++--
zbeta/nginx/DETAILS | 7 ++++---
zbeta/nginx/init.d/nginxd | 14 ++++++++++++++
zbeta/nginx/systemd.d/nginx.service | 11 +++++++++++
5 files changed, 68 insertions(+), 5 deletions(-)
diff --git a/zbeta/nginx/BUILD b/zbeta/nginx/BUILD
new file mode 100644
index 0000000..0ae6dca
--- /dev/null
+++ b/zbeta/nginx/BUILD
@@ -0,0 +1,35 @@
+(
+
+ add_priv_user nginx:nginx -s /bin/false -c "nginx" &&
+
+ ./configure --prefix=/usr \
+ --sbin-path=/usr/sbin/nginx \
+ --pid-path=/var/run/nginx.pid \
+ --conf-path=/etc/nginx/nginx.conf \
+ --lock-path=/var/lock/nginx.lock \
+ --http-client-body-temp-path=/var/spool/nginx/client_body_temp \
+ --http-proxy-temp-path=/var/spool/nginx/proxy_temp \
+ --http-fastcgi-temp-path=/var/spool/nginx/fastcgi_temp \
+ --http-log-path=/var/log/nginx/access.log \
+ --error-log-path=/var/log/nginx/error.log \
+ --with-imap_ssl_module \
+ --with-http_stub_status_module \
+ --with-http_dav_module \
+ --user=nginx \
+ --group=nginx \
+ --with-imap \
+ --with-ipv6 \
+ --http-scgi-temp-path=/var/spool/nginx \
+ --http-uwsgi-temp-path=/var/spool/nginx \
+ $OPTS &&
+
+ default_make &&
+
+ mkdir -p /var/log/nginx &&
+ mkdir -p /srv/www/htdocs &&
+ mkdir -p /var/spool/nginx/proxy_temp &&
+ mkdir -p /var/spool/nginx/fastcgi_temp &&
+ mkdir -p /var/spool/nginx/client_body_temp &&
+ chown nginx:nginx /srv/www /var/log/nginx
+
+) > $C_FIFO 2>&1
diff --git a/zbeta/nginx/DEPENDS b/zbeta/nginx/DEPENDS
index 3299c03..bbf2e8c 100644
--- a/zbeta/nginx/DEPENDS
+++ b/zbeta/nginx/DEPENDS
@@ -1,2 +1,4 @@
-optional_depends "openssl" "--with-http_ssl_module" "" "for creating SSL connections"
-optional_depends "gzip" "" "--without-http_gzip_module" "for using gzip compression"
+depends pcre
+
+optional_depends "openssl" "" "" "for creating SSL connections"
+optional_depends "gzip" "" "--without-http_gzip_module" "for using gzip compression"
diff --git a/zbeta/nginx/DETAILS b/zbeta/nginx/DETAILS
index ade0c7c..4c15ddb 100644
--- a/zbeta/nginx/DETAILS
+++ b/zbeta/nginx/DETAILS
@@ -1,13 +1,14 @@
MODULE=nginx
- VERSION=1.0.11
+ VERSION=1.0.12
SOURCE=${MODULE}-${VERSION}.tar.gz
SOURCE_URL=http://nginx.org/download/
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
- SOURCE_VFY=sha1:c06144214144b61358ccf785e99f751b8ca0a3bb
+ SOURCE_VFY=sha1:74bf2377f976c3acb8bece56b3233e79b6e859d1
WEB_SITE="http://nginx.org"
ENTERED=20111228
- UPDATED=20111228
+ UPDATED=20120213
SHORT="http server and reverse proxy"
+
cat <<EOF
nginx [engine x] is an HTTP and reverse proxy server, as well as a
mail proxy server, written by Igor Sysoev.
diff --git a/zbeta/nginx/init.d/nginxd b/zbeta/nginx/init.d/nginxd
new file mode 100644
index 0000000..0d303db
--- /dev/null
+++ b/zbeta/nginx/init.d/nginxd
@@ -0,0 +1,14 @@
+#!/bin/bash
+#
+# Startup script for the Nginx Web Server
+#
+# chkconfig: 345 85 15
+# description: Nginx is a World Wide Web server. \
+# It is used to serve HTML files and CGI.
+# processname: nginx
+# pidfile: /var/run/nginx.pid
+# config: /etc/nginx/nginx.conf
+
+ARGS="-c /etc/nginx/nginx.conf"
+
+. /lib/lsb/init-functions $1
diff --git a/zbeta/nginx/systemd.d/nginx.service b/zbeta/nginx/systemd.d/nginx.service
new file mode 100644
index 0000000..70b5967
--- /dev/null
+++ b/zbeta/nginx/systemd.d/nginx.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Nginx httpd Daemon
+After=network.target
+
+[Service]
+ExecStartPre=/usr/sbin/nginx -t -f /etc/nginx/nginx.conf
+ExecStart=/usr/sbin/nginx -D -f /etc/nginx/nginx.conf
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
More information about the Lunar-commits
mailing list