lxd-lts: upgrade to 5.0.0

This commit is contained in:
Cameron Nemo 2022-05-09 11:34:59 -07:00 committed by Echo
parent 1536552792
commit f164be9ae1
3 changed files with 24 additions and 20 deletions

View file

@ -1,6 +1,6 @@
Start lxd service: Start lxd service:
$ sudo ln -s /etc/sv/lxd /var/service $ sudo ln -s /etc/sv/lxd /var/service/
Run LXD initialization: Run LXD initialization:

View file

@ -6,4 +6,6 @@ fi
if ! mountpoint -q "${_systemd_cgrp}"; then if ! mountpoint -q "${_systemd_cgrp}"; then
mount -t cgroup -o none,name=systemd cgroup ${_systemd_cgrp} mount -t cgroup -o none,name=systemd cgroup ${_systemd_cgrp}
fi fi
exec lxd --group lxd 2>&1
[ -r conf ] && . ./conf
exec lxd --group lxd ${OPTS:- --verbose}

View file

@ -1,36 +1,38 @@
# Template file for 'lxd-lts' # Template file for 'lxd-lts'
pkgname=lxd-lts pkgname=lxd-lts
version=4.0.4 version=5.0.0
revision=1 revision=1
wrksrc="lxd-$version" wrksrc="lxd-$version"
build_style=go build_style=go
go_import_path="github.com/lxc/lxd" go_import_path=github.com/lxc/lxd
go_build_tags="libsqlite3" go_build_tags=libsqlite3
go_package="${go_import_path}/lxd ${go_import_path}/lxc go_package="${go_import_path}/lxd
${go_import_path}/lxd-p2c ${go_import_path}/fuidshift" ${go_import_path}/lxc
hostmakedepends="pkg-config" ${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" makedepends="lxc-devel acl-devel dqlite-devel eudev-libudev-devel"
depends="lxc acl acl-progs rsync squashfs-tools xz dnsmasq iptables" depends="lxc acl acl-progs rsync squashfs-tools xz dnsmasq iptables attr-progs"
short_desc="Next generation system container manager (long term support channel)" short_desc="Next generation system container manager (long term support channel)"
maintainer="Cameron Nemo <cnemo@tutanota.com>" maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="Apache-2.0" license="Apache-2.0"
homepage="https://linuxcontainers.org/lxd" homepage="https://linuxcontainers.org/lxd"
distfiles="https://linuxcontainers.org/downloads/lxd/${wrksrc}.tar.gz" changelog="https://github.com/lxc/lxd/releases"
checksum=372a666b84c7cbcb7ccbffbf4aa04a05b2fe22e5e0aafa022b700bbf211557f6 distfiles="https://linuxcontainers.org/downloads/lxd/lxd-${version}.tar.gz"
checksum=a99b7edfb52c8195b2de4988844d32d73be6426f6cff28408250517b238fdef9
conflicts="lxd" conflicts="lxd"
provides="lxd-${version}_${revision}" provides="lxd-${version}_${revision}"
system_groups="lxd" system_groups="lxd"
do_configure() { # whitelist dqlite LDFLAGS
# the LXD tarball packages up the required dependencies export CGO_LDFLAGS_ALLOW='-Wl,-z,now'
ln -s "$wrksrc/_dist" "$GOPATH"
}
do_build() { post_build() {
# don't go-get the dependencies, just install with what's there # these need special tags and/or LDFLAGS
cd "$GOSRCPATH" CGO_LDFLAGS="$CGO_LDFLAGS -static" go install -p "$XBPS_MAKEJOBS" -mod=vendor -x -tags "agent" -ldflags "${go_ldflags}" "${go_import_path}/lxd-agent"
go_package=${go_package:-$go_import_path} go install -p "$XBPS_MAKEJOBS" -mod=vendor -x -tags "netgo" -ldflags "${go_ldflags}" "${go_import_path}/lxd-migrate"
go install -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
} }
post_install() { post_install() {