blob: 24ad250b205aae20c7130d4ca456715b1a3b11ab (
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
|
# $Id$
# Maintainer: Martchus <martchus@gmx.net>
pkgname=nginx-mod-accesskey
pkgver=2.0.5
pkgrel=3
_dirname="nginx-accesskey-$pkgver"
_nginxver=1.14.2
pkgdesc='Accesskey module for NGINX'
arch=('x86_64')
depends=("nginx=$_nginxver" "libutil-linux")
url='https://github.com/Martchus/nginx-accesskey'
license=('unknown')
source=(
https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
"$pkgname-$pkgver::https://github.com/Martchus/nginx-accesskey/archive/v${pkgver}.tar.gz"
)
validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin@mdounin.ru>
sha256sums=('002d9f6154e331886a2dd4e6065863c9c1cf8291ae97a1255308572c02be9797'
'SKIP'
'f7cb363fb527dfda202009942ed3b1bb98e5ef9723893aa0beba22adf9b1a246')
prepare() {
cd "$srcdir/$_dirname"
}
build() {
cd "$srcdir"/nginx-$_nginxver
./configure --with-compat --add-dynamic-module="../$_dirname"
make modules
}
package() {
cd "$srcdir"/nginx-$_nginxver/objs
for mod in ngx_*.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done
}
|