void-packages/srcpkgs/lxc/template
Đoàn Trần Công Danh 0edf6d35eb lxc: fix distfiles location
2021-07-10 23:56:58 +07:00

58 lines
1.7 KiB
Bash

# Template file for 'lxc'
pkgname=lxc
version=4.0.6
revision=2
build_style=gnu-configure
configure_args="--enable-doc --enable-seccomp
--enable-capabilities --enable-apparmor --with-distro=none
--with-rootfs-path=/var/lxc/containers --with-log-path=/var/lxc/log"
hostmakedepends="automake libtool pkg-config docbook2x"
makedepends="libcap-devel libseccomp-devel gnutls-devel libapparmor-devel"
depends="xz wget gnupg"
_desc="Linux Containers"
short_desc="${_desc} - utilities"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="LGPL-2.1-or-later"
homepage="https://linuxcontainers.org"
distfiles="https://linuxcontainers.org/downloads/lxc/lxc-${version}.tar.gz"
checksum=9165dabc0bb6ef7f2fda2009aee90b20fbefe77ed8008347e9f06048eba1e463
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"
pre_configure() {
# make sure the build uses the new docbook2x format,
# even though the command has the old "docbook2man" name
sed -e 's,xdocbook2man,xforcedocbook2x,g' -i configure.ac
./autogen.sh
}
post_install() {
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/etc/bash_completion.d/* ${DESTDIR}/usr/share/bash-completion/completions/
# 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="libcap-devel 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"
}
}