瀏覽代碼

geoip: new package

[Thomas: slightly reformat the Config.in help text. Add the 'LICENSE'
file to GEOIP_LICENSE_FILES.]

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Gustavo Zacarias 11 年之前
父節點
當前提交
11fda42896
共有 3 個文件被更改,包括 30 次插入0 次删除
  1. 1 0
      package/Config.in
  2. 14 0
      package/geoip/Config.in
  3. 15 0
      package/geoip/geoip.mk

+ 1 - 0
package/Config.in

@@ -720,6 +720,7 @@ menu "Networking"
 	source "package/czmq/Config.in"
 	source "package/filemq/Config.in"
 	source "package/fmlib/Config.in"
+	source "package/geoip/Config.in"
 	source "package/glib-networking/Config.in"
 	source "package/libcgi/Config.in"
 	source "package/libcgicc/Config.in"

+ 14 - 0
package/geoip/Config.in

@@ -0,0 +1,14 @@
+config BR2_PACKAGE_GEOIP
+	bool "geoip"
+	help
+	  GeoIP is a C library that enables the user to find
+	  geographical and network information of an IP address.
+
+	  To use this library, you need to download MaxMind's free
+	  GeoLite or commercial GeoIP binary databases into the
+	  target's /usr/share/GeoIP directory in uncompressed form.
+
+	  Note that GeoIP2 / GeoLite2 are not supported by this
+	  library.
+
+	  https://github.com/maxmind/geoip-api-c

+ 15 - 0
package/geoip/geoip.mk

@@ -0,0 +1,15 @@
+################################################################################
+#
+# geoip
+#
+################################################################################
+
+GEOIP_VERSION = 1.6.0
+GEOIP_SOURCE = GeoIP-$(GEOIP_VERSION).tar.gz
+GEOIP_SITE = $(call github,maxmind,geoip-api-c,v$(GEOIP_VERSION))
+GEOIP_AUTORECONF = YES
+GEOIP_INSTALL_STAGING = YES
+GEOIP_LICENSE = LGPLv2.1+
+GEOIP_LICENSE_FILES = LICENSE COPYING
+
+$(eval $(autotools-package))