blob: b0cafea00e02516bb8bb6d28ad8219c0271d0557 (
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
|
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=nginx-mainline-mod-redis
pkgver=0.3.8
pkgrel=30
_modname="${pkgname#nginx-mainline-mod-}"
_nginxver=1.17.1
pkgdesc='Redis caching module for mainline nginx'
arch=('i686' 'x86_64')
depends=('nginx-mainline')
url="https://www.nginx.com/resources/wiki/modules/redis/"
license=('CUSTOM')
source=(
https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
http://people.freebsd.org/~osa/ngx_http_redis-$pkgver.tar.gz
)
validpgpkeys=(
'B0F4253373F8F6F510D42178520A9993A1C052F8' # Maxim Dounin <mdounin@mdounin.ru>
)
sha256sums=('6f1825b4514e601579986035783769c456b888d3facbab78881ed9b58467e73e'
'SKIP'
'95d0ed7be40da2efc88883d72e52e5e272d2c34463583b7078e8fd6d55004934')
build() {
cd "$srcdir"/nginx-$_nginxver
./configure --with-compat --add-dynamic-module=../ngx_http_redis-$pkgver
make modules
}
package() {
install -Dm644 "$srcdir"/ngx_http_redis-$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
}
|