qi: Fix 'rootdir' value, include post-install from proper location
[dragora.git] / patches / sysvinit / sysvinit-2.94-dragora_consolidated-1.patch
blob87752d5cdcd5c413d2754587556ca5fa858561f1
1 --- sysvinit-2.94/src/Makefile.orig 2019-02-24 20:26:33.000000000 -0300
2 +++ sysvinit-2.94/src/Makefile 2019-02-28 16:13:38.917036402 -0300
3 @@ -24,18 +24,18 @@
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 +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 = halt.8 init.8 killall5.8 poweroff.8 reboot.8 runlevel.8
15 MAN8 += shutdown.8 telinit.8 fstab-decode.8 logsave.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 +#USRBIN += utmpdump wall
24 +#MAN1 += utmpdump.1 wall.1
25 +MAN8 += bootlogd.8
26 endif
28 ifeq ($(DISTRO),Debian)
29 @@ -90,14 +90,14 @@
30 endif
32 # Additional libs for GNU libc.
33 -ifneq ($(wildcard /usr/lib*/libcrypt.*),)
34 - SULOGINLIBS += -lcrypt
35 -endif
36 +#ifneq ($(wildcard /usr/lib*/libcrypt.*),)
37 +# SULOGINLIBS += -lcrypt
38 +#endif
40 # Additional libs for GNU libc / multiarch on Debian based systems.
41 -ifneq ($(wildcard /usr/lib/*/libcrypt.*),)
42 - SULOGINLIBS += -lcrypt
43 -endif
44 +#ifneq ($(wildcard /usr/lib/*/libcrypt.*),)
45 +# SULOGINLIBS += -lcrypt
46 +#endif
48 all: $(BIN) $(SBIN) $(USRBIN)
50 @@ -206,10 +206,10 @@
51 ln -sf halt $(ROOT)/sbin/reboot
52 ln -sf halt $(ROOT)/sbin/poweroff
53 ln -sf init $(ROOT)/sbin/telinit
54 - ln -sf /sbin/killall5 $(ROOT)/bin/pidof
55 - if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
56 - ln -sf last $(ROOT)/usr/bin/lastb; \
57 - fi
58 + #ln -sf /sbin/killall5 $(ROOT)/bin/pidof
59 + #if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
60 + # ln -sf last $(ROOT)/usr/bin/lastb; \
61 + #fi
62 $(INSTALL_DIR) $(ROOT)/usr/include/
63 $(INSTALL_DATA) initreq.h $(ROOT)/usr/include/
64 $(INSTALL_DIR) $(ROOT)$(MANDIR)/man1/
65 @@ -231,8 +231,8 @@
67 # This part is skipped on Debian systems, the
68 # debian.preinst script takes care of it.
69 - @if [ ! -p /run/initctl ]; then \
70 - echo "Creating /run/initctl"; \
71 - rm -f /run/initctl; \
72 - mknod -m 600 /run/initctl p; fi
73 + #@if [ ! -p /run/initctl ]; then \
74 + # echo "Creating /run/initctl"; \
75 + # rm -f /run/initctl; \
76 + # mknod -m 600 /run/initctl p; fi
77 endif