From bedb1cf3822b4b29db5567c7fd85976fb5256bfb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 21 Aug 2014 09:40:31 +0200 Subject: [PATCH] lxc: added systemd build option. --- srcpkgs/lxc/template | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srcpkgs/lxc/template b/srcpkgs/lxc/template index 4948815fea..5df501e63d 100644 --- a/srcpkgs/lxc/template +++ b/srcpkgs/lxc/template @@ -3,7 +3,7 @@ _desc="Linux Containers" pkgname=lxc version=1.0.5 -revision=8 +revision=9 build_style=gnu-configure configure_args="--enable-doc --enable-seccomp --disable-apparmor --with-distro=none --with-rootfs-path=/var/lxc/containers --with-log-path=/var/lxc/log" @@ -16,6 +16,7 @@ license="LGPL-2.1" distfiles="http://linuxcontainers.org/downloads/lxc-${version}.tar.gz" checksum=02ac82e69a76d424e5443b9c577e84a8eaafcebf17cfd865eedee147e8ef8844 +build_options="systemd" conf_files="/etc/lxc/default.conf" make_dirs=" /var/lib/lxc 0755 root root @@ -27,7 +28,9 @@ pre_configure() { sed -e 's,docbook2x-man,docbook2man,g' -i configure } post_install() { - vinstall ${FILESDIR}/service 644 usr/lib/systemd/system lxc@.service + if [ "$build_option_systemd" ]; then + vinstall ${FILESDIR}/service 644 usr/lib/systemd/system lxc@.service + fi vmkdir usr/share/bash-completion/completions mv ${DESTDIR}/etc/bash_completion.d/* ${DESTDIR}/usr/share/bash-completion/completions/ # Install void lxc config/template.