aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx-lua
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-09-05 12:58:10 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-05 13:05:36 +0200
commita9193cd105138a3f5ab566b9064604bb12aff378 (patch)
tree83ebcc6e2d73cbb686abcb46f22a16c06e0b3f5c /main/nginx-lua
parenta06bd137ccd148f57e09f5ec9afcff356bac3b7c (diff)
downloadaports-a9193cd105138a3f5ab566b9064604bb12aff378.tar.bz2
aports-a9193cd105138a3f5ab566b9064604bb12aff378.tar.xz
main/nginx-lua: used shared initscript
Diffstat (limited to 'main/nginx-lua')
-rw-r--r--main/nginx-lua/APKBUILD23
-rw-r--r--main/nginx-lua/nginx-lua.pre-install9
l---------main/nginx-lua/nginx-lua.pre-upgrade1
-rwxr-xr-xmain/nginx-lua/nginx.initd69
-rw-r--r--main/nginx-lua/nginx.logrotate12
5 files changed, 7 insertions, 107 deletions
diff --git a/main/nginx-lua/APKBUILD b/main/nginx-lua/APKBUILD
index 32f6d5e6d5..8dd0ead08a 100644
--- a/main/nginx-lua/APKBUILD
+++ b/main/nginx-lua/APKBUILD
@@ -9,15 +9,15 @@ pkgver=1.8.0
_ngx_rtmp_ver=1.1.7
_ngx_devel_kit_ver=0.2.19
_ngx_lua_ver=0.9.16
-pkgrel=4
+pkgrel=5
pkgdesc="lightweight HTTP and reverse proxy server with Lua support"
url="http://www.nginx.org"
arch="all"
-license="Custom"
+license="custom"
pkgusers="nginx"
pkggroups="nginx"
-install="$pkgname.pre-install $pkgname.pre-upgrade"
-depends="!nginx"
+install=""
+depends="!nginx nginx-initscripts"
subpackages="$pkgname-doc"
makedepends="pcre-dev openssl-dev zlib-dev luajit-dev paxmark linux-headers"
source="http://nginx.org/download/$_pkgname-$pkgver.tar.gz
@@ -26,9 +26,6 @@ source="http://nginx.org/download/$_pkgname-$pkgver.tar.gz
lua-nginx-module-$_ngx_lua_ver.tar.gz::https://github.com/openresty/lua-nginx-module/archive/v$_ngx_lua_ver.tar.gz
ipv6.patch
-
- nginx.initd
- nginx.logrotate
"
_builddir="$srcdir"/$_pkgname-$pkgver
@@ -111,20 +108,14 @@ md5sums="3ca4a37931e9fa301964b8ce889da8cb nginx-1.8.0.tar.gz
09a18178adca7b5674129d8100ce4f68 nginx-devel-kit-0.2.19.tar.gz
8006de2560db3e55bb15d110220076ac nginx-rtmp-module-1.1.7.tar.gz
4041309464989fe3970c5a0efa931d53 lua-nginx-module-0.9.16.tar.gz
-801a87f7f9d27f8ad85b41a78b4c4461 ipv6.patch
-e6c76d4ffbb8549600e03e9e0f4d2dbe nginx.initd
-d3f30c25c84c55252a6babd9e9b0325b nginx.logrotate"
+801a87f7f9d27f8ad85b41a78b4c4461 ipv6.patch"
sha256sums="23cca1239990c818d8f6da118320c4979aadf5386deda691b1b7c2c96b9df3d5 nginx-1.8.0.tar.gz
501f299abdb81b992a980bda182e5de5a4b2b3e275fbf72ee34dd7ae84c4b679 nginx-devel-kit-0.2.19.tar.gz
7922b0e3d5f3d9c4b275e4908cfb8f5fb1bfb3ac2df77f4c262cda56df21aab3 nginx-rtmp-module-1.1.7.tar.gz
a3cda55b8cba5bc6632aa270b8a02d543fdb43f4d60a3bd2cb411c2a3b467656 lua-nginx-module-0.9.16.tar.gz
-a24ef5843ae0afa538b00c37eb7da7870f9d7f146f52a9668678f7296cf71d9b ipv6.patch
-6dcb7739f97ae86d4a09e12126546bcab0f87da093d78167dcf9f220194ed68b nginx.initd
-6b89872994508cc7b4b225bca3301d7942767f37b8b691134141d95995740890 nginx.logrotate"
+a24ef5843ae0afa538b00c37eb7da7870f9d7f146f52a9668678f7296cf71d9b ipv6.patch"
sha512sums="3e5d7e1b01839b2638251c47046149450b9b65985e611ef55e5953846e9eb0128c3708c695540ad4dfd0ce5e3060dfecb51213403048fab1a99dd5cea94f0038 nginx-1.8.0.tar.gz
915954acf16a27fbd3c93c154012d38e864f1d8dfd51cde401bba26e46eb3e3c778ec4c92f4f8ed83ac001e96cee72765554d0e4da06acf6a4be5184b23b3657 nginx-devel-kit-0.2.19.tar.gz
9883462a04683f1e7af175da04b86d259ff6d677864667588fb073143f7130969eb2a5a5a48ddceda7a555b908580f179bdcacb7f0111413d51db5bfe43b396e nginx-rtmp-module-1.1.7.tar.gz
01be7dca10c1c1f25d2b8e65c9944662d5ba0235ecccba1143f7c30dcb76fad847a4a2fa7a34055906a33d50ecf8fb463aac9f76581390035a88e48c9b9f5319 lua-nginx-module-0.9.16.tar.gz
-68d64a84568ec2df0366925ab282a05ebe21a85044b6c7844a47573cfd8cc8ed119cc772358bc3fff36e2d4fdf583a730592825f5f98632993ca86d1f8438d5f ipv6.patch
-9d645248130ec35183f05efdd5a6b2a911f706348c5efc3bcc29ee88cc02ee68117ca3c7f532115c04db344818fa4a9fd7e31995efbf52e2d963bec568d0c69f nginx.initd
-fda91710185d6b801dd746c8c3678b5719b408de0b715bef7b1985f1ee17db1e8378d440759ea6234b1f70454a35870a2917bd1d6cd309ddc70e1c066fc8d4b8 nginx.logrotate"
+68d64a84568ec2df0366925ab282a05ebe21a85044b6c7844a47573cfd8cc8ed119cc772358bc3fff36e2d4fdf583a730592825f5f98632993ca86d1f8438d5f ipv6.patch"
diff --git a/main/nginx-lua/nginx-lua.pre-install b/main/nginx-lua/nginx-lua.pre-install
deleted file mode 100644
index 55b5bfcda5..0000000000
--- a/main/nginx-lua/nginx-lua.pre-install
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-addgroup -g 82 -S www-data 2>/dev/null
-addgroup -S nginx 2>/dev/null
-adduser -S -G nginx -H -h /var/www/localhost/htdocs -s /sbin/nologin \
- -D nginx 2>/dev/null
-addgroup nginx www-data 2>/dev/null
-
-exit 0
diff --git a/main/nginx-lua/nginx-lua.pre-upgrade b/main/nginx-lua/nginx-lua.pre-upgrade
deleted file mode 120000
index d4a5f981c5..0000000000
--- a/main/nginx-lua/nginx-lua.pre-upgrade
+++ /dev/null
@@ -1 +0,0 @@
-nginx-lua.pre-install \ No newline at end of file
diff --git a/main/nginx-lua/nginx.initd b/main/nginx-lua/nginx.initd
deleted file mode 100755
index b1e0fe7856..0000000000
--- a/main/nginx-lua/nginx.initd
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/sbin/openrc-run
-# 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.init-r2,v 1.1 2010/01/03 19:51:41 djc Exp $
-
-extra_started_commands="upgrade reload"
-extra_commands="configtest"
-
-conffile=/etc/nginx/nginx.conf
-
-pidfile=/var/run/nginx/nginx.pid
-command=/usr/sbin/nginx
-command_args="-c $conffile"
-
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start_pre() {
- configtest || return 1
-}
-
-reload() {
- configtest || return 1
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat $pidfile` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest || return 1
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat $pidfile` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f $pidfile.oldbin ]; then
- eerror "File with old pid ($pidfile.oldbin) not found"
- return 1
- fi
-
- if [ ! -f $pidfile ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat $pidfile.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat $pidfile.oldbin`
-
- einfo "Upgrade completed"
-
- eend $? "Upgrade failed"
-}
-
-configtest() {
- ebegin "Checking nginx' configuration"
- checkpath --directory --owner nginx:nginx ${pidfile%/*}
- $command -c $conffile -tq
- eend $? "failed, please correct errors above"
-}
-
diff --git a/main/nginx-lua/nginx.logrotate b/main/nginx-lua/nginx.logrotate
deleted file mode 100644
index 00e5a94eb5..0000000000
--- a/main/nginx-lua/nginx.logrotate
+++ /dev/null
@@ -1,12 +0,0 @@
-# Copyright 1999-2010 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.1 2010/01/03 20:29:40 djc Exp $
-
-/var/log/nginx/*.log {
- missingok
- sharedscripts
- postrotate
- test -r /var/run/nginx.pid && kill -USR1 `cat /var/run/nginx.pid`
- endscript
-}
-