2015-09-15 09:13:22 +00:00
|
|
|
{ stdenv, fetchurl, xlibsWrapper, zlib, libjpeg, imake, gccmakedep, libXmu
|
2015-05-21 16:51:43 +00:00
|
|
|
, libXaw, libXpm, libXp , perl, xauth, fontDirectories, openssh }:
|
2006-07-13 14:54:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-03-20 10:49:05 +00:00
|
|
|
name = "tightvnc-1.3.10";
|
2010-08-26 09:41:22 +00:00
|
|
|
|
2006-07-13 14:54:24 +00:00
|
|
|
src = fetchurl {
|
2009-03-20 10:49:05 +00:00
|
|
|
url = mirror://sourceforge/vnc-tight/tightvnc-1.3.10_unixsrc.tar.bz2;
|
|
|
|
sha256 = "f48c70fea08d03744ae18df6b1499976362f16934eda3275cead87baad585c0d";
|
2006-07-13 14:54:24 +00:00
|
|
|
};
|
2009-03-20 10:49:05 +00:00
|
|
|
|
|
|
|
# for the builder script
|
2010-08-26 09:41:22 +00:00
|
|
|
inherit xauth fontDirectories perl;
|
2015-01-15 04:25:26 +00:00
|
|
|
gcc = stdenv.cc.cc;
|
2010-08-26 09:41:22 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2015-12-23 01:59:47 +00:00
|
|
|
|
2015-09-15 09:13:22 +00:00
|
|
|
buildInputs = [ xlibsWrapper zlib libjpeg imake gccmakedep libXmu libXaw
|
2015-05-21 16:51:43 +00:00
|
|
|
libXpm libXp xauth openssh ];
|
2015-05-21 16:51:07 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
fontPath=
|
|
|
|
for i in $fontDirectories; do
|
|
|
|
for j in $(find $i -name fonts.dir); do
|
|
|
|
addToSearchPathWithCustomDelimiter "," fontPath $(dirname $j)
|
|
|
|
done
|
|
|
|
done
|
2015-05-21 16:51:43 +00:00
|
|
|
|
|
|
|
sed -i "s@/usr/bin/ssh@${openssh}/bin/ssh@g" vncviewer/vncviewer.h
|
2015-05-21 16:51:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
xmkmf
|
|
|
|
make World
|
|
|
|
sed -e 's@/usr/bin/perl@${perl}/bin/perl@' \
|
|
|
|
-e 's@unix/:7100@'$fontPath'@' \
|
|
|
|
-i vncserver
|
|
|
|
|
|
|
|
cd Xvnc
|
|
|
|
sed -e 's@.* CppCmd .*@#define CppCmd '$gcc'/bin/cpp@' -i config/cf/linux.cf
|
|
|
|
sed -e 's@.* CppCmd .*@#define CppCmd '$gcc'/bin/cpp@' -i config/cf/Imake.tmpl
|
|
|
|
sed -i \
|
|
|
|
-e 's@"uname","xauth","Xvnc","vncpasswd"@"uname","Xvnc","vncpasswd"@g' \
|
|
|
|
-e "s@\<xauth\>@${xauth}/bin/xauth@g" \
|
|
|
|
../vncserver
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
cd ..
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
./vncinstall $out/bin $out/share/man
|
|
|
|
|
|
|
|
# fix HTTP client:
|
|
|
|
t=$out/share/tightvnc
|
|
|
|
mkdir -p $t
|
|
|
|
sed -i "s@/usr/local/vnc/classes@$out/vnc/classes@g" $out/bin/vncserver
|
|
|
|
cp -r classes $t
|
|
|
|
'';
|
2010-08-26 09:41:22 +00:00
|
|
|
|
|
|
|
meta = {
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-08-26 09:41:22 +00:00
|
|
|
homepage = "http://vnc-tight.sourceforge.net/";
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Improved version of VNC";
|
2009-03-20 10:49:05 +00:00
|
|
|
|
2010-08-26 09:41:22 +00:00
|
|
|
longDescription = ''
|
|
|
|
TightVNC is an improved version of VNC, the great free
|
|
|
|
remote-desktop tool. The improvements include bandwidth-friendly
|
|
|
|
"tight" encoding, file transfers in the Windows version, enhanced
|
|
|
|
GUI, many bugfixes, and more.
|
|
|
|
'';
|
2009-05-16 23:04:06 +00:00
|
|
|
|
2010-08-26 09:41:22 +00:00
|
|
|
maintainers = [];
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
2006-07-13 14:54:24 +00:00
|
|
|
}
|