blob: 14ee45ddf0c95053ac8fcb71c8523124de7ea7df (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Oliver Paschke <oli.paschke@gmail.com>
pkgname=nginx-mainline-mod-auth-ldap-git
pkgver=r158.83c059b
pkgrel=7
_modname=nginx-auth-ldap
pkgdesc='LDAP Authentication module for nginx'
arch=('i686' 'x86_64')
depends=('nginx-mainline' 'libldap')
makedepends=('nginx-mainline-src' 'git')
url="https://github.com/kvspb/nginx-auth-ldap"
license=('BSD')
source=(git+https://github.com/kvspb/nginx-auth-ldap.git)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir"/$_modname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
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 --with-http_ssl_module --add-dynamic-module=../$_modname
make modules
}
package() {
install -Dm644 "$srcdir"/$_modname/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd build/objs
for mod in *.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done
}
|