diff options
author | Bartłomiej Piotrowski | 2016-03-14 09:54:07 +0100 |
---|---|---|
committer | Bartłomiej Piotrowski | 2016-03-14 09:54:07 +0100 |
commit | 766c1b65e56a98267b69ccd8359391e559802192 (patch) | |
tree | 93d7b0d667c02c693e2738c3d94093935426b9ee | |
download | aur-766c1b65e56a98267b69ccd8359391e559802192.tar.gz |
newpkg: nginx-mod-headers-more-git 0.29.r8.gf5559ec-1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 66 |
3 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6f7e05f3ae0d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = nginx-mod-headers-more-git + pkgdesc = Nginx module for setting and clearing input and output headers + pkgver = 0.29.r8.gf5559ec + pkgrel = 1 + url = https://github.com/openresty/headers-more-nginx-module + arch = i686 + arch = x86_64 + license = custom + makedepends = git + depends = nginx-mainline=1.9.12 + source = git://github.com/openresty/headers-more-nginx-module.git + source = http://nginx.org/download/nginx-1.9.12.tar.gz + md5sums = SKIP + md5sums = 0afe4a7e589a0de43b7b54aa055a4351 + +pkgname = nginx-mod-headers-more-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4557948e9f74 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.pkg.tar.xz +*.sig +*.tar.gz +*/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e622f9a7dfc0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> + +_ngx_ver=1.9.12 +_mod_name=headers-more + +pkgname=nginx-mod-headers-more-git +pkgver=0.29.r8.gf5559ec +pkgrel=1 +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-mainline=$_ngx_ver") +makedepends=('git') +source=(git://github.com/openresty/${_mod_name}-nginx-module.git + http://nginx.org/download/nginx-${_ngx_ver}.tar.gz) +md5sums=('SKIP' + '0afe4a7e589a0de43b7b54aa055a4351') + +_ngx_flags=( + --with-imap + --with-imap_ssl_module + --with-ipv6 + --with-pcre-jit + --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-threads + --with-stream +) + +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 +} + |