lxd: update to 3.8.

This commit is contained in:
Cameron Nemo 2018-12-13 09:32:25 -08:00 committed by Michael Aldridge
parent f3e8ab9355
commit edb1c5ff59
2 changed files with 27 additions and 12 deletions

View File

@ -3,5 +3,7 @@ _systemd_cgrp="/sys/fs/cgroup/systemd"
if [ ! -d ${_systemd_cgrp} ]; then if [ ! -d ${_systemd_cgrp} ]; then
mkdir ${_systemd_cgrp} mkdir ${_systemd_cgrp}
fi fi
mount -t cgroup -o none,name=systemd cgroup ${_systemd_cgrp} if ! mountpoint -q "${_systemd_cgrp}"; then
mount -t cgroup -o none,name=systemd cgroup ${_systemd_cgrp}
fi
exec lxd --group lxd 2>&1 exec lxd --group lxd 2>&1

View File

@ -1,22 +1,35 @@
broken="failing to compile with go-1.11"
# Template file for 'lxd' # Template file for 'lxd'
pkgname=lxd pkgname=lxd
version=3.2 version=3.8
revision=2 revision=1
build_style=go build_style=go
go_import_path=github.com/lxc/lxd go_import_path="github.com/lxc/lxd"
go_package="${go_import_path}/lxd ${go_import_path}/lxc" go_build_tags="libsqlite3"
hostmakedepends="git bzr pkg-config" go_package="${go_import_path}/lxd ${go_import_path}/lxc
makedepends="lxc-devel acl-devel" ${go_import_path}/lxd-p2c ${go_import_path}/fuidshift"
hostmakedepends="pkg-config"
makedepends="lxc-devel acl-devel dqlite-devel"
depends="lxc acl acl-progs rsync squashfs-tools xz dnsmasq iptables" depends="lxc acl acl-progs rsync squashfs-tools xz dnsmasq iptables"
short_desc="LXD is a next generation system container manager" short_desc="Next generation system container manager"
maintainer="iaroki <iaroki@protonmail.com>" maintainer="Cameron Nemo <camerontnorman@gmail.com>"
license="Apache-2.0" license="Apache-2.0"
homepage="https://linuxcontainers.org/lxd" homepage="https://linuxcontainers.org/lxd"
distfiles="https://github.com/lxc/lxd/releases/download/lxd-${version}/lxd-${version}.tar.gz" distfiles="https://linuxcontainers.org/downloads/lxd/${pkgname}-${version}.tar.gz"
checksum=6a388e1e5ad26adf32fbe1abb2f6e35a3307fa8c48e924ee0ed802e246c63da1 checksum=71dd5368a684c7b69699814f2c35c69ace6dd6eebd95fce39c13e44d9d827ea5
system_groups="lxd" system_groups="lxd"
do_configure() {
# the LXD tarball packages up the required dependencies
ln -s "$wrksrc/dist" "$GOPATH"
}
do_build() {
# don't go-get the dependencies, just install with what's there
cd "$GOSRCPATH"
go_package=${go_package:-$go_import_path}
go install -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
}
post_install() { post_install() {
vinstall scripts/bash/lxd-client 644 /usr/share/bash-completion/completions lxd vinstall scripts/bash/lxd-client 644 /usr/share/bash-completion/completions lxd
vlicense COPYING LICENSE vlicense COPYING LICENSE