Date: Wednesday, February 24, 2021 @ 20:43:11 Author: jelle Revision: 408759
Initial commit of vts module Added: nginx-mod-vts/ nginx-mod-vts/repos/ nginx-mod-vts/trunk/ nginx-mod-vts/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Added: nginx-mod-vts/trunk/PKGBUILD =================================================================== --- nginx-mod-vts/trunk/PKGBUILD (rev 0) +++ nginx-mod-vts/trunk/PKGBUILD 2021-02-24 20:43:11 UTC (rev 408759) @@ -0,0 +1,32 @@ +# Maintainer: Jelle van der Waa <[email protected]> +# Contributor: Giovanni Harting <[email protected]> + +_modname="nginx-module-vts" +pkgname=nginx-mod-vts +pkgver=0.1.18 +pkgrel=1 +pkgdesc="Nginx virtual host traffic status module" +arch=('x86_64') +depends=('nginx') +makedepends=('nginx-src') +url="https://github.com/vozlt/nginx-module-vts" +license=('BSD') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/vozlt/$_modname/archive/v$pkgver.tar.gz) +sha256sums=('17ea41d4083f6d1ab1ab83dad9160eeca66867abe16c5a0421f85a39d7c84b65') + +build() { + cp -r /usr/src/nginx . + + cd nginx + ./configure --with-compat --add-dynamic-module=../$_modname-$pkgver + make modules +} + +package() { + install -Dm0644 "nginx-module-vts-$pkgver"/LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE + + cd nginx/objs + for mod in *.so; do + install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod + done +}
