aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openresty/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/openresty/APKBUILD')
-rw-r--r--testing/openresty/APKBUILD40
1 files changed, 17 insertions, 23 deletions
diff --git a/testing/openresty/APKBUILD b/testing/openresty/APKBUILD
index ea7ba0d271..06f64c6a37 100644
--- a/testing/openresty/APKBUILD
+++ b/testing/openresty/APKBUILD
@@ -1,9 +1,8 @@
# Contributor: tcely <openresty+aports@tcely.33mail.com>
# Maintainer:
pkgname=openresty
-pkgver="1.15.8.1"
-_rc=2
-pkgrel=2
+pkgver="1.15.8.2"
+pkgrel=0
pkgdesc="Scalable Web Platform by Extending NGINX with Lua"
url="https://openresty.org/"
arch="all !ppc64le !s390x" # LuaJIT build errors
@@ -11,21 +10,18 @@ license="BSD-2-Clause"
options="!check" # tests environment not available
provides="cmd:nginx"
depends="!nginx"
-depends_dev=""
makedepends="linux-headers gd-dev geoip-dev openssl-dev libxml2-dev libxslt-dev
pcre-dev perl-dev pkgconf readline-dev zlib-dev"
-install=""
subpackages="$pkgname-doc"
-source="https://openresty.org/download/${pkgname}-${pkgver}${_rc:+rc${_rc}}.tar.gz"
-builddir="${srcdir}/${pkgname}-${pkgver}${_rc:+rc${_rc}}"
+source="https://openresty.org/download/openresty-${pkgver}${_rc:+rc${_rc}}.tar.gz"
_modules_dir="/usr/lib/nginx/modules"
_add_module() {
- local name="http-${1}"
+ local name="http-$1"
local _soname="${2-$1}"
local soname="ngx_http_${_soname//-/_}_module.so"
- subpackages="$subpackages ${pkgname}-mod-${name}:_module"
+ subpackages="$subpackages $pkgname-mod-${name}:_module"
eval "_module_${name//-/_}_so='${soname//\'}'"
[ -z "$3" ] || { shift; shift; eval "_module_${name//-/_}_deps='${*//\'}'"; }
@@ -34,14 +30,12 @@ _add_module() {
_add_module echo
_add_module headers-more headers_more_filter
_add_module lua lua nginx-mod-devel-kit
-_add_module lua-upstream lua_upstream "${pkgname}-mod-http-lua"
+_add_module lua-upstream lua_upstream "$pkgname-mod-http-lua"
_add_module redis2
_add_module set-misc set_misc nginx-mod-devel-kit
prepare() {
default_prepare
- cd "$builddir"
-
sed -i.orig -e '/--add-module=$dir/s/module/dynamic-&/' configure
}
@@ -52,9 +46,9 @@ _configure() {
--prefix=/var/lib/$_pkgname \
--sbin-path=/usr/sbin/$_pkgname \
--modules-path="$_modules_dir" \
- --conf-path=/etc/$_pkgname/${_pkgname}.conf \
- --pid-path=/var/run/$_pkgname/${_pkgname}.pid \
- --lock-path=/var/run/$_pkgname/${_pkgname}.lock \
+ --conf-path=/etc/$_pkgname/$_pkgname.conf \
+ --pid-path=/var/run/$_pkgname/$_pkgname.pid \
+ --lock-path=/var/run/$_pkgname/$_pkgname.lock \
--error-log-path=/var/log/$_pkgname/error.log \
--http-log-path=/var/log/$_pkgname/access.log \
\
@@ -116,21 +110,21 @@ package() {
}
_module() {
- local name="${subpkgname#${pkgname}-mod-}"
+ local name="${subpkgname#$pkgname-mod-}"
local soname="$(eval echo "\$_module_${name//-/_}_so")"
local _deps="$(eval echo "\$_module_${name//-/_}_deps")"
pkgdesc="$pkgdesc (module $soname)"
- depends="cmd:nginx${_deps:+ }${_deps}"
+ depends="cmd:nginx${_deps:+ }$_deps"
provides=""
- mkdir -p "${subpkgdir}${_modules_dir}"
- cd "${subpkgdir}${_modules_dir}"
+ mkdir -p "${subpkgdir}$_modules_dir"
+ cd "${subpkgdir}$_modules_dir"
mv "$builddir"/built/nginx-*/objs/"$soname" .
- mkdir -p "${subpkgdir}/etc/nginx/modules"
- cd "${subpkgdir}/etc/nginx/modules"
- echo "load_module \"modules/${soname}\";" > "./${name}.conf"
+ mkdir -p "$subpkgdir/etc/nginx/modules"
+ cd "$subpkgdir/etc/nginx/modules"
+ echo "load_module \"modules/$soname\";" > "./$name.conf"
}
doc() {
@@ -158,4 +152,4 @@ doc() {
#gpg_signature_extensions="asc"
#gpgfingerprints="good:2545 1EB0 8846 0026 195B D62C B550 E09E A0E9 8066"
-sha512sums="80ee0cff790d71e3603d3b398829a4166d8c096d362c8b7c02d1cbc0b8ba7c4cd24042744e708acd462f4cf6fc5bf43121945a702f078fa80ce7613817275700 openresty-1.15.8.1rc2.tar.gz"
+sha512sums="f7310ce220dc2e442b4de5e0602f6a787498c52dff214eeb04929504ea03700f181022d010fdfeb87a4c5aeda3c9515475f8eb29833583f6706ed32d8c9393c8 openresty-1.15.8.2.tar.gz"