PKG_NAME:=lxc
PKG_VERSION:=4.0.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://linuxcontainers.org/downloads/lxc/
PKG_LICENSE:=LGPL-2.1-or-later BSD-2-Clause GPL-2.0
PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
-PKG_BUILD_DEPENDS:=lua
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
DEPENDS:= lxc +libcap +libpthread +LXC_SECCOMP:libseccomp +libopenssl
endef
-define Package/lxc-lua
- $(call Package/lxc/Default)
- TITLE:=LXC Lua bindings
- DEPENDS:= lxc +liblua +liblxc
-endef
-
define Package/lxc-init
$(call Package/lxc/Default)
TITLE:=LXC Lua bindings
--disable-examples \
--disable-gnutls \
--disable-selinux \
- --disable-python \
- --enable-lua=yes \
- --with-lua-pc="$(STAGING_DIR)/usr/lib/pkgconfig/lua.pc"
+ --disable-python
TARGET_CFLAGS += -Wno-format-nonliteral
TARGET_LDFLAGS += -lgcc_eh
CONFIGURE_ARGS += --disable-seccomp
endif
-MAKE_FLAGS += \
- LUA_INSTALL_CMOD="/usr/lib/lua" \
- LUA_INSTALL_LMOD="/usr/lib/lua"
-
-
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/lxc/
$(CP) \
$(1)/usr/lib/
endef
-define Package/lxc-lua/install
- $(INSTALL_DIR) $(1)/usr/lib/lua
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/share/lua/5.1/lxc.lua \
- $(1)/usr/lib/lua/
- $(INSTALL_DIR) $(1)/usr/lib/lua/lxc
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/lua/5.1/lxc/core.so \
- $(1)/usr/lib/lua/lxc/
-endef
-
define Package/lxc-init/install
$(INSTALL_DIR) $(1)/sbin
$(CP) \
$(eval $(call BuildPackage,lxc-configs))
$(eval $(call BuildPackage,lxc-templates))
$(eval $(call BuildPackage,liblxc))
-$(eval $(call BuildPackage,lxc-lua))
$(eval $(call BuildPackage,lxc-init))
$(eval $(call BuildPackage,lxc-auto))
$(eval $(call BuildPackage,lxc-unprivileged))