summaryrefslogtreecommitdiff
path: root/app-emulation/flannel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-emulation/flannel
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emulation/flannel')
-rw-r--r--app-emulation/flannel/Manifest12
-rw-r--r--app-emulation/flannel/files/flannel-docker.conf2
-rw-r--r--app-emulation/flannel/files/flannel.tmpfilesd1
-rw-r--r--app-emulation/flannel/files/flanneld.confd2
-rw-r--r--app-emulation/flannel/files/flanneld.initd19
-rw-r--r--app-emulation/flannel/files/flanneld.logrotated7
-rw-r--r--app-emulation/flannel/files/flanneld.service13
-rw-r--r--app-emulation/flannel/flannel-0.8.0-r2.ebuild51
-rw-r--r--app-emulation/flannel/flannel-0.9.0.ebuild51
-rw-r--r--app-emulation/flannel/metadata.xml10
10 files changed, 168 insertions, 0 deletions
diff --git a/app-emulation/flannel/Manifest b/app-emulation/flannel/Manifest
new file mode 100644
index 000000000000..121c1b99eda3
--- /dev/null
+++ b/app-emulation/flannel/Manifest
@@ -0,0 +1,12 @@
+AUX flannel-docker.conf 47 SHA256 b2fa7dde11feb2ccfbd0b7fe24ea678d2c0156197cc766df8fb63ae7d03fc82c SHA512 e09414f4b866cfec0a2e9ef38feebb0acc3e9aba153d0fe64fc2079d9829f34527d92949d300423e296ce24f417e4c9e5ba56ca71587eef7bfba4e6d1b688998 WHIRLPOOL dc4aaf52063ef60d562814d204f0e0bb2d1959702794179dc102a62bdb1fbf114ec53db5eca9832135ea0bf2e529f9a1fc0f905e9c60748a0e9e822edc87a138
+AUX flannel.tmpfilesd 30 SHA256 2add3ca3239440d264373497f9d1097ead00f2fe2998c2ca4ed23d24a2dc9643 SHA512 edb2d8bfa81711562f8256f600ee8a0c9518c346e8eec1c5fb8c15ac0e443b9c03094601ad6d6b6cf7f3e52a8c7f632ace0e20e99516643e056dbd7219550d09 WHIRLPOOL 898d640661b496af54ac48327e96c3991860da02960b882d7cb2a0c10a6db799bf913763dc89a7d02ec36408bcfced94eb4885143f290e2fb70b2e8686ccad75
+AUX flanneld.confd 40 SHA256 304fcceec7023d8a2d3046a302d16f2590abc77c1d8d9aecea287d211cc5c08d SHA512 353b98bfc1a73d8f691b6f79489e0224961b5af8ca36ce2edde2d7a86790612de1d597c3455222f38a1c9f09b377e1bf3adfeedc04bd6b0b75c653a732d58988 WHIRLPOOL 214bdbd1ca3b5bac91e29c575bc8d4cd94ff78a84cda04e68b415286fda64348347e0cd7fedb3b84df90dfd6a764656856185ca4f464e0fec4a397ba5f253771
+AUX flanneld.initd 518 SHA256 8e435be32447edc6710b141c63d7e319c5a193598c4b3a8244c20a9ec83e5202 SHA512 3f6f33fe90adca1dd17b503ce0cd3a7f3cc0ca7fc10d0ca5b631f4c87ed513c0133dfd7679618cf95540b252b3176f9bbefd6454867ef792258c46cafc039d86 WHIRLPOOL 5f07cc69e267a12762895f94a06cd873b902e7ecec00c410771defb8b077f68685dfb7aa9b15f4fe6225c9d1dbc9d3681cf0faaee69c85e81a2265d2924a77a2
+AUX flanneld.logrotated 77 SHA256 bc9ed3d1ca564cd8657e4e8853c4c926272d63f7c8e72a7c3c6a0297bbc43b81 SHA512 d84258a164adcec0f1cef7fcafcf0cadb3bf3959b393b905c4897274adeff476279ce96ec42e9aa9d574c6bd7d37649d92c7c52563975f85d303cade990a3942 WHIRLPOOL f7178f978f7616991d3d21f44344809b1fba087af62def90896414bec0dfd1807d3c2a7632fd450b854dacf59c77fc2bea5802d9027e6ceb2d9dc0e4100121a0
+AUX flanneld.service 476 SHA256 8f05ff6b00acbaeb554431722dab66600ea39d44dd5d1c37f49ded2d956b40ee SHA512 4a7d09f25f117b1cda9b02914a394c0d6d6ddd6c02503f61c0646ede1934cb4cad831992058c5738401b1ac7be6e4c7cd83b1c4a70c04084bb4bb01338c08220 WHIRLPOOL e6860e2d08c427cf3b05473ac89d5c306ee78ec1393a6f23f2ea954ca948a1944cca06983ff463f88ddd299a0328d4ac37ead4a06f77d0ac4587c860331e73df
+DIST flannel-0.8.0.tar.gz 8089967 SHA256 8905f1706b649db8c9852ddd0d559ff8c1844886278455b8ff0c22b909b1e059 SHA512 8d3693d95f67ab273c68671d0b2ab76dd3761868bb956cb14c171525bbefab8223d202f2356de249e1add1bbac89f995367a6d5c1b8e1358bebaa317b4f0a2fc WHIRLPOOL c6c2d4cc2f864b2e3271933a99d5ae8b4ef08c12b7e5cca771ca86c4902a4f2469cee990c46b5a40337a89b52c44d17cebcd56be77b502c2fedc371aad299be1
+DIST flannel-0.9.0.tar.gz 8090296 SHA256 3d04611497eab9f066d0316a23e5cc931b730707cc5fdcd1ea9940146f41151f SHA512 b91a3da1b69c806d9af87d4c5f8702c845b328978e375d957bbb8dd3eeb35547cc63f8f13bef7520a8e012e4e958a7c6ca047d0b06a1f9a0e31f61ec2be40a4d WHIRLPOOL da8cb9b415bb6627e33f7e040316a8e882e8b7960353a4e69dd81c25fb3025dbaf06b0ef6350df0e5566cd0cef9f7313a273bd75d2f1d613c7f8961245fadf49
+EBUILD flannel-0.8.0-r2.ebuild 1403 SHA256 2f7a874906bb28db84f8e234e558871093c4cd645bf0452b52c35e7446a6b62e SHA512 d4154712b76066d0c88c2308f38f14101a4713c6dceb8330bed71b4d3b2c53655197fd09454e8d710cd29e050c3734bfd0a85bc9141d8bbc2af202c8859116ab WHIRLPOOL de1c8ad9d0c0eff5bdbc02dff122039f5ab665e86933e018d6e98c10ed3783dc464b5f7185b3e45e1873a7e9c9d219d11d0ba5658b4e15c07ff242ebebecd317
+EBUILD flannel-0.9.0.ebuild 1403 SHA256 2f7a874906bb28db84f8e234e558871093c4cd645bf0452b52c35e7446a6b62e SHA512 d4154712b76066d0c88c2308f38f14101a4713c6dceb8330bed71b4d3b2c53655197fd09454e8d710cd29e050c3734bfd0a85bc9141d8bbc2af202c8859116ab WHIRLPOOL de1c8ad9d0c0eff5bdbc02dff122039f5ab665e86933e018d6e98c10ed3783dc464b5f7185b3e45e1873a7e9c9d219d11d0ba5658b4e15c07ff242ebebecd317
+MISC ChangeLog 1183 SHA256 6b6c60b825525ecc78ae8efe479eb85a9e8e96417ff46e742b61076b3374674a SHA512 f5b076d6b19751b5087ab7886f8d42738e73e3848cbd9b4c56afe46892a767020097c5f85c0fe46d375433a112072503501479a685690dd656651b7e873550a5 WHIRLPOOL 6c13cd898c331aea91cec3f2370f09d663f1d2685f11cf7c3f4ebc9122c54007e857d980735cd017f6dd9d1e2a3ecad974d5d106ba63ba597553189524ee9296
+MISC metadata.xml 305 SHA256 d5a7eac7c51799e00b12e196488073d6a46c5e264c8857d959760e5b9de5b1fe SHA512 ff219bf7233d4659475fd4e25366d5eef5d3575cd1250d6c9bbddc7351515418ca17730a8df61d102c71b515813b20bb182b355448db16b5fb43a9a46401bd04 WHIRLPOOL d78d9eb038e4d05237c4ff8f4b72d5281e2721428408e3ec048165da965d8b60d1468bdef28902de533022fe1fe15b54edb4521220c01a06d6d74a320a0b3dfc
diff --git a/app-emulation/flannel/files/flannel-docker.conf b/app-emulation/flannel/files/flannel-docker.conf
new file mode 100644
index 000000000000..8f5517776b89
--- /dev/null
+++ b/app-emulation/flannel/files/flannel-docker.conf
@@ -0,0 +1,2 @@
+[Service]
+EnvironmentFile=-/run/flannel/docker
diff --git a/app-emulation/flannel/files/flannel.tmpfilesd b/app-emulation/flannel/files/flannel.tmpfilesd
new file mode 100644
index 000000000000..98e5abd9b20f
--- /dev/null
+++ b/app-emulation/flannel/files/flannel.tmpfilesd
@@ -0,0 +1 @@
+d /run/flannel 0755 root root
diff --git a/app-emulation/flannel/files/flanneld.confd b/app-emulation/flannel/files/flanneld.confd
new file mode 100644
index 000000000000..18686aa5d223
--- /dev/null
+++ b/app-emulation/flannel/files/flanneld.confd
@@ -0,0 +1,2 @@
+# arguments for flannel
+command_args=""
diff --git a/app-emulation/flannel/files/flanneld.initd b/app-emulation/flannel/files/flanneld.initd
new file mode 100644
index 000000000000..d5d966a40d30
--- /dev/null
+++ b/app-emulation/flannel/files/flanneld.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 2016-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Flannel Network Fabric for Containers"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-root}
+group=${group:-root}
+
+command="/usr/bin/${RC_SVCNAME}"
+command_args="${command_args}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/flannel/flannel.log \
+ --stderr /var/log/flannel/flannel.log"
+
+depend() {
+ need net
+}
diff --git a/app-emulation/flannel/files/flanneld.logrotated b/app-emulation/flannel/files/flanneld.logrotated
new file mode 100644
index 000000000000..4108e6305578
--- /dev/null
+++ b/app-emulation/flannel/files/flanneld.logrotated
@@ -0,0 +1,7 @@
+/var/log/flannel/* {
+ missingok
+ size 5M
+ rotate 3
+ compress
+ copytruncate
+}
diff --git a/app-emulation/flannel/files/flanneld.service b/app-emulation/flannel/files/flanneld.service
new file mode 100644
index 000000000000..86e69a49e73f
--- /dev/null
+++ b/app-emulation/flannel/files/flanneld.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Flanneld overlay address etcd agent
+After=network.target
+Before=docker.service
+
+[Service]
+Type=notify
+Environment=FLANNEL_ETCD=http://127.0.0.1:4001,http://127.0.0.1:2379 FLANNEL_ETCD_KEY=/coreos.com/network
+ExecStart=/usr/bin/flanneld -etcd-endpoints=${FLANNEL_ETCD} -etcd-prefix=${FLANNEL_ETCD_KEY} $FLANNEL_OPTIONS
+ExecStartPost=/usr/libexec/flannel/mk-docker-opts.sh -k DOCKER_NETWORK_OPTIONS -d /run/flannel/docker
+
+[Install]
+RequiredBy=docker.service
diff --git a/app-emulation/flannel/flannel-0.8.0-r2.ebuild b/app-emulation/flannel/flannel-0.8.0-r2.ebuild
new file mode 100644
index 000000000000..5135efe94f88
--- /dev/null
+++ b/app-emulation/flannel/flannel-0.8.0-r2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 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
+}
diff --git a/app-emulation/flannel/flannel-0.9.0.ebuild b/app-emulation/flannel/flannel-0.9.0.ebuild
new file mode 100644
index 000000000000..5135efe94f88
--- /dev/null
+++ b/app-emulation/flannel/flannel-0.9.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 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
+}
diff --git a/app-emulation/flannel/metadata.xml b/app-emulation/flannel/metadata.xml
new file mode 100644
index 000000000000..26007a60b41b
--- /dev/null
+++ b/app-emulation/flannel/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">coreos/flannel</remote-id>
+ </upstream>
+</pkgmetadata>