incus: update to 6.5, various improvements

- move check from incus-user to incus
	- expand readme for opt deps
	- do not log to syslog
	- keep certain tools root-only
	- add simplestreams tool
	- build all cmds
This commit is contained in:
dkwo 2024-08-19 08:23:58 +02:00 committed by classabbyamp
parent 7bef870d6a
commit 235bd98c5a
4 changed files with 21 additions and 14 deletions

View file

@ -9,3 +9,9 @@ containers. For example, the command
will assign a range of 65,536 IDs for users and groups. will assign a range of 65,536 IDs for users and groups.
Some container configurations may require that the `CGROUP_MODE` Some container configurations may require that the `CGROUP_MODE`
variable in `/etc/rc.conf` be set to `unified`. variable in `/etc/rc.conf` be set to `unified`.
Optional dependencies:
To run virtual machines, install `qemu` and `edk2-ovmf`.
To run OCI containers, install `spokeo` and `umoci`.

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
exec 2>&1 exec 2>&1
[ -r conf ] && . ./conf [ -r conf ] && . ./conf
exec /usr/libexec/incus/incusd --group _incus-admin --syslog ${OPTS:- --verbose} exec /usr/libexec/incus/incusd --group _incus-admin ${OPTS:- --verbose}

View file

@ -1,17 +1,12 @@
# Template file for 'incus' # Template file for 'incus'
pkgname=incus pkgname=incus
version=6.3.0 version=6.5.0
revision=5 revision=1
build_style=go build_style=go
build_helper=qemu build_helper=qemu
go_import_path=github.com/lxc/incus/v6 go_import_path=github.com/lxc/incus/v6
go_build_tags="libsqlite3" go_build_tags="libsqlite3"
go_package="${go_import_path}/cmd/incus go_package="${go_import_path}/cmd/..."
${go_import_path}/cmd/incus-benchmark
${go_import_path}/cmd/incus-user
${go_import_path}/cmd/incusd
${go_import_path}/cmd/lxc-to-incus
${go_import_path}/cmd/fuidshift"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="lxc-devel acl-devel cowsql-devel raft-devel makedepends="lxc-devel acl-devel cowsql-devel raft-devel
libcap-devel libuv-devel sqlite-devel eudev-libudev-devel" libcap-devel libuv-devel sqlite-devel eudev-libudev-devel"
@ -21,7 +16,7 @@ maintainer="dkwo <npiazza@disroot.org>"
license="Apache-2.0" license="Apache-2.0"
homepage="https://linuxcontainers.org/incus" homepage="https://linuxcontainers.org/incus"
distfiles="https://github.com/lxc/incus/archive/refs/tags/v${version}.tar.gz" distfiles="https://github.com/lxc/incus/archive/refs/tags/v${version}.tar.gz"
checksum=7dfb4c17334480af18f2827538b58bedc54e885eab54d224364b973df3183f91 checksum=aabc762bdcfe210b777e6b78e40150c9ffbc798aa39c8b4ba55812dac3ada0ec
system_groups="_incus-admin _incus" system_groups="_incus-admin _incus"
make_dirs=" make_dirs="
/var/lib/incus 0755 root root /var/lib/incus 0755 root root
@ -46,13 +41,18 @@ post_install() {
vinstall "${f}" 700 usr/libexec/incus && rm "${f}" vinstall "${f}" 700 usr/libexec/incus && rm "${f}"
done done
vsv incus vsv incus
# avoid conflict with lxd, lxd-lts # avoid conflict with lxd, lxd-lts
mv ${DESTDIR}/usr/bin/{fuidshift,fuidshift-incus} mv ${DESTDIR}/usr/bin/{fuidshift,fuidshift-incus}
# upstream recommends these should be kept to root only
for _tool in fuidshift-incus lxd-to-incus; do
chmod 700 ${DESTDIR}/usr/bin/${_tool}
done
# generate shell completions # generate shell completions
local incus=${DESTDIR}/usr/bin/incus local _incus=${DESTDIR}/usr/bin/incus
for shell in bash fish zsh; do for _shell in bash fish zsh; do
vtargetrun ${incus} completion ${shell} > scripts/${shell}-completion vtargetrun ${_incus} completion ${_shell} > scripts/${_shell}-completion
done done
vdoc "${FILESDIR}/README.voidlinux" vdoc "${FILESDIR}/README.voidlinux"
@ -73,7 +73,8 @@ incus-client_package() {
incus-tools_package() { incus-tools_package() {
short_desc+=" - tools" short_desc+=" - tools"
pkg_install() { pkg_install() {
for _tool in fuidshift-incus lxc-to-incus lxd-to-incus incus-benchmark incus-migrate; do for _tool in fuidshift-incus lxc-to-incus lxd-to-incus \
incus-benchmark incus-migrate incus-simplestreams; do
vmove usr/bin/${_tool} vmove usr/bin/${_tool}
done done
} }