summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-05 19:00:17 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-05 19:00:17 +0000
commita46fdff085e9131145abcc0ce80bc80773ef4c7a (patch)
tree8ed122cd9563c560efef339d43758931b65a6a04
parent560c06a6c84cc3836a0a8be66e1b75163db9ab77 (diff)
logrotate: only install logrotate.conf if not present in target_skeleton
Allow platforms to provide a custom logrotate.conf in their target_skeleton.
-rw-r--r--package/logrotate/logrotate.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/logrotate/logrotate.mk b/package/logrotate/logrotate.mk
index 318f27f8d..220204f8b 100644
--- a/package/logrotate/logrotate.mk
+++ b/package/logrotate/logrotate.mk
@@ -18,7 +18,9 @@ $(LOGROTATE_DIR)/$(LOGROTATE_BINARY): $(LOGROTATE_DIR)/.source
$(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY): $(LOGROTATE_DIR)/$(LOGROTATE_BINARY)
$(MAKE) PREFIX=$(TARGET_DIR) -C $(LOGROTATE_DIR) install
- $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf
+ if [ ! -f $(TARGET_DIR)/etc/logrotate.conf ]; then
+ $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf;
+ fi
$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d
logrotate: popt $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY)