summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2019-06-01 12:55:04 -0500
committerWilliam Hubbs <williamh@gentoo.org>2019-06-01 12:57:38 -0500
commitd4beb2fa6cfa708c53fdcebab03a18559704e611 (patch)
tree81695dab1a4d3c3ef330320e9fc5de6d2279bac4 /app-backup/consul-backinator
parentqt5-build.eclass: use safer '|' sed delimiter, not ':' (diff)
downloadgentoo-d4beb2fa6cfa708c53fdcebab03a18559704e611.tar.gz
gentoo-d4beb2fa6cfa708c53fdcebab03a18559704e611.tar.bz2
gentoo-d4beb2fa6cfa708c53fdcebab03a18559704e611.zip
app-backup/consul-backinator: consul backup and restore utility
Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-backup/consul-backinator')
-rw-r--r--app-backup/consul-backinator/Manifest2
-rw-r--r--app-backup/consul-backinator/consul-backinator-1.6.5.ebuild33
-rw-r--r--app-backup/consul-backinator/metadata.xml8
3 files changed, 43 insertions, 0 deletions
diff --git a/app-backup/consul-backinator/Manifest b/app-backup/consul-backinator/Manifest
new file mode 100644
index 000000000000..4534f323f527
--- /dev/null
+++ b/app-backup/consul-backinator/Manifest
@@ -0,0 +1,2 @@
+DIST consul-backinator-1.6.5-vendor.tar.gz 3532654 BLAKE2B 826a873ee25e8cd89cc73bfa1c7d377da8d9227ec0a948cac0b8643542b37cae5412cb638c4fa2ce3490dcc69356b4dbbedbaefd9289e73ea8c3904db85be1b8 SHA512 f8ba7e93265dab3b44d09336f5c7ec0fdea88956d2945eeb039241ac80c39d678e4041221e681861b7cca9406d8a1ea5ce40e6f69cae6a8e89396b4be8fc007c
+DIST consul-backinator-1.6.5.tar.gz 32298 BLAKE2B 19dcd3603e6e0a5cd19e186ec2f45270125d8a0369b0e6033f047927c82e58afd641a3c74ddcfb61ebeb11dc4cf33383ebd75c5fed10962578dd0c62b7b10ec1 SHA512 94a618bdbec1da209c1774cccd2942594dd0f60857c69a50cb42a0c70dea5af94f36010d59fa49bd2e534fcb0649b362674caa46ddb59595c2d21afa82d5ff7f
diff --git a/app-backup/consul-backinator/consul-backinator-1.6.5.ebuild b/app-backup/consul-backinator/consul-backinator-1.6.5.ebuild
new file mode 100644
index 000000000000..d74bd040c727
--- /dev/null
+++ b/app-backup/consul-backinator/consul-backinator-1.6.5.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+EGO_PN=github.com/myENA/consul-backinator
+RESTRICT="strip"
+
+DESCRIPTION="consul backup and restore utility"
+HOMEPAGE="https://github.com/myENA/consul-backinator"
+SRC_URI="https://github.com/myENA/consul-backinator/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~williamh/dist/${P}-vendor.tar.gz"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-lang/go:="
+
+src_prepare() {
+ default
+ mv ../vendor .
+ echo module ${EGO_PN} > go.mod || die "Unable to create go.mod"
+}
+
+src_compile() {
+ CGO_ENABLED=0 go build -mod vendor -o "${PN}" -v -x \
+ -ldflags="-X main.appVersion=${PV} -s -w" || die
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc *.md
+}
diff --git a/app-backup/consul-backinator/metadata.xml b/app-backup/consul-backinator/metadata.xml
new file mode 100644
index 000000000000..c36c37139fad
--- /dev/null
+++ b/app-backup/consul-backinator/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>williamh@gentoo.org</email>
+ <name>William Hubbs</name>
+ </maintainer>
+</pkgmetadata>