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.

58 lines
2.0 KiB

  1. #!/bin/sh
  2. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # T2 SDE: package/.../webcdwriter/webcdwriter.conf
  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. # --- T2-COPYRIGHT-NOTE-END ---
  15. webcdwriter_main() {
  16. local wcwuser=cdwserve
  17. local wcwgroup=cdwserve
  18. # prepare a user/group
  19. # configure
  20. eval ./configure --user=$wcwuser --group=$wcwgroup --pam
  21. # FIXME maybe as config.in options:
  22. #--doNotCompileCDWserver if you want to install CDWserver Pro
  23. #--nosCert=certificate Netscape Object Signing Certificate
  24. # (required to sign the webCDcreator for Netscape 4
  25. # and the RSA version for IE)
  26. #--sunCert=certificate certificate for the keytool from Sun
  27. # (required to sign the webCDcreator for Java Plugin)
  28. eval make $makeopt
  29. eval make $makeinstopt
  30. # use our own init
  31. rm -f $root/etc/rc.d/init.d/CDWserver
  32. # make "setuid root copies" of cdrdao, cdrecord, mkisofs and readcd
  33. TOOLSDIR=$root/$localstatedir/CDWserver/bin
  34. for tool in cdrdao cdrecord mkisofs readcd
  35. do
  36. if [ ! -e $TOOLSDIR/$tool ]; then
  37. if [ -e $root/usr/bin/$tool ]; then
  38. cp -pf $root/usr/bin/$tool $TOOLSDIR/ || :
  39. elif [ -e /usr/local/bin/$tool ]; then
  40. cp -pf /usr/local/bin/$tool $TOOLSDIR/ || :
  41. fi
  42. if [ -e $TOOLSDIR/$tool ]; then
  43. chown root $TOOLSDIR/$tool 2> /dev/null \
  44. && chgrp cdwserve $TOOLSDIR/$tool 2> /dev/null \
  45. && chmod 4750 $TOOLSDIR/$tool || :
  46. fi
  47. fi
  48. done
  49. }
  50. custmain=webcdwriter_main