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>
--- /dev/null
+DIST cronlocker-0.4.0_p20180710.tar.gz 60256 BLAKE2B 62adf6a935e13d97de9776f40a9349f7b3f1758c9d90c11f66759b87d3d8d9dc20a78ecfe0aa7849319be3c8c557dae3d9cc04c87bc6226af5842c72efac0611 SHA512 fc73b572da4fe485f9ba13340b946db40d7e0224643b5fe0b8f56b24560ce4bc32d0a42e3e0e33b979d3aec2910e96ff847249181e7b69776174e2f28d67797c
--- /dev/null
+# 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
+}
--- /dev/null
+<?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>