35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
# Template file for 'lxd'
|
|
pkgname=lxd
|
|
version=4.6
|
|
revision=1
|
|
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}/lxd-p2c ${go_import_path}/fuidshift"
|
|
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"
|
|
short_desc="Next generation system container manager"
|
|
maintainer="Cameron Nemo <cnemo@tutanota.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://linuxcontainers.org/lxd"
|
|
distfiles="https://linuxcontainers.org/downloads/lxd/lxd-${version}.tar.gz"
|
|
checksum=3702f5eafba6dba2ab21c2119bc74e8b55514d697c1fac80343adeea94d72e04
|
|
system_groups="lxd"
|
|
|
|
_libdir="/usr/lib/sqlite-replication"
|
|
LDFLAGS="-L${XBPS_CROSS_BASE}${_libdir} -Wl,-R${_libdir}"
|
|
# whitelist libcap LDFLAGS (see: https://github.com/lxc/lxd/issues/6727)
|
|
export CGO_LDFLAGS_ALLOW='-Wl,-wrap,pthread_create'
|
|
|
|
do_configure() {
|
|
# the LXD tarball packages up the required dependencies
|
|
ln -s "$wrksrc/_dist" "$GOPATH"
|
|
}
|
|
|
|
post_install() {
|
|
vinstall scripts/bash/lxd-client 644 /usr/share/bash-completion/completions lxd
|
|
vsv lxd
|
|
}
|