Skip to content

Commit 1d8d4e7

Browse files
committed
* Removing Maxmind GeoIP v1 support (1)
1 parent 7e4b440 commit 1d8d4e7

File tree

4 files changed

+1
-51
lines changed

4 files changed

+1
-51
lines changed

QUICKSTART

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2668,30 +2668,6 @@ dst_host_coords. Pre-requisite for the feature to work are: a) a working
26682668
installed Maxmind GeoIP library and headers and b) a Maxmind GeoIP database
26692669
(freely available). Two steps to quickly start with GeoIP lookups in pmacct:
26702670

2671-
GeoIP v1 (libGeoIP):
2672-
* Have libGeoIP library and headers available to compile against; have a GeoIP
2673-
database also available: http://dev.maxmind.com/geoip/legacy/install/country/
2674-
2675-
* To compile the pmacct package with support for GeoIP lookups, the code must
2676-
be configured for compilation as follows:
2677-
2678-
shell> ./configure --enable-geoip [ ... ]
2679-
2680-
But, for example, should you have installed libGeoIP in /usr/local/geoip and
2681-
pkg-config is unable to help, you can supply this non-default location as
2682-
follows (assuming you are running the bash shell):
2683-
2684-
shell> export GEOIP_LIBS="-L/usr/local/geoip/lib -lgeoip"
2685-
shell> export GEOIP_CFLAGS="-I/usr/local/geoip/include"
2686-
shell> ./configure --enable-geoip [ ... ]
2687-
2688-
* Include as part of the pmacct configuration the following fragment:
2689-
2690-
...
2691-
geoip_ipv4_file: /path/to/GeoIP/GeoIP.dat
2692-
aggregate: src_host_country, dst_host_country, ...
2693-
...
2694-
26952671
GeoIP v2 (libmaxminddb):
26962672
* Have libmaxminddb library and headers to compile against, available at:
26972673
https://github.com/maxmind/libmaxminddb/releases ; have also a database

bin/configure-help-replace.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
REDIS_LIBS linker flags for REDIS, overriding pkg-config
2626
GNUTLS_CFLAGS C compiler flags for GNUTLS, overriding pkg-config
2727
GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
28-
GEOIP_CFLAGS C compiler flags for GEOIP, overriding pkg-config
29-
GEOIP_LIBS linker flags for GEOIP, overriding pkg-config
3028
GEOIPV2_CFLAGS C compiler flags for GEOIPV2, overriding pkg-config
3129
GEOIPV2_LIBS linker flags for GEOIPV2, overriding pkg-config
3230
JANSSON_CFLAGS C compiler flags for JANSSON, overriding pkg-config

configure.ac

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -719,30 +719,6 @@ AC_ARG_ENABLE(gnutls,
719719
)
720720
dnl finish: GnuTLS handling
721721

722-
dnl start: geoip handling
723-
AC_MSG_CHECKING(whether to enable GeoIP support)
724-
AC_ARG_ENABLE(geoip,
725-
[ --enable-geoip Enable GeoIP support (default: no)],
726-
[ case "$enableval" in
727-
yes)
728-
AC_MSG_RESULT(yes)
729-
dnl reasonably old Maxmind GeoIP v1 already support pkg-config
730-
PKG_CHECK_MODULES([GEOIP], [geoip >= 1.0.0], [
731-
SUPPORTS="${SUPPORTS} geoip"
732-
USING_MMGEOIP="yes"
733-
PMACCT_CFLAGS="$PMACCT_CFLAGS $GEOIP_CFLAGS"
734-
AC_DEFINE(WITH_GEOIP, 1)
735-
])
736-
;;
737-
no)
738-
AC_MSG_RESULT(no)
739-
;;
740-
esac ],
741-
[
742-
AC_MSG_RESULT(no)
743-
]
744-
)
745-
746722
AC_MSG_CHECKING(whether to enable GeoIPv2 (libmaxminddb) support)
747723
AC_ARG_ENABLE(geoipv2,
748724
[ --enable-geoipv2 Enable GeoIPv2 (libmaxminddb) support (default: no)],

src/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sbin_PROGRAMS =
99
bin_PROGRAMS =
1010
EXTRA_PROGRAMS =
1111

12-
AM_LDFLAGS = @GEOIP_LIBS@ @GEOIPV2_LIBS@
12+
AM_LDFLAGS = @GEOIPV2_LIBS@
1313
if WITH_JANSSON
1414
AM_LDFLAGS += @JANSSON_LIBS@
1515
endif

0 commit comments

Comments
 (0)