summaryrefslogtreecommitdiff
path: root/libraries/libvirt/libvirt.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libvirt/libvirt.SlackBuild')
-rw-r--r--libraries/libvirt/libvirt.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/libraries/libvirt/libvirt.SlackBuild b/libraries/libvirt/libvirt.SlackBuild
index c6f5259b16..c1941baaed 100644
--- a/libraries/libvirt/libvirt.SlackBuild
+++ b/libraries/libvirt/libvirt.SlackBuild
@@ -5,7 +5,7 @@
# Maintained by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=libvirt
-VERSION=${VERSION:-4.0.0}
+VERSION=${VERSION:-4.5.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -51,10 +51,10 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# we have sysctld files in /etc/sysctl.d
-sed -i "s|(prefix)/lib/sysctl|(sysconfdir)/sysctl|" daemon/Makefile.in
+sed -i "s|(prefix)/lib/sysctl|(sysconfdir)/sysctl|" src/Makefile.in
patch -p1 < $CWD/use-virtgroup-in-polkit-rules.diff
-sed -i -e "s,@VIRTGROUP@,$VIRTGROUP,g" daemon/libvirt.rules
+sed -i -e "s,@VIRTGROUP@,$VIRTGROUP,g" src/remote/libvirtd.rules
CFLAGS="$SLKCFLAGS" \
./configure \
@@ -101,6 +101,10 @@ sed -i \
-e "s|^\#group\ =\ \"root\"|group = \"$VIRTGROUP\"|" \
$PKG/etc/libvirt/qemu.conf
+# disable seccomp support or else VMs won't start with new libvirt/qemu combo
+sed -i "s|^\#seccomp_sandbox = 1|seccomp_sandbox = 0|" \
+ $PKG/etc/libvirt/qemu.conf
+
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done