From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 04B9E138334 for ; Sun, 28 Jul 2019 16:44:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4259AE076B; Sun, 28 Jul 2019 16:44:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 15591E076B for ; Sun, 28 Jul 2019 16:44:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F287E348E04 for ; Sun, 28 Jul 2019 16:44:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9BB845CB for ; Sun, 28 Jul 2019 16:44:41 +0000 (UTC) From: "罗百科" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "罗百科" Message-ID: <1564332273.a98b07cfd740df5a4dd75773521e73788d1027d4.patrick@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/geoipupdate/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/geoipupdate/Manifest net-misc/geoipupdate/geoipupdate-4.0.3.ebuild X-VCS-Directories: net-misc/geoipupdate/ X-VCS-Committer: patrick X-VCS-Committer-Name: 罗百科 X-VCS-Revision: a98b07cfd740df5a4dd75773521e73788d1027d4 X-VCS-Branch: master Date: Sun, 28 Jul 2019 16:44:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c7c12121-362e-4f43-a707-b2762484e505 X-Archives-Hash: 7ee8ec574fe8e9927685aa1fa866f334 commit: a98b07cfd740df5a4dd75773521e73788d1027d4 Author: Patrick Lauer gentoo org> AuthorDate: Sun Jul 28 16:43:15 2019 +0000 Commit: 罗百科 gentoo org> CommitDate: Sun Jul 28 16:44:33 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a98b07cf net-misc/geoipupdate: Bump New version is rewritten in Go, so ebuild is very different. Based on work by Wiktor Kerr adjust.com> Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Patrick Lauer gentoo.org> net-misc/geoipupdate/Manifest | 2 ++ net-misc/geoipupdate/geoipupdate-4.0.3.ebuild | 45 +++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/net-misc/geoipupdate/Manifest b/net-misc/geoipupdate/Manifest index 20ddcb207c3..e084a7d2e85 100644 --- a/net-misc/geoipupdate/Manifest +++ b/net-misc/geoipupdate/Manifest @@ -1,3 +1,5 @@ DIST geoipupdate-2.3.1.tar.gz 362497 BLAKE2B e07eb22d6b4897d735af0c354f99111931646e8d194d493cf6992ac76a065a02816e5eaf0c974f752aeabb9cde7e7f8ec70d70529402b0b58072c44994e39e53 SHA512 98537e17ea03dbc0e377bf3fd045a96cbcf2f36f1fbcdf494f0a60d15f9ea5d2f0cd5e127245c6425e0ff8b77028147a2a6316034752298c8e9671007b7245a1 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-vendor-4.0.3.tar 532480 BLAKE2B c619098fa40d6a92743a2847900e7cefe5d61aa9dbd36399e4a26d7c2fda1ea493f91ded8a4b17a76063960c0f8a11cc7b3b7b734e9f3d978da7035799d32956 SHA512 25976c66d775e3e50b422e9f564b9486c7c08d9dba8a11b5ac9faf62f3545673fa94d2ea6ea40750835840c938b686b174de5658236a19e85d592d861eea05b8 diff --git a/net-misc/geoipupdate/geoipupdate-4.0.3.ebuild b/net-misc/geoipupdate/geoipupdate-4.0.3.ebuild new file mode 100644 index 00000000000..748f8dc8f2a --- /dev/null +++ b/net-misc/geoipupdate/geoipupdate-4.0.3.ebuild @@ -0,0 +1,45 @@ +# 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://${EGO_PN}" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://files.adjust.com/${PN}-vendor-${PV}.tar" + +LICENSE="|| ( Apache-2.0 MIT )" +SLOT="0" +KEYWORDS="~amd64" + +DOCS=( GeoIP.conf.md geoipupdate.md ) + +src_unpack() { + golang-vcs-snapshot_src_unpack + tar xf "${DISTDIR}/${PN}-vendor-${PV}.tar" -C "${S}/src/github.com/maxmind/geoipupdate" || die +} + +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 + 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 +}