void-packages/srcpkgs/geoip-data/template

32 lines
1.3 KiB
Bash

# Template file for 'geoip-data'
pkgname=geoip-data
version=20170416
revision=2
create_wrksrc=yes
short_desc="Non-DNS IP-to-country resolver C library and utilities (data files)"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="CC BY-SA 4.0"
homepage="https://dev.maxmind.com/geoip/legacy/geolite/"
distfiles="
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz"
checksum="0fff4856664bec9d6feda3467fc5273dbcd3c0a9dc1a2ad90a75bee505ad88a9
b0561561be6ad5fda16b8ccd903c76bfcea25a6789bf26104445c432d17a6b76
b4464f8695a72a011a51da910a4d2a7e3c2440d7d988fd4f19a7976072a4cb61
f22f36d9edb92a46003d6036f80c4e7ac955305ee73b6e875f01ec2164290d1e
c25bb12c2c8d9c3caca355aaf82994a83d9129d63dfbe2810be3d5ab842e5683
35b77995e04f415fbfee6c24d4dafafe6c8af4bc51452bcb744b1797e53f8625"
noarch=yes
do_install() {
vmkdir usr/share/GeoIP
for i in $distfiles; do
local n=$(basename "$i" .gz)
vinstall $n 644 usr/share/GeoIP
done
}