summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2015-12-08 22:47:48 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2015-12-12 20:50:14 (GMT)
commit9c241ec2d330b78232442d09fab79aa1272cb59b (patch)
tree6a56aec819928553ef1b043f445b567d400c01a2 /src
parent62906f9c9d5749ec78cac06e1687b48bd6b6f9ac (diff)
downloadmxe-9c241ec2d330b78232442d09fab79aa1272cb59b.zip
mxe-9c241ec2d330b78232442d09fab79aa1272cb59b.tar.gz
mxe-9c241ec2d330b78232442d09fab79aa1272cb59b.tar.bz2
add package geoip-database
Diffstat (limited to 'src')
-rw-r--r--src/geoip-database.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/geoip-database.mk b/src/geoip-database.mk
new file mode 100644
index 0000000..eaa2eb3
--- /dev/null
+++ b/src/geoip-database.mk
@@ -0,0 +1,23 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := geoip-database
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 20150317-1
+$(PKG)_CHECKSUM := 45be84939fd22bef1ccaa1189f83c667fef275a16bbfb91f82b7b2068b4e3735
+$(PKG)_SUBDIR := .
+$(PKG)_FILE := $(PKG)_$($(PKG)_VERSION)_all.deb
+$(PKG)_URL := http://http.debian.net/debian/pool/main/g/$(PKG)/$($(PKG)_FILE)
+$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'https://packages.debian.org/jessie/all/geoip-database/download' | \
+ $(SED) -n 's,.*geoip-database_\([0-9\-]*\)_all.deb.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD_$(BUILD)
+ mkdir -p '$(PREFIX)/$(BUILD)/share/GeoIP'
+ cp '$(1)/usr/share/GeoIP/GeoIP.dat' \
+ '$(PREFIX)/$(BUILD)/share/GeoIP/GeoIP.dat'
+endef