diff options
author | Alfred Wingate <parona@protonmail.com> | 2023-12-13 18:41:06 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-02-27 22:55:28 +0000 |
commit | 63a3823ca1123d89f0120650a9807c9ff627d669 (patch) | |
tree | 5687169993b9b422f2eaf7b22cf025f87175bedf /net-misc/geoipupdate/geoipupdate-6.0.0.ebuild | |
parent | net-misc/geoipupdate: recreate Go dep tarball (diff) | |
download | gentoo-63a3823ca1123d89f0120650a9807c9ff627d669.tar.gz gentoo-63a3823ca1123d89f0120650a9807c9ff627d669.tar.bz2 gentoo-63a3823ca1123d89f0120650a9807c9ff627d669.zip |
net-misc/geoipupdate: add 6.0.0
Closes: https://bugs.gentoo.org/919767
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34270
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/geoipupdate/geoipupdate-6.0.0.ebuild')
-rw-r--r-- | net-misc/geoipupdate/geoipupdate-6.0.0.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/net-misc/geoipupdate/geoipupdate-6.0.0.ebuild b/net-misc/geoipupdate/geoipupdate-6.0.0.ebuild new file mode 100644 index 000000000000..eeedc3970bee --- /dev/null +++ b/net-misc/geoipupdate/geoipupdate-6.0.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Performs automatic updates of GeoIP2 and GeoIP Legacy binary databases" +HOMEPAGE="https://github.com/maxmind/geoipupdate" +SRC_URI="https://github.com/maxmind/geoipupdate/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +LICENSE="BSD MIT Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" + +BDEPEND="dev-go/go-md2man" + +DOCS=( README.md CHANGELOG.md doc/GeoIP.conf.md doc/geoipupdate.md ) + +PATCHES=( + "${FILESDIR}/geoipupdate-6.0.0-use-go-md2man-instead-of-pandoc.patch" +) + +src_compile() { + # Do not let these leak from outside into the package + unset GOBIN GOPATH GOCODE + + # the horror, the horror ... but it's all automagic + export CONFFILE=/etc/GeoIP.conf + export DATADIR=/usr/share/GeoIP + export VERSION=${PV} + + default +} + +src_install() { + dobin build/geoipupdate + + keepdir /usr/share/GeoIP + + insinto /etc + doins build/GeoIP.conf + + doman build/GeoIP.conf.5 build/geoipupdate.1 + + einstalldocs +} |