mirror of the now-defunct rocklinux.org
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.

105 lines
3.6 KiB

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