2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2015-12-08 22:47:48 +00:00
|
|
|
|
|
|
|
PKG := geoip-database
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.maxmind.com/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := GeoIP Legacy Database
|
2015-12-08 22:47:48 +00:00
|
|
|
$(PKG)_IGNORE :=
|
|
|
|
$(PKG)_VERSION := 20150317-1
|
|
|
|
$(PKG)_CHECKSUM := 45be84939fd22bef1ccaa1189f83c667fef275a16bbfb91f82b7b2068b4e3735
|
|
|
|
$(PKG)_SUBDIR := .
|
|
|
|
$(PKG)_FILE := $(PKG)_$($(PKG)_VERSION)_all.deb
|
2018-11-19 21:07:05 +00:00
|
|
|
$(PKG)_URL := https://deb.debian.org/debian/pool/main/g/$(PKG)/$($(PKG)_FILE)
|
2017-11-25 10:48:27 +00:00
|
|
|
$(PKG)_TARGETS := $(BUILD)
|
2015-12-08 22:47:48 +00:00
|
|
|
|
|
|
|
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
|