alfs/SRC_ARCHIVE/sysvinit-3.08-consolidated-1.patch
2023-11-14 18:47:30 -05:00

74 lines
2.4 KiB
Diff

Submitted By: Bruce Dubbs <bdubbs at linuxfromscratch dot org>
Date: 2018-03-30
Initial Package Version: 2.89
Upstream Status: Not Submitted
Origin: Self
Description: Remove programs superceeded by other packages: wall, mountpoint,
last, lastb, logsave, mesg, sulogin, and utmpdump.
Rediffed for version 3.06.
diff -urNa a/src/Makefile b/src/Makefile
--- a/src/Makefile 2022-12-16 18:07:55.000000000 +0100
+++ b/src/Makefile 2022-12-17 15:32:29.687817248 +0100
@@ -23,19 +23,22 @@
# For some known distributions we do not build all programs, otherwise we do.
BIN =
-SBIN = init halt shutdown runlevel killall5 fstab-decode logsave
-USRBIN = last mesg readbootlog
+SBIN = init halt shutdown runlevel killall5 fstab-decode
+#USRBIN = last mesg readbootlog
-MAN1 = last.1 lastb.1 mesg.1 readbootlog.1
+#MAN1 = last.1 lastb.1 mesg.1 readbootlog.1
MAN5 = initscript.5 inittab.5 initctl.5
-MAN8 = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8
-MAN8 += shutdown.8 telinit.8 fstab-decode.8 logsave.8
+#MAN8 = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8
+MAN8 = halt.8 init.8 killall5.8 poweroff.8 reboot.8 runlevel.8
+MAN8 += shutdown.8 telinit.8 fstab-decode.8
ifeq ($(DISTRO),)
-SBIN += sulogin bootlogd
-USRBIN += utmpdump wall
-MAN1 += utmpdump.1 wall.1
-MAN8 += sulogin.8 bootlogd.8
+#SBIN += sulogin bootlogd
+SBIN += bootlogd
+#USRBIN += utmpdump wall
+#MAN1 += utmpdump.1 wall.1
+#MAN8 += sulogin.8 bootlogd.8
+MAN8 += bootlogd.8
endif
ifeq ($(DISTRO),Debian)
@@ -213,10 +216,10 @@
ln -sf halt $(ROOT)/sbin/reboot
ln -sf halt $(ROOT)/sbin/poweroff
ln -sf init $(ROOT)/sbin/telinit
- ln -sf ../sbin/killall5 $(ROOT)/bin/pidof
- if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
- ln -sf last $(ROOT)/usr/bin/lastb; \
- fi
+ #ln -sf ../sbin/killall5 $(ROOT)/bin/pidof
+ #if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
+ # ln -sf last $(ROOT)/usr/bin/lastb; \
+ #fi
$(INSTALL_DIR) $(ROOT)/usr/include/
$(INSTALL_DATA) initreq.h $(ROOT)/usr/include/
for man in $(MANPAGES) ; do \
@@ -229,8 +232,8 @@
#
# This part is skipped on Debian systems, the
# debian.preinst script takes care of it.
- @if [ ! -p /run/initctl ]; then \
- echo "Creating /run/initctl"; \
- rm -f /run/initctl; \
- mknod -m 600 /run/initctl p; fi
+ #@if [ ! -p /run/initctl ]; then \
+ #echo "Creating /run/initctl"; \
+ #rm -f /run/initctl; \
+ #mknod -m 600 /run/initctl p; fi
endif