Skip to content

Commit ddd9603

Browse files
committed
Add net-misc/geoipupdate 6.0.0
1 parent 8cbc9ea commit ddd9603

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

net-misc/geoipupdate/Manifest

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
DIST geoipupdate-6.0.0.tar.gz 46523 BLAKE2B ff14026acf39797f69b7cde527c826b78740a65ac4e0914cdffc6276473e3f4367e87e962dfa4634114b7f5b02c33a4a8e675518f4de85238a2342cb367c9f25 SHA512 2b2a6573b6af30ad1ad4c8ed3b97df41bba96212a0e6d90e4a92bd0615f02c9e989168ad56a651d8f35a7d2534e223de5a6f8a34d587f3c8a7a8e19f3b913ca4
2+
EBUILD geoipupdate-6.0.0.ebuild 1109 BLAKE2B ca9ca5bbb70c0c7c8ad38a6dcf1752812a69a94cab04c9b8bdf6bc3add60190445e67508e4c92d3a7c3e5da0abe237c53923f56eab7850bb1e1ece45e609c38c SHA512 479f2b29bf48edb5b3f4dc6b9cd739fa4bc9e5b5e7c27cf26a313993319d99906e2cac380d85ca1c9d327e0998c0632a1bac5b21ba23186c41c750364e28f452
3+
MISC metadata.xml 224 BLAKE2B 6bfd3724622b89c75bbbe7b172fe1be993c0ae9b19ec99e4eb7a641d5a0bbbab2a1342d890697a22d9e8c29b9e2fe9d9d0c090af45117ce29d568313414c6ff3 SHA512 eac148ae5dba058ac39dce68cc6ea8c8625c80677937e580ad6dbd90166853f7df445fdf77711dfcb87e996eaf4ddc321b75f93a21ed98fb6647d973e8ebf582
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit go-module
7+
8+
DESCRIPTION="Performs automatic updates of GeoIP2 and GeoIP Legacy binary databases"
9+
HOMEPAGE="https://github.com/maxmind/geoipupdate"
10+
SRC_URI="https://github.com/maxmind/geoipupdate/archive/v${PV}.tar.gz -> ${P}.tar.gz"
11+
12+
LICENSE="ISC BSD BSD-2 MIT Apache-2.0"
13+
SLOT="0"
14+
KEYWORDS="amd64 arm ppc64 ~s390 x86"
15+
16+
DOCS=( README.md CHANGELOG.md doc/GeoIP.conf.md doc/geoipupdate.md )
17+
18+
pkg_pretend() {
19+
(has network-sandbox ${FEATURES}) && die "You need to disable 'network-sandbox' for this Ebuild in FEATURES"
20+
}
21+
22+
src_compile() {
23+
# Do not let these leak from outside into the package
24+
unset GOBIN GOPATH GOCODE
25+
26+
# requires pandoc but the information is still in the distributed md files
27+
sed -i -e '/GeoIP.conf.5 /d' -e '/geoipupdate.1$/d' Makefile || die
28+
29+
export CONFFILE=/etc/GeoIP.conf
30+
export DATADIR=/usr/share/GeoIP
31+
export VERSION=${PV}
32+
33+
default
34+
}
35+
36+
src_install() {
37+
dobin build/geoipupdate
38+
39+
keepdir /usr/share/GeoIP
40+
41+
insinto /etc
42+
doins build/GeoIP.conf
43+
44+
einstalldocs
45+
}

net-misc/geoipupdate/metadata.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<upstream>
5+
<remote-id type="github">maxmind/geoipupdate</remote-id>
6+
</upstream>
7+
</pkgmetadata>

0 commit comments

Comments
 (0)