From 30e1364a398723b0974f6cdfaab8e1d38eb12220 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Tue, 1 Mar 2016 10:18:42 +0100 Subject: [PATCH] New package: flannel-0.5.5 --- srcpkgs/flannel/files/flannel/run | 3 +++ srcpkgs/flannel/template | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 srcpkgs/flannel/files/flannel/run create mode 100644 srcpkgs/flannel/template diff --git a/srcpkgs/flannel/files/flannel/run b/srcpkgs/flannel/files/flannel/run new file mode 100644 index 0000000000..953f7459bb --- /dev/null +++ b/srcpkgs/flannel/files/flannel/run @@ -0,0 +1,3 @@ +#!/bin/sh +sv check etcd >/dev/null || exit 1 +exec flannel diff --git a/srcpkgs/flannel/template b/srcpkgs/flannel/template new file mode 100644 index 0000000000..bd2c08b872 --- /dev/null +++ b/srcpkgs/flannel/template @@ -0,0 +1,21 @@ +# Template file for 'flannel' +pkgname=flannel +version=0.5.5 +revision=1 +build_style=go +short_desc="Etcd backed network fabric for containers" +maintainer="Andrea Brancaleoni " +depends="etcd" +license="Apache-2.0" +go_import_path="github.com/coreos/flannel" +homepage="https://$go_import_path" +distfiles="$homepage/archive/v${version}.tar.gz" +checksum=dbbcb08c0e70713b0c920387a9967e5b30ef833c8118c847edbbca4f68ff0562 + +pre_build() { + CGO_CFLAGS="${CGO_CFLAGS/-O2/}" # Disable optimizations because of a cgo bug in Go 1.6 +} + +post_install() { + vsv flannel +}