summaryrefslogtreecommitdiff
path: root/libraries/libvirt/libvirt.SlackBuild
diff options
context:
space:
mode:
authorMichal Bialozor <bialyy@o2.pl>2010-05-13 00:32:09 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:32:09 +0200
commit1a4b902d48d207db22514aecf55b0d68686e14e3 (patch)
tree5980479cdf065a9811f22c453c41808558f28d98 /libraries/libvirt/libvirt.SlackBuild
parent4cb059feabd2de8485d9c9456da711de6dd303e2 (diff)
downloadslackbuilds-1a4b902d48d207db22514aecf55b0d68686e14e3.tar.gz
libraries/libvirt: Updated for version 0.7.6
Diffstat (limited to 'libraries/libvirt/libvirt.SlackBuild')
-rw-r--r--libraries/libvirt/libvirt.SlackBuild27
1 files changed, 17 insertions, 10 deletions
diff --git a/libraries/libvirt/libvirt.SlackBuild b/libraries/libvirt/libvirt.SlackBuild
index c710cb842d..c19d363ab9 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.6.2
+VERSION=0.7.6
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -16,26 +16,30 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--bindir=/usr/sbin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
@@ -45,17 +49,15 @@ CFLAGS="$SLKCFLAGS" \
--enable-static=no \
--enable-shared=yes \
--without-xen \
- --build=$ARCH-slackware-linux \
- || exit 1
+ --build=$ARCH-slackware-linux
make \
HTML_DIR=/usr/doc/$PRGNAM-$VERSION \
- EXAMPLE_DIR=/usr/doc/$PRGNAM-$VERSION/examples \
- || exit 1
+ EXAMPLE_DIR=/usr/doc/$PRGNAM-$VERSION/examples
make \
HTML_DIR=/usr/doc/$PRGNAM-$VERSION \
EXAMPLE_DIR=/usr/doc/$PRGNAM-$VERSION/examples \
- install-strip DESTDIR=$PKG || exit 1
+ install-strip DESTDIR=$PKG
# Don't clobber existing config files on upgrade
mv $PKG/etc/libvirt/libvirtd.conf $PKG/etc/libvirt/libvirtd.conf.new
@@ -65,6 +67,11 @@ mv $PKG/etc/libvirt/qemu/networks/default.xml \
mv $PKG/etc/logrotate.d/libvirtd $PKG/etc/logrotate.d/libvirtd.new
mv $PKG/etc/sasl2/libvirt.conf $PKG/etc/sasl2/libvirt.conf.new
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
ABOUT-NLS AUTHORS ChangeLog COPYING* INSTALL README NEWS TODO \
@@ -77,4 +84,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}