aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2019-05-07 00:33:23 +0200
committerJakub Jirutka <jakub@jirutka.cz>2019-05-07 00:35:21 +0200
commit156e80641c20ed961a9232774b5a37b1941eb085 (patch)
treea379325329293bacb529349b666a6d0438086a4a /main/nginx
parentff3a47ccfe8ed9d0b87359b176019114b7158807 (diff)
downloadaports-156e80641c20ed961a9232774b5a37b1941eb085.tar.bz2
aports-156e80641c20ed961a9232774b5a37b1941eb085.tar.xz
main/nginx: move ngx_stream_geoip2_module.so to subpackage
Diffstat (limited to 'main/nginx')
-rw-r--r--main/nginx/APKBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/main/nginx/APKBUILD b/main/nginx/APKBUILD
index 704906364a..121b297477 100644
--- a/main/nginx/APKBUILD
+++ b/main/nginx/APKBUILD
@@ -141,6 +141,7 @@ _rtmp_provides="$pkgname-rtmp" # for backward compatibility
_add_module "http-vod" "1.24" "https://github.com/kaltura/nginx-vod-module"
_add_module "http-geoip2" "3.2" "https://github.com/leev/ngx_http_geoip2_module"
+_http_geoip2_so="ngx_http_geoip2_module.so ngx_stream_geoip2_module.so"
prepare() {
local file; for file in $source; do
@@ -291,20 +292,22 @@ vim() {
_module() {
local name="${subpkgname#$pkgname-mod-}"
name="${name//-/_}"
- local soname="$(eval "echo \$_${name}_so")";
- soname="${soname:-"ngx_${name}_module.so"}"
+ local sonames="$(eval "echo \$_${name}_so")";
+ sonames="${sonames:-"ngx_${name}_module.so"}"
pkgdesc="$pkgdesc (module $name)"
depends="$pkgname $(eval "echo \$_${name}_depends")"
provides="$(eval "echo \$_${name}_provides")"
mkdir -p "$subpkgdir"/$_modules_dir
- cd "$subpkgdir"
+ mkdir -p "$subpkgdir"/etc/nginx/modules
- mv "$pkgdir"/$_modules_dir/$soname ./$_modules_dir/$soname
+ cd "$subpkgdir"
- mkdir -p "$subpkgdir"/etc/nginx/modules
- echo "load_module \"modules/$soname\";" > ./etc/nginx/modules/$name.conf
+ local soname; for soname in $sonames; do
+ mv "$pkgdir"/$_modules_dir/$soname ./$_modules_dir/$soname
+ echo "load_module \"modules/$soname\";" > ./etc/nginx/modules/$name.conf
+ done
}
sha512sums="e99cfaa4538f209c096ea2f93c04b5019756617f3bcd3305c273e98ddc89fed5bf90d65fb9b493149bc47d55ff79e73850bfcac20505fab74930d0102075df3d nginx-1.16.0.tar.gz