summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartłomiej Piotrowski2016-03-14 10:50:20 +0100
committerBartłomiej Piotrowski2016-03-14 10:50:20 +0100
commit307f8aa45f02071eb60919dee3336164706a3444 (patch)
treec065f9723c80e88020f2551e8aff3319d8505596
downloadaur-307f8aa45f02071eb60919dee3336164706a3444.tar.gz
newpkg: nginx-mod-echo-git 0.58.r15.g4f7aa50-1
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD68
3 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6b5701b33e5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = nginx-mod-echo-git
+ pkgdesc = Nginx module that brings shell-style goodiesto nginx config file
+ pkgver = 0.58.r15.g4f7aa50
+ pkgrel = 1
+ url = https://github.com/openresty/echo-nginx-module
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = git
+ depends = nginx-mainline=1.9.12
+ source = git://github.com/openresty/echo-nginx-module.git
+ source = http://nginx.org/download/nginx-1.9.12.tar.gz
+ md5sums = SKIP
+ md5sums = 0afe4a7e589a0de43b7b54aa055a4351
+
+pkgname = nginx-mod-echo-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4557948e9f7
--- /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 00000000000..99f804909b8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+
+_ngx_ver=1.9.12
+_mod_name=echo
+
+pkgname=nginx-mod-${_mod_name}-git
+pkgver=0.58.r15.g4f7aa50
+pkgrel=1
+pkgdesc='Nginx module that brings shell-style goodiesto nginx config file'
+arch=('i686' 'x86_64')
+url='https://github.com/openresty/echo-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}/objs
+
+ for module in *.so; do
+ install -Dm755 $module "$pkgdir"/usr/lib/nginx/modules/$module
+ done
+
+ install -d "$pkgdir"/usr/share/licenses/$pkgname/
+ sed -n '1806,1827p' "$srcdir"/${_mod_name}-nginx-module/README.markdown > \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+