summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2011-02-09 13:25:53 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2011-02-09 21:50:25 (GMT)
commit0b482314f87281db1f9fba028b028e1542ccf463 (patch)
tree73c08cee8998ae87d473360c29e5d0021bbd8b8c
parent0b69f7438a8bd142be822630f60b18a6d739a6c2 (diff)
downloadbuildroot-0b482314f87281db1f9fba028b028e1542ccf463.tar.gz
buildroot-0b482314f87281db1f9fba028b028e1542ccf463.tar.bz2
mpd: fix mpd.conf installation check
If target /etc/mpd.conf exists the evaluation will be fail thus breaking the build process. Fix it. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/multimedia/mpd/mpd.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/multimedia/mpd/mpd.mk b/package/multimedia/mpd/mpd.mk
index 971ad67..61b107b 100644
--- a/package/multimedia/mpd/mpd.mk
+++ b/package/multimedia/mpd/mpd.mk
@@ -96,9 +96,10 @@ MPD_CONF_OPT += --disable-wavpack
endif
define MPD_INSTALL_EXTRA_FILES
- [ ! -f $(TARGET_DIR)/etc/mpd.conf ] && \
+ @if [ ! -f $(TARGET_DIR)/etc/mpd.conf ]; then \
$(INSTALL) -D package/multimedia/mpd/mpd.conf \
- $(TARGET_DIR)/etc/mpd.conf
+ $(TARGET_DIR)/etc/mpd.conf; \
+ fi
$(INSTALL) -m 0755 -D package/multimedia/mpd/S95mpd \
$(TARGET_DIR)/etc/init.d/S95mpd
endef