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.

97 lines
3.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../runit/patches/ntp-etc_ntp.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./sntp/header.h.orig 2006-12-04 21:59:05.000000000 +0200
  17. +++ ./sntp/header.h 2006-12-04 21:59:39.000000000 +0200
  18. @@ -19,10 +19,10 @@
  19. #define MAX_SOCKETS 10 /* Maximum number of addresses */
  20. #ifndef LOCKNAME
  21. -# define LOCKNAME "/etc/sntp.pid" /* Stores the pid */
  22. +# define LOCKNAME "/etc/ntp/sntp.pid" /* Stores the pid */
  23. #endif
  24. #ifndef SAVENAME
  25. -# define SAVENAME "/etc/sntp.state" /* Stores the recovery state */
  26. +# define SAVENAME "/etc/ntp/sntp.state" /* Stores the recovery state */
  27. #endif
  28. --- ./parseutil/dcfd.c.orig 2006-12-04 22:00:05.000000000 +0200
  29. +++ ./parseutil/dcfd.c 2006-12-04 22:02:13.000000000 +0200
  30. @@ -1410,7 +1410,7 @@
  31. char **a = argv;
  32. int ac = argc;
  33. char *file = NULL;
  34. - const char *drift_file = "/etc/dcfd.drift";
  35. + const char *drift_file = "/etc/ntp/dcfd.drift";
  36. int fd;
  37. int offset = 15;
  38. int offsets = 0;
  39. --- ./libntp/audio.c.orig 2006-12-04 22:04:22.000000000 +0200
  40. +++ ./libntp/audio.c 2006-12-04 22:04:58.000000000 +0200
  41. @@ -53,7 +53,7 @@
  42. static struct audio_device device; /* audio device ident */
  43. #endif /* HAVE_SYS_AUDIOIO_H */
  44. #ifdef PCM_STYLE_SOUND
  45. -# define INIT_FILE "/etc/ntp.audio"
  46. +# define INIT_FILE "/etc/ntp/ntp.audio"
  47. int agc = SOUND_MIXER_WRITE_RECLEV; /* or IGAIN or LINE */
  48. int monitor = SOUND_MIXER_WRITE_VOLUME; /* or OGAIN */
  49. int devmask = 0;
  50. --- ./ntpdate/ntptimeset.c.orig 2006-12-04 22:07:37.000000000 +0200
  51. +++ ./ntpdate/ntptimeset.c 2006-12-04 22:08:06.000000000 +0200
  52. @@ -270,7 +270,7 @@
  53. #ifndef KEYFILE
  54. # ifndef SYS_WINNT
  55. -#define KEYFILE "/etc/ntp.keys"
  56. +#define KEYFILE "/etc/ntp/ntp.keys"
  57. # else
  58. #define KEYFILE "%windir%\\ntp.keys"
  59. # endif /* SYS_WINNT */
  60. --- ./ntpdate/ntptime_config.c.orig 2006-12-04 22:06:24.000000000 +0200
  61. +++ ./ntpdate/ntptime_config.c 2006-12-04 22:07:14.000000000 +0200
  62. @@ -37,7 +37,7 @@
  63. */
  64. #ifndef CONFIG_FILE
  65. # ifndef SYS_WINNT
  66. -# define CONFIG_FILE "/etc/ntp.conf"
  67. +# define CONFIG_FILE "/etc//ntp/ntp.conf"
  68. # else /* SYS_WINNT */
  69. # define CONFIG_FILE "%windir%\\ntp.conf"
  70. # define ALT_CONFIG_FILE "%windir%\\ntp.ini"
  71. --- ./ntpdate/ntpdate.c.orig 2006-12-04 22:05:22.000000000 +0200
  72. +++ ./ntpdate/ntpdate.c 2006-12-04 22:06:07.000000000 +0200
  73. @@ -196,7 +196,7 @@
  74. #ifndef KEYFILE
  75. # ifndef SYS_WINNT
  76. -#define KEYFILE "/etc/ntp.keys"
  77. +#define KEYFILE "/etc/ntp/ntp.keys"
  78. # else
  79. #define KEYFILE "%windir%\\ntp.keys"
  80. # endif /* SYS_WINNT */
  81. --- ./include/ntp_config.h.orig 2006-12-04 22:02:53.000000000 +0200
  82. +++ ./include/ntp_config.h 2006-12-04 22:03:30.000000000 +0200
  83. @@ -3,7 +3,7 @@
  84. */
  85. #ifndef CONFIG_FILE
  86. # ifndef SYS_WINNT
  87. -# define CONFIG_FILE "/etc/ntp.conf"
  88. +# define CONFIG_FILE "/etc/ntp/ntp.conf"
  89. # else /* SYS_WINNT */
  90. # define CONFIG_FILE "%windir%\\system32\\drivers\\etc\\ntp.conf"
  91. # define ALT_CONFIG_FILE "%windir%\\ntp.conf"