pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc



Module Name:    pkgsrc
Committed By:   manu
Date:           Thu Mar  6 01:17:37 UTC 2025

Modified Files:
        pkgsrc/doc: CHANGES-2025
        pkgsrc/net: Makefile
Added Files:
        pkgsrc/net/ap-maxminddb: DESCR Makefile PLIST distinfo

Log Message:
Added net/ap-maxminddb version 1.2.0

This module allows you to query MaxMind geolocalization DB files from
Apache. It can be used with net/dbip-asn-lite, net/dbip-city-lite and
net/dbip-country-lite

Exampe usage for Matomo:

LoadModule maxminddb_module lib/httpd/mod_maxminddb.so

<Locaton />
    MaxMindDBEnable On
    MaxMindDBFile CITY_DB  /usr/pkg/share/dbip/dbip-city-lite.mmdb
    MaxMindDBFile ASN_DB  /usr/pkg/share/dbip/dbip-asn-lite.mmdb
    MaxMindDBFile COUNTRY_DB  /usr/pkg/share/dbip/dbip-country-lite.mmdb
    MaxMindDBEnv MM_COUNTRY_CODE COUNTRY_DB/country/iso_code
    MaxMindDBEnv MM_COUNTRY_NAME COUNTRY_DB/country/names/en
    MaxMindDBEnv MM_CITY_NAME CITY_DB/city/names/en
    MaxMindDBEnv MM_ORG ASN_DB/autonomous_system_organization
    MaxMindDBEnv MM_LONGITUDE CITY_DB/location/longitude
    MaxMindDBEnv MM_LATITUDE CITY_DB/location/latitude
</Locaton>


To generate a diff of this commit:
cvs rdiff -u -r1.2038 -r1.2039 pkgsrc/doc/CHANGES-2025
cvs rdiff -u -r1.1590 -r1.1591 pkgsrc/net/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/net/ap-maxminddb/DESCR \
    pkgsrc/net/ap-maxminddb/Makefile pkgsrc/net/ap-maxminddb/PLIST \
    pkgsrc/net/ap-maxminddb/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/doc/CHANGES-2025
diff -u pkgsrc/doc/CHANGES-2025:1.2038 pkgsrc/doc/CHANGES-2025:1.2039
--- pkgsrc/doc/CHANGES-2025:1.2038      Wed Mar  5 20:52:35 2025
+++ pkgsrc/doc/CHANGES-2025     Thu Mar  6 01:17:36 2025
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES-2025,v 1.2038 2025/03/05 20:52:35 pin Exp $
+$NetBSD: CHANGES-2025,v 1.2039 2025/03/06 01:17:36 manu Exp $
 
 Changes to the packages collection and infrastructure in 2025:
 
@@ -2637,3 +2637,4 @@ Changes to the packages collection and i
        Updated editors/feathernotes to 1.3.1 [pin 2025-03-05]
        Updated graphics/kvantum to 1.1.4 [pin 2025-03-05]
        Updated shells/oh-my-posh to 25.1.1 [pin 2025-03-05]
+       Added net/ap-maxminddb version 1.2.0 [manu 2025-03-06]

Index: pkgsrc/net/Makefile
diff -u pkgsrc/net/Makefile:1.1590 pkgsrc/net/Makefile:1.1591
--- pkgsrc/net/Makefile:1.1590  Tue Feb 11 08:56:06 2025
+++ pkgsrc/net/Makefile Thu Mar  6 01:17:36 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1590 2025/02/11 08:56:06 ryoon Exp $
+# $NetBSD: Makefile,v 1.1591 2025/03/06 01:17:36 manu Exp $
 #
 
 COMMENT=       Networking tools
@@ -23,6 +23,7 @@ SUBDIR+=      amazon-ecs-cli
 SUBDIR+=       amfora
 SUBDIR+=       amule
 SUBDIR+=       aoe-vblade
+SUBDIR+=       ap-maxminddb
 SUBDIR+=       apollo
 SUBDIR+=       argus
 SUBDIR+=       aria2

Added files:

