[Buildroot] [PATCH 5/5] mpd: fix mpd.conf installation check
Gustavo Zacarias
gustavo at zacarias.com.ar
Wed Feb 9 13:25:53 UTC 2011
If target /etc/mpd.conf exists the evaluation will be fail thus breaking
the build process. Fix it.
Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
---
package/multimedia/mpd/mpd.mk | 5 +++--
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
--
1.7.3.4
More information about the buildroot
mailing list