upgpkg: nginx-mainline-mod-vts 0.2.2-2

formatting
This commit is contained in:
Giovanni Harting 2024-03-23 19:34:15 +01:00
parent e1d27b61cb
commit e6ccf052f5
2 changed files with 12 additions and 8 deletions

View File

@ -1,11 +1,12 @@
pkgbase = nginx-mainline-mod-vts
pkgdesc = Nginx virtual host traffic status module (module for mainline nginx)
pkgver = 0.2.2
pkgrel = 1
pkgrel = 2
url = https://github.com/vozlt/nginx-module-vts
arch = x86_64
license = BSD-2-Clause
makedepends = nginx-mainline-src
depends = glibc
depends = nginx-mainline
source = nginx-module-vts-0.2.2.tar.gz::https://github.com/vozlt/nginx-module-vts/archive/v0.2.2.tar.gz
b2sums = 07c24eb62feeb145705ef07dc08feaa06b6b68f80b08e43ff8435bcd1ddbce2ce2d9adffd33efe635678eb787e39d9532f5fb0c22cedd2cb58445b2df14f96f5

View File

@ -2,27 +2,30 @@
pkgname=nginx-mainline-mod-vts
pkgver=0.2.2
pkgrel=1
_modname="nginx-module-vts"
pkgrel=2
_modname=nginx-module-vts
pkgdesc='Nginx virtual host traffic status module (module for mainline nginx)'
arch=(x86_64)
depends=(nginx-mainline)
depends=(glibc nginx-mainline)
makedepends=(nginx-mainline-src)
url="https://github.com/vozlt/nginx-module-vts"
url='https://github.com/vozlt/nginx-module-vts'
license=(BSD-2-Clause)
source=("$_modname-$pkgver.tar.gz::https://github.com/vozlt/nginx-module-vts/archive/v$pkgver.tar.gz")
source=("$_modname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
b2sums=('07c24eb62feeb145705ef07dc08feaa06b6b68f80b08e43ff8435bcd1ddbce2ce2d9adffd33efe635678eb787e39d9532f5fb0c22cedd2cb58445b2df14f96f5')
build() {
cp -r /usr/src/nginx .
cd nginx
./configure --with-compat --add-dynamic-module=../$_modname-$pkgver
./configure --with-compat \
--with-cc-opt="$CFLAGS $CPPFLAGS" \
--with-ld-opt="$LDFLAGS" \
--add-dynamic-module=../$_modname-$pkgver
make modules
}
package() {
install -Dm0644 "$_modname-$pkgver"/LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
install -Dm0644 $_modname-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd nginx/objs
for mod in *.so; do