Skip to content

Commit

Permalink
lxd: update to 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronNemo committed Apr 23, 2022
1 parent 5d3edf9 commit 8419e1c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions srcpkgs/lxd/template
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Template file for 'lxd'
pkgname=lxd
version=4.19
version=5.0.0
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"
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"
Expand All @@ -16,12 +20,18 @@ 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=6e4cf6cb1549e1b56802d64ad24d812914e0c0102bfcf146bb18a8dcd1fbab57
checksum=a99b7edfb52c8195b2de4988844d32d73be6426f6cff28408250517b238fdef9
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
Expand Down

0 comments on commit 8419e1c

Please sign in to comment.