From 49d40d663a12504af0e49c3c5eac6b3e33b4a8c1 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 9 Mar 2009 14:09:25 +0000 Subject: sysklogd: only install init script / config file if not present in skeleton Allow platforms to provide a custom initscript / syslog.conf in their target_skeleton. --- package/sysklogd/sysklogd.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package/sysklogd/sysklogd.mk b/package/sysklogd/sysklogd.mk index 0dd39295c..515d9fbd9 100644 --- a/package/sysklogd/sysklogd.mk +++ b/package/sysklogd/sysklogd.mk @@ -32,8 +32,12 @@ $(SYSKLOGD_DIR)/$(SYSKLOGD_BINARY): $(SYSKLOGD_DIR)/.unpacked $(TARGET_DIR)/$(SYSKLOGD_TARGET_BINARY): $(SYSKLOGD_DIR)/$(SYSKLOGD_BINARY) $(INSTALL) -m 0755 -D $(SYSKLOGD_DIR)/$(SYSKLOGD_SYSLOGD_BINARY) $(TARGET_DIR)/$(SYSKLOGD_SYSLOGD_TARGET_BINARY) $(INSTALL) -m 0755 -D $(SYSKLOGD_DIR)/$(SYSKLOGD_KLOGD_BINARY) $(TARGET_DIR)/$(SYSKLOGD_KLOGD_TARGET_BINARY) - $(INSTALL) -m 0755 -D package/sysklogd/S25syslog $(TARGET_DIR)/etc/init.d - $(INSTALL) -m 0644 -D package/sysklogd/syslog.conf $(TARGET_DIR)/etc/syslog.conf + if [ ! -f $(TARGET_DIR)/etc/init.d/S25syslog ]; then \ + $(INSTALL) -m 0755 -D package/sysklogd/S25syslog $(TARGET_DIR)/etc/init.d; \ + fi + if [ ! -f $(TARGET_DIR)/etc/syslog.conf ]; then \ + $(INSTALL) -m 0644 -D package/sysklogd/syslog.conf $(TARGET_DIR)/etc/syslog.conf; \ + fi sysklogd: uclibc $(TARGET_DIR)/$(SYSKLOGD_TARGET_BINARY) -- cgit v1.2.3