blob: f8aa17ee590fb5295768a872ed5e1437c2eeb6e6 (
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
|
# Maintainer: Erich Eckner <arch at eckner dot net>
_nginxver=1.26.0
pkgname=nginx-mod-ipscrub
pkgver=1.0.1
pkgrel=25
pkgdesc='IP address anonymizer for nginx log files'
arch=('i686' 'pentium4' 'x86_64' 'armv6h' 'armv7h')
depends=(
'libbsd'
"nginx=$_nginxver"
)
url='https://github.com/masonicboom/ipscrub'
license=('custom')
source=(
https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
${pkgname}-${pkgver}.tar.gz::https://github.com/masonicboom/ipscrub/archive/v${pkgver}.tar.gz
)
validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8' # Maxim Dounin <mdounin@mdounin.ru>
'43387825DDB1BB97EC36BA5D007C8D7C15D87369' # Roman Arutyunyan <r.arutyunyan@f5.com>
'D6786CE303D9A9022998DC6CC8464D549AF75C0A' # Sergey Kandaurov <s.kandaurov@f5.com>
'13C82A63B603576156E30A4EA0EA981B66B0D967') # Konstantin Pavlov <thresh@nginx.com>
sha512sums=('1f604a4a29f1b74eb56de7f1d8b0e5610fa055280b4ad2d3550c56926460de24da81b17485cffb358d8814061d4a9db1e0e5079af7921f1dc329e283e2775791'
'SKIP'
'71d376c8d26d1f697ded361675186a2bd44b56afbfe6a2db3bee82d83402876e7ac685bd1e1318d9b2143ee9f85196e60c828af62b2685e8b1165dcaa025d196')
build() {
cd "$srcdir"/nginx-$_nginxver
./configure --with-compat \
--add-dynamic-module=../ipscrub-${pkgver}/ipscrub
make modules
}
package() {
cd "$srcdir/nginx-$_nginxver/objs"
install -Dm755 -t "$pkgdir/usr/lib/nginx/modules/" *.so
sed -n '/## License$/,/###/ { /##/! p }' "$srcdir/ipscrub/README.md" | \
install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|