blob: 84ae969e1fac5baf31bf20bcb26ed3594bf38abc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Elisamuel Resto <sam@samresto.dev>
# Contributor: Carlos Silva <r3pek@r3pek.org>
pkgname=mod_authnz_pam
pkgver=1.2.3
pkgrel=1
pkgdesc="Apache module to run PAM authorization on result of other module's authentication; also full Basic Auth PAM provider."
arch=('i686' 'x86_64')
license=('apache-2.0')
url="https://www.adelton.com/apache/mod_authnz_pam/"
depends=('apache'
'pam')
makedepends=('pkgconfig')
source=("https://github.com/adelton/mod_authnz_pam/archive/${pkgname}-${pkgver}.tar.gz")
sha256sums=('43151a8e1d298729c27742978821cee101c58b15c5880ef54e1982381b6c588f')
build() {
cd "${pkgname}-${pkgname}-${pkgver}"
apxs -c mod_authnz_pam.c -lpam -Wall -pedantic
}
package() {
cd "${pkgname}-${pkgname}-${pkgver}"
APACHE_MOD_DIR=$(apxs -q libexecdir)
install -D -m755 .libs/mod_authnz_pam.so ${pkgdir}/${APACHE_MOD_DIR}/mod_authnz_pam.so
APACHE_CONF_DIR=$(apxs -q sysconfdir)
install -D -m644 authnz_pam.conf ${pkgdir}/${APACHE_CONF_DIR}/extra/authnz_pam.conf
install -D -m644 authnz_pam.module ${pkgdir}/${APACHE_CONF_DIR}/authnz_pam.conf
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
|