58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
# Template file for 'lxc'
|
|
_desc="Linux Containers"
|
|
|
|
pkgname=lxc
|
|
version=1.1.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-doc --enable-seccomp --enable-cgmanager
|
|
--enable-capabilities --disable-apparmor --with-distro=none
|
|
--with-rootfs-path=/var/lxc/containers --with-log-path=/var/lxc/log"
|
|
hostmakedepends="pkg-config docbook2x"
|
|
makedepends="libcap-devel libseccomp-devel gnutls-devel libcgmanager-devel"
|
|
short_desc="${_desc} - utilities"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://linuxcontainers.org"
|
|
license="LGPL-2.1"
|
|
distfiles="http://linuxcontainers.org/downloads/lxc-${version}.tar.gz"
|
|
checksum=302da0ddc16a3a3022f51bc69570f36964af4b9588906ed149078dc37ed33a97
|
|
|
|
build_options="systemd"
|
|
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() {
|
|
sed -e 's|"\\"-//Davenport//DTD DocBook V3.0//EN\\""|"\\"-//OASIS//DTD DocBook XML\\" \\"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\\""|' -i configure
|
|
sed -e 's,docbook2x-man,docbook2man,g' -i configure
|
|
}
|
|
post_install() {
|
|
if [ "$build_option_systemd" ]; then
|
|
vinstall ${FILESDIR}/service 644 usr/lib/systemd/system lxc@.service
|
|
fi
|
|
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"
|
|
}
|
|
}
|