File tree Expand file tree Collapse file tree 4 files changed +1
-51
lines changed Expand file tree Collapse file tree 4 files changed +1
-51
lines changed Original file line number Diff line number Diff line change @@ -2668,30 +2668,6 @@ dst_host_coords. Pre-requisite for the feature to work are: a) a working
2668
2668
installed Maxmind GeoIP library and headers and b) a Maxmind GeoIP database
2669
2669
(freely available). Two steps to quickly start with GeoIP lookups in pmacct:
2670
2670
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
-
2695
2671
GeoIP v2 (libmaxminddb):
2696
2672
* Have libmaxminddb library and headers to compile against, available at:
2697
2673
https://github.com/maxmind/libmaxminddb/releases ; have also a database
Original file line number Diff line number Diff line change 25
25
REDIS_LIBS linker flags for REDIS, overriding pkg-config
26
26
GNUTLS_CFLAGS C compiler flags for GNUTLS, overriding pkg-config
27
27
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
30
28
GEOIPV2_CFLAGS C compiler flags for GEOIPV2, overriding pkg-config
31
29
GEOIPV2_LIBS linker flags for GEOIPV2, overriding pkg-config
32
30
JANSSON_CFLAGS C compiler flags for JANSSON, overriding pkg-config
Original file line number Diff line number Diff line change @@ -719,30 +719,6 @@ AC_ARG_ENABLE(gnutls,
719
719
)
720
720
dnl finish: GnuTLS handling
721
721
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
-
746
722
AC_MSG_CHECKING ( whether to enable GeoIPv2 ( libmaxminddb ) support )
747
723
AC_ARG_ENABLE ( geoipv2 ,
748
724
[ --enable-geoipv2 Enable GeoIPv2 (libmaxminddb) support (default: no)] ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ sbin_PROGRAMS =
9
9
bin_PROGRAMS =
10
10
EXTRA_PROGRAMS =
11
11
12
- AM_LDFLAGS = @GEOIP_LIBS@ @ GEOIPV2_LIBS@
12
+ AM_LDFLAGS = @GEOIPV2_LIBS@
13
13
if WITH_JANSSON
14
14
AM_LDFLAGS += @JANSSON_LIBS@
15
15
endif
You can’t perform that action at this time.
0 commit comments