net-misc/geoipupdate: Version 4.0.4
authorJeroen Roovers <jer@gentoo.org>
Sat, 31 Aug 2019 04:53:57 +0000 (06:53 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 31 Aug 2019 05:28:18 +0000 (07:28 +0200)
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-misc/geoipupdate/Manifest
net-misc/geoipupdate/geoipupdate-4.0.4.ebuild [new file with mode: 0644]
net-misc/geoipupdate/geoipupdate-4.0.4.tar.gz [new file with mode: 0644]

index e084a7d2e85b30132c67b433e1105eafb3c65a6f..0e0d731e577856c15e24af669019cb9994b4c0d8 100644 (file)
@@ -2,4 +2,5 @@ DIST geoipupdate-2.3.1.tar.gz 362497 BLAKE2B e07eb22d6b4897d735af0c354f991119316
 DIST geoipupdate-3.1.0.tar.gz 370293 BLAKE2B 5cd7b4563ca0b6820b863e24b80054f27c49bd9e89898f6b7248d3389a81f9c680f9979293fa2acaab0727b3c915926396404e19e90ffbb0ef6647a64d30c14a SHA512 9efd30593df0a2564f98a0e99d02ac3671e5752034d8c747d84a204cd620845e619bec511b6004d895cdb611a2d98b921eb830192d258c572ac9efd603cd5c99
 DIST geoipupdate-3.1.1.tar.gz 366789 BLAKE2B 1f823bd51553c9c96ad78bab893a15d4bc3f4ee5cea873f2fd3fbcbe7a38f22d2995558f8196f4c4030fb6f24b179104912af3290d3b7ed9bde9fbe5ff37862c SHA512 24e6a9f72449df1a2763314f188828332b5516962dbd75892689e505516af967bece60cc846fe17cfcc1ddb4d6111c9cd7d5c0ebc9d3e8e7af355f8a1c7f1a2f
 DIST geoipupdate-4.0.3.tar.gz 107019 BLAKE2B 55978bb6fc37b02706d4f48b76dc8b85f3aacc86f1192a0d31cee5c55fb4d0feb8d5ddb2b6a13d4a85d80133ccaa318bd9ad3e7d3d5b818fea2a3a0fa09a62d3 SHA512 870f930a54a45f5fe14c8328158ea2c8d2d8e4320a5400abc8ec18ae1e234426e86492a41868ccd3bf649acf0cd347722683326817359fed7d147ab21eb64397
+DIST geoipupdate-4.0.4.tar.gz 107115 BLAKE2B 1ab08a34c41ac08aa26faf2078e7a964350c09c65871829023928dc25011a931f9be4aff32300778ab645831b8786898a986e15aec8bceb31f77715be77f857a SHA512 2d97f65128d26600345b07cab4b1c1ed26f68bb850f4fa92d8f6b4065d1e9a25b73b38e1cc08bc0afc11135394fe20fb77bd931e557ba6fe83d792ad3bcc4a1c
 DIST geoipupdate-vendor-4.0.3.tar 532480 BLAKE2B c619098fa40d6a92743a2847900e7cefe5d61aa9dbd36399e4a26d7c2fda1ea493f91ded8a4b17a76063960c0f8a11cc7b3b7b734e9f3d978da7035799d32956 SHA512 25976c66d775e3e50b422e9f564b9486c7c08d9dba8a11b5ac9faf62f3545673fa94d2ea6ea40750835840c938b686b174de5658236a19e85d592d861eea05b8
diff --git a/net-misc/geoipupdate/geoipupdate-4.0.4.ebuild b/net-misc/geoipupdate/geoipupdate-4.0.4.ebuild
new file mode 100644 (file)
index 0000000..37d9408
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGO_PN="github.com/maxmind/${PN}"
+
+inherit golang-vcs-snapshot
+
+DESCRIPTION="performs automatic updates of GeoIP2 and GeoIP Legacy binary databases"
+HOMEPAGE="https://github.com/maxmind/geoipupdate"
+SRC_URI="
+       https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+"
+
+LICENSE="|| ( Apache-2.0 MIT )"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DOCS=( GeoIP.conf.md geoipupdate.md )
+
+src_unpack() {
+       golang-vcs-snapshot_src_unpack
+}
+
+src_compile() {
+       cd src/${EGO_PN} || die
+       # requires pandoc but the information is still in the distributed md files
+       sed -i -e '/GeoIP.conf.5 /d' -e '/geoipupdate.1$/d' Makefile || die
+       sed -i -e 's/go build/go build -x/' Makefile || die
+
+       # the horror, the horror ... but it's all automagic
+       export GO111MODULE=on
+       export GOFLAGS=-mod=vendor
+       export CONFFILE=/etc/GeoIP.conf
+       export DATADIR=/usr/share/GeoIP
+       export VERSION=${PV}
+       default
+}
+
+src_install() {
+       mkdir "${D}/usr/bin" -p
+       cd "src/${EGO_PN}/build" || die
+       cp geoipupdate "${D}/usr/bin" || die
+       keepdir /usr/share/GeoIP
+       insinto /etc
+       doins GeoIP.conf
+}
diff --git a/net-misc/geoipupdate/geoipupdate-4.0.4.tar.gz b/net-misc/geoipupdate/geoipupdate-4.0.4.tar.gz
new file mode 100644 (file)
index 0000000..e69de29