:(
This commit is contained in:
parent
3401b62142
commit
38ddf2aece
37
src/Makefile
37
src/Makefile
@ -60,6 +60,16 @@ MAN8 += sulogin.8
|
||||
MANDB :=
|
||||
endif
|
||||
|
||||
ifeq ($(DISTRO),Void)
|
||||
BIN = fstab-decode halt init killall5 readbootlog runlevel shutdown
|
||||
SBIN =
|
||||
USRBIN =
|
||||
MAN1 = readbootlog.1
|
||||
MAN5 = initscript.5 inittab.5 initctl.5
|
||||
MAN8 = halt.8 init.8 killall5.8 poweroff.8 reboot.8 runlevel.8 shutdown.8
|
||||
MAN8 += telinit.8 fstab-decode.8
|
||||
endif
|
||||
|
||||
ifeq ($(MNTPOINT),yes)
|
||||
BIN += mountpoint
|
||||
MAN1 += mountpoint.1
|
||||
@ -79,8 +89,8 @@ else
|
||||
INSTALL_EXEC = install -m 755
|
||||
INSTALL_DATA = install -m 644
|
||||
endif
|
||||
INSTALL_DIR = install -m 755 -d
|
||||
MANDIR = /usr/share/man
|
||||
INSTALL_DIR = true
|
||||
MANDIR = /share/man
|
||||
|
||||
ifeq ($(WITH_SELINUX),yes)
|
||||
SELINUX_DEF = -DWITH_SELINUX
|
||||
@ -210,27 +220,14 @@ install: all
|
||||
# $(INSTALL_DIR) $(ROOT)/etc/
|
||||
$(INSTALL_DIR) $(ROOT)/etc/inittab.d
|
||||
# $(INSTALL_EXEC) ../doc/initscript.sample $(ROOT)/etc/
|
||||
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/
|
||||
ln -sf halt $(ROOT)/bin/reboot
|
||||
ln -sf halt $(ROOT)/bin/poweroff
|
||||
ln -sf init $(ROOT)/bin/telinit
|
||||
$(INSTALL_DIR) $(ROOT)/include/
|
||||
$(INSTALL_DATA) initreq.h $(ROOT)/include/
|
||||
for man in $(MANPAGES) ; do \
|
||||
targetdir=$(ROOT)$(MANDIR)/$$(dirname $$man)/man$${man##*.}; \
|
||||
$(INSTALL_DIR) $$targetdir; \
|
||||
$(INSTALL_DATA) ../man/$$man $$targetdir/$$(basename $$man); \
|
||||
sed -i "1{ $(MANDB); }" $$targetdir/$$(basename $$man); \
|
||||
done
|
||||
ifeq ($(ROOT),)
|
||||
#
|
||||
# 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
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user