commit:     2bc734b57f315915314865817598b717633e7785
Author:     William Hubbs <william.hubbs <AT> sony <DOT> com>
AuthorDate: Mon Apr  1 21:22:03 2019 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Apr  1 21:23:58 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bc734b5

net-analyzer/opsgenie-lamp: Command line client for the opsgenie service

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 net-analyzer/opsgenie-lamp/Manifest                |  2 +
 net-analyzer/opsgenie-lamp/metadata.xml            |  8 ++++
 .../opsgenie-lamp-2.5.1_p20181102.ebuild           | 48 ++++++++++++++++++++++
 3 files changed, 58 insertions(+)

diff --git a/net-analyzer/opsgenie-lamp/Manifest 
b/net-analyzer/opsgenie-lamp/Manifest
new file mode 100644
index 00000000000..b0214baa109
--- /dev/null
+++ b/net-analyzer/opsgenie-lamp/Manifest
@@ -0,0 +1,2 @@
+DIST opsgenie-lamp-2.5.1_p20181102-vendor.tar.gz 204755 BLAKE2B 
65c92b5bbbdec8b4bdccad884435273a6aec51c472437de92613dcda76c3a6cff1b84dfe5028713a353b861ff868cb8377e97c9322423b7a887a121a92c9515f
 SHA512 
08f86e1520f2ca6d5208994c5836d511bea13d9e8ccf707a121956e23ff1c6f411d730ab6445ac30158e90d76efcdbbf65a19cef39641493c76b836980b6792a
+DIST opsgenie-lamp-2.5.1_p20181102.tar.gz 19259 BLAKE2B 
1a4f54b817b0210654f42e4ea1eb9dc29e0416ab37a90ca00ba86788cdcde6a8a7330bd095c238268b7e00525da33a67c4fa0aa68602442887dc81091f802fd2
 SHA512 
9a2c5d23b530a5c2df99f1b63afcb47d8fb3cdf9a45142f82d52df5c9dd570bad444735d851af3fe03306179076e78ece3be9b1a6b63da04740d0a02752db67a

diff --git a/net-analyzer/opsgenie-lamp/metadata.xml 
b/net-analyzer/opsgenie-lamp/metadata.xml
new file mode 100644
index 00000000000..c36c37139fa
--- /dev/null
+++ b/net-analyzer/opsgenie-lamp/metadata.xml
@@ -0,0 +1,8 @@
+<?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>William Hubbs</name>
+       </maintainer>
+</pkgmetadata>

diff --git a/net-analyzer/opsgenie-lamp/opsgenie-lamp-2.5.1_p20181102.ebuild 
b/net-analyzer/opsgenie-lamp/opsgenie-lamp-2.5.1_p20181102.ebuild
new file mode 100644
index 00000000000..8aba54f81df
--- /dev/null
+++ b/net-analyzer/opsgenie-lamp/opsgenie-lamp-2.5.1_p20181102.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit vcs-snapshot
+
+DESCRIPTION="command line client for the opsgenie service"
+HOMEPAGE="https://docs.opsgenie.com/docs/lamp-command-line-interface-for-opsgenie";
+HASH=062016b
+SRC_URI="https://github.com/opsgenie/${PN}/archive/${HASH}.tar.gz -> 
${P}.tar.gz
+       https://dev.gentoo.org/~williamh/dist/${P}-vendor.tar.gz";
+
+# I followed the following steps to create the vendor tarball:
+#
+# git clone https://github.com/opsgenie/opsgenie-lamp
+# cd opsgenie-lamp
+# go mod init # creates go.mod and go.sum
+# go mod vendor # updates go.mod/sum and adds vendor directory
+# mv -i go.mod go.sum vendor
+# tar cf ${P}.tar vendor
+# gzip ${P}.tar
+#
+# Upstream doesn't tag releases, but the most recent version number is
+# in the  sources, see the lampVersion variable.
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-lang/go:="
+
+RESTRICT="strip"
+
+src_prepare() {
+               mv ../${P}-vendor vendor || die "mv failed"
+               mv vendor/go.mod vendor/go.sum . || die "mv failed"
+       default
+}
+
+src_compile() {
+       GOCACHE="${T}"/go-cache go build -mod vendor || die "build failed"
+}
+
+src_install() {
+       newbin ${PN} lamp
+dodoc conf/lamp.conf
+       einstalldocs
+}

Reply via email to