[arch-commits] Commit in (3 files)

Massimiliano Torromeo mtorromeo at archlinux.org
Mon Jun 12 12:52:33 UTC 2017


    Date: Monday, June 12, 2017 @ 12:52:32
  Author: mtorromeo
Revision: 236403

Add nginx-mod-auth-pam

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

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Added: nginx-mod-auth-pam/trunk/PKGBUILD
===================================================================
--- nginx-mod-auth-pam/trunk/PKGBUILD	                        (rev 0)
+++ nginx-mod-auth-pam/trunk/PKGBUILD	2017-06-12 12:52:32 UTC (rev 236403)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-auth-pam
+pkgver=1.5.1
+pkgrel=1
+
+_modname=ngx_http_auth_pam_module
+_nginxver=1.12.0
+
+pkgdesc='Nginx module to use PAM for simple http authentication'
+arch=('i686' 'x86_64')
+depends=("nginx=$_nginxver" 'pam')
+url="https://github.com/sto/ngx_http_auth_pam_module"
+license=('BSD')
+
+source=(
+	http://nginx.org/download/nginx-$_nginxver.tar.gz
+	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
+)
+
+sha256sums=('b4222e26fdb620a8d3c3a3a8b955e08b713672e1bc5198d1e4f462308a795b30'
+            '77676842919134af88a7b4bfca4470223e3a00d287d17c0dbdc9a114a685b6e7'
+            '1a59787672cf9c6768cb77c31f19a870eaf556c7b28c8c22a22cf8a7013b93af')
+
+prepare() {
+	cd "$srcdir"/$_modname-$pkgver
+	patch -p1 -i "$srcdir"/$_modname-critlog.patch
+}
+
+build() {
+	cd "$srcdir"/nginx-$_nginxver
+	./configure $(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@') --add-dynamic-module=../$_modname-$pkgver
+	make modules
+}
+
+package() {
+	install -Dm644 "$srcdir"/$_modname-$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
+}


Property changes on: nginx-mod-auth-pam/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list