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.

108 lines
3.7 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 2003-11-14 13:36:02.000000000 -0300
  40. +++ ./postinstall.linux.sh 2003-11-29 10:26:57.000000000 -0300
  41. @@ -68,66 +68,3 @@
  42. ${INSTALL} -m 755 $f `dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd
  43. fi
  44. -if [ "X$MAKEPACKAGE" != "XYES" -a "$INIT" != no ] ; then
  45. - echo "Running startup scripts"
  46. - if [ ! -f $init ] ; then
  47. - echo "Missing $init";
  48. - exit 1
  49. - fi
  50. - if [ -f /sbin/chkconfig ] ; then
  51. - echo "Stopping CUPS server"
  52. - service cups stop || /bin/true
  53. - service cups-lpd stop || /bin/true
  54. - echo "Stopping LPD server"
  55. - service lpr stop || service lprng stop || service lpd stop || /bin/true
  56. - echo "running chkconfig"
  57. - (
  58. - /sbin/chkconfig lpr off
  59. - /sbin/chkconfig lpd off
  60. - /sbin/chkconfig lprng off
  61. - /sbin/chkconfig cups off
  62. - /sbin/chkconfig cups-lpd off
  63. - /sbin/chkconfig `basename $init` off
  64. - )
  65. - echo "Checking Printcap"
  66. - ${SBINDIR}/checkpc -f
  67. - echo "Running LPRng Startup Scripts"
  68. - /sbin/chkconfig --add `basename $init`
  69. - /sbin/chkconfig --list `basename $init`
  70. - /sbin/chkconfig `basename $init` on
  71. - echo "Starting Printer"
  72. - service `basename $init` start
  73. - echo "Printer Started"
  74. - else
  75. - echo "Stopping server"
  76. - kill -INT `ps ${PSHOWALL} | awk '/lpd/{ print $1;}'` >/dev/null 2>&1
  77. - sleep 2
  78. - echo "Checking Printcap"
  79. - ${SBINDIR}/checkpc -f
  80. - echo "Starting Printer"
  81. - sh `dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd start
  82. - echo "Printer Started"
  83. - m=`dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd
  84. - cat <<EOF
  85. -#
  86. -# You will have to install the run time startup files by hand.
  87. -# The $m file contains the standard startup/shutdown code.
  88. -# You should put this file in the file in common set of rc startup
  89. -# scripts and then make symbolic links to it from the run level
  90. -# directories.
  91. -#
  92. -# You can use the following a template for your installation
  93. -#
  94. - initdir=/etc/rc.d
  95. - cp `dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd \${initdir}/lpd
  96. - ln -s ../init.d/lpd \${initdir}/rc0.d/K60lprng
  97. - ln -s ../init.d/lpd \${initdir}/rc1.d/K60lprng
  98. - ln -s ../init.d/lpd \${initdir}/rc2.d/S60lprng
  99. - ln -s ../init.d/lpd \${initdir}/rc3.d/S60lprng
  100. - ln -s ../init.d/lpd \${initdir}/rc4.d/S60lprng
  101. - ln -s ../init.d/lpd \${initdir}/rc5.d/S60lprng
  102. - ln -s ../init.d/lpd \${initdir}/rc6.d/K60lprng
  103. -
  104. -EOF
  105. - fi;
  106. -fi;