Skip to content

Commit

Permalink
new package: incus (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkwo committed Dec 4, 2023
1 parent a10e969 commit df28dd1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions srcpkgs/incus/files/incus/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec incus --group incus-admin ${OPTS:- --verbose}
27 changes: 27 additions & 0 deletions srcpkgs/incus/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Template file for 'incus'
pkgname=incus
version=0.3.0
revision=1
build_style=go
go_import_path=github.com/lxc/incus
go_build_tags=libsqlite3
go_package="${go_import_path}/cmd/incus-agent
${go_import_path}/cmd/incus
${go_import_path}/cmd/incus-migrate"
hostmakedepends="pkg-config"
makedepends="lxc-devel acl-devel cowsql-devel raft-devel eudev-libudev-devel"
depends="lxc acl acl-progs rsync squashfs-tools xz dnsmasq iptables attr-progs"
short_desc="Powerful system container and virtual machine manager"
maintainer="dkwo <npiazza@disroot.org>"
license="Apache-2.0"
homepage="https://linuxcontainers.org/incus"
distfiles="https://github.com/lxc/incus/archive/refs/tags/v${version}.tar.gz"
checksum=e49b8ad5a292acbb15635415c159f081e595daa55da6f3bb61bac4c3f326787c
system_groups="incus-admin"

export CGO_LDFLAGS_ALLOW='-Wl,-z,now'
export GOFLAGS="-buildmode=pie"

post_install() {
vsv incus
}

0 comments on commit df28dd1

Please sign in to comment.