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

Giancarlo Razzolini grazzolini at gemini.archlinux.org
Sun Nov 28 19:31:32 UTC 2021


    Date: Sunday, November 28, 2021 @ 19:31:32
  Author: grazzolini
Revision: 1055374

archrelease: copy trunk to testing-x86_64

Added:
  nginx-mod-geoip2/repos/testing-x86_64/
  nginx-mod-geoip2/repos/testing-x86_64/PKGBUILD
    (from rev 1055373, nginx-mod-geoip2/trunk/PKGBUILD)

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

Copied: nginx-mod-geoip2/repos/testing-x86_64/PKGBUILD (from rev 1055373, nginx-mod-geoip2/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-11-28 19:31:32 UTC (rev 1055374)
@@ -0,0 +1,43 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-geoip2
+pkgver=3.3
+pkgrel=5
+
+_modname="ngx_http_geoip2_module"
+
+pkgdesc="Nginx GeoIP2 module"
+arch=('x86_64')
+depends=('nginx' 'libmaxminddb')
+makedepends=('nginx-src')
+url="https://github.com/leev/ngx_http_geoip2_module"
+license=('BSD')
+
+source=(
+	https://github.com/leev/ngx_http_geoip2_module/archive/$pkgver/$_modname-$pkgver.tar.gz
+)
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
+sha256sums=('41378438c833e313a18869d0c4a72704b4835c30acaf7fd68013ab6732ff78a7')
+
+prepare() {
+	mkdir -p build
+	cd build
+	ln -sf /usr/src/nginx/auto
+	ln -sf /usr/src/nginx/src
+}
+
+build() {
+	cd build
+	/usr/src/nginx/configure --with-compat --add-dynamic-module=../$_modname-$pkgver
+	make modules
+}
+
+package() {
+	install -Dm644 "$srcdir"/$_modname-$pkgver/LICENSE \
+	               "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+	cd build/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