void-packages/srcpkgs/lxc/template

51 lines
1.3 KiB
Bash

# Template file for 'lxc'
pkgname=lxc
version=5.0.1
revision=2
build_style=meson
configure_args="-Dpam-cgroup=true -Drootfs-mount-path=/var/lxc/containers
-Ddistrosysconfdir=default
-Dlog-path=/var/lxc/log -Dinit-script=[]"
hostmakedepends="pkg-config docbook2x"
makedepends="libcap-devel libseccomp-devel openssl-devel libapparmor-devel
pam-devel"
depends="xz wget"
_desc="Linux Containers"
short_desc="${_desc} - utilities"
maintainer="Cameron Nemo <cam@nohom.org>"
license="LGPL-2.1-or-later"
homepage="https://linuxcontainers.org"
distfiles="https://linuxcontainers.org/downloads/lxc/lxc-${version}.tar.gz"
checksum=d8195423bb1e206f8521d24b6cde4789f043960c7cf065990a9cf741dcfd4222
conf_files="/etc/lxc/default.conf"
make_dirs="
/var/lib/lxc 0755 root root
/var/lxc/containers 0755 root root
/var/lxc/log 0755 root root"
post_install() {
# Install void lxc config/template.
vinstall ${FILESDIR}/void.common.conf 644 usr/share/lxc/config
vinstall ${FILESDIR}/lxc-void 755 usr/share/lxc/templates
vsv lxc-autostart
}
liblxc_package() {
short_desc="${_desc} - shared library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
lxc-devel_package() {
depends="${makedepends} liblxc>=${version}_${revision}"
short_desc="${_desc} - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}