mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 23:11:07 +02:00
app-emulation/docker-proxy: use the CoreOS Go functions
This commit is contained in:
parent
02c987e7ce
commit
75cd0c87c8
@ -2,18 +2,24 @@
|
|||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
EAPI=6
|
EAPI=5
|
||||||
EGO_PN="github.com/docker/libnetwork"
|
EGO_PN="github.com/docker/libnetwork"
|
||||||
|
|
||||||
|
COREOS_GO_PACKAGE="${EGO_PN}"
|
||||||
|
COREOS_GO_VERSION="go1.7"
|
||||||
|
|
||||||
if [[ ${PV} == *9999 ]]; then
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
KEYWORDS="~amd64 ~arm64"
|
||||||
inherit golang-vcs
|
inherit golang-vcs
|
||||||
else
|
else
|
||||||
EGIT_COMMIT="57be722e077059d1ee0539be31743a3642ccbeb3"
|
EGIT_COMMIT="57be722e077059d1ee0539be31743a3642ccbeb3"
|
||||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||||
KEYWORDS="~amd64 ~ppc64"
|
KEYWORDS="amd64 arm64"
|
||||||
inherit golang-vcs-snapshot
|
inherit golang-vcs-snapshot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
inherit coreos-go
|
||||||
|
|
||||||
DESCRIPTION="Docker container networking"
|
DESCRIPTION="Docker container networking"
|
||||||
HOMEPAGE="http://github.com/docker/libnetwork"
|
HOMEPAGE="http://github.com/docker/libnetwork"
|
||||||
|
|
||||||
@ -26,10 +32,9 @@ S=${WORKDIR}/${P}/src/${EGO_PN}
|
|||||||
RDEPEND="!<app-emulation/docker-1.13.0_rc1"
|
RDEPEND="!<app-emulation/docker-1.13.0_rc1"
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -o "bin/docker-proxy" ./cmd/proxy || die
|
go_build "${COREOS_GO_PACKAGE}/cmd/proxy"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dodoc ROADMAP.md README.md CHANGELOG.md
|
newbin "${GOBIN}"/proxy docker-proxy
|
||||||
dobin bin/docker-proxy
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user