diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-02-09 16:30:21 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-02-09 16:32:23 +0100 |
commit | 93305b4c4dabaefc6996ea710abd953aa217604a (patch) | |
tree | 6a16e47832e142af6dd4f3034e7b03ae5f68e392 | |
parent | sys-process/numactl: Added live ebuild. (diff) | |
download | gentoo-93305b4c4dabaefc6996ea710abd953aa217604a.tar.gz gentoo-93305b4c4dabaefc6996ea710abd953aa217604a.tar.bz2 gentoo-93305b4c4dabaefc6996ea710abd953aa217604a.zip |
app-emulation/flannel: Version bump to 0.10.0
Package-Manager: Portage-2.3.24, Repoman-2.3.6
-rw-r--r-- | app-emulation/flannel/Manifest | 1 | ||||
-rw-r--r-- | app-emulation/flannel/flannel-0.10.0.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/app-emulation/flannel/Manifest b/app-emulation/flannel/Manifest index a4ff778496d2..e6be8a87476e 100644 --- a/app-emulation/flannel/Manifest +++ b/app-emulation/flannel/Manifest @@ -1,2 +1,3 @@ +DIST flannel-0.10.0.tar.gz 4799262 BLAKE2B 7341f34f72bf2d51aa727d03eb94f376fd9da825dea1865db9d0b46d5bcc0338569b8aa81c3442b101768cd7b58bef3957bea86a38e8c1cca921b7a03d1b2bf3 SHA512 b71fff80f7c4891279e82c6c430cdbff1eb3966cc4817d1c2c5ed7a731e9466f04e51532734244510ab47cba07557c052fbaa9a4a9ecced56fa1e37f6681b1c9 DIST flannel-0.9.0.tar.gz 8090296 BLAKE2B f3592a9d448219683a1d34c5c291206ebb331b801455fd4bc3c1e7909576d865943cad9e6c79915bb6be5d8fd47d910a4fb550a1352ea0a506f90dcf2312964c SHA512 b91a3da1b69c806d9af87d4c5f8702c845b328978e375d957bbb8dd3eeb35547cc63f8f13bef7520a8e012e4e958a7c6ca047d0b06a1f9a0e31f61ec2be40a4d DIST flannel-0.9.1.tar.gz 8090942 BLAKE2B 94da69c9ef82438a55a238910130beedd55418d1f2a1a9e0d49b36fb5626b9346b4b1dbb46dfdbb839e6303a9906521c5e7bfa7ca695455d1b40167f3245c05f SHA512 ce265effa1924dbd2fa366cf97945ec94ecfc5701dfbaae2d44d1177a36b5e2268b1d9535f2d5dccd84ebb50d8cc8844c46f025fa1f233f85f6dfa0a30d53fe3 diff --git a/app-emulation/flannel/flannel-0.10.0.ebuild b/app-emulation/flannel/flannel-0.10.0.ebuild new file mode 100644 index 000000000000..3fd362881d8c --- /dev/null +++ b/app-emulation/flannel/flannel-0.10.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit golang-vcs-snapshot systemd user + +KEYWORDS="~amd64" +DESCRIPTION="An etcd backed network fabric for containers" +EGO_PN="github.com/coreos/flannel" +HOMEPAGE="https://github.com/coreos/flannel" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="hardened" +RESTRICT="test" + +src_prepare() { + default + sed -e "s:^var Version =.*:var Version = \"${PV}\":" \ + -i "${S}/src/${EGO_PN}/version/version.go" || die +} + +src_compile() { + CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')"\ + GOPATH="${WORKDIR}/${P}" \ + go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" + [[ -x bin/${PN} ]] || die +} + +src_test() { + GOPATH="${WORKDIR}/${P}" \ + go test -v -work -x "${EGO_PN}" || die +} + +src_install() { + newbin "bin/${PN}" ${PN}d + cd "src/${EGO_PN}" || die + exeinto /usr/libexec/flannel + doexe dist/mk-docker-opts.sh + insinto /etc/systemd/system/docker.service.d + newins "${FILESDIR}/flannel-docker.conf" flannel.conf + newinitd "${FILESDIR}"/flanneld.initd flanneld + newconfd "${FILESDIR}"/flanneld.confd flanneld + keepdir /var/log/${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}"/flanneld.logrotated flanneld + systemd_newtmpfilesd "${FILESDIR}/flannel.tmpfilesd" flannel.conf + systemd_dounit "${FILESDIR}/flanneld.service" + dodoc README.md +} |