|
@ -1,9 +1,12 @@ |
|
|
|
|
|
################################################################################
|
|
|
#
|
|
|
#
|
|
|
# makefile to install system files
|
|
|
# sysconfdir
|
|
|
#
|
|
|
#
|
|
|
# -----------------------------------------------------------------------------
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
SYSCONFDIR_FILES_DIR = $(PACKAGE_DIR)/sysconfdir/files |
|
|
|
|
|
|
|
|
files-etc: \ |
|
|
sysconfdir: \ |
|
|
$(TARGET_sysconfdir)/date-dummy \
|
|
|
$(TARGET_sysconfdir)/date-dummy \
|
|
|
$(TARGET_sysconfdir)/filesystems \
|
|
|
$(TARGET_sysconfdir)/filesystems \
|
|
|
$(TARGET_sysconfdir)/fstab \
|
|
|
$(TARGET_sysconfdir)/fstab \
|
|
@ -27,59 +30,59 @@ $(TARGET_sysconfdir)/date-dummy: |
|
|
echo "$(shell date +%Y)01010000" > $(@) |
|
|
echo "$(shell date +%Y)01010000" > $(@) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/filesystems: |
|
|
$(TARGET_sysconfdir)/filesystems: |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/filesystems $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/filesystems $(@) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/fstab: |
|
|
$(TARGET_sysconfdir)/fstab: |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/fstab $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/fstab $(@) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/group: |
|
|
$(TARGET_sysconfdir)/group: |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/group $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/group $(@) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/hosts: |
|
|
$(TARGET_sysconfdir)/hosts: |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/hosts $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/hosts $(@) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/issue.net: |
|
|
$(TARGET_sysconfdir)/issue.net: |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/issue.net $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/issue.net $(@) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/model: |
|
|
$(TARGET_sysconfdir)/model: |
|
|
echo $(BOXMODEL) > $(@) |
|
|
echo $(BOXMODEL) > $(@) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/nsswitch.conf: |
|
|
$(TARGET_sysconfdir)/nsswitch.conf: |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/nsswitch.conf $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/nsswitch.conf $(@) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/passwd: |
|
|
$(TARGET_sysconfdir)/passwd: |
|
|
ifeq ($(PERSISTENT_VAR_PARTITION),yes) |
|
|
ifeq ($(PERSISTENT_VAR_PARTITION),yes) |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/passwd $(TARGET_localstatedir)/etc/passwd |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/passwd $(TARGET_localstatedir)/etc/passwd |
|
|
ln -sf /var/etc/passwd $(@) |
|
|
ln -sf /var/etc/passwd $(@) |
|
|
else |
|
|
else |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/passwd $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/passwd $(@) |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/profile: |
|
|
$(TARGET_sysconfdir)/profile: |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/profile $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/profile $(@) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/profile.local: |
|
|
$(TARGET_sysconfdir)/profile.local: |
|
|
ifeq ($(PERSISTENT_VAR_PARTITION),yes) |
|
|
ifeq ($(PERSISTENT_VAR_PARTITION),yes) |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/profile.local-var $(TARGET_localstatedir)/etc/profile.local |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/profile.local-var $(TARGET_localstatedir)/etc/profile.local |
|
|
endif |
|
|
endif |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/profile.local $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/profile.local $(@) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/profile.d: |
|
|
$(TARGET_sysconfdir)/profile.d: |
|
|
$(foreach p,$(wildcard $(TARGET_FILES)/files-etc/profile.d/*.sh),\
|
|
|
$(foreach p,$(wildcard $(SYSCONFDIR_FILES_DIR)/profile.d/*.sh),\
|
|
|
$(INSTALL_DATA) -D $(p) $(TARGET_sysconfdir)/profile.d/$(notdir $(p))$(sep)) |
|
|
$(INSTALL_DATA) -D $(p) $(TARGET_sysconfdir)/profile.d/$(notdir $(p))$(sep)) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/services: |
|
|
$(TARGET_sysconfdir)/services: |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/services $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/services $(@) |
|
|
|
|
|
|
|
|
$(TARGET_sysconfdir)/protocols: |
|
|
$(TARGET_sysconfdir)/protocols: |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/protocols $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/protocols $(@) |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
files-var-etc: \ |
|
|
sysconfdir-var: \ |
|
|
$(TARGET_localstatedir)/etc/fstab |
|
|
$(TARGET_localstatedir)/etc/fstab |
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
$(TARGET_localstatedir)/etc/fstab: |
|
|
$(TARGET_localstatedir)/etc/fstab: |
|
|
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/fstab-var $(@) |
|
|
$(INSTALL_DATA) -D $(SYSCONFDIR_FILES_DIR)/fstab-var $(@) |