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.

129 lines
5.5 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/x11/xorg/xprint-initdir-runlevel.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 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. diff -Nur xc-vanilla/programs/Xserver/Xprint/etc/init.d/Imakefile xc/programs/Xserver/Xprint/etc/init.d/Imakefile
  20. --- xc-vanilla/programs/Xserver/Xprint/etc/init.d/Imakefile 2004-10-05 22:36:18.482470000 +0200
  21. +++ xc/programs/Xserver/Xprint/etc/init.d/Imakefile 2004-10-06 17:20:02.070718976 +0200
  22. @@ -25,7 +25,7 @@
  23. #if NothingOutsideProjectRoot
  24. #define EtcDir ProjectRoot/etc
  25. #else
  26. -#define EtcDir /etc
  27. +#define EtcDir /etc/rc.d
  28. #endif
  29. ETCDIR = EtcDir
  30. @@ -62,17 +62,18 @@
  31. XCOMM SuSE Linux(-like)
  32. #define InstallStartupLink(rcdir,script,linkname) \
  33. - MakeDir($(DESTDIR)$(ETCDIR)/rc.d/rcdir) ; \
  34. - ln -sf ../script $(DESTDIR)$(ETCDIR)/rc.d/rcdir/linkname
  35. + MakeDir($(DESTDIR)$(ETCDIR)/rcdir) ; \
  36. + ln -sf ../script $(DESTDIR)$(ETCDIR)/rcdir/linkname
  37. install::
  38. echo "# Installing /etc/init.d links for SuSE Linux(-like)"
  39. - InstallStartupLink(rc2.d,xprint,K21xprint)
  40. - InstallStartupLink(rc2.d,xprint,S21xprint)
  41. - InstallStartupLink(rc3.d,xprint,K21xprint)
  42. - InstallStartupLink(rc3.d,xprint,S21xprint)
  43. - InstallStartupLink(rc5.d,xprint,K21xprint)
  44. - InstallStartupLink(rc5.d,xprint,S21xprint)
  45. +## only install for runlevel 5 because the others has no X
  46. +# InstallStartupLink(rc2.d,xprint,K65xprint)
  47. +# InstallStartupLink(rc2.d,xprint,S35xprint)
  48. +# InstallStartupLink(rc3.d,xprint,K65xprint)
  49. +# InstallStartupLink(rc3.d,xprint,S35xprint)
  50. + InstallStartupLink(rc5.d,xprint,K65xprint)
  51. + InstallStartupLink(rc5.d,xprint,S35xprint)
  52. # elif LinuxDistribution == LinuxRedHat
  53. XCOMM RedHat Linux(-like)
  54. diff -Nur xc-vanilla/programs/Xserver/Xprint/etc/init.d/xprint.cpp xc/programs/Xserver/Xprint/etc/init.d/xprint.cpp
  55. --- xc-vanilla/programs/Xserver/Xprint/etc/init.d/xprint.cpp 2004-10-05 22:36:18.500467264 +0200
  56. +++ xc/programs/Xserver/Xprint/etc/init.d/xprint.cpp 2004-10-06 17:26:46.970164904 +0200
  57. @@ -25,6 +25,13 @@
  58. XCOMM Description: Startup/shutdown script for Xprint server(s)
  59. XCOMM## END INIT INFO
  60. +XCOMM# This is the ROCK Linux INIT information
  61. +XCOMM ROCK Linux /etc/rc.d/init.d/xprint
  62. +XCOMM
  63. +XCOMM Desc: Startup/shutdown script for Xprint server(s)
  64. +XCOMM Runlevel: 35 rcX
  65. +XCOMM
  66. +
  67. #undef sun
  68. #undef unix
  69. @@ -42,21 +49,21 @@
  70. XCOMM
  71. XCOMM Usage:
  72. XCOMM - Start Xprint server(s) manually:
  73. -XCOMM % /etc/init.d/xprint start
  74. +XCOMM % /etc/rc.d/init.d/xprint start
  75. XCOMM
  76. XCOMM - Stop Xprint server(s) manually:
  77. -XCOMM % /etc/init.d/xprint stop
  78. +XCOMM % /etc/rc.d/init.d/xprint stop
  79. XCOMM
  80. XCOMM - Populate $XPSERVERLIST env var (for example as part of a global
  81. XCOMM login script like /etc/profile or per-user login scripts like
  82. XCOMM $HOME/.profile (sh/ksh/bash))
  83. -XCOMM % XPSERVERLIST="`/etc/init.d/xprint get_xpserverlist`"
  84. +XCOMM % XPSERVERLIST="`/etc/rc.d/init.d/xprint get_xpserverlist`"
  85. XCOMM % export XPSERVERLIST
  86. XCOMM
  87. XCOMM Installation:
  88. -XCOMM Copy this script to /etc/init.d/xprint and make sure that it is
  89. +XCOMM Copy this script to /etc/rc.d/init.d/xprint and make sure that it is
  90. XCOMM executable. If your installation is LSB-compliant, then run
  91. -XCOMM % /usr/lib/lsb/install_initd /etc/init.d/xprint
  92. +XCOMM % /usr/lib/lsb/install_initd /etc/rc.d/init.d/xprint
  93. XCOMM to start the service on startup. Otherwise, manually create links
  94. XCOMM to the matching run levels.
  95. XCOMM Examples:
  96. @@ -680,7 +687,7 @@
  97. echo "Xprint server pid=${server_pid} done, exitcode=$?."
  98. # Remove the dead server from the registry
  99. - # (only if the registry still exists - if /etc/init.d/xprint stop" gets called the registry
  100. + # (only if the registry still exists - if /etc/rc.d/init.d/xprint stop" gets called the registry
  101. # will be removed - and we should not re-create it afterwards...)
  102. lock_server_registry
  103. if [ -f "${XP_SERVERS}" ] ; then
  104. @@ -745,7 +752,7 @@
  105. else
  106. # Continue in the background if there is no spooler running yet (that
  107. # we don't hold off the boot process nor run in a possible race-condition
  108. - # when /etc/init.d/lpd was not called yet but the runlevel script waits
  109. + # when /etc/rc.d/init.d/lpd was not called yet but the runlevel script waits
  110. # for us to finish first ...
  111. if is_spooler_running ; then
  112. msg "Starting Xprint servers: Xprt."
  113. @@ -1095,7 +1102,7 @@
  114. # done with setting the config for per-user Xprt instances
  115. return 0;
  116. else
  117. - # Use /etc/init.d/xprint's builtin config
  118. + # Use /etc/rc.d/init.d/xprint's builtin config
  119. # Each entry should start with |setup_config_defaults| to pull the
  120. # platform defaults and finish with |num_xpstart=$(($num_xpstart + 1))|
  121. # to end the entry