Gentoo Archives: gentoo-commits

From: Marco Sirabella <marco@×××××××××.org>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/myip/
Date: Tue, 20 Apr 2021 03:54:30
Message-Id: 1618890730.d70a686ae5073e9db2744a14996552fd1f629078.marco@gentoo
1 commit: d70a686ae5073e9db2744a14996552fd1f629078
2 Author: Marco Sirabella <marco <AT> sirabella <DOT> org>
3 AuthorDate: Tue Apr 20 03:51:52 2021 +0000
4 Commit: Marco Sirabella <marco <AT> sirabella <DOT> org>
5 CommitDate: Tue Apr 20 03:52:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d70a686a
7
8 net-misc/myip: Add new package
9
10 Signed-off-by: Marco Sirabella <marco <AT> sirabella.org>
11
12 net-misc/myip/Manifest | 5 +++++
13 net-misc/myip/metadata.xml | 16 ++++++++++++++++
14 net-misc/myip/myip-1.2.0.ebuild | 32 ++++++++++++++++++++++++++++++++
15 3 files changed, 53 insertions(+)
16
17 diff --git a/net-misc/myip/Manifest b/net-misc/myip/Manifest
18 new file mode 100644
19 index 000000000..2dba302d1
20 --- /dev/null
21 +++ b/net-misc/myip/Manifest
22 @@ -0,0 +1,5 @@
23 +DIST github.com%2F!snawoot%2Fextip%2F@v%2Fv1.0.0.mod 72 BLAKE2B bf71b172b963882ba2fcac7f11ff6c2493e5ebba316023f217873e47487231f425a699fcd2c2d18a35a382099a632e685366cf7e658888294b0ed5bf78706b0c SHA512 73120a6555cf7d77c9e8ac03f8029d79a7dcd8d98794bd51137d3c3bb3aea32fa6a3d7e1703b1c86d73b30941da8e6c5e385fb5470884081817ccf201c72f49f
24 +DIST github.com%2F!snawoot%2Fextip%2F@v%2Fv1.0.0.zip 3841 BLAKE2B fd477585925a3581cc00bef085ae147ecb95908072c33355e6be2f2b00c8b0c15b473043b9b00918242c97a725c9a13b6d04f86847937f6bb47eff2c009492ed SHA512 9e09d53ceaf903cdd374f0b8eb8d59457c7e76555b5ee682c3562560e3f9a4250db311738539d759e2fb7605f6f72b7289234bb26ec5c8b2dd88f2e1ed5f7258
25 +DIST gortc.io%2Fstun%2F@v%2Fv1.22.2.mod 30 BLAKE2B ebe4c3ce49779332e6622a802eebc7533873a76e7a8f4ff0949dda910f3a89aaf4d0c1923503e976ae45d9fe11eaaa9d9d1bccbb6746fa011e85cd74fe1e003e SHA512 b2dfe24c7e28b9430b503908a877ee2e39223604aad87f433ae240bc8479e89dbd35a3aec422fe1280e111fdace3b2064586ab688f5561954b924d17cb070e4a
26 +DIST gortc.io%2Fstun%2F@v%2Fv1.22.2.zip 113037 BLAKE2B af5e80d5a058a5b3dcdc87ba772028475339d676f10d84c6f97fb740e7b34c0bf82028eaec707fcbb42ac7e682609421df4a3b055778c4ae8e97d5200ad88a13 SHA512 434affee0b63952297d77a31b7a285c4313023a3d39d139b8153144394c45be7d702e9b1f614a44831195e671a12fc226c4a95c0293f109baee58071ee17b5fa
27 +DIST myip-1.2.0.tar.gz 3461 BLAKE2B 8d08789f5a2fbbd59a8bc0c9f98227f4779f7f66bf039d4b6e0e166e073f22c08dd7a29626e634cf01f93e2c5842266c74d21a60fb8c91f8e79974ec4555fdd3 SHA512 e16c8d3a4bab39ec350ba0d38a9ba4598c4d44a0510bfc233542701c49fd1f33ab6ec2345795cc6dcdda426027dee1bc59085b29d7f9cb1899892276ed40eb12
28
29 diff --git a/net-misc/myip/metadata.xml b/net-misc/myip/metadata.xml
30 new file mode 100644
31 index 000000000..8c546d2a8
32 --- /dev/null
33 +++ b/net-misc/myip/metadata.xml
34 @@ -0,0 +1,16 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 + <maintainer type="person">
39 + <email>marco@×××××××××.org</email>
40 + <name>Marco Sirabella</name>
41 + </maintainer>
42 + <upstream>
43 + <remote-id type="github">Snawoot/myip</remote-id>
44 + <bugs-to>https://github.com/Snawoot/myip/issues</bugs-to>
45 + <changelog>https://git.vuxu.org/nq/plain/NEWS.md</changelog>
46 + </upstream>
47 + <longdescription lang="en">
48 + Reliably and quickly get your external IP address from public STUN servers. Program issues parallel queries to public STUN servers to determine public IP address and returns result as soon as quorum of matching responses reached.
49 + </longdescription>
50 +</pkgmetadata>
51
52 diff --git a/net-misc/myip/myip-1.2.0.ebuild b/net-misc/myip/myip-1.2.0.ebuild
53 new file mode 100644
54 index 000000000..c3d4bb6bc
55 --- /dev/null
56 +++ b/net-misc/myip/myip-1.2.0.ebuild
57 @@ -0,0 +1,32 @@
58 +# Copyright 2021 Gentoo Authors
59 +# Distributed under the terms of the GNU General Public License v2
60 +
61 +EAPI=7
62 +
63 +inherit go-module
64 +
65 +EGO_SUM=(
66 + "github.com/Snawoot/extip v1.0.0/go.mod"
67 + "github.com/Snawoot/extip v1.0.0"
68 + "gortc.io/stun v1.22.2/go.mod"
69 + "gortc.io/stun v1.22.2"
70 +)
71 +go-module_set_globals
72 +
73 +DESCRIPTION="Get your external IP address using STUN server"
74 +HOMEPAGE="https://github.com/Snawoot/myip"
75 +EGO_PN="github.com/Snawoot/${PN}"
76 +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
77 +${EGO_SUM_SRC_URI}"
78 +
79 +LICENSE="MIT BSD"
80 +SLOT="0"
81 +KEYWORDS="~amd64 ~x86"
82 +
83 +DEPEND=""
84 +RDEPEND="${DEPEND}"
85 +BDEPEND=""
86 +
87 +src_install() {
88 + dobin bin/*
89 +}