21 lines
567 B
Bash
21 lines
567 B
Bash
# Template file for 'flannel'
|
|
pkgname=flannel
|
|
version=0.6.0
|
|
revision=1
|
|
build_style=go
|
|
short_desc="Etcd backed network fabric for containers"
|
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
|
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=906747b8cd28906fbc35f7e67a96a2b24af9dc6da60f5fe08a5c032ef4b180b4
|
|
|
|
pre_build() {
|
|
CGO_CFLAGS="${CGO_CFLAGS/-O2/}" # Disable optimizations because of a cgo bug in Go 1.6
|
|
}
|
|
|
|
post_install() {
|
|
vsv flannel
|
|
}
|