blob: 97e52216d24dd6c6a66e0a4991441e4371c9dbfb (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Nissar Chababy <funilrys at outlook dot com>
# Ex-Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
_ngx_ver=1.11.2
_mod_name=headers-more
pkgname=nginx-mod-headers-more-git
pkgver=0.32
pkgrel=3
pkgdesc='Nginx module for setting and clearing input and output headers'
arch=('i686' 'x86_64')
url='https://github.com/openresty/headers-more-nginx-module'
license=('custom')
depends=("nginx=$_ngx_ver")
makedepends=('git')
source=(https://github.com/openresty/${_mod_name}-more-nginx-module/archive/v${pkgver}.tar.gz
http://nginx.org/download/nginx-${_ngx_ver}.tar.gz)
sha512sums=('e42582b45c3111de3940bbeb67ce161aca2d55adcfb00c61c12256fa0e36221d38723013f36edbcf6d1b520f8dfb49d4657df8a956e66d36e68425afad382bd1'
'56fb66dd7267780acaa186679f3abefcddb3dd7701d0d87518e98c83b62cd171f40e4ce47cec0a42d31181d57856c9ba820ded001975bd50c9c09dcf409b11bf')
_ngx_flags=(
--with-file-aio
--with-http_addition_module
--with-http_auth_request_module
--with-http_dav_module
--with-http_degradation_module
--with-http_flv_module
--with-http_geoip_module
--with-http_gunzip_module
--with-http_gzip_static_module
--with-http_mp4_module
--with-http_realip_module
--with-http_secure_link_module
--with-http_ssl_module
--with-http_stub_status_module
--with-http_sub_module
--with-http_v2_module
--with-ipv6
--with-mail
--with-mail_ssl_module
--with-pcre-jit
--with-stream
--with-stream_ssl_module
--with-threads
)
pkgver() {
cd ${_mod_name}-nginx-module
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
cd nginx-${_ngx_ver}
./configure --prefix=/usr ${_ngx_flags[@]} \
--add-dynamic-module="$srcdir"/${_mod_name}-nginx-module
make -f objs/Makefile modules
}
package() {
cd nginx-${_ngx_ver}
install -Dm755 objs/ngx_http_headers_more_filter_module.so \
"$pkgdir"/usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so
install -d "$pkgdir"/usr/share/licenses/$pkgname/
sed -n '487,512p' "$srcdir"/${_mod_name}-nginx-module/README.markdown > \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|