Index: pkgsrc/net/ap-maxminddb/DESCR
diff -u /dev/null pkgsrc/net/ap-maxminddb/DESCR:1.1
--- /dev/null   Thu Mar  6 01:17:37 2025
+++ pkgsrc/net/ap-maxminddb/DESCR       Thu Mar  6 01:17:36 2025
@@ -0,0 +1,22 @@
+This module allows you to query MaxMind geolocalization DB files from
+Apache. It can be used with net/dbip-asn-lite, net/dbip-city-lite and
+net/dbip-country-lite
+
+Exampe usage for Matomo:
+
+LoadModule maxminddb_module lib/httpd/mod_maxminddb.so
+
+<Locaton />
+    MaxMindDBEnable On
+    MaxMindDBFile CITY_DB  /usr/pkg/share/dbip/dbip-city-lite.mmdb
+    MaxMindDBFile ASN_DB  /usr/pkg/share/dbip/dbip-asn-lite.mmdb
+    MaxMindDBFile COUNTRY_DB  /usr/pkg/share/dbip/dbip-country-lite.mmdb
+    MaxMindDBEnv MM_COUNTRY_CODE COUNTRY_DB/country/iso_code
+    MaxMindDBEnv MM_COUNTRY_NAME COUNTRY_DB/country/names/en
+    MaxMindDBEnv MM_CITY_NAME CITY_DB/city/names/en
+    MaxMindDBEnv MM_ORG ASN_DB/autonomous_system_organization
+    MaxMindDBEnv MM_LONGITUDE CITY_DB/location/longitude
+    MaxMindDBEnv MM_LATITUDE CITY_DB/location/latitude
+</Locaton>
+
+...
Index: pkgsrc/net/ap-maxminddb/Makefile
diff -u /dev/null pkgsrc/net/ap-maxminddb/Makefile:1.1
--- /dev/null   Thu Mar  6 01:17:37 2025
+++ pkgsrc/net/ap-maxminddb/Makefile    Thu Mar  6 01:17:36 2025
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2025/03/06 01:17:36 manu Exp $
+
+DISTNAME=      ${GITHUB_PROJECT}-${GITHUB_RELEASE}
+PKGNAME=       ${APACHE_PKG_PREFIX}-${DISTNAME:S/mod_//}
+CATEGORIES=    net
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=maxmind/}
+GITHUB_PROJECT=        mod_maxminddb
+GITHUB_RELEASE=        1.2.0
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/maxmind/mod_maxminddb/
+COMMENT=       MaxMind DB geolocalisation Apache Module
+LICENSE=       apache-2.0
+
+APACHE_MODULE_NAME=    ${DISTNAME:C/-.*//}.la
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   YES
+
+INSTALLATION_DIRS+=    lib/httpd
+
+do-install:
+       cd ${WRKSRC}/src &&                                     \
+           libexecdir=`${APXS} -q LIBEXECDIR` &&               \
+           ${APXS} -i -S LIBEXECDIR=${DESTDIR}"$${libexecdir}" \
+             -n maxminddb  mod_maxminddb.la
+
+
+.include "../../mk/apache.mk"
+.include "../../geography/libmaxminddb/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/net/ap-maxminddb/PLIST
diff -u /dev/null pkgsrc/net/ap-maxminddb/PLIST:1.1
--- /dev/null   Thu Mar  6 01:17:37 2025
+++ pkgsrc/net/ap-maxminddb/PLIST       Thu Mar  6 01:17:36 2025
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2025/03/06 01:17:36 manu Exp $
+lib/httpd/mod_maxminddb.so
Index: pkgsrc/net/ap-maxminddb/distinfo
diff -u /dev/null pkgsrc/net/ap-maxminddb/distinfo:1.1
--- /dev/null   Thu Mar  6 01:17:37 2025
+++ pkgsrc/net/ap-maxminddb/distinfo    Thu Mar  6 01:17:36 2025
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2025/03/06 01:17:36 manu Exp $
+
+BLAKE2s (mod_maxminddb-1.2.0.tar.gz) = 0c61a75b8dddba6240e16db0cc43407f6143801c5eb909200b1d1d0deceace8c
+SHA512 (mod_maxminddb-1.2.0.tar.gz) = 739c3c9b136fd3ce784e0a81c82a26a188e7d07435c1381ba359b2e159a721d072cb04310f2ce2a38953a8918fec686025bac6c140048a1afc035c0b8e449483
+Size (mod_maxminddb-1.2.0.tar.gz) = 101465 bytes



Home | Main Index | Thread Index | Old Index