22 lines
564 B
Bash
22 lines
564 B
Bash
# Template file for 'flannel'
|
|
pkgname=flannel
|
|
version=0.7.1
|
|
revision=2
|
|
build_style=go
|
|
short_desc="Etcd backed network fabric for containers"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
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=3c3148eac3537fba6c5377922366ed36b1415d20111434172c5c42fec74db366
|
|
|
|
pre_build() {
|
|
CGO_CFLAGS="${CGO_CFLAGS/-O2/}" # Disable optimizations because of a cgo bug in Go 1.6
|
|
}
|
|
|
|
post_install() {
|
|
vsv flannel
|
|
}
|