svn commit: r491662 - in head/www: . mod_maxminddb mod_maxminddb/files
Mahdi Mokhtari
mmokhi at FreeBSD.org
Wed Jan 30 23:18:53 UTC 2019
Author: mmokhi
Date: Wed Jan 30 23:18:51 2019
New Revision: 491662
URL: https://svnweb.freebsd.org/changeset/ports/491662
Log:
www/mod_maxminddb: Add the port to the tree
This module allows you to query MaxMind DB files from Apache using
the libmaxminddb library.
It can also be used as alternative for cases like mod_geoip2 too.
Reviewed by: joneum
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18900
Added:
head/www/mod_maxminddb/
head/www/mod_maxminddb/Makefile (contents, props changed)
head/www/mod_maxminddb/distinfo (contents, props changed)
head/www/mod_maxminddb/files/
head/www/mod_maxminddb/files/patch-src_Makefile.am (contents, props changed)
head/www/mod_maxminddb/pkg-descr (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Wed Jan 30 22:59:32 2019 (r491661)
+++ head/www/Makefile Wed Jan 30 23:18:51 2019 (r491662)
@@ -441,6 +441,7 @@
SUBDIR += mod_limitipconn2
SUBDIR += mod_line_edit
SUBDIR += mod_log_sql2
+ SUBDIR += mod_maxminddb
SUBDIR += mod_md-devel
SUBDIR += mod_memcache
SUBDIR += mod_memcache_block
Added: head/www/mod_maxminddb/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/mod_maxminddb/Makefile Wed Jan 30 23:18:51 2019 (r491662)
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME= mod_maxminddb
+PORTVERSION= 1.1.0
+CATEGORIES= www
+PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
+
+MAINTAINER= mmokhi at FreeBSD.org
+COMMENT= MaxMind DB Apache Module
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb
+
+USES= apache:2.4+ autoreconf gmake localbase
+GNU_CONFIGURE= yes
+USE_GITHUB= yes
+GH_ACCOUNT= maxmind
+
+AP_FAST_BUILD= yes
+AP_GENPLIST= yes
+SRC_FILE= src/${PORTNAME}.c
+
+.include <bsd.port.mk>
Added: head/www/mod_maxminddb/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/mod_maxminddb/distinfo Wed Jan 30 23:18:51 2019 (r491662)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1547916370
+SHA256 (maxmind-mod_maxminddb-1.1.0_GH0.tar.gz) = a5d339699ca9aacc4e66c278b0d2a48099e41ae96dfd23c26999485c8e6f8f26
+SIZE (maxmind-mod_maxminddb-1.1.0_GH0.tar.gz) = 22720
Added: head/www/mod_maxminddb/files/patch-src_Makefile.am
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/mod_maxminddb/files/patch-src_Makefile.am Wed Jan 30 23:18:51 2019 (r491662)
@@ -0,0 +1,17 @@
+--- src/Makefile.am.orig 2019-01-19 16:36:41 UTC
++++ src/Makefile.am
+@@ -1,12 +1,13 @@
+ AUTOMAKE_OPTIONS = foreign
+ WC=-Wc,"$(CFLAGS)"
++WL=-Wl,"$(LDFLAGS)"
+
+ # the default target
+ all: module
+
+ # compile the DSO file
+ module: mod_maxminddb.c $(TARGET)
+- $(APXS) -c $(LDFLAGS) $(LIBMAXMINDDB_LDFLAGS) $(LIBS) $(WC) $(APXS_LDFLAGS) mod_maxminddb.c
++ $(APXS) -c $(WL) $(LIBMAXMINDDB_LDFLAGS) $(LIBS) $(WC) $(APXS_LDFLAGS) mod_maxminddb.c
+
+ install-exec-local: module
+ $(APXS) -i -a -n maxminddb .libs/mod_maxminddb.so
Added: head/www/mod_maxminddb/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/mod_maxminddb/pkg-descr Wed Jan 30 23:18:51 2019 (r491662)
@@ -0,0 +1,4 @@
+mod_maxminddb allows you to query MaxMind DB files from Apache using
+the libmaxminddb library.
+
+WWW: https://github.com/maxmind/mod_maxminddb
More information about the svn-ports-head
mailing list