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.

94 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dietlibc/patches/pkg_sysvinit.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./src/Makefile.orig Mon May 6 11:15:52 2002
  18. +++ ./src/Makefile Mon May 6 11:17:08 2002
  19. @@ -23,10 +23,6 @@
  20. INSTALL = install -o $(BIN_OWNER) -g $(BIN_GROUP)
  21. MANDIR = /usr/share/man
  22. -# Additional libs for Gnu Libc
  23. -ifneq ($(wildcard /usr/lib/libcrypt.a),)
  24. -LCRYPT = -lcrypt
  25. -endif
  26. all: $(PROGS)
  27. @@ -46,7 +42,7 @@
  28. $(CC) $(LDFLAGS) -o $@ runlevel.o
  29. sulogin: sulogin.o
  30. - $(CC) $(LDFLAGS) $(STATIC) -o $@ sulogin.o $(LCRYPT)
  31. + $(CC) $(LDFLAGS) $(STATIC) -o $@ sulogin.o
  32. wall: dowall.o wall.o
  33. $(CC) $(LDFLAGS) -o $@ dowall.o wall.o
  34. --- ./src/init.c.orig Sun May 5 03:27:31 2002
  35. +++ ./src/init.c Sat May 4 18:11:40 2002
  36. @@ -49,6 +49,8 @@
  37. #include <sys/syslog.h>
  38. #include <sys/time.h>
  39. +#define UTMP_FILE _PATH_UTMP
  40. +
  41. #ifdef __i386__
  42. # if (__GLIBC__ >= 2)
  43. /* GNU libc 2.x */
  44. --- ./src/last.c.orig Sun May 5 03:29:32 2002
  45. +++ ./src/last.c Sun May 5 03:04:26 2002
  46. @@ -36,6 +36,8 @@
  47. #include <arpa/inet.h>
  48. #include "oldutmp.h"
  49. +#define WTMP_FILE _PATH_WTMP
  50. +
  51. #ifndef SHUTDOWN_TIME
  52. # define SHUTDOWN_TIME 254
  53. #endif
  54. --- ./src/utmp.c.orig Sun May 5 03:30:04 2002
  55. +++ ./src/utmp.c Sat May 4 18:12:39 2002
  56. @@ -17,6 +17,8 @@
  57. #include <fcntl.h>
  58. #include <string.h>
  59. #include <utmp.h>
  60. +#define UTMP_FILE _PATH_UTMP
  61. +#define WTMP_FILE _PATH_WTMP
  62. #include "init.h"
  63. #include "initreq.h"
  64. --- sysvinit-2.85/src/ifdown.c.orig 2003-09-20 04:47:44.000000000 +0200
  65. +++ sysvinit-2.85/src/ifdown.c 2003-09-20 04:47:54.000000000 +0200
  66. @@ -14,7 +14,7 @@
  67. #include <sys/ioctl.h>
  68. #include <sys/socket.h>
  69. #include <sys/time.h>
  70. -#include <sys/errno.h>
  71. +#include <errno.h>
  72. #include <net/if.h>
  73. #include <netinet/in.h>
  74. --- sysvinit-2.85/src/last.c.orig 2003-09-20 04:51:58.000000000 +0200
  75. +++ sysvinit-2.85/src/last.c 2003-09-20 04:52:09.000000000 +0200
  76. @@ -19,7 +19,7 @@
  77. #include <sys/types.h>
  78. #include <sys/stat.h>
  79. -#include <sys/fcntl.h>
  80. +#include <fcntl.h>
  81. #include <time.h>
  82. #include <stdio.h>
  83. #include <ctype.h>