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.

102 lines
3.4 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 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./preremove.linux.sh.orig Sat Nov 10 16:26:28 2001
  23. +++ ./preremove.linux.sh Sat Nov 10 16:26:58 2001
  24. @@ -2,14 +2,3 @@
  25. # preremove.linux.sh,v 1.1 2001/08/21 20:33:17 root Exp
  26. #
  27. echo RUNNING preremove.linux.sh
  28. -echo "Stopping lpd server"
  29. -killall -INT lpd
  30. -sleep 2
  31. -if [ -f /etc/redhat-release -a -f /sbin/chkconfig ] ; then
  32. - /sbin/chkconfig lprng off
  33. - /sbin/chkconfig --del lprng
  34. -else
  35. - for i in /etc/rc.d/*/*lprng ; do
  36. - rm $i;
  37. - done
  38. -fi
  39. --- ./postinstall.linux.sh.orig Sat Nov 10 16:27:13 2001
  40. +++ ./postinstall.linux.sh Sat Nov 10 16:43:34 2001
  41. @@ -57,60 +57,3 @@
  42. fix "${LPD_CONF_PATH}" "${DESTDIR}${LPD_CONF_PATH}"
  43. fix "${PRINTCAP_PATH}" "${DESTDIR}${PRINTCAP_PATH}"
  44. fi
  45. -if [ "X$MAKEPACKAGE" != "XYES" -a "$INIT" != no ] ; then
  46. - echo "Configuring startup scripts"
  47. - if [ ! -f $init ] ; then
  48. - echo "Missing $init";
  49. - fi
  50. - if [ -f /etc/redhat-release -a -f /sbin/chkconfig ] ; then
  51. - echo "RedHat Linux - running chkconfig"
  52. - (
  53. - /sbin/chkconfig lpr off
  54. - /sbin/chkconfig --del lpr
  55. - /sbin/chkconfig lpr off
  56. - /sbin/chkconfig --del lpr
  57. - /sbin/chkconfig lprng off
  58. - /sbin/chkconfig --del lprng
  59. - )
  60. - echo "Stopping server"
  61. - kill -INT `ps ${PSHOWALL} | awk '/lpd/{ print $1;}'` >/dev/null 2>&1
  62. - sleep 2
  63. - echo "Checking Printcap"
  64. - ${SBINDIR}/checkpc -f
  65. - echo "Installing Printer Startup Scripts"
  66. - /sbin/chkconfig --add lprng
  67. - /sbin/chkconfig --list lprng
  68. - /sbin/chkconfig lprng on
  69. - echo "Starting Printer"
  70. - sh $init start
  71. - echo "Printer Started"
  72. - else
  73. - echo "Stopping server"
  74. - kill -INT `ps ${PSHOWALL} | awk '/lpd/{ print $1;}'` >/dev/null 2>&1
  75. - sleep 2
  76. - echo "Checking Printcap"
  77. - ${SBINDIR}/checkpc -f
  78. - echo "Starting Printer"
  79. - ${LPD_PATH}
  80. - echo "Printer Started"
  81. - cat <<EOF
  82. -#
  83. -# You will have to install the run time startup files by hand.
  84. -# The $init file contains the standard startup/shutdown sequence.
  85. -# You usually need to put in links to this file in /etc/rc.d/rcX.d
  86. -# to have it executed by the appropriate run level startup/shutdown
  87. -# script.
  88. -#
  89. -# You can use the following a template for your installation
  90. -#
  91. - ln -s ../init.d/lprng /etc/rc0.d/K60lprng
  92. - ln -s ../init.d/lprng /etc/rc1.d/K60lprng
  93. - ln -s ../init.d/lprng /etc/rc2.d/S60lprng
  94. - ln -s ../init.d/lprng /etc/rc3.d/S60lprng
  95. - ln -s ../init.d/lprng /etc/rc4.d/S60lprng
  96. - ln -s ../init.d/lprng /etc/rc5.d/S60lprng
  97. - ln -s ../init.d/lprng /etc/rc6.d/K60lprng
  98. -
  99. -EOF
  100. - fi;
  101. -fi;