lxc: update to 1.0.3
authorLuka Perkov <luka@openwrt.org>
Wed, 21 May 2014 13:07:47 +0000 (13:07 +0000)
committerLuka Perkov <luka@openwrt.org>
Wed, 21 May 2014 13:07:47 +0000 (13:07 +0000)
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 40817

utils/lxc/Makefile
utils/lxc/patches/010-compile.patch
utils/lxc/patches/015-getline.patch

index 807aa874902a61a0cd094273d7d576bdf3eee272..f8a77be0bbb8e503093e85735bc43e1ce9408227 100644 (file)
@@ -8,14 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lxc
-PKG_VERSION:=2014-01-25
-PKG_RELEASE=$(PKG_SOURCE_VERSION)
+PKG_VERSION:=1.0.3
+PKG_RELEASE:=1
 
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_URL:=git://github.com/lxc/lxc.git
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_VERSION:=0b3a6504e51795e738de8e017c22d209a93bc169
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://linuxcontainers.org/downloads/
+PKG_MD5SUM:=55873b1411a606397309aa6c4c4263b3
 
 PKG_BUILD_DEPENDS:=lua
 PKG_BUILD_PARALLEL:=1
@@ -28,7 +26,7 @@ LXC_APPLETS_BIN += \
        freeze info monitor snapshot start stop unfreeze unshare usernsexec wait
 
 LXC_APPLETS_LIB += \
-       init monitord user-nic
+       monitord user-nic
 
 LXC_SCRIPTS += \
        checkconfig ls top
@@ -88,6 +86,12 @@ define Package/lxc-lua
   DEPENDS:= lxc +liblua +liblxc +luafilesystem
 endef
 
+define Package/lxc-init
+  $(call Package/lxc/Default)
+  TITLE:=LXC Lua bindings
+  DEPENDS:= lxc +liblxc
+endef
+
 CONFIGURE_ARGS += \
        --disable-apparmor \
        --disable-doc \
@@ -177,14 +181,21 @@ endef
 define Package/lxc-lua/install
        $(INSTALL_DIR) $(1)/usr/lib/lua
        $(CP) \
-               $(PKG_INSTALL_DIR)/usr/lib/lua/lxc.lua \
+               $(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/lxc/core.so \
+               $(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) \
+               $(PKG_INSTALL_DIR)/usr/sbin/init.lxc \
+               $(1)/sbin/
+endef
+
 define GenPlugin
   define Package/lxc-$(1)
     $(call Package/lxc/Default)
index 0b597710d0e3f2cefe91a23241e5531093fed192..6f12c382abc6a67ced413201aac50b6f4fedbea9 100644 (file)
@@ -8,7 +8,7 @@
 -# for some distro-specific build options.
 -AC_MSG_CHECKING([host distribution])
 -AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, oracle, centos, fedora, suse, gentoo, debian, arch, slackware, paldo, openmandriva or pardus.]))
--if test "z$with_distro" = "z"; then
+-if type lsb_release >/dev/null 2>&1 && test "z$with_distro" = "z"; then
 -      with_distro=`lsb_release -is`
 -fi
 -if test "z$with_distro" = "z"; then
index d56d62ebd24f76a9f0c79db5935cde5d0f23cbf1..e2f002af99f91d58338da003b6d6bce709975ffe 100644 (file)
@@ -1,6 +1,6 @@
 --- a/src/lxc/utils.h
 +++ b/src/lxc/utils.h
-@@ -44,11 +44,7 @@ extern const char *get_rundir(void);
+@@ -44,11 +44,7 @@ extern char *get_rundir(void);
  extern const char *lxc_global_config_value(const char *option_name);
  
  /* Define getline() if missing from the C library */