summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2012-02-19 00:23:47 -0600
committerRobby Workman <rworkman@slackbuilds.org>2012-02-20 12:20:44 -0600
commit93778820f9881c72f3045cf0b6dc7bf2d10fc760 (patch)
treeb74e64c2b1163cf1f975e4bf34eb7a72f6f1ea9b
parentb0b1e80e9de7dd0f0cbaadc1e898e708a0169109 (diff)
downloadslackbuilds-93778820f9881c72f3045cf0b6dc7bf2d10fc760.tar.gz
system/xf86-video-qxl: Added (X.org spice qxl video driver)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--system/xf86-video-qxl/05-qxl.conf78
-rw-r--r--system/xf86-video-qxl/README6
-rw-r--r--system/xf86-video-qxl/slack-desc19
-rw-r--r--system/xf86-video-qxl/xf86-video-qxl.SlackBuild84
-rw-r--r--system/xf86-video-qxl/xf86-video-qxl.info10
5 files changed, 197 insertions, 0 deletions
diff --git a/system/xf86-video-qxl/05-qxl.conf b/system/xf86-video-qxl/05-qxl.conf
new file mode 100644
index 0000000000..b18867413e
--- /dev/null
+++ b/system/xf86-video-qxl/05-qxl.conf
@@ -0,0 +1,78 @@
+Section "Device"
+ Identifier "XSPICE"
+ Driver "qxl"
+
+ # Enable regular port. Either this or SpiceTlsPort, or one of XSPICE_PORT or
+ # XSPICE_TLS_PORT environment variables must be specified
+ # Defaults to 5900.
+ Option "SpicePort" "5900"
+
+ # Enable a TLS (encrypted) port. Either this or SpicePort must be specified,
+ # either here or via environment varialbes or via xspice --port or --tls-port
+ #Option "SpiceTlsPort" "5901"
+
+ # Listen to a specific interface. Default is to listen to all (0.0.0.0)
+ #Option "SpiceAddr" ""
+
+ # Enable usage of SASL supported by spice-gtk client. Not required,
+ # defaults to false.
+ #Option "SpiceSasl" "True"
+
+ # Do not request any password from client
+ Option "SpiceDisableTicketing" "0"
+
+ # Set directory where cacert, server key and server cert are searched
+ # using the same predefined names qemu uses:
+ # cacert.pem, server-key.pem, server-cert.pem
+ #Option "SpiceX509Dir" ""
+
+ # Set password client will be required to produce.
+ #Option "SpicePassword" ""
+
+ # Set spice server key file.
+ #Option "SpiceX509KeyFile" ""
+
+ # Set cert file location.
+ #Option "SpiceX509CertFile" ""
+
+ # Set key file password.
+ #Option "SpiceX509KeyPassword" ""
+
+ # Set tls ciphers used.
+ #Option "SpiceTlsCiphers" ""
+
+ # Set cacert file.
+ #Option "SpiceCacertFile" ""
+
+ # Set dh file used.
+ #Option "SpiceDhFile" ""
+
+ # Set streaming video method. Options are filter, off, all
+ # defaults to filter.
+ #Option "SpiceStreamingVideo" ""
+
+ # Set zlib glz wan compression. Options are auto, never, always.
+ # defaults to auto.
+ #Option "SpiceZlibGlzWanCompression" ""
+
+ # Set jpeg wan compression. Options are auto, never, always
+ # defaults to auto.
+ #Option "SpiceJpegWanCompression" ""
+
+ # Set image compression. Options are off,auto_glz,auto_lz,quic,glz,lz.
+ # defaults to auto_glz.
+ #Option "SpiceImageCompression" ""
+
+ # Set to true to only listen on ipv4 interfaces.
+ # defaults to false.
+ #Option "SpiceIPV4Only" ""
+
+ # Set to true to only listen on ipv6 interfaces.
+ # defaults to false.
+ #Option "SpiceIPV6Only" ""
+EndSection
+
+# Prevent udev from loading vmmouse in a vm and crashing.
+Section "ServerFlags"
+ Option "AutoAddDevices" "False"
+EndSection
diff --git a/system/xf86-video-qxl/README b/system/xf86-video-qxl/README
new file mode 100644
index 0000000000..35ef5baf63
--- /dev/null
+++ b/system/xf86-video-qxl/README
@@ -0,0 +1,6 @@
+xf86-video-qxl (X.org spice qxl video driver)
+
+This X.Org driver provides support for QEMU QXL paravirt video.
+It's meant to be used in your virtualized guests.
+
+This requires spice-protocol (but just for building).
diff --git a/system/xf86-video-qxl/slack-desc b/system/xf86-video-qxl/slack-desc
new file mode 100644
index 0000000000..0f48f46958
--- /dev/null
+++ b/system/xf86-video-qxl/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------------------------------------------------------|
+xf86-video-qxl: xf86-video-qxl (X.org spice qxl video driver)
+xf86-video-qxl:
+xf86-video-qxl: This X.Org driver provides support for QEMU QXL paravirt video.
+xf86-video-qxl: It's meant to be used in your virtualized guests.
+xf86-video-qxl:
+xf86-video-qxl: Homepage: http://spice-space.org
+xf86-video-qxl:
+xf86-video-qxl:
+xf86-video-qxl:
+xf86-video-qxl:
+xf86-video-qxl:
diff --git a/system/xf86-video-qxl/xf86-video-qxl.SlackBuild b/system/xf86-video-qxl/xf86-video-qxl.SlackBuild
new file mode 100644
index 0000000000..440adf0468
--- /dev/null
+++ b/system/xf86-video-qxl/xf86-video-qxl.SlackBuild
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+# Slackware build script for xf86-video-qxl
+# written by ponce <matteo.bernardini@gmail.com>
+
+PRGNAM=xf86-video-qxl
+VERSION=${VERSION:-20120209_96349eb}
+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.xz
+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" \
+./autogen.sh \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+# add an xorg.conf file
+install -m 0644 -D $CWD/05-qxl.conf $PKG/usr/share/X11/xorg.conf.d/05-qxl.conf
+
+# we have nothing in bin
+rm -fr $PKG/usr/bin
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README* TODO* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/xf86-video-qxl/xf86-video-qxl.info b/system/xf86-video-qxl/xf86-video-qxl.info
new file mode 100644
index 0000000000..d7afe232e3
--- /dev/null
+++ b/system/xf86-video-qxl/xf86-video-qxl.info
@@ -0,0 +1,10 @@
+PRGNAM="xf86-video-qxl"
+VERSION="20120209_96349eb"
+HOMEPAGE="http://spice-space.org"
+DOWNLOAD="http://ponce.cc/slackware/sources/repo/xf86-video-qxl-20120209_96349eb.tar.xz"
+MD5SUM="46ec2b71a52c918ed563180ae746c471"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="ponce"
+EMAIL="matteo.bernardini@gmail.com"
+APPROVED="rworkman"