From a5b17a1555ae34ca00fe56404a466e194e15b3fb Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 1 May 2014 13:52:44 -0700 Subject: [PATCH] feat(app-admin/locksmith): Initial commit --- .../locksmith/locksmith-0.1.0.ebuild | 1 + .../app-admin/locksmith/locksmith-9999.ebuild | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 120000 sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-0.1.0.ebuild create mode 100644 sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-9999.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-0.1.0.ebuild b/sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-0.1.0.ebuild new file mode 120000 index 0000000000..5771961c24 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-0.1.0.ebuild @@ -0,0 +1 @@ +locksmith-9999.ebuild \ No newline at end of file diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-9999.ebuild new file mode 100644 index 0000000000..5b7873e7b5 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-9999.ebuild @@ -0,0 +1,39 @@ +# Copyright (c) 2014 CoreOS, Inc.. All rights reserved. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +CROS_WORKON_PROJECT="coreos/locksmith" +CROS_WORKON_LOCALNAME="locksmith" +CROS_WORKON_REPO="git://github.com" + +if [[ "${PV}" == 9999 ]]; then + KEYWORDS="~amd64" +else + CROS_WORKON_COMMIT="46fa8a4362f1fcab6459a2103291558811a3a619" + KEYWORDS="amd64" +fi + +inherit cros-workon systemd + +DESCRIPTION="locksmith" +HOMEPAGE="https://github.com/coreos/locksmith" +SRC_URI="" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND=">=dev-lang/go-1.2" + +src_compile() { + ./build || die +} + +src_install() { + dobin ${S}/bin/locksmithctl + dodir /usr/lib/locksmith + dosym ../../../bin/locksmithctl /usr/lib/locksmith/locksmithd + + systemd_dounit "${S}"/systemd/locksmithd.service + systemd_enable_service multi-user.target locksmithd.service +}