summaryrefslogtreecommitdiff
path: root/libraries/libvirt/libvirt.SlackBuild
diff options
context:
space:
mode:
authorMichal Bialozor <bialyy@o2.pl>2011-10-07 09:15:26 -0300
committerRobby Workman <rworkman@slackbuilds.org>2011-10-11 21:20:15 -0500
commit427f5dc1e8e25cece9b976ec481982eefb74bd5b (patch)
treeec0fdd8cea233d17de0130442ce050175b44e98e /libraries/libvirt/libvirt.SlackBuild
parent3dd6c375469b321cdbaa62200982249c4ce89700 (diff)
downloadslackbuilds-427f5dc1e8e25cece9b976ec481982eefb74bd5b.tar.gz
libraries/libvirt: Updated for version 0.9.4.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/libvirt/libvirt.SlackBuild')
-rw-r--r--libraries/libvirt/libvirt.SlackBuild57
1 files changed, 49 insertions, 8 deletions
diff --git a/libraries/libvirt/libvirt.SlackBuild b/libraries/libvirt/libvirt.SlackBuild
index f47c3a922b..bee24a10ae 100644
--- a/libraries/libvirt/libvirt.SlackBuild
+++ b/libraries/libvirt/libvirt.SlackBuild
@@ -4,7 +4,7 @@
# Written by Michal Bialozor <bialyy@o2.pl>
PRGNAM=libvirt
-VERSION=0.7.7
+VERSION=0.9.4
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,13 +69,54 @@ make \
EXAMPLE_DIR=/usr/doc/$PRGNAM-$VERSION/examples \
install-strip DESTDIR=$PKG
-# Don't clobber existing config files on upgrade
-mv $PKG/etc/libvirt/libvirtd.conf $PKG/etc/libvirt/libvirtd.conf.new
-mv $PKG/etc/libvirt/qemu.conf $PKG/etc/libvirt/qemu.conf.new
+mv $PKG/etc/libvirt/qemu.conf \
+ $PKG/etc/libvirt/qemu.conf.new
mv $PKG/etc/libvirt/qemu/networks/default.xml \
$PKG/etc/libvirt/qemu/networks/default.xml.new
-mv $PKG/etc/logrotate.d/libvirtd $PKG/etc/logrotate.d/libvirtd.new
-mv $PKG/etc/sasl2/libvirt.conf $PKG/etc/sasl2/libvirt.conf.new
+mv $PKG/etc/libvirt/libvirtd.conf \
+ $PKG/etc/libvirt/libvirtd.conf.new
+mv $PKG/etc/libvirt/nwfilter/qemu-announce-self.xml \
+ $PKG/etc/libvirt/nwfilter/qemu-announce-self.xml.new
+mv $PKG/etc/libvirt/nwfilter/no-arp-spoofing.xml \
+ $PKG/etc/libvirt/nwfilter/no-arp-spoofing.xml.new
+mv $PKG/etc/libvirt/nwfilter/no-mac-spoofing.xml \
+ $PKG/etc/libvirt/nwfilter/no-mac-spoofing.xml.new
+mv $PKG/etc/libvirt/nwfilter/allow-incoming-ipv4.xml \
+ $PKG/etc/libvirt/nwfilter/allow-incoming-ipv4.xml.new
+mv $PKG/etc/libvirt/nwfilter/allow-dhcp-server.xml \
+ $PKG/etc/libvirt/nwfilter/allow-dhcp-server.xml.new
+mv $PKG/etc/libvirt/nwfilter/allow-arp.xml \
+ $PKG/etc/libvirt/nwfilter/allow-arp.xml.new
+mv $PKG/etc/libvirt/nwfilter/no-other-rarp-traffic.xml \
+ $PKG/etc/libvirt/nwfilter/no-other-rarp-traffic.xml.new
+mv $PKG/etc/libvirt/nwfilter/clean-traffic.xml \
+ $PKG/etc/libvirt/nwfilter/clean-traffic.xml.new
+mv $PKG/etc/libvirt/nwfilter/qemu-announce-self-rarp.xml \
+ $PKG/etc/libvirt/nwfilter/qemu-announce-self-rarp.xml.new
+mv $PKG/etc/libvirt/nwfilter/no-mac-broadcast.xml \
+ $PKG/etc/libvirt/nwfilter/no-mac-broadcast.xml.new
+mv $PKG/etc/libvirt/nwfilter/no-ip-spoofing.xml \
+ $PKG/etc/libvirt/nwfilter/no-ip-spoofing.xml.new
+mv $PKG/etc/libvirt/nwfilter/allow-dhcp.xml \
+ $PKG/etc/libvirt/nwfilter/allow-dhcp.xml.new
+mv $PKG/etc/libvirt/nwfilter/no-other-l2-traffic.xml \
+ $PKG/etc/libvirt/nwfilter/no-other-l2-traffic.xml.new
+mv $PKG/etc/libvirt/nwfilter/allow-ipv4.xml \
+ $PKG/etc/libvirt/nwfilter/allow-ipv4.xml.new
+mv $PKG/etc/libvirt/nwfilter/no-ip-multicast.xml \
+ $PKG/etc/libvirt/nwfilter/no-ip-multicast.xml.new
+mv $PKG/etc/libvirt/lxc.conf \
+ $PKG/etc/libvirt/lxc.conf.new
+mv $PKG/etc/logrotate.d/libvirtd \
+ $PKG/etc/logrotate.d/libvirtd.new
+mv $PKG/etc/logrotate.d/libvirtd.lxc \
+ $PKG/etc/logrotate.d/libvirtd.lxc.new
+mv $PKG/etc/logrotate.d/libvirtd.qemu \
+ $PKG/etc/logrotate.d/libvirtd.qemu.new
+mv $PKG/etc/logrotate.d/libvirtd.uml \
+ $PKG/etc/logrotate.d/libvirtd.uml.new
+mv $PKG/etc/sasl2/libvirt.conf \
+ $PKG/etc/sasl2/libvirt.conf.new
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
@@ -83,9 +124,9 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
ABOUT-NLS AUTHORS ChangeLog COPYING* INSTALL README NEWS TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rm -rf $PKG/usr/share/doc # We've got the TODO already
+rm -rf $PKG/usr/share/doc
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc