system/virt-viewer: Added (graphical display for libvirt VMs)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Zak B. Elep 2012-05-21 14:18:37 -04:00 committed by Erik Hanson
parent c43767b9f1
commit 57fa3ac228
5 changed files with 132 additions and 0 deletions

11
system/virt-viewer/README Normal file
View file

@ -0,0 +1,11 @@
virt-viewer (lightweight graphical display for libvirt VMs)
The "Virtual Machine Viewer" application (virt-viewer for short)
is a lightweight interface for interacting with the graphical
display of a libvirt guest OS. It is intended as a replacement for
the traditional vncviewer client, since the latter does not support
SSL/TLS encryption of x509 certificate authentication.
This software requires gtk-vnc, and optionally, spice. If built
without libvirt (>= 0.9.7), this package will only contain the
remote-viewer client, a simple VNC/SPICE viewer.

View file

@ -0,0 +1,5 @@
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
virt-viewer: virt-viewer (lightweight graphical display for libvirt VMs)
virt-viewer:
virt-viewer: The "Virtual Machine Viewer" application (virt-viewer for short)
virt-viewer: is a lightweight interface for interacting with the graphical
virt-viewer: display of a libvirt guest OS. It is intended as a replacement for
virt-viewer: the traditional vncviewer client, since the latter does not support
virt-viewer: SSL/TLS encryption of x509 certificate authentication.
virt-viewer:
virt-viewer: This software requires gtk-vnc, and optionally, spice. If built
virt-viewer: without libvirt (>= 0.9.7), this package will only contain the
virt-viewer: remote-viewer client, a simple VNC/SPICE viewer.

View file

@ -0,0 +1,87 @@
#!/bin/sh
# Slackware build script for virt-viewer
# Written by Zak B. Elep, <zakame@zakame.net>
PRGNAM=virt-viewer
VERSION=${VERSION:-0.5.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
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"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
README NEWS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# If there's a ChangeLog, installing at least part of the recent history
# is useful, but don't let it get totally out of control:
if [ -r ChangeLog ]; then
DOCSDIR=$(echo $PKG/usr/doc/${PRGNAM}-$VERSION)
cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
touch -r ChangeLog $DOCSDIR/ChangeLog
fi
mkdir -p $PKG/install
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.${PKGTYPE:-tgz}

View file

@ -0,0 +1,10 @@
PRGNAM="virt-viewer"
VERSION="0.5.2"
HOMEPAGE="http://virt-manager.org"
DOWNLOAD="http://virt-manager.org/download/sources/virt-viewer/virt-viewer-0.5.2.tar.gz"
MD5SUM="4a8e1c4d69cff00d89a13efb26ec1050"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Zak B. Elep"
EMAIL="zakame@zakame.net"
APPROVED="dsomero"