commit:     e3ac44986f2b429fa2d9fea5fb41f232f5149bf3
Author:     Michael Egger <michael.egger <AT> tsn <DOT> at>
AuthorDate: Sun Mar 15 16:47:28 2020 +0000
Commit:     Michael Egger <michael.egger <AT> tsn <DOT> at>
CommitDate: Sun Mar 15 16:47:28 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e3ac4498

net-p2p/trezord-go: new package

Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Michael Egger <michael.egger <AT> tsn.at>

 net-p2p/trezord-go/Manifest                 |  1 +
 net-p2p/trezord-go/metadata.xml             | 18 ++++++++++++++++++
 net-p2p/trezord-go/trezord-go-2.0.29.ebuild | 29 +++++++++++++++++++++++++++++
 3 files changed, 48 insertions(+)

diff --git a/net-p2p/trezord-go/Manifest b/net-p2p/trezord-go/Manifest
new file mode 100644
index 0000000..3f32a88
--- /dev/null
+++ b/net-p2p/trezord-go/Manifest
@@ -0,0 +1 @@
+DIST trezord-go-2.0.29.tar.gz 5578837 BLAKE2B 
e13d30cb2174453e77425df556fa01a74928f1b0a779dcd99d198b70c49ff61a59cdc9853b18387653128f4f318c58885d79c7bd5c1d1ecd40b0a812ccfdc147
 SHA512 
cb2fd99631f8e5e1d095ee3afdbb8d755795d59c96658d4b843d1c255c25260d160346b17f974931f8b6ae27a3f4a28e72c86aaf63b51bb4e5610e8344e948dd

diff --git a/net-p2p/trezord-go/metadata.xml b/net-p2p/trezord-go/metadata.xml
new file mode 100644
index 0000000..3e44e10
--- /dev/null
+++ b/net-p2p/trezord-go/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>michael.eg...@tsn.at</email>
+               <name>Michael Egger</name>
+       </maintainer>
+       <use>
+               <flag name="systemd">Install systemd service file</flag>
+               <flag name="udev">Install udev rules</flag>
+       </use>
+       <longdescription>
+               TREZOR Communication Daemon.
+       </longdescription>
+       <upstream>
+               <remote-id type="github">trezor/trezord-go</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/net-p2p/trezord-go/trezord-go-2.0.29.ebuild 
b/net-p2p/trezord-go/trezord-go-2.0.29.ebuild
new file mode 100644
index 0000000..51c7e0b
--- /dev/null
+++ b/net-p2p/trezord-go/trezord-go-2.0.29.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd udev golang-build golang-vcs-snapshot
+
+EGO_PN="github.com/trezor/trezord-go"
+ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+DESCRIPTION="TREZOR Communication Daemon"
+HOMEPAGE="https://github.com/trezor/trezord-go";
+SRC_URI="${ARCHIVE_URI}"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="systemd +udev"
+RESTRICT="test"
+
+DEPEND="
+       acct-user/trezord
+       acct-group/plugdev"
+
+src_install() {
+       newbin trezord-go trezord
+       use systemd && systemd_dounit 
src/github.com/trezor/trezord-go/release/linux/trezord.service
+       use udev && udev_dorules 
src/github.com/trezor/trezord-go/release/linux/trezor.rules
+}

Reply via email to