[arch-commits] Commit in nginx-mod-geoip2/repos (2 files)

Giancarlo Razzolini grazzolini at archlinux.org
Thu May 9 15:15:59 UTC 2019


    Date: Thursday, May 9, 2019 @ 15:15:59
  Author: grazzolini
Revision: 464629

archrelease: copy trunk to community-staging-x86_64

Added:
  nginx-mod-geoip2/repos/community-staging-x86_64/
  nginx-mod-geoip2/repos/community-staging-x86_64/PKGBUILD
    (from rev 464627, nginx-mod-geoip2/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: nginx-mod-geoip2/repos/community-staging-x86_64/PKGBUILD (from rev 464627, nginx-mod-geoip2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-09 15:15:59 UTC (rev 464629)
@@ -0,0 +1,39 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-geoip2
+pkgver=3.2
+pkgrel=4
+
+_modname="ngx_http_geoip2_module"
+_nginxver=1.16.0
+
+pkgdesc="Nginx GeoIP2 module"
+arch=('x86_64')
+depends=("nginx=$_nginxver" 'libmaxminddb')
+url="https://github.com/leev/ngx_http_geoip2_module"
+license=('BSD')
+
+source=(
+	https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
+	https://github.com/leev/ngx_http_geoip2_module/archive/$pkgver/$_modname-$pkgver.tar.gz
+)
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
+sha256sums=('4fd376bad78797e7f18094a00f0f1088259326436b537eb5af69b01be2ca1345'
+            'SKIP'
+            '15bd1005228cf2c869a6f09e8c41a6aaa6846e4936c473106786ae8ac860fab7')
+
+build() {
+	cd "$srcdir"/nginx-$_nginxver
+	./configure --with-compat --add-dynamic-module=../$_modname-$pkgver
+	make modules
+}
+
+package() {
+	install -Dm644 "$srcdir"/$_modname-$pkgver/LICENSE \
+	               "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+	cd "$srcdir"/nginx-$_nginxver/objs
+	for mod in ngx_*.so; do
+		install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+	done
+}


More information about the arch-commits mailing list