aboutsummaryrefslogtreecommitdiff
path: root/package/logrotate
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <jacmet@sunsite.dk>2009-03-05 19:00:17 +0000
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2009-03-05 19:00:17 +0000
commita46fdff085e9131145abcc0ce80bc80773ef4c7a (patch)
tree8ed122cd9563c560efef339d43758931b65a6a04 /package/logrotate
parent560c06a6c84cc3836a0a8be66e1b75163db9ab77 (diff)
downloadbuildroot-a46fdff085e9131145abcc0ce80bc80773ef4c7a.tar.gz
buildroot-a46fdff085e9131145abcc0ce80bc80773ef4c7a.tar.bz2
logrotate: only install logrotate.conf if not present in target_skeleton
Allow platforms to provide a custom logrotate.conf in their target_skeleton.
Diffstat (limited to 'package/logrotate')
-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 318f27f8dd..220204f8bc 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)