diff options
author | Ivan Shapovalov | 2018-09-03 04:44:20 +0300 |
---|---|---|
committer | Ivan Shapovalov | 2018-09-03 04:44:20 +0300 |
commit | e09c674c7400a3cb591469da54ecbc3390ac26fc (patch) | |
tree | d4f40a8119ec57bbd0c4013bfbf548e5a1219653 /PKGBUILD | |
download | aur-e09c674c7400a3cb591469da54ecbc3390ac26fc.tar.gz |
Initialize with nginx-module-vts 0.1.18.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..149b20d73781 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Ivan Shapovalov <intelfx@intelfx.name> +# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> + +pkgname=nginx-mainline-mod-vts +pkgver=0.1.18 +pkgrel=9 + +_modname="${pkgname#nginx-mainline-mod-}" +_nginxver=1.15.2 + +pkgdesc='Nginx virtual host traffic status module (module for mainline nginx)' +arch=('i686' 'x86_64') +depends=("nginx-mainline=$_nginxver") +url="https://github.com/vozlt/nginx-module-vts" +license=('BSD') + +source=( + https://nginx.org/download/nginx-$_nginxver.tar.gz + $pkgname-$pkgver.tar.gz::https://github.com/vozlt/nginx-module-vts/archive/v$pkgver.tar.gz +) + +sha256sums=('eeba09aecfbe8277ac33a5a2486ec2d6731739f3c1c701b42a0c3784af67ad90' + '17ea41d4083f6d1ab1ab83dad9160eeca66867abe16c5a0421f85a39d7c84b65') + +build() { + cd "$srcdir"/nginx-$_nginxver + ./configure --with-compat --add-dynamic-module=../nginx-module-vts-$pkgver + make modules +} + +package() { + install -Dm644 "$srcdir"/nginx-module-vts-$pkgver/LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + cd "$srcdir"/nginx-$_nginxver/objs + for mod in *.so; do + install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod + done +} |