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 B80F3138334 for ; Mon, 1 Apr 2019 21:24:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B2347E08E8; Mon, 1 Apr 2019 21:24:42 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 70FA7E08E8 for ; Mon, 1 Apr 2019 21:24:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 2DB5F335D07 for ; Mon, 1 Apr 2019 21:24:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 94C8B545 for ; Mon, 1 Apr 2019 21:24:38 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1554153838.2bc734b57f315915314865817598b717633e7785.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/opsgenie-lamp/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/opsgenie-lamp/Manifest net-analyzer/opsgenie-lamp/metadata.xml net-analyzer/opsgenie-lamp/opsgenie-lamp-2.5.1_p20181102.ebuild X-VCS-Directories: net-analyzer/opsgenie-lamp/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 2bc734b57f315915314865817598b717633e7785 X-VCS-Branch: master Date: Mon, 1 Apr 2019 21:24:38 +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: 6dd79331-0fe1-4992-9abc-d22d52a9c44a X-Archives-Hash: aadf7c40b63d5e6b513ff771c5620f67 commit: 2bc734b57f315915314865817598b717633e7785 Author: William Hubbs sony com> AuthorDate: Mon Apr 1 21:22:03 2019 +0000 Commit: William Hubbs gentoo 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 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 @@ + + + + + williamh@gentoo.org + William Hubbs + + 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 +}