mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s3:script: Remove findsmb from default installation
This tool is the only client tool which requires perl. Distributions are removing perl from the default installation now. Also this is a wrapper around nmblookup which is obsolete in the AD world. However it might still be used by someone so move it just to examples/scripts/nmb/ Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Apr 19 14:37:04 UTC 2021 on sn-devel-184
This commit is contained in:
parent
aa2ab7feb1
commit
cc4e6a900a
@ -186,13 +186,6 @@
|
|||||||
can be used to maintain the local user database on
|
can be used to maintain the local user database on
|
||||||
a Samba server.</para></listitem></varlistentry>
|
a Samba server.</para></listitem></varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term><citerefentry><refentrytitle>findsmb</refentrytitle>
|
|
||||||
<manvolnum>1</manvolnum></citerefentry></term>
|
|
||||||
<listitem><para>The <command>findsmb</command> command
|
|
||||||
can be used to find SMB servers on the local network.
|
|
||||||
</para></listitem></varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><citerefentry><refentrytitle>net</refentrytitle>
|
<term><citerefentry><refentrytitle>net</refentrytitle>
|
||||||
<manvolnum>8</manvolnum></citerefentry></term>
|
<manvolnum>8</manvolnum></citerefentry></term>
|
||||||
|
@ -5,7 +5,6 @@ manpages='''
|
|||||||
manpages/cifsdd.8
|
manpages/cifsdd.8
|
||||||
manpages/dbwrap_tool.1
|
manpages/dbwrap_tool.1
|
||||||
manpages/eventlogadm.8
|
manpages/eventlogadm.8
|
||||||
manpages/findsmb.1
|
|
||||||
manpages/idmap_ad.8
|
manpages/idmap_ad.8
|
||||||
manpages/idmap_autorid.8
|
manpages/idmap_autorid.8
|
||||||
manpages/idmap_hash.8
|
manpages/idmap_hash.8
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!@PERL@
|
#!/usr/bin/env perl
|
||||||
#
|
#
|
||||||
# Prints info on all smb responding machines on a subnet.
|
# Prints info on all smb responding machines on a subnet.
|
||||||
# This script needs to be run on a machine without nmbd running and be
|
# This script needs to be run on a machine without nmbd running and be
|
||||||
@ -20,7 +20,7 @@
|
|||||||
# -r add -r option to nmblookup when finding netbios name
|
# -r add -r option to nmblookup when finding netbios name
|
||||||
#
|
#
|
||||||
|
|
||||||
$SAMBABIN = "@BINDIR@";
|
$SAMBABIN = "/usr/bin";
|
||||||
|
|
||||||
for ($i = 0; $i < 2; $i++) { # test for -d and -r options
|
for ($i = 0; $i < 2; $i++) { # test for -d and -r options
|
||||||
$_ = shift;
|
$_ = shift;
|
||||||
@ -158,4 +158,3 @@ foreach $ip (@ipaddrs) # loop through each IP address found
|
|||||||
print "$ip".' 'x(16-length($ip))."$name\n";
|
print "$ip".' 'x(16-length($ip))."$name\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -10,16 +10,3 @@ bld.INSTALL_FILES('${BINDIR}',
|
|||||||
bld.SAMBA_SCRIPT('smbaddshare', pattern='smbaddshare', installdir='.')
|
bld.SAMBA_SCRIPT('smbaddshare', pattern='smbaddshare', installdir='.')
|
||||||
bld.SAMBA_SCRIPT('smbchangeshare', pattern='smbchangeshare', installdir='.')
|
bld.SAMBA_SCRIPT('smbchangeshare', pattern='smbchangeshare', installdir='.')
|
||||||
bld.SAMBA_SCRIPT('smbdeleteshare', pattern='smbdeleteshare', 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=MODE_755)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user