1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/tightvnc/tightvnc.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if [ $prefix_auto = 1 ]; then
17 # only build java if java is available
18 [ "$JAVA_HOME" ] || desc_SRC=
22 local x=${x//*_/}; x=${x//.tar.*/}
23 var_append patchfiles ' ' "`ls $confdir/*.patch.$x 2>/dev/null`"
25 hook_add prepatch 3 "patch_vnc_server"
36 hook_add postmake 5 "build_vnc_server"
40 if [ -f vncserver ]; then
41 sed -e 's,/usr/local/vnc/classes,$root$datadir/vnc/classes,' -i vncserver
43 ./vncinstall $root$bindir $root$mandir
44 mkdir -p $root$datadir/vnc/classes
45 cp -av classes/* $root$datadir/vnc/classes
48 if [ -f index.vnc ]; then
49 cp -av *.class *.jar *.vnc $root$datadir/vnc/classes
52 hook_add postmake 8 "install_vnc_tight"