[arch-commits] Commit in nginx-mod-auth-pam/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Mon Jan 6 14:21:12 UTC 2020


    Date: Monday, January 6, 2020 @ 14:21:12
  Author: bpiotrowski
Revision: 549744

Switch to nginx-src

Modified:
  nginx-mod-auth-pam/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-06 14:18:52 UTC (rev 549743)
+++ PKGBUILD	2020-01-06 14:21:12 UTC (rev 549744)
@@ -5,32 +5,31 @@
 pkgrel=8
 
 _modname=ngx_http_auth_pam_module
-_nginxver=1.16.1
 
 pkgdesc='Nginx module to use PAM for simple http authentication'
 arch=('x86_64')
-depends=("nginx=$_nginxver" 'pam')
+depends=("nginx" 'pam')
+makedepends=("nginx-src")
 url="https://github.com/sto/ngx_http_auth_pam_module"
 license=('BSD')
 
 source=(
-	https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
 	https://github.com/sto/$_modname/archive/v$pkgver/$_modname-$pkgver.tar.gz
 	$_modname-critlog.patch::https://patch-diff.githubusercontent.com/raw/sto/ngx_http_auth_pam_module/pull/11.patch
 )
 validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
-sha256sums=('f11c2a6dd1d3515736f0324857957db2de98be862461b5a542a3ac6188dbe32b'
-            'SKIP'
-            '77676842919134af88a7b4bfca4470223e3a00d287d17c0dbdc9a114a685b6e7'
+sha256sums=('77676842919134af88a7b4bfca4470223e3a00d287d17c0dbdc9a114a685b6e7'
             '1a59787672cf9c6768cb77c31f19a870eaf556c7b28c8c22a22cf8a7013b93af')
 
 prepare() {
+  cp -r /usr/src/nginx .
+
 	cd "$srcdir"/$_modname-$pkgver
 	patch -p1 -i "$srcdir"/$_modname-critlog.patch
 }
 
 build() {
-	cd "$srcdir"/nginx-$_nginxver
+	cd "$srcdir"/nginx
 	./configure --with-compat --add-dynamic-module=../$_modname-$pkgver
 	make modules
 }
@@ -39,7 +38,7 @@
 	install -Dm644 "$srcdir"/$_modname-$pkgver/LICENSE \
 	               "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 
-	cd "$srcdir"/nginx-$_nginxver/objs
+	cd "$srcdir"/nginx/objs
 	for mod in *.so; do
 		install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
 	done



More information about the arch-commits mailing list