app-admin/cronlocker: synchronize a cron job across hosts
authorWilliam Hubbs <william.hubbs@sony.com>
Fri, 31 May 2019 22:41:12 +0000 (17:41 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Fri, 31 May 2019 22:42:25 +0000 (17:42 -0500)
This utility uses the consul lock feature to synchronize a cron job
across multiple hosts.

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: William Hubbs <williamh@gentoo.org>
app-admin/cronlocker/Manifest [new file with mode: 0644]
app-admin/cronlocker/cronlocker-0.4.0_p20180710.ebuild [new file with mode: 0644]
app-admin/cronlocker/metadata.xml [new file with mode: 0644]

diff --git a/app-admin/cronlocker/Manifest b/app-admin/cronlocker/Manifest
new file mode 100644 (file)
index 0000000..89950da
--- /dev/null
@@ -0,0 +1 @@
+DIST cronlocker-0.4.0_p20180710.tar.gz 60256 BLAKE2B 62adf6a935e13d97de9776f40a9349f7b3f1758c9d90c11f66759b87d3d8d9dc20a78ecfe0aa7849319be3c8c557dae3d9cc04c87bc6226af5842c72efac0611 SHA512 fc73b572da4fe485f9ba13340b946db40d7e0224643b5fe0b8f56b24560ce4bc32d0a42e3e0e33b979d3aec2910e96ff847249181e7b69776174e2f28d67797c
diff --git a/app-admin/cronlocker/cronlocker-0.4.0_p20180710.ebuild b/app-admin/cronlocker/cronlocker-0.4.0_p20180710.ebuild
new file mode 100644 (file)
index 0000000..46e33d1
--- /dev/null
@@ -0,0 +1,26 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+EGO_PN=github.com/Barzahlen/cronlocker
+HASH=c0ac605
+inherit golang-vcs-snapshot
+
+DESCRIPTION="synchronize a cron job across multiple hosts using the consul lock feature"
+HOMEPAGE="https://github.com/Barzahlen/cronlocker"
+SRC_URI="https://github.com/Barzahlen/${PN}/archive/${HASH}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+src_compile() {
+       pushd src/${EGO_PN} || die
+       GOPATH="${S}" emake cronlocker
+}
+
+src_install() {
+       pushd src/${EGO_PN}
+dobin cronlocker
+dodoc *.md package/changelog
+}
diff --git a/app-admin/cronlocker/metadata.xml b/app-admin/cronlocker/metadata.xml
new file mode 100644 (file)
index 0000000..c36c371
--- /dev/null
@@ -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>