aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorZak B. Elep <zakame@zakame.net>2012-05-21 14:18:37 -0400
committerErik Hanson <erik@slackbuilds.org>2012-05-21 17:58:16 -0500
commit57fa3ac22863584aa31519480c2b9a36b52a7e95 (patch)
tree3b096f1d3623a8d15cdc03b1aff954b30d505669 /system
parentc43767b9f187d3b9668f2b85279d2f602618bc2c (diff)
system/virt-viewer: Added (graphical display for libvirt VMs)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/virt-viewer/README11
-rw-r--r--system/virt-viewer/doinst.sh5
-rw-r--r--system/virt-viewer/slack-desc19
-rw-r--r--system/virt-viewer/virt-viewer.SlackBuild87
-rw-r--r--system/virt-viewer/virt-viewer.info10
5 files changed, 132 insertions, 0 deletions
diff --git a/system/virt-viewer/README b/system/virt-viewer/README
new file mode 100644
index 0000000000000..c4e3eee334b45
--- /dev/null
+++ b/system/virt-viewer/README
@@ -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.
diff --git a/system/virt-viewer/doinst.sh b/system/virt-viewer/doinst.sh
new file mode 100644
index 0000000000000..8542d1c18e4c0
--- /dev/null
+++ b/system/virt-viewer/doinst.sh
@@ -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
diff --git a/system/virt-viewer/slack-desc b/system/virt-viewer/slack-desc
new file mode 100644
index 0000000000000..d3fb7008bdbbe
--- /dev/null
+++ b/system/virt-viewer/slack-desc
@@ -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.
diff --git a/system/virt-viewer/virt-viewer.SlackBuild b/system/virt-viewer/virt-viewer.SlackBuild
new file mode 100644
index 0000000000000..f3bc63ed7d4ca
--- /dev/null
+++ b/system/virt-viewer/virt-viewer.SlackBuild
@@ -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}
diff --git a/system/virt-viewer/virt-viewer.info b/system/virt-viewer/virt-viewer.info
new file mode 100644
index 0000000000000..73a1e142a8a91
--- /dev/null
+++ b/system/virt-viewer/virt-viewer.info
@@ -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"