2013-02-12 12:21:26 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# lxc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-12-17 22:20:47 +01:00
|
|
|
LXC_VERSION = 2.0.6
|
2016-01-23 15:37:51 +01:00
|
|
|
LXC_SITE = https://linuxcontainers.org/downloads/lxc
|
2013-02-12 12:21:26 +01:00
|
|
|
LXC_LICENSE = LGPLv2.1+
|
|
|
|
LXC_LICENSE_FILES = COPYING
|
2014-07-04 15:35:31 +02:00
|
|
|
LXC_DEPENDENCIES = libcap host-pkgconf
|
2016-12-18 15:13:53 +01:00
|
|
|
LXC_INSTALL_STAGING = YES
|
2016-12-19 16:26:18 +01:00
|
|
|
# we're patching configure.ac
|
|
|
|
LXC_AUTORECONF = YES
|
|
|
|
|
|
|
|
# This patch adds --enable-gnutls option
|
|
|
|
LXC_PATCH = \
|
|
|
|
https://github.com/lxc/lxc/commit/64fa248372c90c9d98fc9d67f80327d865c11a48.patch
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
LXC_CONF_OPTS = --disable-apparmor --with-distro=buildroot \
|
2016-12-18 12:04:52 +01:00
|
|
|
--disable-python --disable-werror \
|
2014-07-06 01:34:01 +02:00
|
|
|
$(if $(BR2_PACKAGE_BASH),,--disable-bash)
|
2013-02-12 12:21:26 +01:00
|
|
|
|
2016-12-19 16:26:18 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
|
|
LXC_CONF_OPTS += --enable-gnutls
|
|
|
|
LXC_DEPENDENCIES += gnutls
|
|
|
|
else
|
|
|
|
LXC_CONF_OPTS += --disable-gnutls
|
|
|
|
endif
|
|
|
|
|
2016-02-21 18:34:58 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
|
|
|
LXC_CONF_OPTS += --enable-seccomp
|
|
|
|
LXC_DEPENDENCIES += libseccomp
|
|
|
|
else
|
|
|
|
LXC_CONF_OPTS += --disable-seccomp
|
|
|
|
endif
|
|
|
|
|
2016-12-18 12:04:52 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y)
|
|
|
|
LXC_CONF_OPTS += --enable-lua
|
|
|
|
LXC_DEPENDENCIES += luainterpreter
|
|
|
|
ifeq ($(BR2_PACKAGE_LUAJIT),y)
|
|
|
|
# By default, lxc will only search for lua.pc
|
|
|
|
LXC_CONF_OPTS += --with-lua-pc=luajit
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
LXC_CONF_OPTS += --disable-lua
|
|
|
|
endif
|
|
|
|
|
2013-02-12 12:21:26 +01:00
|
|
|
$(eval $(autotools-package))
|