diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-05 19:00:17 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-05 19:00:17 +0000 |
commit | a46fdff085e9131145abcc0ce80bc80773ef4c7a (patch) | |
tree | 8ed122cd9563c560efef339d43758931b65a6a04 /package | |
parent | 560c06a6c84cc3836a0a8be66e1b75163db9ab77 (diff) | |
download | buildroot-novena-a46fdff085e9131145abcc0ce80bc80773ef4c7a.tar.gz buildroot-novena-a46fdff085e9131145abcc0ce80bc80773ef4c7a.zip |
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')
-rw-r--r-- | package/logrotate/logrotate.mk | 4 |
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) |