From: Andreas Schneider Date: Tue, 7 Jun 2016 11:49:39 +0000 (+0200) Subject: s3-script: Install the findsmb script X-Git-Tag: tdb-1.3.10~901 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ef0a6416228dc37f24d7554b386d6ded9337c0b;p=thirdparty%2Fsamba.git s3-script: Install the findsmb script When we transitioned from autotools to waf we dropped installing the findsmb script. However we create and install the manpage for it so install it in the system again. Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Thu Jun 9 19:10:15 CEST 2016 on sn-devel-144 --- diff --git a/source3/script/findsmb.in b/source3/script/findsmb.in index 546cf8ce7b4..46cda841e37 100755 --- a/source3/script/findsmb.in +++ b/source3/script/findsmb.in @@ -20,7 +20,7 @@ # -r add -r option to nmblookup when finding netbios name # -$SAMBABIN = "@prefix@/bin"; +$SAMBABIN = "@BINDIR@"; for ($i = 0; $i < 2; $i++) { # test for -d and -r options $_ = shift; diff --git a/source3/script/wscript_build b/source3/script/wscript_build index 56c904fe349..25591ea7621 100644 --- a/source3/script/wscript_build +++ b/source3/script/wscript_build @@ -10,3 +10,16 @@ bld.INSTALL_FILES('${BINDIR}', bld.SAMBA_SCRIPT('smbaddshare', pattern='smbaddshare', installdir='.') bld.SAMBA_SCRIPT('smbchangeshare', pattern='smbchangeshare', installdir='.') bld.SAMBA_SCRIPT('smbdeleteshare', pattern='smbdeleteshare', installdir='.') + +sed_expr1 = 's#@PERL@#/usr/bin/env perl#' +sed_expr2 = 's#@BINDIR@#${BINDIR}#' + +bld.SAMBA_GENERATOR('findsmb-script', + source='findsmb.in', + target='findsmb', + rule='sed -e "%s" -e "%s" ${SRC} > ${TGT}' % (sed_expr1, sed_expr2)) + +bld.INSTALL_FILES('${BINDIR}', + 'findsmb', + destname='findsmb', + chmod=0755)