tools: NFD startup script
`nfd-start` starts NFD and RIB daemon.
`nfd-stop` stops NFD and RIB daemon.
They are intended for source installation only.
Binary packages should prefer to use system service mechanism if available.
refs #1488
Change-Id: I09f2168619a47fdc0faa78079b7994f30f41ff75
diff --git a/wscript b/wscript
index 440b04d..a32f734 100644
--- a/wscript
+++ b/wscript
@@ -97,6 +97,8 @@
conf.load('coverage')
+ conf.find_program('bash', var='BASH')
+
conf.define('DEFAULT_CONFIG_FILE', '%s/ndn/nfd.conf' % conf.env['SYSCONFDIR'])
conf.write_config_header('config.hpp')
@@ -182,6 +184,13 @@
source=bld.path.ant_glob('docs/manpages/**/*.rst'),
install_path="${MANDIR}/")
+ for script in bld.path.ant_glob('tools/*.sh'):
+ bld(features='subst',
+ source='tools/%s' % (str(script)),
+ target='bin/%s' % (str(script.change_ext(''))),
+ install_path="${BINDIR}",
+ chmod=0755)
+
def docs(bld):
from waflib import Options
Options.commands = ['doxygen', 'sphinx'] + Options.commands