You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.0 KiB
51 lines
2.0 KiB
################################################################################
|
|
#
|
|
# sysvinit
|
|
#
|
|
################################################################################
|
|
|
|
SYSVINIT_VERSION = 3.04
|
|
SYSVINIT_DIR = sysvinit-$(SYSVINIT_VERSION)
|
|
SYSVINIT_SOURCE = sysvinit-$(SYSVINIT_VERSION).tar.xz
|
|
SYSVINIT_SITE = http://download.savannah.nongnu.org/releases/sysvinit
|
|
|
|
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse))
|
|
define SYSVINIT_INSTALL_RCS
|
|
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rcS-vuplus $(TARGET_sysconfdir)/init.d/rcS
|
|
endef
|
|
else
|
|
define SYSVINIT_INSTALL_RCS
|
|
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rcS-$(BOXSERIES) $(TARGET_sysconfdir)/init.d/rcS
|
|
endef
|
|
endif
|
|
|
|
define SYSVINIT_INSTALL_FILES
|
|
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/inittab $(TARGET_sysconfdir)/inittab
|
|
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/default-rcS $(TARGET_sysconfdir)/default/rcS
|
|
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rc $(TARGET_sysconfdir)/init.d/rc
|
|
$(SYSVINIT_INSTALL_RCS)
|
|
$(SED) "s|%(BOXMODEL)|$(BOXMODEL)|g" $(TARGET_sysconfdir)/init.d/rcS
|
|
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rcK $(TARGET_sysconfdir)/init.d/rcK
|
|
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/service $(TARGET_sbindir)/service
|
|
$(INSTALL_EXEC) -D support/scripts/update-rc.d $(TARGET_sbindir)/update-rc.d
|
|
endef
|
|
SYSVINIT_TARGET_FINALIZE_HOOKS += SYSVINIT_INSTALL_FILES
|
|
|
|
define SYSVINIT_MAKE_RC_LOCAL_SCRIPTS
|
|
$(MAKE) rc_local-scripts
|
|
endef
|
|
SYSVINIT_TARGET_FINALIZE_HOOKS += SYSVINIT_MAKE_RC_LOCAL_SCRIPTS
|
|
|
|
define SYSVINIT_TARGET_CLEANUP
|
|
$(TARGET_RM) $(addprefix $(TARGET_base_sbindir)/,bootlogd fstab-decode logsave telinit)
|
|
$(TARGET_RM) $(addprefix $(TARGET_bindir)/,last lastb mesg readbootlog utmpdump wall)
|
|
endef
|
|
SYSVINIT_TARGET_FINALIZE_HOOKS += SYSVINIT_TARGET_CLEANUP
|
|
|
|
sysvinit: | $(TARGET_DIR)
|
|
$(call PREPARE)
|
|
$(CHDIR)/$($(PKG)_DIR); \
|
|
$(TARGET_CONFIGURE_ENV) \
|
|
$(MAKE) -C src SULOGINLIBS=-lcrypt; \
|
|
$(MAKE) install ROOT=$(TARGET_DIR) MANDIR=$(REMOVE_mandir)
|
|
$(call TARGET_FOLLOWUP)
|
|
|