aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy Ustushenko <yoreek@yahoo.com>2013-05-14 22:51:28 +0300
committerYuriy Ustushenko <yoreek@yahoo.com>2013-05-14 22:51:28 +0300
commit3ca7a0ce568c4f89c342952cb9e131b36224dc5f (patch)
treeafdbe4cbbfc13cc68fb1d2833c35bd3bb9f65ae6 /www-servers/nginx/files
parentnew version (diff)
downloadyoreek-3ca7a0ce568c4f89c342952cb9e131b36224dc5f.tar.gz
yoreek-3ca7a0ce568c4f89c342952cb9e131b36224dc5f.tar.bz2
yoreek-3ca7a0ce568c4f89c342952cb9e131b36224dc5f.zip
new version
Diffstat (limited to 'www-servers/nginx/files')
-rw-r--r--www-servers/nginx/files/nginx-1.4.1-fix-perl-install-path.patch13
-rw-r--r--www-servers/nginx/files/nginx.initd-r2 (renamed from www-servers/nginx/files/nginx.initd)6
-rw-r--r--www-servers/nginx/files/nginx.logrotate6
-rw-r--r--www-servers/nginx/files/nginx.service15
-rw-r--r--www-servers/nginx/files/nginx.service-r114
5 files changed, 46 insertions, 8 deletions
diff --git a/www-servers/nginx/files/nginx-1.4.1-fix-perl-install-path.patch b/www-servers/nginx/files/nginx-1.4.1-fix-perl-install-path.patch
new file mode 100644
index 0000000..601a79b
--- /dev/null
+++ b/www-servers/nginx/files/nginx-1.4.1-fix-perl-install-path.patch
@@ -0,0 +1,13 @@
+diff --git a/auto/lib/perl/make b/auto/lib/perl/make
+index 260bd95..857ece6 100644
+--- a/auto/lib/perl/make
++++ b/auto/lib/perl/make
+@@ -35,6 +35,8 @@ $NGX_OBJS/src/http/modules/perl/Makefile: \\
+ NGX_DEPS="\$(CORE_DEPS) \$(HTTP_DEPS)" \\
+ $NGX_PERL Makefile.PL \\
+ LIB=$NGX_PERL_MODULES \\
++ PREFIX=$NGX_PREFIX \\
++ INSTALLDIRS=vendor \\
+ INSTALLSITEMAN3DIR=$NGX_PERL_MODULES_MAN
+
+ END
diff --git a/www-servers/nginx/files/nginx.initd b/www-servers/nginx/files/nginx.initd-r2
index 5e2012a..9036709 100644
--- a/www-servers/nginx/files/nginx.initd
+++ b/www-servers/nginx/files/nginx.initd-r2
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.initd,v 1.7 2013/03/31 01:55:20 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.initd-r2,v 1.1 2013/05/13 12:18:11 dev-zero Exp $
extra_commands="configtest"
extra_started_commands="upgrade reload"
@@ -78,10 +78,6 @@ upgrade() {
}
configtest() {
- checkpath -q -d -m 0755 -o root:root /var/log/nginx
- checkpath -q -d -m 0755 -o ${user}:${group} /var/tmp/nginx
- checkpath -q -d -m 0755 -o ${user}:${group} /var/tmp/nginx/{client,proxy,fastcgi,scgi,uwsgi}
-
ebegin "Checking nginx' configuration"
${command} -c ${nginx_config} -t -q
diff --git a/www-servers/nginx/files/nginx.logrotate b/www-servers/nginx/files/nginx.logrotate
index c9d4c5a..0ae86c8 100644
--- a/www-servers/nginx/files/nginx.logrotate
+++ b/www-servers/nginx/files/nginx.logrotate
@@ -1,11 +1,11 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.logrotate,v 1.2 2011/04/08 08:32:20 hollow Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.logrotate,v 1.3 2013/05/02 20:14:31 hollow Exp $
/var/log/nginx/*_log {
missingok
sharedscripts
postrotate
- test -r /var/run/nginx.pid && kill -USR1 `cat /var/run/nginx.pid`
+ test -r /run/nginx.pid && kill -USR1 `cat /run/nginx.pid`
endscript
}
diff --git a/www-servers/nginx/files/nginx.service b/www-servers/nginx/files/nginx.service
new file mode 100644
index 0000000..b7b81dd
--- /dev/null
+++ b/www-servers/nginx/files/nginx.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=The nginx HTTP and reverse proxy server
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+PIDFile=/run/nginx.pid
+ExecStartPre=/usr/bin/systemd-tmpfiles --create nginx.conf
+ExecStartPre=/usr/sbin/nginx -t
+ExecStart=/usr/sbin/nginx
+ExecReload=/bin/kill -HUP $MAINPID
+ExecStop=/bin/kill -QUIT $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff --git a/www-servers/nginx/files/nginx.service-r1 b/www-servers/nginx/files/nginx.service-r1
new file mode 100644
index 0000000..797c7ed
--- /dev/null
+++ b/www-servers/nginx/files/nginx.service-r1
@@ -0,0 +1,14 @@
+[Unit]
+Description=The nginx HTTP and reverse proxy server
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+PIDFile=/run/nginx.pid
+ExecStartPre=/usr/sbin/nginx -t
+ExecStart=/usr/sbin/nginx
+ExecReload=/bin/kill -HUP $MAINPID
+ExecStop=/bin/kill -QUIT $MAINPID
+
+[Install]
+WantedBy=multi-user.target