[arch-commits] Commit in (6 files)

Massimiliano Torromeo mtorromeo at archlinux.org
Mon Jun 12 12:01:17 UTC 2017


    Date: Monday, June 12, 2017 @ 12:01:14
  Author: mtorromeo
Revision: 236395

Add nginx-mod-redis

Added:
  nginx-mod-echo/
  nginx-mod-echo/trunk/
  nginx-mod-echo/trunk/PKGBUILD
  nginx-mod-redis/
  nginx-mod-redis/trunk/
  nginx-mod-redis/trunk/PKGBUILD

--------------------------------+
 nginx-mod-echo/trunk/PKGBUILD  |   46 +++++++++++++++++++++++++++++++++++++++
 nginx-mod-redis/trunk/PKGBUILD |   39 +++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)

Added: nginx-mod-echo/trunk/PKGBUILD
===================================================================
--- nginx-mod-echo/trunk/PKGBUILD	                        (rev 0)
+++ nginx-mod-echo/trunk/PKGBUILD	2017-06-12 12:01:14 UTC (rev 236395)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-echo
+pkgver=0.60
+pkgrel=1
+
+_modname="${pkgname#nginx-mod-}"
+_nginxver=1.12.0
+
+pkgdesc='Nginx module that provides directives "echo", "sleep", "time" and more'
+arch=('i686' 'x86_64')
+depends=("nginx=$_nginxver")
+url="https://github.com/openresty/echo-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-nginx-1.12.patch::https://patch-diff.githubusercontent.com/raw/openresty/echo-nginx-module/pull/65.patch
+)
+
+sha256sums=('b4222e26fdb620a8d3c3a3a8b955e08b713672e1bc5198d1e4f462308a795b30'
+            '1077da2229ac7d0a0215e9e6817e297c10697e095010d88f1adbd1add1ce9f4e'
+            '1d2cb5f3977cd6ee0a5ae5958ac4cca79cf5ecc097e68b72cf03a2e9f48e51ed')
+
+prepare() {
+	cd $_modname-nginx-module-$pkgver
+	patch -p1 -i "$srcdir"/$pkgname-nginx-1.12.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() {
+	install -Dm644 "$srcdir/"$_modname-nginx-module-$pkgver/LICENSE \
+	               "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+	cd "$srcdir"/nginx-$_nginxver/objs
+	for mod in *.so; do
+		install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+	done
+}


Property changes on: nginx-mod-echo/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: nginx-mod-redis/trunk/PKGBUILD
===================================================================
--- nginx-mod-redis/trunk/PKGBUILD	                        (rev 0)
+++ nginx-mod-redis/trunk/PKGBUILD	2017-06-12 12:01:14 UTC (rev 236395)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mainline-mod-redis
+pkgver=0.3.8
+pkgrel=1
+
+_modname="${pkgname#nginx-mainline-mod-}"
+_nginxver=1.12.0
+
+pkgdesc='Nginx module for redis caching'
+arch=('i686' 'x86_64')
+depends=("nginx=$_nginxver")
+url="https://www.nginx.com/resources/wiki/modules/redis/"
+license=('CUSTOM')
+
+source=(
+	http://nginx.org/download/nginx-$_nginxver.tar.gz
+	https://people.freebsd.org/~osa/ngx_http_redis-$pkgver.tar.gz
+)
+
+sha256sums=('b4222e26fdb620a8d3c3a3a8b955e08b713672e1bc5198d1e4f462308a795b30'
+            '95d0ed7be40da2efc88883d72e52e5e272d2c34463583b7078e8fd6d55004934')
+
+build() {
+	cd "$srcdir"/nginx-$_nginxver
+	./configure $(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@') --add-dynamic-module=../ngx_http_redis-$pkgver
+	make modules
+}
+
+package() {
+	install -Dm644 "$srcdir"/ngx_http_redis-$pkgver/LICENSE \
+	               "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+	cd "$srcdir"/nginx-$_nginxver/objs
+	for mod in *.so; do
+		install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+	done
+}


Property changes on: nginx-mod-redis/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list