commit:     d70a686ae5073e9db2744a14996552fd1f629078
Author:     Marco Sirabella <marco <AT> sirabella <DOT> org>
AuthorDate: Tue Apr 20 03:51:52 2021 +0000
Commit:     Marco Sirabella <marco <AT> sirabella <DOT> org>
CommitDate: Tue Apr 20 03:52:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d70a686a

net-misc/myip: Add new package

Signed-off-by: Marco Sirabella <marco <AT> sirabella.org>

 net-misc/myip/Manifest          |  5 +++++
 net-misc/myip/metadata.xml      | 16 ++++++++++++++++
 net-misc/myip/myip-1.2.0.ebuild | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 53 insertions(+)

diff --git a/net-misc/myip/Manifest b/net-misc/myip/Manifest
new file mode 100644
index 000000000..2dba302d1
--- /dev/null
+++ b/net-misc/myip/Manifest
@@ -0,0 +1,5 @@
+DIST github.com%2F!snawoot%2Fextip%2F@v%2Fv1.0.0.mod 72 BLAKE2B 
bf71b172b963882ba2fcac7f11ff6c2493e5ebba316023f217873e47487231f425a699fcd2c2d18a35a382099a632e685366cf7e658888294b0ed5bf78706b0c
 SHA512 
73120a6555cf7d77c9e8ac03f8029d79a7dcd8d98794bd51137d3c3bb3aea32fa6a3d7e1703b1c86d73b30941da8e6c5e385fb5470884081817ccf201c72f49f
+DIST github.com%2F!snawoot%2Fextip%2F@v%2Fv1.0.0.zip 3841 BLAKE2B 
fd477585925a3581cc00bef085ae147ecb95908072c33355e6be2f2b00c8b0c15b473043b9b00918242c97a725c9a13b6d04f86847937f6bb47eff2c009492ed
 SHA512 
9e09d53ceaf903cdd374f0b8eb8d59457c7e76555b5ee682c3562560e3f9a4250db311738539d759e2fb7605f6f72b7289234bb26ec5c8b2dd88f2e1ed5f7258
+DIST gortc.io%2Fstun%2F@v%2Fv1.22.2.mod 30 BLAKE2B 
ebe4c3ce49779332e6622a802eebc7533873a76e7a8f4ff0949dda910f3a89aaf4d0c1923503e976ae45d9fe11eaaa9d9d1bccbb6746fa011e85cd74fe1e003e
 SHA512 
b2dfe24c7e28b9430b503908a877ee2e39223604aad87f433ae240bc8479e89dbd35a3aec422fe1280e111fdace3b2064586ab688f5561954b924d17cb070e4a
+DIST gortc.io%2Fstun%2F@v%2Fv1.22.2.zip 113037 BLAKE2B 
af5e80d5a058a5b3dcdc87ba772028475339d676f10d84c6f97fb740e7b34c0bf82028eaec707fcbb42ac7e682609421df4a3b055778c4ae8e97d5200ad88a13
 SHA512 
434affee0b63952297d77a31b7a285c4313023a3d39d139b8153144394c45be7d702e9b1f614a44831195e671a12fc226c4a95c0293f109baee58071ee17b5fa
+DIST myip-1.2.0.tar.gz 3461 BLAKE2B 
8d08789f5a2fbbd59a8bc0c9f98227f4779f7f66bf039d4b6e0e166e073f22c08dd7a29626e634cf01f93e2c5842266c74d21a60fb8c91f8e79974ec4555fdd3
 SHA512 
e16c8d3a4bab39ec350ba0d38a9ba4598c4d44a0510bfc233542701c49fd1f33ab6ec2345795cc6dcdda426027dee1bc59085b29d7f9cb1899892276ed40eb12

diff --git a/net-misc/myip/metadata.xml b/net-misc/myip/metadata.xml
new file mode 100644
index 000000000..8c546d2a8
--- /dev/null
+++ b/net-misc/myip/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Marco Sirabella</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">Snawoot/myip</remote-id>
+               <bugs-to>https://github.com/Snawoot/myip/issues</bugs-to>
+               <changelog>https://git.vuxu.org/nq/plain/NEWS.md</changelog>
+       </upstream>
+       <longdescription lang="en">
+               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.
+       </longdescription>
+</pkgmetadata>

diff --git a/net-misc/myip/myip-1.2.0.ebuild b/net-misc/myip/myip-1.2.0.ebuild
new file mode 100644
index 000000000..c3d4bb6bc
--- /dev/null
+++ b/net-misc/myip/myip-1.2.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit go-module
+
+EGO_SUM=(
+       "github.com/Snawoot/extip v1.0.0/go.mod"
+       "github.com/Snawoot/extip v1.0.0"
+       "gortc.io/stun v1.22.2/go.mod"
+       "gortc.io/stun v1.22.2"
+)
+go-module_set_globals
+
+DESCRIPTION="Get your external IP address using STUN server"
+HOMEPAGE="https://github.com/Snawoot/myip";
+EGO_PN="github.com/Snawoot/${PN}"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+${EGO_SUM_SRC_URI}"
+
+LICENSE="MIT BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_install() {
+       dobin bin/*
+}

Reply via email to