:(
This commit is contained in:
parent
3401b62142
commit
38ddf2aece
37
src/Makefile
37
src/Makefile
@ -60,6 +60,16 @@ MAN8 += sulogin.8
|
|||||||
MANDB :=
|
MANDB :=
|
||||||
endif
|
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)
|
ifeq ($(MNTPOINT),yes)
|
||||||
BIN += mountpoint
|
BIN += mountpoint
|
||||||
MAN1 += mountpoint.1
|
MAN1 += mountpoint.1
|
||||||
@ -79,8 +89,8 @@ else
|
|||||||
INSTALL_EXEC = install -m 755
|
INSTALL_EXEC = install -m 755
|
||||||
INSTALL_DATA = install -m 644
|
INSTALL_DATA = install -m 644
|
||||||
endif
|
endif
|
||||||
INSTALL_DIR = install -m 755 -d
|
INSTALL_DIR = true
|
||||||
MANDIR = /usr/share/man
|
MANDIR = /share/man
|
||||||
|
|
||||||
ifeq ($(WITH_SELINUX),yes)
|
ifeq ($(WITH_SELINUX),yes)
|
||||||
SELINUX_DEF = -DWITH_SELINUX
|
SELINUX_DEF = -DWITH_SELINUX
|
||||||
@ -210,27 +220,14 @@ install: all
|
|||||||
# $(INSTALL_DIR) $(ROOT)/etc/
|
# $(INSTALL_DIR) $(ROOT)/etc/
|
||||||
$(INSTALL_DIR) $(ROOT)/etc/inittab.d
|
$(INSTALL_DIR) $(ROOT)/etc/inittab.d
|
||||||
# $(INSTALL_EXEC) ../doc/initscript.sample $(ROOT)/etc/
|
# $(INSTALL_EXEC) ../doc/initscript.sample $(ROOT)/etc/
|
||||||
ln -sf halt $(ROOT)/sbin/reboot
|
ln -sf halt $(ROOT)/bin/reboot
|
||||||
ln -sf halt $(ROOT)/sbin/poweroff
|
ln -sf halt $(ROOT)/bin/poweroff
|
||||||
ln -sf init $(ROOT)/sbin/telinit
|
ln -sf init $(ROOT)/bin/telinit
|
||||||
ln -sf ../sbin/killall5 $(ROOT)/bin/pidof
|
$(INSTALL_DIR) $(ROOT)/include/
|
||||||
if [ ! -f $(ROOT)/usr/bin/lastb ]; then \
|
$(INSTALL_DATA) initreq.h $(ROOT)/include/
|
||||||
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 \
|
for man in $(MANPAGES) ; do \
|
||||||
targetdir=$(ROOT)$(MANDIR)/$$(dirname $$man)/man$${man##*.}; \
|
targetdir=$(ROOT)$(MANDIR)/$$(dirname $$man)/man$${man##*.}; \
|
||||||
$(INSTALL_DIR) $$targetdir; \
|
$(INSTALL_DIR) $$targetdir; \
|
||||||
$(INSTALL_DATA) ../man/$$man $$targetdir/$$(basename $$man); \
|
$(INSTALL_DATA) ../man/$$man $$targetdir/$$(basename $$man); \
|
||||||
sed -i "1{ $(MANDB); }" $$targetdir/$$(basename $$man); \
|
sed -i "1{ $(MANDB); }" $$targetdir/$$(basename $$man); \
|
||||||
done
|
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