diff mbox

[base] dupdate: add daemon args as useflag

Message ID 1399965684-17382-1-git-send-email-Svend.Vedstesen@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

Svend Aage Vedstesen May 13, 2014, 7:21 a.m. UTC
---
 recipes/dupdate/dupdate.inc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/recipes/dupdate/dupdate.inc b/recipes/dupdate/dupdate.inc
index 4e781e9..c2c107b 100644
--- a/recipes/dupdate/dupdate.inc
+++ b/recipes/dupdate/dupdate.inc
@@ -11,15 +11,21 @@  S = "${SRCDIR}/dupdate"
 
 inherit autotools
 
-RECIPE_FLAGS += "dupdate_exefile"
+RECIPE_FLAGS += "dupdate_exefile dupdate_args"
 include conf/dupdate.conf
 DEFAULT_USE_dupdate_exefile ?= "run_update.sh"
+DEFAULT_USE_dupdate_args ?= "$DIR -x $EXEFILE -l"
 
 do_configure[postfuncs] =+ "do_configure_EXEFILE"
 do_configure_EXEFILE() {
     sed 's/^EXEFILE.*/EXEFILE="${USE_dupdate_exefile}"/' -i ${S}/src/dupdate.sh
 }
 
+do_configure[postfuncs] =+ "do_configure_ARGS"
+do_configure_ARGS() {
+    sed 's/^ARGS.*/ARGS="${USE_dupdate_args}"/' -i ${S}/src/dupdate.sh
+}
+
 INSTALL_SYSVINIT_POSTFUNC = ""
 INSTALL_SYSVINIT_POSTFUNC:USE_sysvinit = "do_install_sysvinit_dupdate"
 do_install[postfuncs] =+ "${INSTALL_SYSVINIT_POSTFUNC}"