mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-11 12:21:44 +01:00
app-admin/sdnotify-proxy: Update to use coreos-go.eclass
Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
parent
5c126c74d3
commit
f997ce7533
@ -1,10 +1,12 @@
|
|||||||
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=4
|
EAPI=5
|
||||||
CROS_WORKON_PROJECT="coreos/sdnotify-proxy"
|
CROS_WORKON_PROJECT="coreos/sdnotify-proxy"
|
||||||
CROS_WORKON_LOCALNAME="sdnotify-proxy"
|
CROS_WORKON_LOCALNAME="sdnotify-proxy"
|
||||||
CROS_WORKON_REPO="git://github.com"
|
CROS_WORKON_REPO="git://github.com"
|
||||||
|
COREOS_GO_PACKAGE="github.com/coreos/sdnotify-proxy"
|
||||||
|
inherit coreos-go cros-workon
|
||||||
|
|
||||||
if [[ "${PV}" == 9999 ]]; then
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
@ -13,8 +15,6 @@ else
|
|||||||
KEYWORDS="amd64"
|
KEYWORDS="amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
inherit cros-workon
|
|
||||||
|
|
||||||
DESCRIPTION="sdnotify-proxy"
|
DESCRIPTION="sdnotify-proxy"
|
||||||
HOMEPAGE="https://github.com/coreos/sdnotify-proxy"
|
HOMEPAGE="https://github.com/coreos/sdnotify-proxy"
|
||||||
SRC_URI=""
|
SRC_URI=""
|
||||||
@ -26,10 +26,10 @@ IUSE=""
|
|||||||
DEPEND=">=dev-lang/go-1.3"
|
DEPEND=">=dev-lang/go-1.3"
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
./build
|
go_build "${COREOS_GO_PACKAGE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
exeinto /usr/libexec
|
exeinto /usr/libexec
|
||||||
doexe ${S}/bin/sdnotify-proxy
|
doexe ${GOBIN}/sdnotify-proxy
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user