Ticket #4297: sysvinit-2.90-consolidated-1.patch

File sysvinit-2.90-consolidated-1.patch, 2.2 KB (added by Anton Maisak, 6 years ago)

patch for new version. Not checked yet. See https://gist.github.com/emmett1/54d55ce9fe95145bb197214aae633d7d

  • src/Makefile

    diff -pruN sysvinit-2.90/src/Makefile sysvinit-2.90.new/src/Makefile
    old new MNTPOINT=  
    2424# For some known distributions we do not build all programs, otherwise we do.
    2525BIN     =
    2626SBIN    = init halt shutdown runlevel killall5 fstab-decode
    27 USRBIN  = last mesg
     27#USRBIN = last mesg
    2828
    29 MAN1    = last.1 lastb.1 mesg.1
     29#MAN1   = last.1 lastb.1 mesg.1
    3030MAN5    = initscript.5 inittab.5 initctl.5
    31 MAN8    = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8
     31#MAN8   = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8
     32MAN8    = halt.8 init.8 killall5.8         poweroff.8 reboot.8 runlevel.8
    3233MAN8    += shutdown.8 telinit.8 fstab-decode.8
    3334
    3435ifeq ($(DISTRO),)
    35 SBIN    += sulogin bootlogd
    36 USRBIN  += utmpdump wall
    37 MAN1    += utmpdump.1 wall.1
    38 MAN8    += sulogin.8 bootlogd.8
     36SBIN    += bootlogd
     37#SBIN   += sulogin bootlogd
     38#USRBIN += utmpdump wall
     39#MAN1   += utmpdump.1 wall.1
     40MAN8    += bootlogd.8
     41#MAN8   += sulogin.8 bootlogd.8
    3942endif
    4043
    4144ifeq ($(DISTRO),Debian)
    install:  
    192195                ln -sf halt $(ROOT)/sbin/reboot
    193196                ln -sf halt $(ROOT)/sbin/poweroff
    194197                ln -sf init $(ROOT)/sbin/telinit
    195                 ln -sf /sbin/killall5 $(ROOT)/bin/pidof
    196                 if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
    197                         ln -sf last $(ROOT)/usr/bin/lastb; \
    198                 fi
     198                #ln -sf /sbin/killall5 $(ROOT)/bin/pidof
     199                #if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
     200                #       ln -sf last $(ROOT)/usr/bin/lastb; \
     201                #fi
    199202                $(INSTALL_DIR) $(ROOT)/usr/include/
    200203                $(INSTALL_DATA) initreq.h $(ROOT)/usr/include/
    201204                $(INSTALL_DIR) $(ROOT)$(MANDIR)/man1/
    install:  
    213216                        $(INSTALL_DATA) ../man/$$man $(ROOT)$(MANDIR)/man8/; \
    214217                        sed -i "1{ $(MANDB); }" $(ROOT)$(MANDIR)/man8/$$man ; \
    215218                done
    216 ifeq ($(ROOT),)
     219#ifeq ($(ROOT),)
    217220                #
    218221                # This part is skipped on Debian systems, the
    219222                # debian.preinst script takes care of it.
    220                 @if [ ! -p /run/initctl ]; then \
    221                  echo "Creating /run/initctl"; \
    222                  rm -f /run/initctl; \
    223                  mknod -m 600 /run/initctl p; fi
    224 endif
     223#               @if [ ! -p /run/initctl ]; then \
     224#                echo "Creating /run/initctl"; \
     225#                rm -f /run/initctl; \
     226#                mknod -m 600 /run/initctl p; fi
     227#endif