diff core/sysvinit/disable-components.patch @ 50:ea6f9731d8b4

core/sysvinit: initial import, closes #1051
author David Demelier <markand@malikania.fr>
date Thu, 28 Feb 2019 20:02:00 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/core/sysvinit/disable-components.patch	Thu Feb 28 20:02:00 2019 +0100
@@ -0,0 +1,62 @@
+--- src/Makefile.orig	2019-02-28 10:43:10.112032134 +0100
++++ src/Makefile	2019-02-28 10:49:57.227210545 +0100
+@@ -23,42 +23,13 @@
+ 
+ # 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
++USRBIN	=
+ 
+-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
+-
+-ifeq ($(DISTRO),)
+-SBIN	+= sulogin bootlogd
+-USRBIN	+= utmpdump wall
+-MAN1	+= utmpdump.1 wall.1
+-MAN8	+= sulogin.8 bootlogd.8
+-endif
+-
+-ifeq ($(DISTRO),Debian)
+-CPPFLAGS+= -DACCTON_OFF
+-SBIN	+= sulogin bootlogd
+-MAN8	+= sulogin.8 bootlogd.8
+-MANDB	:=
+-endif
+-
+-ifeq ($(DISTRO),Owl)
+-USRBIN	+= wall
+-MAN1	+= wall.1
+-MANDB	:=
+-endif
+-
+-ifeq ($(DISTRO),SuSE)
+-CPPFLAGS+= -DUSE_SYSFS -DSANE_TIO -DSIGINT_ONLYONCE -DUSE_ONELINE
+-SBIN	+= sulogin
+-USRBIN	+= utmpdump
+-MAN1	+= utmpdump.1
+-MAN8	+= sulogin.8
+-MANDB	:=
+-endif
++MAN1	=
++MAN5	= initscript.5 inittab.5
++MAN8	= halt.8 init.8 killall5.8 poweroff.8 reboot.8 runlevel.8
++MAN8	+= shutdown.8 telinit.8
+ 
+ ifeq ($(MNTPOINT),yes)
+ BIN	+= mountpoint
+@@ -206,10 +177,6 @@
+ 		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
+ 		$(INSTALL_DIR) $(ROOT)/usr/include/
+ 		$(INSTALL_DATA) initreq.h $(ROOT)/usr/include/
+ 		$(INSTALL_DIR) $(ROOT)$(MANDIR)/man1/