diff --git a/common/shlibs b/common/shlibs index 89205185720..cf147a0d88c 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1475,3 +1475,4 @@ libgwengui-cpp.so.0 gwenhywfar-4.10.0beta_1 libaqbanking.so.34 aqbanking-5.0.25_1 libxmlsec1.so.1 xmlsec1-1.2.19_1 libcheck.so.0 check-0.9.12_1 +liblxc.so.1 liblxc-1.0.0_1 diff --git a/srcpkgs/lxc/files/service b/srcpkgs/lxc/files/service new file mode 100644 index 00000000000..4c0c34e3ea1 --- /dev/null +++ b/srcpkgs/lxc/files/service @@ -0,0 +1,11 @@ +[Unit] +Description=%i LXC +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/lxc-start -d -n %i +ExecStop=/usr/bin/lxc-stop -n %i + +[Install] +WantedBy=multi-user.target diff --git a/srcpkgs/lxc/template b/srcpkgs/lxc/template index 63458c3dd98..7d04e52c629 100644 --- a/srcpkgs/lxc/template +++ b/srcpkgs/lxc/template @@ -2,8 +2,8 @@ _desc="Linux Containers" pkgname=lxc -version=0.9.0 -revision=2 +version=1.0.0 +revision=1 conf_files="/etc/lxc/default.conf" build_style=gnu-configure configure_args="--enable-doc --enable-seccomp --disable-apparmor --with-distro=none @@ -15,7 +15,7 @@ maintainer="Juan RP " homepage="http://linuxcontainers.org" license="LGPL-2.1" distfiles="http://linuxcontainers.org/downloads/lxc-${version}.tar.gz" -checksum=1e1767eae6cc5fbf892c0e193d25da420ba19f2db203716c38f7cdea3b654120 +checksum=0992212ddaad01dfe8c048e130566b73dd5f34191585f36bdac07a4f8a91f3bd make_dirs=" /var/lib/lxc 0755 root root @@ -23,6 +23,7 @@ make_dirs=" /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 } @@ -42,3 +43,7 @@ lxc-devel_package() { vmove "usr/lib/*.so" } } + +post_install() { + vinstall ${FILESDIR}/service 644 usr/lib/systemd/system lxc@.service +}