diff options
author | Fabiano Furtado | 2023-07-11 17:59:26 -0300 |
---|---|---|
committer | Fabiano Furtado | 2023-07-11 17:59:26 -0300 |
commit | 65ff3d3635a68ba19f67f93b4008df0b00630408 (patch) | |
tree | dcd5ab0098116125ccdcfa8d6de152dd68bb3e86 | |
download | aur-65ff3d3635a68ba19f67f93b4008df0b00630408.tar.gz |
nginx mod sticky v0.0.2
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8814b920b2f8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = nginx-mod-sticky + pkgdesc = NGINX sticky module - add a sticky cookie to be always forwarded to the same upstream server. + pkgver = 0.0.2 + pkgrel = 1 + url = https://github.com/fabianofurtado/nginx_sticky_module_ng + arch = x86_64 + license = GPL3 + makedepends = nginx-src + depends = nginx + source = https://github.com/fabianofurtado/nginx_sticky_module_ng/archive/refs/tags/v0.0.2.tar.gz + b2sums = c07cce500d90f9341c1cfbd16aa4b88e8e60d40f2934450398a10f675e305ee5199865763f7a02f9c7be03c4a38cf96b92fed9cbb38f614b02b0315fab8dab2c + +pkgname = nginx-mod-sticky diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1fd3af5bd935 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Fabiano Furtado a.k.a. fusca < fusca14 *at* gmail *dot* com > + +pkgname=nginx-mod-sticky +pkgver=0.0.2 +pkgrel=1 + +_modname="${pkgname#nginx-mod-}" +_rep_name='nginx_'$_modname'_module_ng' +_mod_dir=$pkgname'_v'$pkgver + +pkgdesc="NGINX sticky module - add a sticky cookie to be always forwarded to the same upstream server." +arch=('x86_64') +depends=('nginx') +makedepends=('nginx-src') +url="https://github.com/fabianofurtado/nginx_sticky_module_ng" +license=('GPL3') + +source=( + https://github.com/fabianofurtado/$_rep_name/archive/refs/tags/v$pkgver.tar.gz +) +b2sums=('c07cce500d90f9341c1cfbd16aa4b88e8e60d40f2934450398a10f675e305ee5199865763f7a02f9c7be03c4a38cf96b92fed9cbb38f614b02b0315fab8dab2c') + +prepare() { + mv $_rep_name-$pkgver/ $_mod_dir/ + mkdir -p build + cd build + ln -sf /usr/src/nginx/auto + ln -sf /usr/src/nginx/src +} + +build() { + cd build + /usr/src/nginx/configure \ + --with-compat \ + --add-dynamic-module=../$_mod_dir + make modules +} + +package() { + cd build/objs + for ngx_mod in *.so; { install -Dm640 $ngx_mod $pkgdir'/usr/lib/nginx/modules/'$ngx_mod; } + + install -Dm644 $srcdir'/'$_mod_dir'/README.md' \ + $pkgdir'/usr/share/licenses/'$pkgname'/README.md' +} |