OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../tightvnc/tightvnc.conf
  5. # Copyright (C) 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. if [ $prefix_auto = 1 ] ; then
  16. prefix="usr/X11"
  17. set_confopt
  18. fi
  19. # only build java if java is available
  20. [ "$JAVA_HOME" ] || desc_SRC=
  21. patch_vnc_server ()
  22. {
  23. local x=${x//*_/}; x=${x//.tar.*/}
  24. var_append patchfiles ' ' "`ls $confdir/*.patch.$x 2>/dev/null`"
  25. }
  26. hook_add prepatch 3 "patch_vnc_server"
  27. build_vnc_server ()
  28. {
  29. if [ -d Xvnc ] ; then
  30. cd Xvnc
  31. ./configure
  32. $MAKE
  33. cd ..
  34. fi
  35. }
  36. hook_add postmake 5 "build_vnc_server"
  37. install_vnc_tight ()
  38. {
  39. if [ -f vncserver ] ; then
  40. sed -e 's,/usr/local/vnc/classes,$root/$datadir/vnc/classes,' -i vncserver
  41. ./vncinstall $root/$bindir $root/$mandir
  42. mkdir -p $root/$datadir/vnc/classes
  43. cp -av classes/* $root/$datadir/vnc/classes
  44. fi
  45. if [ -f index.vnc ] ; then
  46. cp -av *.class *.jar *.vnc $root/$datadir/vnc/classes
  47. fi
  48. }
  49. hook_add postmake 8 "install_vnc_tight"
  50. makeinstopt=