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.

103 lines
3.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../lprng/no-lpd-killing.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./preremove.linux.sh.orig Sat Nov 10 16:26:28 2001
  18. +++ ./preremove.linux.sh Sat Nov 10 16:26:58 2001
  19. @@ -2,14 +2,3 @@
  20. # preremove.linux.sh,v 1.1 2001/08/21 20:33:17 root Exp
  21. #
  22. echo RUNNING preremove.linux.sh
  23. -echo "Stopping lpd server"
  24. -killall -INT lpd
  25. -sleep 2
  26. -if [ -f /etc/redhat-release -a -f /sbin/chkconfig ] ; then
  27. - /sbin/chkconfig lprng off
  28. - /sbin/chkconfig --del lprng
  29. -else
  30. - for i in /etc/rc.d/*/*lprng ; do
  31. - rm $i;
  32. - done
  33. -fi
  34. --- ./postinstall.linux.sh.orig 2003-11-14 13:36:02.000000000 -0300
  35. +++ ./postinstall.linux.sh 2003-11-29 10:26:57.000000000 -0300
  36. @@ -68,66 +68,3 @@
  37. ${INSTALL} -m 755 $f `dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd
  38. fi
  39. -if [ "X$MAKEPACKAGE" != "XYES" -a "$INIT" != no ] ; then
  40. - echo "Running startup scripts"
  41. - if [ ! -f $init ] ; then
  42. - echo "Missing $init";
  43. - exit 1
  44. - fi
  45. - if [ -f /sbin/chkconfig ] ; then
  46. - echo "Stopping CUPS server"
  47. - service cups stop || /bin/true
  48. - service cups-lpd stop || /bin/true
  49. - echo "Stopping LPD server"
  50. - service lpr stop || service lprng stop || service lpd stop || /bin/true
  51. - echo "running chkconfig"
  52. - (
  53. - /sbin/chkconfig lpr off
  54. - /sbin/chkconfig lpd off
  55. - /sbin/chkconfig lprng off
  56. - /sbin/chkconfig cups off
  57. - /sbin/chkconfig cups-lpd off
  58. - /sbin/chkconfig `basename $init` off
  59. - )
  60. - echo "Checking Printcap"
  61. - ${SBINDIR}/checkpc -f
  62. - echo "Running LPRng Startup Scripts"
  63. - /sbin/chkconfig --add `basename $init`
  64. - /sbin/chkconfig --list `basename $init`
  65. - /sbin/chkconfig `basename $init` on
  66. - echo "Starting Printer"
  67. - service `basename $init` start
  68. - echo "Printer Started"
  69. - else
  70. - echo "Stopping server"
  71. - kill -INT `ps ${PSHOWALL} | awk '/lpd/{ print $1;}'` >/dev/null 2>&1
  72. - sleep 2
  73. - echo "Checking Printcap"
  74. - ${SBINDIR}/checkpc -f
  75. - echo "Starting Printer"
  76. - sh `dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd start
  77. - echo "Printer Started"
  78. - m=`dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd
  79. - cat <<EOF
  80. -#
  81. -# You will have to install the run time startup files by hand.
  82. -# The $m file contains the standard startup/shutdown code.
  83. -# You should put this file in the file in common set of rc startup
  84. -# scripts and then make symbolic links to it from the run level
  85. -# directories.
  86. -#
  87. -# You can use the following a template for your installation
  88. -#
  89. - initdir=/etc/rc.d
  90. - cp `dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd \${initdir}/lpd
  91. - ln -s ../init.d/lpd \${initdir}/rc0.d/K60lprng
  92. - ln -s ../init.d/lpd \${initdir}/rc1.d/K60lprng
  93. - ln -s ../init.d/lpd \${initdir}/rc2.d/S60lprng
  94. - ln -s ../init.d/lpd \${initdir}/rc3.d/S60lprng
  95. - ln -s ../init.d/lpd \${initdir}/rc4.d/S60lprng
  96. - ln -s ../init.d/lpd \${initdir}/rc5.d/S60lprng
  97. - ln -s ../init.d/lpd \${initdir}/rc6.d/K60lprng
  98. -
  99. -EOF
  100. - fi;
  101. -fi;