summaryrefslogtreecommitdiff
path: root/community/tightvnc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-06 00:01:33 +0000
committerroot <root@rshg054.dnsready.net>2012-03-06 00:01:33 +0000
commitb8afacf1f28ac27321feb9b92bd50dd8961b7736 (patch)
treede441882aca38091a1e438e1d8da8a9af3bd023a /community/tightvnc
parent11711de1942a141f28faef695c4c78c8357fbf23 (diff)
Tue Mar 6 00:01:33 UTC 2012
Diffstat (limited to 'community/tightvnc')
-rw-r--r--community/tightvnc/PKGBUILD42
-rw-r--r--community/tightvnc/tightvnc-fontpath-xcolors.patch13
2 files changed, 55 insertions, 0 deletions
diff --git a/community/tightvnc/PKGBUILD b/community/tightvnc/PKGBUILD
new file mode 100644
index 000000000..356e6006f
--- /dev/null
+++ b/community/tightvnc/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 67142 2012-03-04 23:56:49Z pschmitz $
+# Maintainer: Paul Mattal <paul@archlinux.org>
+pkgname=tightvnc
+pkgver=1.3.10
+pkgrel=6
+pkgdesc="VNC Unix server && viewer"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://www.tightvnc.com"
+depends=('libjpeg' 'zlib' 'libxaw' 'libxp' 'xorg-xauth')
+makedepends=('imake')
+conflicts=('vnc')
+options=('!makeflags')
+source=("http://downloads.sf.net/sourceforge/vnc-tight/$pkgname-${pkgver}_unixsrc.tar.bz2"
+ 'tightvnc-fontpath-xcolors.patch')
+md5sums=('397b35faad32d5246b6d44b142f8304f'
+ '21aa7f3376ec3c608ff22d199a19c601')
+
+build() {
+ cd $srcdir/vnc_unixsrc
+ patch -Np1 -i ../tightvnc-fontpath-xcolors.patch
+ sed -i 's|/usr/local/|/usr/share/|' vncserver
+
+ xmkmf
+ make World
+ cd Xvnc
+ ./configure
+ sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \
+ -i programs/Xserver/os/Makefile lib/font/fc/Makefile
+ make
+}
+
+package() {
+ cd $srcdir/vnc_unixsrc
+ mkdir -p $pkgdir/usr/bin $pkgdir/usr/share/man/man1
+ ./vncinstall $pkgdir/usr/bin $pkgdir/usr/share/man
+
+ # install java classes
+ mkdir -p $pkgdir/usr/share/vnc/classes
+ install -Dm644 $srcdir/vnc_unixsrc/classes/* \
+ $pkgdir/usr/share/vnc/classes
+}
diff --git a/community/tightvnc/tightvnc-fontpath-xcolors.patch b/community/tightvnc/tightvnc-fontpath-xcolors.patch
new file mode 100644
index 000000000..10bc4b596
--- /dev/null
+++ b/community/tightvnc/tightvnc-fontpath-xcolors.patch
@@ -0,0 +1,13 @@
+diff -urN vnc_unixsrc/vncserver vnc_unixsrc.fixed/vncserver
+--- vnc_unixsrc/vncserver 2009-02-11 23:27:18.000000000 -0500
++++ vnc_unixsrc.fixed/vncserver 2009-04-23 21:46:46.000000000 -0400
+@@ -34,7 +34,8 @@
+ $desktopName = "X";
+ $vncClasses = "/usr/local/vnc/classes";
+ $vncUserDir = "$ENV{HOME}/.vnc";
+-$fontPath = "unix/:7100";
++$fontPath = "/usr/share/fonts/misc/,/usr/share/fonts/75dpi/,/usr/share/fonts/100dpi/,/usr/share/fonts/Type1/";
++$colorPath = "/usr/share/X11/rgb";
+ $authType = "-rfbauth $vncUserDir/passwd";
+
+ # Read configuration from the system-wide and user files if present.