[Buildroot] [PATCH 2/2] minidlna: install the config file on the target

Aurélien Chabot aurelien at chabot.fr
Mon Feb 23 23:39:23 UTC 2015


Signed-off-by: Aurélien Chabot <aurelien at chabot.fr>
---
 package/minidlna/minidlna.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/minidlna/minidlna.mk b/package/minidlna/minidlna.mk
index 1ff76e3..7adb832 100644
--- a/package/minidlna/minidlna.mk
+++ b/package/minidlna/minidlna.mk
@@ -24,6 +24,12 @@ MINIDLNA_CONF_OPTS = \
 	--disable-static
 endif
 
+define MINIDLNA_INSTALL_CONF
+	$(INSTALL) -D -m 644 $(@D)/minidlna.conf $(TARGET_DIR)/etc/minidlna.conf
+endef
+
+MINIDLNA_POST_INSTALL_TARGET_HOOKS += MINIDLNA_INSTALL_CONF
+
 define MINIDLNA_INSTALL_INIT_SYSV
 	$(INSTALL) -D -m 0755 package/minidlna/S60minidlnad \
 		$(TARGET_DIR)/etc/init.d/S60minidlnad
-- 
2.3.0




More information about the buildroot mailing list