feat(app-admin/locksmith): Initial commit

This commit is contained in:
Brandon Philips 2014-05-01 13:52:44 -07:00
parent ebe1662c5f
commit a5b17a1555
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1 @@
locksmith-9999.ebuild

View File

@ -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
}