sysvinit-3.06-dragora_consolidated-1.patch 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --- sysvinit-3.06/src/Makefile.orig 2022-12-16 14:07:55.000000000 -0300
  2. +++ sysvinit-3.06/src/Makefile 2022-12-16 17:54:07.621053941 -0300
  3. @@ -23,19 +23,17 @@
  4. # For some known distributions we do not build all programs, otherwise we do.
  5. BIN =
  6. -SBIN = init halt shutdown runlevel killall5 fstab-decode logsave
  7. -USRBIN = last mesg readbootlog
  8. +SBIN = init halt shutdown runlevel killall5 fstab-decode
  9. +USRBIN = readbootlog
  10. -MAN1 = last.1 lastb.1 mesg.1 readbootlog.1
  11. +MAN1 = readbootlog.1
  12. MAN5 = initscript.5 inittab.5 initctl.5
  13. -MAN8 = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8
  14. -MAN8 += shutdown.8 telinit.8 fstab-decode.8 logsave.8
  15. +MAN8 = halt.8 init.8 killall5.8 poweroff.8 reboot.8 runlevel.8
  16. +MAN8 += shutdown.8 telinit.8 fstab-decode.8
  17. ifeq ($(DISTRO),)
  18. -SBIN += sulogin bootlogd
  19. -USRBIN += utmpdump wall
  20. -MAN1 += utmpdump.1 wall.1
  21. -MAN8 += sulogin.8 bootlogd.8
  22. +SBIN += bootlogd
  23. +MAN8 += bootlogd.8
  24. endif
  25. ifeq ($(DISTRO),Debian)
  26. @@ -95,16 +93,16 @@
  27. ROOT ?= $(DESTDIR)
  28. # Additional libs for GNU libc.
  29. -ifneq ($(wildcard $(ROOT)/usr/lib*/libcrypt.*),)
  30. - SULOGINLIBS += -lcrypt
  31. -endif
  32. +#ifneq ($(wildcard $(ROOT)/usr/lib*/libcrypt.*),)
  33. +# SULOGINLIBS += -lcrypt
  34. +#endif
  35. # Additional libs for GNU libc / multiarch on Debian based systems.
  36. -ifneq ($(wildcard $(ROOT)/usr/lib/*/libcrypt.*),)
  37. -ifneq ($(findstring -lcrypt, $(SULOGINLIBS)), -lcrypt)
  38. - SULOGINLIBS += -lcrypt
  39. -endif
  40. -endif
  41. +#ifneq ($(wildcard $(ROOT)/usr/lib/*/libcrypt.*),)
  42. +#ifneq ($(findstring -lcrypt, $(SULOGINLIBS)), -lcrypt)
  43. +# SULOGINLIBS += -lcrypt
  44. +#endif
  45. +#endif
  46. all: $(BIN) $(SBIN) $(USRBIN)
  47. @@ -213,10 +211,10 @@
  48. ln -sf halt $(ROOT)/sbin/reboot
  49. ln -sf halt $(ROOT)/sbin/poweroff
  50. ln -sf init $(ROOT)/sbin/telinit
  51. - ln -sf ../sbin/killall5 $(ROOT)/bin/pidof
  52. - if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
  53. - ln -sf last $(ROOT)/usr/bin/lastb; \
  54. - fi
  55. + #ln -sf ../sbin/killall5 $(ROOT)/bin/pidof
  56. + #if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
  57. + # ln -sf last $(ROOT)/usr/bin/lastb; \
  58. + #fi
  59. $(INSTALL_DIR) $(ROOT)/usr/include/
  60. $(INSTALL_DATA) initreq.h $(ROOT)/usr/include/
  61. for man in $(MANPAGES) ; do \
  62. @@ -229,8 +227,8 @@
  63. #
  64. # This part is skipped on Debian systems, the
  65. # debian.preinst script takes care of it.
  66. - @if [ ! -p /run/initctl ]; then \
  67. - echo "Creating /run/initctl"; \
  68. - rm -f /run/initctl; \
  69. - mknod -m 600 /run/initctl p; fi
  70. + #@if [ ! -p /run/initctl ]; then \
  71. + # echo "Creating /run/initctl"; \
  72. + # rm -f /run/initctl; \
  73. + # mknod -m 600 /run/initctl p; fi
  74. endif