Commit 52abb55c authored by Ed Reel's avatar Ed Reel

Update geoip from 1.6.11-1 to 1.6.12

Add pre-built binaries

- Remove unused configure option
parent 01409b33
...@@ -2,30 +2,50 @@ require 'package' ...@@ -2,30 +2,50 @@ require 'package'
class Geoip < Package class Geoip < Package
description 'GeoIP Legacy C API.' description 'GeoIP Legacy C API.'
homepage 'https://github.com/maxmind/geoip-api-c/' homepage 'https://dev.maxmind.com/geoip/legacy/'
version '1.6.11-1' version '1.6.12'
source_url 'https://github.com/maxmind/geoip-api-c/releases/download/v1.6.11/GeoIP-1.6.11.tar.gz' source_url 'https://github.com/maxmind/geoip-api-c/releases/download/v1.6.12/GeoIP-1.6.12.tar.gz'
source_sha256 'b0e5a92200b5ab540d118983f7b7191caf4faf1ae879c44afa3ff2a2abcdb0f5' source_sha256 '1dfb748003c5e4b7fd56ba8c4cd786633d5d6f409547584f6910398389636f80'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/geoip-1.6.11-1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/geoip-1.6.12-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/geoip-1.6.11-1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/geoip-1.6.12-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/geoip-1.6.11-1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/geoip-1.6.12-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/geoip-1.6.11-1-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/geoip-1.6.12-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '0fb9972f1b61e229725ab8c28f5f4f2c8b1ee4aa9aa10c20efd4c9192c07f455', aarch64: 'fb107ce557d6fe3b876f7f19578e434b6387d23dd46e4b1718ba5039eddd1106',
armv7l: '0fb9972f1b61e229725ab8c28f5f4f2c8b1ee4aa9aa10c20efd4c9192c07f455', armv7l: 'fb107ce557d6fe3b876f7f19578e434b6387d23dd46e4b1718ba5039eddd1106',
i686: '505dbc96ae411c89f3b1b2431766a29ae65c62464f077c3427c4140efab4c38f', i686: '8909827726c7496d79cd73da7a0ff59f91568d017848953e7c53565f51608bd5',
x86_64: '82497d5946ca23fe878649e1e05c999dd2d4c7cc1224683a92013422d6980d14', x86_64: '11776aa232c6a14d2e1d0409dfdaa2eaa917320f2ebdf02a0e14fbd86447ae9c',
}) })
def self.build def self.build
system './configure', "--libdir=#{CREW_LIB_PREFIX}" system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/GeoIP"
# Version 1 - GeoLite Legacy (see https://dev.maxmind.com/geoip/legacy/geolite/)
system 'wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz'
system 'wget http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz'
system 'wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz'
system 'wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz'
system 'wget http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz'
system 'wget http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz'
system 'gunzip Geo*.gz'
system "cp Geo*.dat #{CREW_DEST_PREFIX}/share/GeoIP/"
# Version 2 - GeoLite2 for future use (see https://dev.maxmind.com/geoip/geoip2/geolite2/)
#system 'wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz'
#system 'wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz'
#system 'wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz'
#system 'tar xvf GeoLite2-City.tar.gz'
#system 'tar xvf GeoLite2-Country.tar.gz'
#system 'tar xvf GeoLite2-ASN.tar.gz'
#system "cp GeoLite2-*/GeoLite2-*.mmdb #{CREW_DEST_PREFIX}/share/GeoIP/"
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment