summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMassimiliano Torromeo2017-03-10 13:26:34 +0100
committerMassimiliano Torromeo2017-03-10 13:26:34 +0100
commit9f87bb367ac2ab5dd73f5f0ea3431ae07741b54b (patch)
tree86d83442a4b70d7c8ccdd0d2c783a6faa6123210
downloadaur-9f87bb367ac2ab5dd73f5f0ea3431ae07741b54b.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore17
-rw-r--r--PKGBUILD42
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9f3ca7b067e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Fri Mar 10 12:24:40 UTC 2017
+pkgbase = nginx-mainline-addon-memc
+ pkgdesc = Extended version of the standard memcached module for mainline nginx
+ pkgver = 0.17
+ pkgrel = 1
+ url = https://github.com/openresty/memc-nginx-module
+ arch = i686
+ arch = x86_64
+ license = BSD
+ depends = nginx-mainline
+ source = http://nginx.org/download/nginx-1.11.10.tar.gz
+ source = https://github.com/openresty/memc-nginx-module/archive/v0.17/memc-0.17.tar.gz
+ source = nginx-mainline-addon-memc-0.17-default_port.patch::https://github.com/openresty/memc-nginx-module/commit/c08cb7043440e427867838caf21cfd1e6cb2127a.patch
+ sha256sums = 778b3cabb07633f754cd9dee32fc8e22582bce22bfa407be76a806abd935533d
+ sha256sums = 25cbe3ff4931283a681260607bc91ae4a922075345d5770b293c6cd7f1e3bdcc
+ sha256sums = b5f9b83a0d2a08f1efc71ce8099eaa4e1d283afd502a7062ac4f150d569140ff
+
+pkgname = nginx-mainline-addon-memc
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..9b97681014e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,17 @@
+*.zip
+*.jar
+*.tar
+*.tgz
+*.tbz2
+*.gz
+*.bz2
+*.xz
+*.gem
+*.run
+*.deb
+*.rpm
+*.sig
+*.log
+/src
+/pkg
+*.kate-swp
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..93d7d260b07
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
+
+pkgname=nginx-mainline-addon-memc
+pkgver=0.17
+pkgrel=1
+
+_modname="${pkgname#nginx-mainline-addon-}"
+_nginxver=1.11.10
+
+pkgdesc='Extended version of the standard memcached module for mainline nginx'
+arch=('i686' 'x86_64')
+depends=('nginx-mainline')
+url="https://github.com/openresty/memc-nginx-module"
+license=('BSD')
+
+source=(
+ http://nginx.org/download/nginx-$_nginxver.tar.gz
+ https://github.com/openresty/$_modname-nginx-module/archive/v$pkgver/$_modname-$pkgver.tar.gz
+ $pkgname-$pkgver-default_port.patch::https://github.com/openresty/memc-nginx-module/commit/c08cb7043440e427867838caf21cfd1e6cb2127a.patch
+)
+
+sha256sums=('778b3cabb07633f754cd9dee32fc8e22582bce22bfa407be76a806abd935533d'
+ '25cbe3ff4931283a681260607bc91ae4a922075345d5770b293c6cd7f1e3bdcc'
+ 'b5f9b83a0d2a08f1efc71ce8099eaa4e1d283afd502a7062ac4f150d569140ff')
+
+prepare() {
+ cd "$srcdir"/$_modname-nginx-module-$pkgver
+ patch -p1 -i "$srcdir"/$pkgname-$pkgver-default_port.patch
+}
+
+build() {
+ cd "$srcdir"/nginx-$_nginxver
+ ./configure $(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@') --add-dynamic-module=../$_modname-nginx-module-$pkgver
+ make modules
+}
+
+package() {
+ cd "$srcdir"/nginx-$_nginxver/objs
+ for mod in *.so; do
+ install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+ done
+}