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.

96 lines
2.8 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/dietlibc/pkg_patch/pkg_sysvinit.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 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. --- ./src/Makefile.orig Mon May 6 11:15:52 2002
  20. +++ ./src/Makefile Mon May 6 11:17:08 2002
  21. @@ -23,10 +23,6 @@
  22. INSTALL = install -o $(BIN_OWNER) -g $(BIN_GROUP)
  23. MANDIR = /usr/share/man
  24. -# Additional libs for Gnu Libc
  25. -ifneq ($(wildcard /usr/lib/libcrypt.a),)
  26. -LCRYPT = -lcrypt
  27. -endif
  28. all: $(PROGS)
  29. @@ -46,7 +42,7 @@
  30. $(CC) $(LDFLAGS) -o $@ runlevel.o
  31. sulogin: sulogin.o
  32. - $(CC) $(LDFLAGS) $(STATIC) -o $@ sulogin.o $(LCRYPT)
  33. + $(CC) $(LDFLAGS) $(STATIC) -o $@ sulogin.o
  34. wall: dowall.o wall.o
  35. $(CC) $(LDFLAGS) -o $@ dowall.o wall.o
  36. --- ./src/init.c.orig Sun May 5 03:27:31 2002
  37. +++ ./src/init.c Sat May 4 18:11:40 2002
  38. @@ -49,6 +49,8 @@
  39. #include <sys/syslog.h>
  40. #include <sys/time.h>
  41. +#define UTMP_FILE _PATH_UTMP
  42. +
  43. #ifdef __i386__
  44. # if (__GLIBC__ >= 2)
  45. /* GNU libc 2.x */
  46. --- ./src/last.c.orig Sun May 5 03:29:32 2002
  47. +++ ./src/last.c Sun May 5 03:04:26 2002
  48. @@ -36,6 +36,8 @@
  49. #include <arpa/inet.h>
  50. #include "oldutmp.h"
  51. +#define WTMP_FILE _PATH_WTMP
  52. +
  53. #ifndef SHUTDOWN_TIME
  54. # define SHUTDOWN_TIME 254
  55. #endif
  56. --- ./src/utmp.c.orig Sun May 5 03:30:04 2002
  57. +++ ./src/utmp.c Sat May 4 18:12:39 2002
  58. @@ -17,6 +17,8 @@
  59. #include <fcntl.h>
  60. #include <string.h>
  61. #include <utmp.h>
  62. +#define UTMP_FILE _PATH_UTMP
  63. +#define WTMP_FILE _PATH_WTMP
  64. #include "init.h"
  65. #include "initreq.h"
  66. --- sysvinit-2.85/src/ifdown.c.orig 2003-09-20 04:47:44.000000000 +0200
  67. +++ sysvinit-2.85/src/ifdown.c 2003-09-20 04:47:54.000000000 +0200
  68. @@ -14,7 +14,7 @@
  69. #include <sys/ioctl.h>
  70. #include <sys/socket.h>
  71. #include <sys/time.h>
  72. -#include <sys/errno.h>
  73. +#include <errno.h>
  74. #include <net/if.h>
  75. #include <netinet/in.h>
  76. --- sysvinit-2.85/src/last.c.orig 2003-09-20 04:51:58.000000000 +0200
  77. +++ sysvinit-2.85/src/last.c 2003-09-20 04:52:09.000000000 +0200
  78. @@ -19,7 +19,7 @@
  79. #include <sys/types.h>
  80. #include <sys/stat.h>
  81. -#include <sys/fcntl.h>
  82. +#include <fcntl.h>
  83. #include <time.h>
  84. #include <stdio.h>
  85. #include <ctype.h>