Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
void-packages/srcpkgs/lxd/template
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (35 sloc)
1.34 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Template file for 'lxd' | |
pkgname=lxd | |
version=5.9 | |
revision=2 | |
build_style=go | |
go_import_path=github.com/lxc/lxd | |
go_build_tags=libsqlite3 | |
go_package="${go_import_path}/lxd | |
${go_import_path}/lxc | |
${go_import_path}/lxc-to-lxd | |
${go_import_path}/fuidshift | |
${go_import_path}/lxd-benchmark | |
${go_import_path}/lxd-user" | |
hostmakedepends="pkg-config git" | |
makedepends="lxc-devel acl-devel dqlite-devel eudev-libudev-devel" | |
depends="lxc acl acl-progs rsync squashfs-tools xz dnsmasq iptables attr-progs" | |
short_desc="Next generation system container manager" | |
maintainer="Cameron Nemo <cam@nohom.org>" | |
license="Apache-2.0" | |
homepage="https://linuxcontainers.org/lxd" | |
changelog="https://github.com/lxc/lxd/releases" | |
distfiles="https://linuxcontainers.org/downloads/lxd/lxd-${version}.tar.gz" | |
checksum=a24cf7fbe3e5527a34deda7e8e92f17c05a51498723821f69b146d1e8e58117f | |
system_groups="lxd" | |
# whitelist dqlite LDFLAGS | |
export CGO_LDFLAGS_ALLOW='-Wl,-z,now' | |
post_build() { | |
# these need special tags and/or LDFLAGS | |
CGO_LDFLAGS="$CGO_LDFLAGS -static" go install -p "$XBPS_MAKEJOBS" -mod=vendor -x -tags "agent" -ldflags "${go_ldflags}" "${go_import_path}/lxd-agent" | |
go install -p "$XBPS_MAKEJOBS" -mod=vendor -x -tags "netgo" -ldflags "${go_ldflags}" "${go_import_path}/lxd-migrate" | |
} | |
post_install() { | |
vinstall scripts/bash/lxd-client 644 /usr/share/bash-completion/completions lxd | |
vsv lxd | |
} |