21 lines
567 B
Bash
21 lines
567 B
Bash
# Template file for 'flannel'
|
|
pkgname=flannel
|
|
version=0.6.2
|
|
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=40c315ee78e50b97d2e48e5c32e2d07690b7361fe1ca09efe16d3edda4bc7e33
|
|
|
|
pre_build() {
|
|
CGO_CFLAGS="${CGO_CFLAGS/-O2/}" # Disable optimizations because of a cgo bug in Go 1.6
|
|
}
|
|
|
|
post_install() {
|
|
vsv flannel
|
|
}
|