lxc: enable gnutls and cgmanager support (only in native builds).

This commit is contained in:
Juan RP 2015-02-04 13:31:40 +01:00
parent 079929ce3e
commit 5e8c29441f

View file

@ -3,12 +3,13 @@ _desc="Linux Containers"
pkgname=lxc
version=1.1.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-doc --enable-seccomp --disable-apparmor --with-distro=none
configure_args="--enable-doc --enable-seccomp
--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"
makedepends="libcap-devel libseccomp-devel gnutls-devel"
short_desc="${_desc} - utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://linuxcontainers.org"
@ -23,6 +24,12 @@ make_dirs="
/var/lxc/containers 0755 root root
/var/lxc/log 0755 root root"
# XXX libnih cannot be cross compiled due to help2man usage.
if [ -z "$CROSS_BUILD" ]; then
configure_args+=" --enable-cgmanager"
makedepends+=" libcgmanager-devel"
fi
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