summaryrefslogtreecommitdiff
path: root/net/samba45/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/samba45/files')
-rw-r--r--net/samba45/files/README.FreeBSD.in99
-rw-r--r--net/samba45/files/man/gentest.1133
-rw-r--r--net/samba45/files/man/locktest.1137
-rw-r--r--net/samba45/files/man/masktest.1113
-rw-r--r--net/samba45/files/man/ndrdump.183
-rw-r--r--net/samba45/files/man/nmblookup4.1157
-rw-r--r--net/samba45/files/man/ntlm_auth4.1233
-rw-r--r--net/samba45/files/man/oLschema2ldif.174
-rw-r--r--net/samba45/files/man/regdiff.187
-rw-r--r--net/samba45/files/man/regpatch.181
-rw-r--r--net/samba45/files/man/regshell.1177
-rw-r--r--net/samba45/files/man/regtree.189
-rw-r--r--net/samba45/files/man/smbtorture.1367
-rw-r--r--net/samba45/files/patch-buildtools__scripts__abi_gen.sh17
-rw-r--r--net/samba45/files/patch-buildtools__wafsamba__samba_install.py11
-rw-r--r--net/samba45/files/patch-buildtools__wafsamba__wafsamba.py11
-rw-r--r--net/samba45/files/patch-docs-xml__wscript_build10
-rw-r--r--net/samba45/files/patch-dynconfig__wscript32
-rw-r--r--net/samba45/files/patch-lib__crypto__wscript_configure14
-rw-r--r--net/samba45/files/patch-lib__param__wscript_build11
-rw-r--r--net/samba45/files/patch-lib__socket__wscript_build10
-rw-r--r--net/samba45/files/patch-lib__util__wscript_build11
-rw-r--r--net/samba45/files/patch-nsswitch__wscript_build17
-rw-r--r--net/samba45/files/patch-source3__client__dnsbrowse.c11
-rw-r--r--net/samba45/files/patch-source3__modules__vfs_fruit.c11
-rw-r--r--net/samba45/files/patch-source3__smbd__quotas.c19
-rw-r--r--net/samba45/files/patch-source3__utils__net.c18
-rw-r--r--net/samba45/files/patch-source3__utils__net_time.c19
-rw-r--r--net/samba45/files/patch-source3__wscript38
-rw-r--r--net/samba45/files/patch-source3__wscript_build18
-rw-r--r--net/samba45/files/patch-source4__lib__http__http.c69
-rw-r--r--net/samba45/files/patch-third_party__waf__wafadmin__Logs.py21
-rw-r--r--net/samba45/files/patch-third_party__waf__wafadmin__Tools__cc.py11
-rw-r--r--net/samba45/files/pkg-message.in22
-rw-r--r--net/samba45/files/samba_server.in202
35 files changed, 0 insertions, 2433 deletions
diff --git a/net/samba45/files/README.FreeBSD.in b/net/samba45/files/README.FreeBSD.in
deleted file mode 100644
index b40faa7ceed2..000000000000
--- a/net/samba45/files/README.FreeBSD.in
+++ /dev/null
@@ -1,99 +0,0 @@
-
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !!! Please read before runing any tools !!!
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
-Documentation
-=============
-
- o https://wiki.samba.org/index.php/Samba4/HOWTO
-
- o https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO
-
- o https://wiki.samba.org/index.php/Samba4/samba-tool/domain/classicupgrade/HOWTO
-
-FreeBSD specific information
-============================
-
-* Your configuration is in: %%SAMBA4_CONFDIR%%/%%SAMBA4_CONFIG%%
-
-* All the logs are under: %%SAMBA4_LOGDIR%%
-
-* All the relevant databases are under: %%SAMBA4_LOCKDIR%%
-
-* Provisioning script is: %%PREFIX%%/bin/samba-tool
-
-Samba4 provisioning requires file system(s) with POSIX ACLs support. At
-the moment that is UFS2 only. You have to add 'acls' option to the mount
-flags to get things working.
-
-It is known that ZFS-only installations don't work out of the box with
-Samba4. In partucular, s3fs service requires POSIX ACLs during provi-
-sioning. It is possible to work around that requirement by specifying:
-
- # samba-tool domain provision --interactive --use-xattrs=no --use-ntvfs
-
-And removing later in '%%SAMBA4_CONFIG%%' options like:
-
- 'server services', 'dcerpc endpoint servers', 'posix:eadb'
-
-and adding 'vfs objects = zfsacl' as well. Still this isn't supported
-and tested configuration, so use it at your own risk.
-
-You may find this tutorial useful, if you happen to run Samba4 on
-ZFS-root:
-
- o http://glsan.com/community/samba4
-
-To run this port you need to perform the following steps:
----------------------------------------------------------
-
-0. If you had Samba3 port installed before, please, *take backups* of
-all the relevant files. That includes 'smb.conf' file and all the
-content of the '/var/db/samba/' directory.
-
-If you had Samba4-devel installation before to my knowledge the best
-option would be to start from scratch.
-
-1a. Create new '%%SAMBA4_CONFDIR%%/%%SAMBA4_CONFIG%%' file by running:
-
- # samba-tool domain provision
-
-1b. Or upgrade from the Samba3 'smb.conf' file by running:
-
- # samba-tool domain classicupgrade
-
-%%NSUPDATE%%1c. You will need to specify location of the 'nsupdate' command in the
-%%NSUPDATE%%'%%SAMBA4_CONFIG%%' file:
-%%NSUPDATE%%
-%%NSUPDATE%% nsupdate command = %%PREFIX%%/bin/samba-nsupdate -g
-%%NSUPDATE%%
-2. Put string 'samba_server_enable="YES"' into your /etc/rc.conf.
-
-3. Make sure that your server doesn't run Samba3, OpenLDAP and named.
-Stop them, if necessary.
-
-4. Run '%%PREFIX%%/etc/rc.d/samba_server start' or reboot.
-
-WARNING! This port is still experimental and if you need any asistance,
-please, check archives of samba@lists.samba.org and ask there for help.
-
- https://lists.samba.org/archive/samba/
-
-In case you found a bug which is clearly not related to the port build
-process itself, plese file a bug report at:
-
- https://bugzilla.samba.org/
-
-And add me to CC list.
-
-You may find those tools helpful:
----------------------------------
-
-Microsoft Remote Server Administration Tools (RSAT) for:
-
-* Vista: http://www.microsoft.com/en-us/download/details.aspx?id=21090
-* Windows 7: http://www.microsoft.com/en-us/download/details.aspx?id=7887
-
-
-FreeBSD Samba4 port maintainer: Timur I. Bakeyev <timur@FreeBSD.org>
diff --git a/net/samba45/files/man/gentest.1 b/net/samba45/files/man/gentest.1
deleted file mode 100644
index 272f49a8c295..000000000000
--- a/net/samba45/files/man/gentest.1
+++ /dev/null
@@ -1,133 +0,0 @@
-'\" t
-.\" Title: gentest
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/21/2017
-.\" Manual: Test Suite
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "GENTEST" "1" "03/21/2017" "Samba 4\&.0" "Test Suite"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-gentest \- Run random generic SMB operations against two SMB servers and show the differences in behavior
-.SH "SYNOPSIS"
-.HP \w'\fBgentest\fR\ 'u
-\fBgentest\fR {//server1/share1} {//server2/share2} {\-U\ user%pass} {\-U\ user%pass} [\-s\ seed] [\-o\ numops] [\-a] [\-A] [\-i\ FILE] [\-O] [\-S\ FILE] [\-L] [\-F] [\-C] [\-X]
-.SH "DESCRIPTION"
-.PP
-gentest
-is a utility for detecting differences in behaviour between SMB servers\&. It will run a random set of generic operations against
-\fI//server1/share1\fR
-and then the same random set against
-\fI//server2/share2\fR
-and display the differences in the responses it gets\&.
-.PP
-This utility is used by the Samba team to find differences in behaviour between Samba and Windows servers\&.
-.SH "OPTIONS"
-.PP
-\-U user%pass
-.RS 4
-Specify the user and password to use when logging on on the shares\&. This parameter is mandatory and has to be specified twice\&.
-.RE
-.PP
-\-s seed
-.RS 4
-Seed the random number generator with the specified value\&.
-.RE
-.PP
-\-o numops
-.RS 4
-Set the number of operations to perform\&.
-.RE
-.PP
-\-a
-.RS 4
-Print the operations that are performed\&.
-.RE
-.PP
-\-A
-.RS 4
-Backtrack to find minimal number of operations required to make the response to a certain call differ\&.
-.RE
-.PP
-\-i FILE
-.RS 4
-Specify a file containing the names of fields that have to be ignored (such as time fields)\&. See below for a description of the file format\&.
-.RE
-.PP
-\-O
-.RS 4
-Enable oplocks\&.
-.RE
-.PP
-\-S FILE
-.RS 4
-Set preset seeds file\&. The default is
-gentest_seeds\&.dat\&.
-.RE
-.PP
-\-L
-.RS 4
-Use preset seeds
-.RE
-.PP
-\-F
-.RS 4
-Fast reconnect (just close files)
-.RE
-.PP
-\-C
-.RS 4
-Continuous analysis mode
-.RE
-.PP
-\-X
-.RS 4
-Analyse even when the test succeeded\&.
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 4\&.0 of the Samba suite\&.
-.SH "SEE ALSO"
-.PP
-Samba
-.SH "AUTHOR"
-.PP
-This utility is part of the
-\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2
-suite, which is developed by the global
-\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&.
-.PP
-gentest was written by Andrew Tridgell\&.
-.PP
-This manpage was written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Samba
-.RS 4
-\%http://www.samba.org/
-.RE
-.IP " 2." 4
-Samba Team
-.RS 4
-\%http://www.samba.org/samba/team/
-.RE
diff --git a/net/samba45/files/man/locktest.1 b/net/samba45/files/man/locktest.1
deleted file mode 100644
index 1ebff93dc207..000000000000
--- a/net/samba45/files/man/locktest.1
+++ /dev/null
@@ -1,137 +0,0 @@
-'\" t
-.\" Title: locktest
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/21/2017
-.\" Manual: Test Suite
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "LOCKTEST" "1" "03/21/2017" "Samba 4\&.0" "Test Suite"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-locktest \- Find differences in locking between two SMB servers
-.SH "SYNOPSIS"
-.HP \w'\fBlocktest\fR\ 'u
-\fBlocktest\fR {//server1/share1} {//server2/share2} [\-U\ user%pass] [\-U\ user%pass] [\-s\ seed] [\-o\ numops] [\-a] [\-O] [\-E] [\-Z] [\-R\ range] [\-B\ base] [\-M\ min]
-.SH "DESCRIPTION"
-.PP
-locktest
-is a utility for detecting differences in behaviour in locking between SMB servers\&. It will run a random set of locking operations against
-\fI//server1/share1\fR
-and then the same random set against
-\fI//server2/share2\fR
-and display the differences in the responses it gets\&.
-.PP
-This utility is used by the Samba team to find differences in behaviour between Samba and Windows servers\&.
-.SH "OPTIONS"
-.PP
-\-U user%pass
-.RS 4
-Specify the user and password to use when logging on on the shares\&. This parameter can be specified twice (once for the first server, once for the second)\&.
-.RE
-.PP
-\-s seed
-.RS 4
-Seed the random number generator with the specified value\&.
-.RE
-.PP
-\-o numops
-.RS 4
-Set the number of operations to perform\&.
-.RE
-.PP
-\-a
-.RS 4
-Print the operations that are performed\&.
-.RE
-.PP
-\-A
-.RS 4
-Backtrack to find minimal number of operations required to make the response to a certain call differ\&.
-.RE
-.PP
-\-O
-.RS 4
-Enable oplocks\&.
-.RE
-.PP
-\-u
-.RS 4
-Hide unlock fails\&.
-.RE
-.PP
-\-E
-.RS 4
-enable exact error code checking
-.RE
-.PP
-\-Z
-.RS 4
-enable the zero/zero lock
-.RE
-.PP
-\-R range
-.RS 4
-set lock range
-.RE
-.PP
-\-B base
-.RS 4
-set lock base
-.RE
-.PP
-\-M min
-.RS 4
-set min lock length
-.RE
-.PP
-\-k
-.RS 4
-Use kerberos
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 4\&.0 of the Samba suite\&.
-.SH "SEE ALSO"
-.PP
-Samba
-.SH "AUTHOR"
-.PP
-This utility is part of the
-\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2
-suite, which is developed by the global
-\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&.
-.PP
-locktest was written by Andrew Tridgell\&.
-.PP
-This manpage was written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Samba
-.RS 4
-\%http://www.samba.org/
-.RE
-.IP " 2." 4
-Samba Team
-.RS 4
-\%http://www.samba.org/samba/team/
-.RE
diff --git a/net/samba45/files/man/masktest.1 b/net/samba45/files/man/masktest.1
deleted file mode 100644
index 3bb867e16f51..000000000000
--- a/net/samba45/files/man/masktest.1
+++ /dev/null
@@ -1,113 +0,0 @@
-'\" t
-.\" Title: masktest
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/21/2017
-.\" Manual: Test Suite
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "MASKTEST" "1" "03/21/2017" "Samba 4\&.0" "Test Suite"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-masktest \- Find differences in wildcard matching between Samba\*(Aqs implementation and that of a remote server\&.
-.SH "SYNOPSIS"
-.HP \w'\fBmasktest\fR\ 'u
-\fBmasktest\fR {//server/share} [\-U\ user%pass] [\-d\ debuglevel] [\-W\ workgroup] [\-n\ numloops] [\-s\ seed] [\-a] [\-E] [\-M\ max\ protocol] [\-f\ filechars] [\-m\ maskchars] [\-v]
-.SH "DESCRIPTION"
-.PP
-masktest
-is a utility for detecting differences in behaviour between Samba\*(Aqs own implementation and that of a remote server\&. It will run generate random filenames/masks and check if these match the same files they do on the remote file as they do on the local server\&. It will display any differences it finds\&.
-.PP
-This utility is used by the Samba team to find differences in behaviour between Samba and Windows servers\&.
-.SH "OPTIONS"
-.PP
-\-U user%pass
-.RS 4
-Specify the user and password to use when logging on on the shares\&. This parameter can be specified twice (once for the first server, once for the second)\&.
-.RE
-.PP
-\-s seed
-.RS 4
-Seed the random number generator with the specified value\&.
-.RE
-.PP
-\-n numops
-.RS 4
-Set the number of operations to perform\&.
-.RE
-.PP
-\-a
-.RS 4
-Print the operations that are performed\&.
-.RE
-.PP
-\-M max_protocol
-.RS 4
-Maximum protocol to use\&.
-.RE
-.PP
-\-f
-.RS 4
-Specify characters that can be used when generating file names\&. Default: abcdefghijklm\&.
-.RE
-.PP
-\-E
-.RS 4
-Abort when difference in behaviour is found\&.
-.RE
-.PP
-\-m maskchars
-.RS 4
-Specify characters used for wildcards\&.
-.RE
-.PP
-\-v
-.RS 4
-Be verbose
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 4\&.0 of the Samba suite\&.
-.SH "SEE ALSO"
-.PP
-Samba
-.SH "AUTHOR"
-.PP
-This utility is part of the
-\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2
-suite, which is developed by the global
-\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&.
-.PP
-masktest was written by Andrew Tridgell\&.
-.PP
-This manpage was written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Samba
-.RS 4
-\%http://www.samba.org/
-.RE
-.IP " 2." 4
-Samba Team
-.RS 4
-\%http://www.samba.org/samba/team/
-.RE
diff --git a/net/samba45/files/man/ndrdump.1 b/net/samba45/files/man/ndrdump.1
deleted file mode 100644
index 4b32e0e15f65..000000000000
--- a/net/samba45/files/man/ndrdump.1
+++ /dev/null
@@ -1,83 +0,0 @@
-'\" t
-.\" Title: ndrdump
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/21/2017
-.\" Manual: System Administration tools
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "NDRDUMP" "1" "03/21/2017" "Samba 4\&.0" "System Administration tools"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-ndrdump \- DCE/RPC Packet Parser and Dumper
-.SH "SYNOPSIS"
-.HP \w'\fBndrdump\fR\ 'u
-\fBndrdump\fR [\-c\ context] {pipe} {function} {in|out} {filename}
-.HP \w'\fBndrdump\fR\ 'u
-\fBndrdump\fR [pipe]
-.HP \w'\fBndrdump\fR\ 'u
-\fBndrdump\fR
-.SH "DESCRIPTION"
-.PP
-ndrdump tries to parse the specified
-\fIfilename\fR
-using Samba\*(Aqs parser for the specified pipe and function\&. The third argument should be either
-\fIin\fR
-or
-\fIout\fR, depending on whether the data should be parsed as a request or a reply\&.
-.PP
-Running ndrdump without arguments will list the pipes for which parsers are available\&.
-.PP
-Running ndrdump with one argument will list the functions that Samba can parse for the specified pipe\&.
-.PP
-The primary function of ndrdump is debugging Samba\*(Aqs internal DCE/RPC parsing functions\&. The file being parsed is usually one exported by wiresharks
-\(lqExport selected packet bytes\(rq
-function\&.
-.PP
-The context argument can be used to load context data from the request packet when parsing reply packets (such as array lengths)\&.
-.SH "VERSION"
-.PP
-This man page is correct for version 4\&.0 of the Samba suite\&.
-.SH "SEE ALSO"
-.PP
-wireshark, pidl
-.SH "AUTHOR"
-.PP
-This utility is part of the
-\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2
-suite, which is developed by the global
-\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&.
-.PP
-ndrdump was written by Andrew Tridgell\&.
-.PP
-This manpage was written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Samba
-.RS 4
-\%http://www.samba.org/
-.RE
-.IP " 2." 4
-Samba Team
-.RS 4
-\%http://www.samba.org/samba/team/
-.RE
diff --git a/net/samba45/files/man/nmblookup4.1 b/net/samba45/files/man/nmblookup4.1
deleted file mode 100644
index 8b98f793c915..000000000000
--- a/net/samba45/files/man/nmblookup4.1
+++ /dev/null
@@ -1,157 +0,0 @@
-'\" t
-.\" Title: nmblookup4
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/24/2017
-.\" Manual: User Commands
-.\" Source: Samba 3.2
-.\" Language: English
-.\"
-.TH "NMBLOOKUP4" "1" "03/24/2017" "Samba 3\&.2" "User Commands"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-nmblookup4 \- NetBIOS over TCP/IP client used to lookup NetBIOS names
-.SH "SYNOPSIS"
-.HP \w'\fBnmblookup4\fR\ 'u
-\fBnmblookup4\fR [\-M] [\-R] [\-S] [\-r] [\-A] [\-h] [\-B\ <broadcast\ address>] [\-U\ <unicast\ address>] [\-d\ <debug\ level>] [\-s\ <smb\ config\ file>] [\-i\ <NetBIOS\ scope>] [\-T] [\-f] {name}
-.SH "DESCRIPTION"
-.PP
-This tool is part of the
-\fBsamba\fR(7)
-suite\&.
-.PP
-\fBnmblookup4\fR
-is used to query NetBIOS names and map them to IP addresses in a network using NetBIOS over TCP/IP queries\&. The options allow the name queries to be directed at a particular IP broadcast area or to a particular machine\&. All queries are done over UDP\&.
-.SH "OPTIONS"
-.PP
-\-M
-.RS 4
-Searches for a master browser by looking up the NetBIOS
-\fIname\fR
-with a type of
-\fB0x1d\fR\&. If
-\fI name\fR
-is "\-" then it does a lookup on the special name
-\fB__MSBROWSE__\fR\&. Please note that in order to use the name "\-", you need to make sure "\-" isn\*(Aqt parsed as an argument, e\&.g\&. use :
-\fBnmblookup4 \-M \-\- \-\fR\&.
-.RE
-.PP
-\-R
-.RS 4
-Set the recursion desired bit in the packet to do a recursive lookup\&. This is used when sending a name query to a machine running a WINS server and the user wishes to query the names in the WINS server\&. If this bit is unset the normal (broadcast responding) NetBIOS processing code on a machine is used instead\&. See RFC1001, RFC1002 for details\&.
-.RE
-.PP
-\-S
-.RS 4
-Once the name query has returned an IP address then do a node status query as well\&. A node status query returns the NetBIOS names registered by a host\&.
-.RE
-.PP
-\-r
-.RS 4
-Try and bind to UDP port 137 to send and receive UDP datagrams\&. The reason for this option is a bug in Windows 95 where it ignores the source port of the requesting packet and only replies to UDP port 137\&. Unfortunately, on most UNIX systems root privilege is needed to bind to this port, and in addition, if the
-\fBnmbd\fR(8)
-daemon is running on this machine it also binds to this port\&.
-.RE
-.PP
-\-A
-.RS 4
-Interpret
-\fIname\fR
-as an IP Address and do a node status query on this address\&.
-.RE
-.PP
-\-B <broadcast address>
-.RS 4
-Send the query to the given broadcast address\&. Without this option the default behavior of nmblookup4 is to send the query to the broadcast address of the network interfaces as either auto\-detected or defined in the
-\m[blue]\fB\fIinterfaces\fR\fR\m[]\&\s-2\u[1]\d\s+2
-parameter of the
-\fBsmb.conf\fR(5)
-file\&.
-.RE
-.PP
-\-U <unicast address>
-.RS 4
-Do a unicast query to the specified address or host
-\fIunicast address\fR\&. This option (along with the
-\fI\-R\fR
-option) is needed to query a WINS server\&.
-.RE
-.PP
-\-T
-.RS 4
-This causes any IP addresses found in the lookup to be looked up via a reverse DNS lookup into a DNS name, and printed out before each
-.sp
-\fIIP address \&.\&.\&.\&. NetBIOS name\fR
-.sp
-pair that is the normal output\&.
-.RE
-.PP
-\-f
-.RS 4
-Show which flags apply to the name that has been looked up\&. Possible answers are zero or more of: Response, Authoritative, Truncated, Recursion_Desired, Recursion_Available, Broadcast\&.
-.RE
-.PP
-name
-.RS 4
-This is the NetBIOS name being queried\&. Depending upon the previous options this may be a NetBIOS name or IP address\&. If a NetBIOS name then the different name types may be specified by appending \*(Aq#<type>\*(Aq to the name\&. This name may also be \*(Aq*\*(Aq, which will return all registered names within a broadcast area\&.
-.RE
-.SH "EXAMPLES"
-.PP
-\fBnmblookup4\fR
-can be used to query a WINS server (in the same way
-\fBnslookup\fR
-is used to query DNS servers)\&. To query a WINS server,
-\fBnmblookup4\fR
-must be called like this:
-.PP
-\fBnmblookup4 \-U server \-R \*(Aqname\*(Aq\fR
-.PP
-For example, running :
-.PP
-\fBnmblookup4 \-U samba\&.org \-R \*(AqIRIX#1B\*(Aq\fR
-.PP
-would query the WINS server samba\&.org for the domain master browser (1B name type) for the IRIX workgroup\&.
-.SH "VERSION"
-.PP
-This man page is correct for version 3 of the Samba suite\&.
-.SH "SEE ALSO"
-.PP
-\fBnmbd\fR(8),
-\fBsamba\fR(7), and
-\fBsmb.conf\fR(5)\&.
-.SH "AUTHOR"
-.PP
-The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
-.PP
-The original Samba man pages were written by Karl Auer\&. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at
-\m[blue]\fBftp://ftp\&.icce\&.rug\&.nl/pub/unix/\fR\m[]\&\s-2\u[2]\d\s+2) and updated for the Samba 2\&.0 release by Jeremy Allison\&. The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.
-.SH "NOTES"
-.IP " 1." 4
-\fIinterfaces\fR
-
-.RS 4
-\%[set $man.base.url.for.relative.links]/smb.conf.5.html#INTERFACES
-.RE
-.IP " 2." 4
-ftp://ftp.icce.rug.nl/pub/unix/
-.RS 4
-\%ftp://ftp.icce.rug.nl/pub/unix/
-.RE
diff --git a/net/samba45/files/man/ntlm_auth4.1 b/net/samba45/files/man/ntlm_auth4.1
deleted file mode 100644
index ad1863b7aa56..000000000000
--- a/net/samba45/files/man/ntlm_auth4.1
+++ /dev/null
@@ -1,233 +0,0 @@
-'\" t
-.\" Title: ntlm_auth4
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/24/2017
-.\" Manual: User Commands
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "NTLM_AUTH4" "1" "03/24/2017" "Samba 4\&.0" "User Commands"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-ntlm_auth4 \- tool to allow external access to Winbind\*(Aqs NTLM authentication function
-.SH "SYNOPSIS"
-.HP \w'\fBntlm_auth4\fR\ 'u
-\fBntlm_auth4\fR [\-d\ debuglevel] [\-l\ logdir] [\-s\ <smb\ config\ file>]
-.SH "DESCRIPTION"
-.PP
-This tool is part of the
-\fBsamba\fR(7)
-suite\&.
-.PP
-\fBntlm_auth4\fR
-is a helper utility that authenticates users using NT/LM authentication\&. It returns 0 if the users is authenticated successfully and 1 if access was denied\&. ntlm_auth4 uses winbind to access the user and authentication data for a domain\&. This utility is only indended to be used by other programs (currently squid)\&.
-.SH "OPERATIONAL REQUIREMENTS"
-.PP
-The
-\fBwinbindd\fR(8)
-daemon must be operational for many of these commands to function\&.
-.PP
-Some of these commands also require access to the directory
-winbindd_privileged
-in
-$LOCKDIR\&. This should be done either by running this command as root or providing group access to the
-winbindd_privileged
-directory\&. For security reasons, this directory should not be world\-accessable\&.
-.SH "OPTIONS"
-.PP
-\-\-helper\-protocol=PROTO
-.RS 4
-Operate as a stdio\-based helper\&. Valid helper protocols are:
-.PP
-squid\-2\&.4\-basic
-.RS 4
-Server\-side helper for use with Squid 2\&.4\*(Aqs basic (plaintext) authentication\&.
-.RE
-.PP
-squid\-2\&.5\-basic
-.RS 4
-Server\-side helper for use with Squid 2\&.5\*(Aqs basic (plaintext) authentication\&.
-.RE
-.PP
-squid\-2\&.5\-ntlmssp
-.RS 4
-Server\-side helper for use with Squid 2\&.5\*(Aqs NTLMSSP authentication\&.
-.sp
-Requires access to the directory
-winbindd_privileged
-in
-$LOCKDIR\&. The protocol used is described here:
-\m[blue]\fBhttp://devel\&.squid\-cache\&.org/ntlm/squid_helper_protocol\&.html\fR\m[]
-.RE
-.PP
-ntlmssp\-client\-1
-.RS 4
-Cleint\-side helper for use with arbitary external programs that may wish to use Samba\*(Aqs NTLMSSP authentication knowlege\&.
-.sp
-This helper is a client, and as such may be run by any user\&. The protocol used is effectivly the reverse of the previous protocol\&.
-.RE
-.PP
-gss\-spnego
-.RS 4
-Server\-side helper that implements GSS\-SPNEGO\&. This uses a protocol that is almost the same as
-\fBsquid\-2\&.5\-ntlmssp\fR, but has some subtle differences that are undocumented outside the source at this stage\&.
-.sp
-Requires access to the directory
-winbindd_privileged
-in
-$LOCKDIR\&.
-.RE
-.PP
-gss\-spnego\-client
-.RS 4
-Client\-side helper that implements GSS\-SPNEGO\&. This also uses a protocol similar to the above helpers, but is currently undocumented\&.
-.RE
-.RE
-.PP
-\-\-username=USERNAME
-.RS 4
-Specify username of user to authenticate
-.RE
-.PP
-\-\-domain=DOMAIN
-.RS 4
-Specify domain of user to authenticate
-.RE
-.PP
-\-\-workstation=WORKSTATION
-.RS 4
-Specify the workstation the user authenticated from
-.RE
-.PP
-\-\-challenge=STRING
-.RS 4
-NTLM challenge (in HEXADECIMAL)
-.RE
-.PP
-\-\-lm\-response=RESPONSE
-.RS 4
-LM Response to the challenge (in HEXADECIMAL)
-.RE
-.PP
-\-\-nt\-response=RESPONSE
-.RS 4
-NT or NTLMv2 Response to the challenge (in HEXADECIMAL)
-.RE
-.PP
-\-\-password=PASSWORD
-.RS 4
-User\*(Aqs plaintext password
-.sp
-If not specified on the command line, this is prompted for when required\&.
-.RE
-.PP
-\-\-request\-lm\-key
-.RS 4
-Retrieve LM session key
-.RE
-.PP
-\-\-request\-nt\-key
-.RS 4
-Request NT key
-.RE
-.PP
-\-\-diagnostics
-.RS 4
-Perform Diagnostics on the authentication chain\&. Uses the password from
-\fB\-\-password\fR
-or prompts for one\&.
-.RE
-.PP
-\-\-require\-membership\-of={SID|Name}
-.RS 4
-Require that a user be a member of specified group (either name or SID) for authentication to succeed\&.
-.RE
-.SH "EXAMPLE SETUP"
-.PP
-To setup ntlm_auth4 for use by squid 2\&.5, with both basic and NTLMSSP authentication, the following should be placed in the
-squid\&.conf
-file\&.
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-auth_param ntlm program ntlm_auth4 \-\-helper\-protocol=squid\-2\&.5\-ntlmssp
-auth_param basic program ntlm_auth4 \-\-helper\-protocol=squid\-2\&.5\-basic
-auth_param basic children 5
-auth_param basic realm Squid proxy\-caching web server
-auth_param basic credentialsttl 2 hours
-.fi
-.if n \{\
-.RE
-.\}
-.if n \{\
-.sp
-.\}
-.RS 4
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBNote\fR
-.ps -1
-.br
-.PP
-This example assumes that ntlm_auth4 has been installed into your path, and that the group permissions on
-winbindd_privileged
-are as described above\&.
-.sp .5v
-.RE
-.PP
-To setup ntlm_auth4 for use by squid 2\&.5 with group limitation in addition to the above example, the following should be added to the
-squid\&.conf
-file\&.
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-auth_param ntlm program ntlm_auth4 \-\-helper\-protocol=squid\-2\&.5\-ntlmssp \-\-require\-membership\-of=\*(AqWORKGROUP\eDomain Users\*(Aq
-auth_param basic program ntlm_auth4 \-\-helper\-protocol=squid\-2\&.5\-basic \-\-require\-membership\-of=\*(AqWORKGROUP\eDomain Users\*(Aq
-.fi
-.if n \{\
-.RE
-.\}
-.SH "TROUBLESHOOTING"
-.PP
-If you\*(Aqre experiencing problems with authenticating Internet Explorer running under MS Windows 9X or Millenium Edition against ntlm_auth4\*(Aqs NTLMSSP authentication helper (\-\-helper\-protocol=squid\-2\&.5\-ntlmssp), then please read
-\m[blue]\fBthe Microsoft Knowledge Base article #239869 and follow instructions described there\fR\m[]\&\s-2\u[1]\d\s+2\&.
-.SH "VERSION"
-.PP
-This man page is correct for version 3\&.0 of the Samba suite\&.
-.SH "AUTHOR"
-.PP
-The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
-.PP
-The ntlm_auth4 manpage was written by Jelmer Vernooij and Andrew Bartlett\&.
-.SH "NOTES"
-.IP " 1." 4
-the Microsoft Knowledge Base article #239869 and follow instructions described there
-.RS 4
-\%http://support.microsoft.com/support/kb/articles/Q239/8/69.ASP
-.RE
diff --git a/net/samba45/files/man/oLschema2ldif.1 b/net/samba45/files/man/oLschema2ldif.1
deleted file mode 100644
index a5538d30c040..000000000000
--- a/net/samba45/files/man/oLschema2ldif.1
+++ /dev/null
@@ -1,74 +0,0 @@
-'\" t
-.\" Title: oLschema2ldif
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/24/2017
-.\" Manual: System Administration tools
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "OLSCHEMA2LDIF" "1" "03/24/2017" "Samba 4\&.0" "System Administration tools"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-oLschema2ldif \- Converts LDAP schema\*(Aqs to LDB\-compatible LDIF
-.SH "SYNOPSIS"
-.HP \w'\fBoLschema2ldif\fR\ 'u
-\fBoLschema2ldif\fR [\-I\ INPUT\-FILE] [\-O\ OUTPUT\-FILE]
-.SH "DESCRIPTION"
-.PP
-oLschema2ldif is a simple tool that converts standard OpenLDAP schema files to a LDIF format that is understood by LDB\&.
-.SH "OPTIONS"
-.PP
-\-I input\-file
-.RS 4
-OpenLDAP schema to read\&. If none are specified, the schema file will be read from standard input\&.
-.RE
-.PP
-\-O output\-file
-.RS 4
-File to write ldif version of schema to\&.
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 4\&.0 of the Samba suite\&.
-.SH "SEE ALSO"
-.PP
-ldb(7), ldbmodify, ldbdel, ldif(5)
-.SH "AUTHOR"
-.PP
-ldb was written by
-\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&. oLschema2ldif was written by
-\m[blue]\fBSimo Sorce\fR\m[]\&\s-2\u[2]\d\s+2\&.
-.PP
-If you wish to report a problem or make a suggestion then please see the
-\m[blue]\fB\%http://ldb.samba.org/\fR\m[]
-web site for current contact and maintainer information\&.
-.SH "NOTES"
-.IP " 1." 4
-Andrew Tridgell
-.RS 4
-\%http://samba.org/~tridge/
-.RE
-.IP " 2." 4
-Simo Sorce
-.RS 4
-\%mailto:idra@samba.org
-.RE
diff --git a/net/samba45/files/man/regdiff.1 b/net/samba45/files/man/regdiff.1
deleted file mode 100644
index 5828876a99ab..000000000000
--- a/net/samba45/files/man/regdiff.1
+++ /dev/null
@@ -1,87 +0,0 @@
-'\" t
-.\" Title: regdiff
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/21/2017
-.\" Manual: System Administration tools
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "REGDIFF" "1" "03/21/2017" "Samba 4\&.0" "System Administration tools"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-regdiff \- Diff program for Windows registry files
-.SH "SYNOPSIS"
-.HP \w'\fBregdiff\fR\ 'u
-\fBregdiff\fR [\-\-help] [\-\-backend=BACKEND] [\-\-credentials=CREDENTIALS] [location]
-.SH "DESCRIPTION"
-.PP
-regdiff compares two Windows registry files key by key and value by value and generates a text file that contains the differences between the two files\&.
-.PP
-A file generated by regdiff can later be applied to a registry file by the regpatch utility\&.
-.PP
-regdiff and regpatch use the same file format as the regedit32\&.exe utility from Windows\&.
-.SH "OPTIONS"
-.PP
-\-\-help
-.RS 4
-Show list of available options\&.
-.RE
-.PP
-\-\-backend BACKEND
-.RS 4
-Name of backend to load\&. Possible values are: creg, regf, dir and rpc\&. The default is
-\fIdir\fR\&.
-.sp
-This argument can be specified twice: once for the first registry file and once for the second\&.
-.RE
-.PP
-\-\-credentials=CREDENTIALS
-.RS 4
-Credentials to use, if any\&. Password should be separated from user name by a percent sign\&.
-.sp
-This argument can be specified twice: once for the first registry file and once for the second\&.
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 4\&.0 of the Samba suite\&.
-.SH "SEE ALSO"
-.PP
-gregedit, regshell, regpatch, regtree, samba, patch, diff
-.SH "AUTHOR"
-.PP
-This utility is part of the
-\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2
-suite, which is developed by the global
-\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&.
-.PP
-This manpage and regdiff were written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Samba
-.RS 4
-\%http://www.samba.org/
-.RE
-.IP " 2." 4
-Samba Team
-.RS 4
-\%http://www.samba.org/samba/team/
-.RE
diff --git a/net/samba45/files/man/regpatch.1 b/net/samba45/files/man/regpatch.1
deleted file mode 100644
index ac290c39db2b..000000000000
--- a/net/samba45/files/man/regpatch.1
+++ /dev/null
@@ -1,81 +0,0 @@
-'\" t
-.\" Title: regpatch
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/21/2017
-.\" Manual: System Administration tools
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "REGPATCH" "1" "03/21/2017" "Samba 4\&.0" "System Administration tools"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-regpatch \- Applies registry patches to registry files
-.SH "SYNOPSIS"
-.HP \w'\fBregpatch\fR\ 'u
-\fBregpatch\fR [\-\-help] [\-\-backend=BACKEND] [\-\-credentials=CREDENTIALS] [location] [patch\-file]
-.SH "DESCRIPTION"
-.PP
-The regpatch utility applies registry patches to Windows registry files\&. The patch files should have the same format as is being used by the regdiff utility and regedit32\&.exe from Windows\&.
-.PP
-If no patch file is specified on the command line, regpatch attempts to read it from standard input\&.
-.SH "OPTIONS"
-.PP
-\-\-help
-.RS 4
-Show list of available options\&.
-.RE
-.PP
-\-\-backend BACKEND
-.RS 4
-Name of backend to load\&. Possible values are: creg, regf, dir and rpc\&. The default is
-\fIdir\fR\&.
-.RE
-.PP
-\-\-credentials=CREDENTIALS
-.RS 4
-Credentials to use, if any\&. Password should be separated from user name by a percent sign\&.
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 4\&.0 of the Samba suite\&.
-.SH "SEE ALSO"
-.PP
-regdiff, regtree, regshell, gregedit, samba, diff, patch
-.SH "AUTHOR"
-.PP
-This utility is part of the
-\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2
-suite, which is developed by the global
-\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&.
-.PP
-This manpage and regpatch were written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Samba
-.RS 4
-\%http://www.samba.org/
-.RE
-.IP " 2." 4
-Samba Team
-.RS 4
-\%http://www.samba.org/samba/team/
-.RE
diff --git a/net/samba45/files/man/regshell.1 b/net/samba45/files/man/regshell.1
deleted file mode 100644
index 67bbebc7b819..000000000000
--- a/net/samba45/files/man/regshell.1
+++ /dev/null
@@ -1,177 +0,0 @@
-'\" t
-.\" Title: regshell
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/21/2017
-.\" Manual: System Administration tools
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "REGSHELL" "1" "03/21/2017" "Samba 4\&.0" "System Administration tools"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-regshell \- Windows registry file browser using readline
-.SH "SYNOPSIS"
-.HP \w'\fBregshell\fR\ 'u
-\fBregshell\fR [\-\-help] [\-\-backend=BACKEND] [\-\-credentials=CREDENTIALS] [location]
-.SH "DESCRIPTION"
-.PP
-regshell is a utility that lets you browse thru a Windows registry file as if you were using a regular unix shell to browse thru a file system\&.
-.SH "OPTIONS"
-.PP
-\-\-help
-.RS 4
-Show list of available options\&.
-.RE
-.PP
-\-\-backend BACKEND
-.RS 4
-Name of backend to load\&. Possible values are: creg, regf, dir and rpc\&. The default is
-\fIdir\fR\&.
-.RE
-.PP
-\-\-credentials=CREDENTIALS
-.RS 4
-Credentials to use, if any\&. Password should be separated from user name by a percent sign\&.
-.RE
-.SH "COMMANDS"
-.PP
-ck|cd <keyname>
-.RS 4
-Go to the specified subkey\&.
-.RE
-.PP
-ch|predef [predefined\-key\-name]
-.RS 4
-Go to the specified predefined key\&.
-.RE
-.PP
-list|ls
-.RS 4
-List subkeys and values of the current key\&.
-.RE
-.PP
-mkkey|mkdir <keyname>
-.RS 4
-Create a key with the specified
-\fIkeyname\fR
-as a subkey of the current key\&.
-.RE
-.PP
-rmval|rm <valname>
-.RS 4
-Delete the specified value\&.
-.RE
-.PP
-rmkey|rmdir <keyname>
-.RS 4
-Delete the specified subkey recursively\&.
-.RE
-.PP
-pwd|pwk
-.RS 4
-Print the full name of the current key\&.
-.RE
-.PP
-set|update
-.RS 4
-Update the value of a key value\&. Not implemented at the moment\&.
-.RE
-.PP
-help|?
-.RS 4
-Print a list of available commands\&.
-.RE
-.PP
-exit|quit
-.RS 4
-Leave regshell\&.
-.RE
-.SH "EXAMPLES"
-.PP
-Browsing thru a nt4 registry file
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-\fBregshell \-b nt4 NTUSER\&.DAT\fR
-$$$PROTO\&.HIV> \fBls\fR
-K AppEvents
-K Console
-K Control Panel
-K Environment
-K Identities
-K Keyboard Layout
-K Network
-K Printers
-K Software
-K UNICODE Program Groups
-K Windows 3\&.1 Migration Status
-$$$PROTO\&.HIV> \fBexit\fR
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Listing the subkeys of HKEY_CURRENT_USER\eAppEvents on a remote computer:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-\fBregshell \-\-remote=ncacn_np:aurelia \-c "jelmer%secret"\fR
-HKEY_CURRENT_MACHINE> \fBpredef HKEY_CURRENT_USER\fR
-HKEY_CURRENT_USER> \fBcd AppEvents\fR
-Current path is: HKEY_CURRENT_USER\eAppEvents
-HKEY_CURRENT_USER\eAppEvents> \fBls\fR
-K EventLabels
-K Schemes
-HKEY_CURRENT_USER\eAppEvents> \fBexit\fR
-.fi
-.if n \{\
-.RE
-.\}
-.SH "VERSION"
-.PP
-This man page is correct for version 4\&.0 of the Samba suite\&.
-.SH "SEE ALSO"
-.PP
-regtree, regdiff, regpatch, gregedit, samba
-.SH "AUTHOR"
-.PP
-This utility is part of the
-\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2
-suite, which is developed by the global
-\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&.
-.PP
-This manpage and regshell were written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Samba
-.RS 4
-\%http://www.samba.org/
-.RE
-.IP " 2." 4
-Samba Team
-.RS 4
-\%http://www.samba.org/samba/team/
-.RE
diff --git a/net/samba45/files/man/regtree.1 b/net/samba45/files/man/regtree.1
deleted file mode 100644
index bd6d2997e756..000000000000
--- a/net/samba45/files/man/regtree.1
+++ /dev/null
@@ -1,89 +0,0 @@
-'\" t
-.\" Title: regtree
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/21/2017
-.\" Manual: System Administration tools
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "REGTREE" "1" "03/21/2017" "Samba 4\&.0" "System Administration tools"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-regtree \- Text\-mode registry viewer
-.SH "SYNOPSIS"
-.HP \w'\fBregtree\fR\ 'u
-\fBregtree\fR [\-\-help] [\-\-backend=BACKEND] [\-\-fullpath] [\-\-no\-values] [\-\-credentials=CREDENTIALS] [location]
-.SH "DESCRIPTION"
-.PP
-The regtree utility prints out all the contents of a Windows registry file\&. Subkeys are printed with one level more indentation than their parents\&.
-.SH "OPTIONS"
-.PP
-\-\-help
-.RS 4
-Show list of available options\&.
-.RE
-.PP
-\-\-backend BACKEND
-.RS 4
-Name of backend to load\&. Possible values are: creg, regf, dir and rpc\&. The default is
-\fIdir\fR\&.
-.RE
-.PP
-\-\-credentials=CREDENTIALS
-.RS 4
-Credentials to use, if any\&. Password should be separated from user name by a percent sign\&.
-.RE
-.PP
-\-\-fullpath
-.RS 4
-Print the full path to each key instead of only its name\&.
-.RE
-.PP
-\-\-no\-values
-.RS 4
-Don\*(Aqt print values, just keys\&.
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 4\&.0 of the Samba suite\&.
-.SH "SEE ALSO"
-.PP
-gregedit, regshell, regdiff, regpatch, samba
-.SH "AUTHOR"
-.PP
-This utility is part of the
-\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2
-suite, which is developed by the global
-\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&.
-.PP
-This manpage and regtree were written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Samba
-.RS 4
-\%http://www.samba.org/
-.RE
-.IP " 2." 4
-Samba Team
-.RS 4
-\%http://www.samba.org/samba/team/
-.RE
diff --git a/net/samba45/files/man/smbtorture.1 b/net/samba45/files/man/smbtorture.1
deleted file mode 100644
index c35fe067bd88..000000000000
--- a/net/samba45/files/man/smbtorture.1
+++ /dev/null
@@ -1,367 +0,0 @@
-'\" t
-.\" Title: smbtorture
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 03/21/2017
-.\" Manual: Test Suite
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "SMBTORTURE" "1" "03/21/2017" "Samba 4\&.0" "Test Suite"
-.\" -----------------------------------------------------------------
-.\" * Define some portability stuff
-.\" -----------------------------------------------------------------
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.\" http://bugs.debian.org/507673
-.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.ie \n(.g .ds Aq \(aq
-.el .ds Aq '
-.\" -----------------------------------------------------------------
-.\" * set default formatting
-.\" -----------------------------------------------------------------
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.\" -----------------------------------------------------------------
-.\" * MAIN CONTENT STARTS HERE *
-.\" -----------------------------------------------------------------
-.SH "NAME"
-smbtorture \- Run a series of tests against a SMB server
-.SH "SYNOPSIS"
-.HP \w'\fBsmbtorture\fR\ 'u
-\fBsmbtorture\fR {//server/share} [\-d\ debuglevel] [\-U\ user%pass] [\-k] [\-N\ numprocs] [\-n\ netbios_name] [\-W\ workgroup] [\-o\ num_operations] [\-e\ num\ files(entries)] [\-O\ socket_options] [\-m\ maximum_protocol] [\-L] [\-c\ CLIENT\&.TXT] [\-t\ timelimit] [\-C\ filename] [\-A] [\-p\ port] [\-s\ seed] [\-f\ max_failures] [\-X] {BINDING\-STRING|UNC} {TEST1} [TEST2] [\&.\&.\&.]
-.SH "DESCRIPTION"
-.PP
-smbtorture is a testsuite that runs several tests against a SMB server\&. All tests are known to succeed against a Windows 2003 server (?)\&. Smbtorture\*(Aqs primary goal is finding differences in implementations of the SMB protocol and testing SMB servers\&.
-.PP
-Any number of tests can be specified on the command\-line\&. If no tests are specified, all tests are run\&.
-.PP
-If no arguments are specified at all, all available options and tests are listed\&.
-.SS "Binding string format"
-.PP
-The binding string format is:
-.PP
-TRANSPORT:host[flags]
-.PP
-Where TRANSPORT is either ncacn_np for SMB, ncacn_ip_tcp for RPC/TCP or ncalrpc for local connections\&.
-.PP
-\*(Aqhost\*(Aq is an IP or hostname or netbios name\&. If the binding string identifies the server side of an endpoint, \*(Aqhost\*(Aq may be an empty string\&.
-.PP
-\*(Aqflags\*(Aq can include a SMB pipe name if using the ncacn_np transport or a TCP port number if using the ncacn_ip_tcp transport, otherwise they will be auto\-determined\&.
-.PP
-other recognised flags are:
-.PP
-sign
-.RS 4
-enable ntlmssp signing
-.RE
-.PP
-seal
-.RS 4
-enable ntlmssp sealing
-.RE
-.PP
-connect
-.RS 4
-enable rpc connect level auth (auth, but no sign or seal)
-.RE
-.PP
-validate
-.RS 4
-enable the NDR validator
-.RE
-.PP
-print
-.RS 4
-enable debugging of the packets
-.RE
-.PP
-bigendian
-.RS 4
-use bigendian RPC
-.RE
-.PP
-padcheck
-.RS 4
-check reply data for non\-zero pad bytes
-.RE
-.PP
-For example, these all connect to the samr pipe:
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_np:myserver
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_np:myserver[samr]
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_np:myserver[\e\epipe\e\esamr]
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_np:myserver[/pipe/samr]
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_np:myserver[samr,sign,print]
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_np:myserver[\e\epipe\e\esamr,sign,seal,bigendian]
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_np:myserver[/pipe/samr,seal,validate]
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_np:
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_np:[/pipe/samr]
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_ip_tcp:myserver
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_ip_tcp:myserver[1024]
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncacn_ip_tcp:myserver[1024,sign,seal]
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-ncalrpc:
-.RE
-.SS "UNC Format"
-.PP
-The UNC format is:
-.PP
-//server/share
-.SH "OPTIONS"
-.PP
-\-d debuglevel
-.RS 4
-Use the specified Samba debug level\&. A higher debug level means more output\&.
-.RE
-.PP
-\-U user%pass
-.RS 4
-Use the specified username/password combination when logging in to a remote server\&.
-.RE
-.PP
-\-k
-.RS 4
-Use kerberos when authenticating\&.
-.RE
-.PP
-\-W workgroup
-.RS 4
-Use specified name as our workgroup name\&.
-.RE
-.PP
-\-n netbios_name
-.RS 4
-Use specified name as our NetBIOS name\&.
-.RE
-.PP
-\-O socket_options
-.RS 4
-Use specified socket options, equivalent of the smb\&.conf option
-\(lqsocket options\(rq\&. See the smb\&.conf(5) manpage for details\&.
-.RE
-.PP
-\-m max_protocol
-.RS 4
-Specify the maximum SMB dialect that should be used\&. Possible values are: CORE, COREPLUS, LANMAN1, LANMAN2, NT1
-.RE
-.PP
-\-s seed
-.RS 4
-Initialize the randomizer using
-\fIseed\fR
-as seed\&.
-.RE
-.PP
-\-L
-.RS 4
-Use oplocks\&.
-.RE
-.PP
-\-X
-.RS 4
-Enable dangerous tests\&. Use with care! This might crash your server\&.\&.\&.
-.RE
-.PP
-\-t timelimit
-.RS 4
-Specify the NBENCH time limit in seconds\&. Defaults to 600\&.
-.RE
-.PP
-\-p ports
-.RS 4
-Specify ports to connect to\&.
-.RE
-.PP
-\-c file
-.RS 4
-Read NBENCH commands from
-\fIfile\fR
-instead of from CLIENT\&.TXT\&.
-.RE
-.PP
-\-A
-.RS 4
-Show not just OK or FAILED but more detailed output\&. Used only by DENY test at the moment\&.
-.RE
-.PP
-\-C filename
-.RS 4
-Load a list of UNC names from the specified filename\&. Smbtorture instances will connect to a random host from this list\&.
-.RE
-.PP
-\-N numprocs
-.RS 4
-Specify number of smbtorture processes to launch\&.
-.RE
-.PP
-\-o num_operations
-.RS 4
-Number of times some operations should be tried before assuming they\*(Aqre output is consistent (default:100)\&.
-.RE
-.PP
-\-e num_files
-.RS 4
-Number of entries to use in certain tests (such as creating X files) (default: 1000)\&.
-.RE
-.PP
-\-f max_failures
-.RS 4
-Number of failures before aborting a test (default: 1)\&.
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 4\&.0 of the Samba suite\&.
-.SH "SEE ALSO"
-.PP
-Samba
-.SH "AUTHOR"
-.PP
-This utility is part of the
-\m[blue]\fBSamba\fR\m[]\&\s-2\u[1]\d\s+2
-suite, which is developed by the global
-\m[blue]\fBSamba Team\fR\m[]\&\s-2\u[2]\d\s+2\&.
-.PP
-smbtorture was written by Andrew Tridgell\&.
-.PP
-This manpage was written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Samba
-.RS 4
-\%http://www.samba.org/
-.RE
-.IP " 2." 4
-Samba Team
-.RS 4
-\%http://www.samba.org/samba/team/
-.RE
diff --git a/net/samba45/files/patch-buildtools__scripts__abi_gen.sh b/net/samba45/files/patch-buildtools__scripts__abi_gen.sh
deleted file mode 100644
index 0fb2dcaa165c..000000000000
--- a/net/samba45/files/patch-buildtools__scripts__abi_gen.sh
+++ /dev/null
@@ -1,17 +0,0 @@
---- buildtools/scripts/abi_gen.sh.orig 2016-01-26 11:45:46 UTC
-+++ buildtools/scripts/abi_gen.sh
-@@ -9,6 +9,7 @@ GDBSCRIPT="gdb_syms.$$"
- cat <<EOF
- set height 0
- set width 0
-+set print sevenbit-strings on
- EOF
- nm "$SHAREDLIB" | cut -d' ' -f2- | egrep '^[BDGTRVWS]' | grep -v @ | egrep -v ' (__bss_start|_edata|_init|_fini|_end)' | cut -c3- | sort | while read s; do
- echo "echo $s: "
-@@ -17,5 +18,5 @@ done
- ) > $GDBSCRIPT
-
- # forcing the terminal avoids a problem on Fedora12
--TERM=none gdb -batch -x $GDBSCRIPT "$SHAREDLIB" < /dev/null
-+TERM=none %%GDB_CMD%% -batch -x $GDBSCRIPT "$SHAREDLIB" < /dev/null
- rm -f $GDBSCRIPT
diff --git a/net/samba45/files/patch-buildtools__wafsamba__samba_install.py b/net/samba45/files/patch-buildtools__wafsamba__samba_install.py
deleted file mode 100644
index 66aa5190000b..000000000000
--- a/net/samba45/files/patch-buildtools__wafsamba__samba_install.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- buildtools/wafsamba/samba_install.py.orig 2016-01-26 11:45:46 UTC
-+++ buildtools/wafsamba/samba_install.py
-@@ -118,7 +118,7 @@ def install_library(self):
- inst_name = bld.make_libname(t.target)
- elif self.vnum:
- vnum_base = self.vnum.split('.')[0]
-- install_name = bld.make_libname(target_name, version=self.vnum)
-+ install_name = bld.make_libname(target_name, version=vnum_base)
- install_link = bld.make_libname(target_name, version=vnum_base)
- inst_name = bld.make_libname(t.target)
- if not self.private_library:
diff --git a/net/samba45/files/patch-buildtools__wafsamba__wafsamba.py b/net/samba45/files/patch-buildtools__wafsamba__wafsamba.py
deleted file mode 100644
index aee9330a38af..000000000000
--- a/net/samba45/files/patch-buildtools__wafsamba__wafsamba.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./buildtools/wafsamba/wafsamba.py.orig 2015-07-21 09:47:48.000000000 +0000
-+++ ./buildtools/wafsamba/wafsamba.py 2015-10-05 20:12:39.057228568 +0000
-@@ -892,7 +892,7 @@
- bld.env.SAMBA_EXPAND_XSL = bld.srcnode.abspath() + '/docs-xml/xslt/expand-sambadoc.xsl'
- bld.env.SAMBA_MAN_XSL = bld.srcnode.abspath() + '/docs-xml/xslt/man.xsl'
- bld.env.SAMBA_CATALOG = bld.srcnode.abspath() + '/bin/default/docs-xml/build/catalog.xml'
-- bld.env.SAMBA_CATALOGS = 'file:///etc/xml/catalog file:///usr/local/share/xml/catalog file://' + bld.env.SAMBA_CATALOG
-+ bld.env.SAMBA_CATALOGS = 'file:///etc/xml/catalog file://%%LOCALBASE%%/share/xml/catalog file://' + bld.env.SAMBA_CATALOG
-
- for m in manpages.split():
- source = m + '.xml'
diff --git a/net/samba45/files/patch-docs-xml__wscript_build b/net/samba45/files/patch-docs-xml__wscript_build
deleted file mode 100644
index c7026459943c..000000000000
--- a/net/samba45/files/patch-docs-xml__wscript_build
+++ /dev/null
@@ -1,10 +0,0 @@
---- docs-xml/wscript_build.orig 2016-02-23 11:27:03 UTC
-+++ docs-xml/wscript_build
-@@ -5,7 +5,6 @@ manpages='''
- manpages/dbwrap_tool.1
- manpages/eventlogadm.8
- manpages/findsmb.1
-- manpages/libsmbclient.7
- manpages/lmhosts.5
- manpages/log2pcap.1
- manpages/idmap_ad.8
diff --git a/net/samba45/files/patch-dynconfig__wscript b/net/samba45/files/patch-dynconfig__wscript
deleted file mode 100644
index f9d596bb4abb..000000000000
--- a/net/samba45/files/patch-dynconfig__wscript
+++ /dev/null
@@ -1,32 +0,0 @@
---- dynconfig/wscript.orig 2016-01-26 11:45:46 UTC
-+++ dynconfig/wscript
-@@ -137,6 +137,8 @@ dynconfig = {
- 'PKGCONFIGDIR' : {
- 'STD-PATH': '${LIBDIR}/pkgconfig',
- 'FHS-PATH': '${LIBDIR}/pkgconfig',
-+ 'OPTION': '--with-pkgconfigdir',
-+ 'HELPTEXT': 'Where to put .pc files',
- },
- 'CODEPAGEDIR' : {
- 'STD-PATH': '${DATADIR}/codepages',
-@@ -242,8 +244,8 @@ dynconfig = {
- 'DELAY': True,
- },
- 'CONFIGFILE' : {
-- 'STD-PATH': '${CONFIGDIR}/smb.conf',
-- 'FHS-PATH': '${CONFIGDIR}/smb.conf',
-+ 'STD-PATH': '${CONFIGDIR}/%%SAMBA4_CONFIG%%',
-+ 'FHS-PATH': '${CONFIGDIR}/%%SAMBA4_CONFIG%%',
- 'DELAY': True,
- },
- 'LMHOSTSFILE' : {
-@@ -300,9 +302,6 @@ def configure(conf):
- flavor = 'FHS-PATH'
- else:
- flavor = 'STD-PATH'
-- if conf.env.PREFIX == '/usr' or conf.env.PREFIX == '/usr/local':
-- Logs.error("Don't install directly under /usr or /usr/local without using the FHS option (--enable-fhs)")
-- raise Utils.WafError("ERROR: invalid --prefix=%s value" % (conf.env.PREFIX))
-
- explicit_set ={}
-
diff --git a/net/samba45/files/patch-lib__crypto__wscript_configure b/net/samba45/files/patch-lib__crypto__wscript_configure
deleted file mode 100644
index d64fe1458aaf..000000000000
--- a/net/samba45/files/patch-lib__crypto__wscript_configure
+++ /dev/null
@@ -1,14 +0,0 @@
---- lib/crypto/wscript_configure.orig 2016-01-26 11:45:46 UTC
-+++ lib/crypto/wscript_configure
-@@ -1,9 +1,9 @@
- if not conf.CHECK_FUNCS_IN('MD5Init', 'bsd', headers='bsd/md5.h',
- checklibc=True):
-- conf.CHECK_FUNCS_IN('MD5Init', 'md5', headers='sys/md5.h',
-- checklibc=True)
- conf.CHECK_FUNCS_IN('MD5Init', 'md', headers='sys/md5.h',
- checklibc=True)
-+ conf.CHECK_FUNCS_IN('MD5Init', 'md5', headers='sys/md5.h',
-+ checklibc=True)
- conf.CHECK_FUNCS_IN('CC_MD5_Init', '', headers='CommonCrypto/CommonDigest.h',
- checklibc=True)
-
diff --git a/net/samba45/files/patch-lib__param__wscript_build b/net/samba45/files/patch-lib__param__wscript_build
deleted file mode 100644
index fab4665307d5..000000000000
--- a/net/samba45/files/patch-lib__param__wscript_build
+++ /dev/null
@@ -1,11 +0,0 @@
---- lib/param/wscript_build.orig 2017-03-27 02:33:25.086257000 +0000
-+++ lib/param/wscript_build 2017-03-27 02:33:50.126334000 +0000
-@@ -32,7 +32,7 @@
-
- bld.SAMBA_LIBRARY('server-role',
- source='loadparm_server_role.c',
-- deps='samba-util',
-+ deps='samba-util samba-debug',
- private_library=True)
-
- bld.SAMBA_LIBRARY('samba-hostconfig',
diff --git a/net/samba45/files/patch-lib__socket__wscript_build b/net/samba45/files/patch-lib__socket__wscript_build
deleted file mode 100644
index 54b1ad80fbc3..000000000000
--- a/net/samba45/files/patch-lib__socket__wscript_build
+++ /dev/null
@@ -1,10 +0,0 @@
---- lib/socket/wscript_build.orig 2017-03-27 02:15:03.351855000 +0000
-+++ lib/socket/wscript_build 2017-03-27 02:15:48.856130000 +0000
-@@ -2,6 +2,6 @@
-
- bld.SAMBA_LIBRARY('interfaces',
- source='interfaces.c',
-- deps='samba-util',
-+ deps='samba-util samba-debug',
- private_library=True
- )
diff --git a/net/samba45/files/patch-lib__util__wscript_build b/net/samba45/files/patch-lib__util__wscript_build
deleted file mode 100644
index 177e629f7c1a..000000000000
--- a/net/samba45/files/patch-lib__util__wscript_build
+++ /dev/null
@@ -1,11 +0,0 @@
---- lib/util/wscript_build.orig 2017-03-27 02:23:54.176730000 +0000
-+++ lib/util/wscript_build 2017-03-27 02:29:10.940173000 +0000
-@@ -132,7 +132,7 @@
-
- bld.SAMBA_LIBRARY('samba-modules',
- source='modules.c',
-- deps='samba-errors samba-util',
-+ deps='samba-errors samba-util samba-debug',
- local_include=False,
- private_library=True)
-
diff --git a/net/samba45/files/patch-nsswitch__wscript_build b/net/samba45/files/patch-nsswitch__wscript_build
deleted file mode 100644
index ee6c1f06331f..000000000000
--- a/net/samba45/files/patch-nsswitch__wscript_build
+++ /dev/null
@@ -1,17 +0,0 @@
---- nsswitch/wscript_build.orig 2016-01-26 11:45:46 UTC
-+++ nsswitch/wscript_build
-@@ -54,12 +54,14 @@ elif (host_os.rfind('freebsd') > -1):
- source='winbind_nss_linux.c winbind_nss_freebsd.c',
- deps='winbind-client',
- realname='nss_winbind.so.1',
-+ install_path='${PAMMODULESDIR}',
- vnum='1')
-
- bld.SAMBA3_LIBRARY('nss_wins',
- source='wins.c wins_freebsd.c',
- deps='''wbclient''',
- realname='nss_wins.so.1',
-+ install_path='${PAMMODULESDIR}',
- vnum='1')
-
- elif (host_os.rfind('netbsd') > -1):
diff --git a/net/samba45/files/patch-source3__client__dnsbrowse.c b/net/samba45/files/patch-source3__client__dnsbrowse.c
deleted file mode 100644
index 7140e6e4baaf..000000000000
--- a/net/samba45/files/patch-source3__client__dnsbrowse.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- source3/client/dnsbrowse.c.orig 2016-01-26 11:45:46 UTC
-+++ source3/client/dnsbrowse.c
-@@ -91,7 +91,7 @@ static void do_smb_resolve(struct mdns_s
- }
- }
-
-- TALLOC_FREE(fdset);
-+ TALLOC_FREE(ctx);
- DNSServiceRefDeallocate(mdns_conn_sdref);
- }
-
diff --git a/net/samba45/files/patch-source3__modules__vfs_fruit.c b/net/samba45/files/patch-source3__modules__vfs_fruit.c
deleted file mode 100644
index 1dea0b57ef4d..000000000000
--- a/net/samba45/files/patch-source3__modules__vfs_fruit.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- source3/modules/vfs_fruit.c.orig 2016-06-06 07:40:23 UTC
-+++ source3/modules/vfs_fruit.c
-@@ -105,7 +105,7 @@ static int vfs_fruit_debug_level = DBGC_
- * This is hokey, but what else can we do?
- */
- #define NETATALK_META_XATTR "org.netatalk.Metadata"
--#if defined(HAVE_ATTROPEN) || defined(FREEBSD)
-+#if defined(HAVE_ATTROPEN)
- #define AFPINFO_EA_NETATALK NETATALK_META_XATTR
- #define AFPRESOURCE_EA_NETATALK "org.netatalk.ResourceFork"
- #else
diff --git a/net/samba45/files/patch-source3__smbd__quotas.c b/net/samba45/files/patch-source3__smbd__quotas.c
deleted file mode 100644
index 6fdb0a5f23b2..000000000000
--- a/net/samba45/files/patch-source3__smbd__quotas.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- source3/smbd/quotas.c.orig 2016-09-22 06:42:48 UTC
-+++ source3/smbd/quotas.c
-@@ -144,6 +144,7 @@ static bool nfs_quotas(char *nfspath, ui
- if (!cutstr)
- return False;
-
-+ memset(&D, '\0', sizeof(D));
- memset(cutstr, '\0', len+1);
- host = strncat(cutstr,mnttype, sizeof(char) * len );
- DEBUG(5,("nfs_quotas: looking for mount on \"%s\"\n", cutstr));
-@@ -152,7 +153,7 @@ static bool nfs_quotas(char *nfspath, ui
- args.gqa_pathp = testpath+1;
- args.gqa_uid = uid;
-
-- DEBUG(5,("nfs_quotas: Asking for host \"%s\" rpcprog \"%i\" rpcvers \"%i\" network \"%s\"\n", host, RQUOTAPROG, RQUOTAVERS, "udp"));
-+ DEBUG(5,("nfs_quotas: Asking for host \"%s\" rpcprog \"%lu\" rpcvers \"%lu\" network \"%s\"\n", host, RQUOTAPROG, RQUOTAVERS, "udp"));
-
- if ((clnt = clnt_create(host, RQUOTAPROG, RQUOTAVERS, "udp")) == NULL) {
- ret = False;
diff --git a/net/samba45/files/patch-source3__utils__net.c b/net/samba45/files/patch-source3__utils__net.c
deleted file mode 100644
index f01dc165c3c6..000000000000
--- a/net/samba45/files/patch-source3__utils__net.c
+++ /dev/null
@@ -1,18 +0,0 @@
---- source3/utils/net.c.orig 2016-01-26 11:45:46 UTC
-+++ source3/utils/net.c
-@@ -945,8 +945,13 @@ static struct functable net_func[] = {
- lp_set_cmdline("netbios name", c->opt_requester_name);
- }
-
-- if (!c->opt_user_name && getenv("LOGNAME")) {
-- c->opt_user_name = getenv("LOGNAME");
-+ if (!c->opt_user_name) {
-+ if(getenv("LOGNAME"))
-+ c->opt_user_name = getenv("LOGNAME");
-+ else
-+ d_fprintf(stderr,
-+ _("Environment LOGNAME is not defined."
-+ " Trying anonymous access.\n"));
- }
-
- if (!c->opt_workgroup) {
diff --git a/net/samba45/files/patch-source3__utils__net_time.c b/net/samba45/files/patch-source3__utils__net_time.c
deleted file mode 100644
index 1fd2b064d7e8..000000000000
--- a/net/samba45/files/patch-source3__utils__net_time.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- source3/utils/net_time.c.orig 2016-01-26 11:45:46 UTC
-+++ source3/utils/net_time.c
-@@ -75,10 +75,15 @@ static const char *systime(time_t t)
- if (!tm) {
- return "unknown";
- }
--
-+#if defined(FREEBSD)
-+ return talloc_asprintf(talloc_tos(), "%02d%02d%02d%02d%02d.%02d",
-+ tm->tm_year + 1900, tm->tm_mon+1, tm->tm_mday,
-+ tm->tm_hour, tm->tm_min, tm->tm_sec);
-+#else
- return talloc_asprintf(talloc_tos(), "%02d%02d%02d%02d%04d.%02d",
- tm->tm_mon+1, tm->tm_mday, tm->tm_hour,
- tm->tm_min, tm->tm_year + 1900, tm->tm_sec);
-+#endif
- }
-
- int net_time_usage(struct net_context *c, int argc, const char **argv)
diff --git a/net/samba45/files/patch-source3__wscript b/net/samba45/files/patch-source3__wscript
deleted file mode 100644
index 78606060714f..000000000000
--- a/net/samba45/files/patch-source3__wscript
+++ /dev/null
@@ -1,38 +0,0 @@
---- source3/wscript.orig 2016-06-06 07:40:23 UTC
-+++ source3/wscript
-@@ -47,6 +47,7 @@ def set_options(opt):
- opt.SAMBA3_ADD_OPTION('utmp')
- opt.SAMBA3_ADD_OPTION('pthreadpool', with_name="enable", without_name="disable", default=True)
- opt.SAMBA3_ADD_OPTION('avahi', with_name="enable", without_name="disable")
-+ opt.SAMBA3_ADD_OPTION('dnssd', with_name="enable", without_name="disable")
- opt.SAMBA3_ADD_OPTION('iconv')
- opt.SAMBA3_ADD_OPTION('acl-support')
- opt.SAMBA3_ADD_OPTION('dnsupdate')
-@@ -866,6 +867,17 @@ msg.msg_accrightslen = sizeof(fd);
- conf.SET_TARGET_TYPE('avahi-common', 'EMPTY')
- conf.SET_TARGET_TYPE('avahi-client', 'EMPTY')
-
-+ if Options.options.with_dnssd:
-+ conf.env.with_dnssd = True
-+ if not conf.CHECK_HEADERS('dns_sd.h'):
-+ conf.env.with_dnssd = False
-+ if not conf.CHECK_FUNCS_IN('DNSServiceRegister', 'dns_sd'):
-+ conf.env.with_dnssd = False
-+ if conf.env.with_dnssd:
-+ conf.DEFINE('WITH_DNSSD_SUPPORT', 1)
-+ else:
-+ conf.SET_TARGET_TYPE('dns_sd', 'EMPTY')
-+
- if Options.options.with_iconv:
- conf.env.with_iconv = True
- if not conf.CHECK_FUNCS_IN('iconv_open', 'iconv', headers='iconv.h'):
-@@ -1663,9 +1675,6 @@ main() {
- if conf.CONFIG_SET('HAVE_VXFS'):
- default_shared_modules.extend(TO_LIST('vfs_vxfs'))
-
-- if conf.CONFIG_SET('HAVE_DBUS'):
-- default_shared_modules.extend(TO_LIST('vfs_snapper'))
--
- explicit_shared_modules = TO_LIST(Options.options.shared_modules, delimiter=',')
- explicit_static_modules = TO_LIST(Options.options.static_modules, delimiter=',')
-
diff --git a/net/samba45/files/patch-source3__wscript_build b/net/samba45/files/patch-source3__wscript_build
deleted file mode 100644
index 58ad1c8646a9..000000000000
--- a/net/samba45/files/patch-source3__wscript_build
+++ /dev/null
@@ -1,18 +0,0 @@
---- source3/wscript_build.orig 2016-10-25 10:41:44 UTC
-+++ source3/wscript_build
-@@ -617,6 +617,7 @@ bld.SAMBA3_LIBRARY('smbd_base',
- smbd_conn
- param_service
- AVAHI
-+ dns_sd
- PRINTBASE
- PROFILE
- LOCKING
-@@ -1070,6 +1071,7 @@ bld.SAMBA3_BINARY('client/smbclient',
- msrpc3
- RPC_NDR_SRVSVC
- cli_smb_common
-+ dns_sd
- archive
- ''')
-
diff --git a/net/samba45/files/patch-source4__lib__http__http.c b/net/samba45/files/patch-source4__lib__http__http.c
deleted file mode 100644
index 3ca6faa892a5..000000000000
--- a/net/samba45/files/patch-source4__lib__http__http.c
+++ /dev/null
@@ -1,69 +0,0 @@
---- source4/lib/http/http.c.orig 2016-03-08 11:07:45 UTC
-+++ source4/lib/http/http.c
-@@ -112,7 +112,19 @@ static enum http_read_status http_parse_
- return HTTP_ALL_DATA_READ;
- }
-
-+#ifdef FREEBSD
-+ int s0, s1, s2, s3; s0 = s1 = s2 = s3 = 0;
-+ n = sscanf(line, "%n%*[^:]%n: %n%*[^\r\n]%n\r\n", &s0, &s1, &s2, &s3);
-+
-+ if(n >= 0) {
-+ key = calloc(sizeof(char), s1-s0+1);
-+ value = calloc(sizeof(char), s3-s2+1);
-+
-+ n = sscanf(line, "%[^:]: %[^\r\n]\r\n", key, value);
-+ }
-+#else
- n = sscanf(line, "%m[^:]: %m[^\r\n]\r\n", &key, &value);
-+#endif
- if (n != 2) {
- DEBUG(0, ("%s: Error parsing header '%s'\n", __func__, line));
- status = HTTP_DATA_CORRUPTED;
-@@ -138,7 +150,7 @@ error:
- static bool http_parse_response_line(struct http_read_response_state *state)
- {
- bool status = true;
-- char *protocol;
-+ char *protocol = NULL;
- char *msg = NULL;
- char major;
- char minor;
-@@ -158,12 +170,22 @@ static bool http_parse_response_line(str
- return false;
- }
-
-+#ifdef FREEBSD
-+ int s0, s1, s2, s3; s0 = s1 = s2 = s3 = 0;
-+ n = sscanf(line, "%n%*[^/]%n/%c.%c %d %n%*[^\r\n]%n\r\n",
-+ &s0, &s1, &major, &minor, &code, &s2, &s3);
-+
-+ if(n == 3) {
-+ protocol = calloc(sizeof(char), s1-s0+1);
-+ msg = calloc(sizeof(char), s3-s2+1);
-+
-+ n = sscanf(line, "%[^/]/%c.%c %d %[^\r\n]\r\n",
-+ protocol, &major, &minor, &code, msg);
-+ }
-+#else
- n = sscanf(line, "%m[^/]/%c.%c %d %m[^\r\n]\r\n",
- &protocol, &major, &minor, &code, &msg);
--
-- DEBUG(11, ("%s: Header parsed(%i): protocol->%s, major->%c, minor->%c, "
-- "code->%d, message->%s\n", __func__, n, protocol, major, minor,
-- code, msg));
-+#endif
-
- if (n != 5) {
- DEBUG(0, ("%s: Error parsing header\n", __func__));
-@@ -171,6 +193,10 @@ static bool http_parse_response_line(str
- goto error;
- }
-
-+ DEBUG(11, ("%s: Header parsed(%i): protocol->%s, major->%c, minor->%c, "
-+ "code->%d, message->%s\n", __func__, n, protocol, major, minor,
-+ code, msg));
-+
- if (major != '1') {
- DEBUG(0, ("%s: Bad HTTP major number '%c'\n", __func__, major));
- status = false;
diff --git a/net/samba45/files/patch-third_party__waf__wafadmin__Logs.py b/net/samba45/files/patch-third_party__waf__wafadmin__Logs.py
deleted file mode 100644
index 71d75e8d5ac9..000000000000
--- a/net/samba45/files/patch-third_party__waf__wafadmin__Logs.py
+++ /dev/null
@@ -1,21 +0,0 @@
---- third_party/waf/wafadmin/Logs.py.orig 2016-01-26 11:45:47 UTC
-+++ third_party/waf/wafadmin/Logs.py
-@@ -23,6 +23,9 @@ colors_lst = {
- 'cursor_off' :'\x1b[?25l',
- }
-
-+WAF_LOG_FORMAT = os.environ.get('WAF_LOG_FORMAT', LOG_FORMAT)
-+WAF_HOUR_FORMAT = os.environ.get('WAF_HOUR_FORMAT', HOUR_FORMAT)
-+
- got_tty = False
- term = os.environ.get('TERM', 'dumb')
- if not term in ['dumb', 'emacs']:
-@@ -84,7 +87,7 @@ class log_filter(logging.Filter):
-
- class formatter(logging.Formatter):
- def __init__(self):
-- logging.Formatter.__init__(self, LOG_FORMAT, HOUR_FORMAT)
-+ logging.Formatter.__init__(self, WAF_LOG_FORMAT, WAF_HOUR_FORMAT)
-
- def format(self, rec):
- if rec.levelno >= logging.WARNING or rec.levelno == logging.INFO:
diff --git a/net/samba45/files/patch-third_party__waf__wafadmin__Tools__cc.py b/net/samba45/files/patch-third_party__waf__wafadmin__Tools__cc.py
deleted file mode 100644
index eae8055207b2..000000000000
--- a/net/samba45/files/patch-third_party__waf__wafadmin__Tools__cc.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- third_party/waf/wafadmin/Tools/cc.py.orig 2016-01-26 11:45:47 UTC
-+++ third_party/waf/wafadmin/Tools/cc.py
-@@ -88,7 +88,7 @@ def c_hook(self, node):
- raise Utils.WafError('Have you forgotten to set the feature "cc" on %s?' % str(self))
- return task
-
--cc_str = '${CC} ${CCFLAGS} ${CPPFLAGS} ${_CCINCFLAGS} ${_CCDEFFLAGS} ${CC_SRC_F}${SRC} ${CC_TGT_F}${TGT}'
-+cc_str = '${CC} ${CCFLAGS} ${_CCINCFLAGS} ${CPPFLAGS} ${_CCDEFFLAGS} ${CC_SRC_F}${SRC} ${CC_TGT_F}${TGT}'
- cls = Task.simple_task_type('cc', cc_str, 'GREEN', ext_out='.o', ext_in='.c', shell=False)
- cls.scan = ccroot.scan
- cls.vars.append('CCDEPS')
diff --git a/net/samba45/files/pkg-message.in b/net/samba45/files/pkg-message.in
deleted file mode 100644
index 812abb282747..000000000000
--- a/net/samba45/files/pkg-message.in
+++ /dev/null
@@ -1,22 +0,0 @@
-===============================================================================
-
-How to start: http://wiki.samba.org/index.php/Samba4/HOWTO
-
-* Your configuration is: %%SAMBA4_CONFDIR%%/%%SAMBA4_CONFIG%%
-
-* All the relevant databases are under: %%SAMBA4_LOCKDIR%%
-
-* All the logs are under: %%SAMBA4_LOGDIR%%
-
-%%AD_DC%%* Provisioning script is: %%PREFIX%%/bin/samba-tool
-%%AD_DC%%
-%%NSUPDATE%%You will need to specify location of the 'nsupdate' command in the
-%%NSUPDATE%%%%SAMBA4_CONFIG%% file:
-%%NSUPDATE%%
-%%NSUPDATE%% nsupdate command = %%PREFIX%%/bin/samba-nsupdate -g
-%%NSUPDATE%%
-For additional documentation check: http://wiki.samba.org/index.php/Samba4
-
-Bug reports should go to the: https://bugzilla.samba.org/
-
-===============================================================================
diff --git a/net/samba45/files/samba_server.in b/net/samba45/files/samba_server.in
deleted file mode 100644
index c28ccebc695e..000000000000
--- a/net/samba45/files/samba_server.in
+++ /dev/null
@@ -1,202 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD: head/net/samba43/files/samba_server.in 402642 2015-11-30 01:35:36Z timur $
-#
-
-# PROVIDE: samba_server
-# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv ntpd
-# BEFORE: LOGIN
-# KEYWORD: shutdown
-#
-# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
-# to enable this service:
-#
-#samba_server_enable="YES"
-#
-# You can disable/enable any of the Samba daemons by specifying:
-#samba_enable="NO"
-#nmbd_enable="NO"
-#smbd_enable="NO"
-# You need to enable winbindd separately, by adding:
-#winbindd_enable="YES"
-# Configuration file can be set with:
-#samba_server_config="%%SAMBA4_CONFDIR%%/%%SAMBA4_CONFIG%%"
-#
-
-. /etc/rc.subr
-
-name="samba_server"
-rcvar=${name}_enable
-# Defaults
-samba_server_config_default="%%SAMBA4_CONFDIR%%/%%SAMBA4_CONFIG%%"
-smbcontrol_command="%%PREFIX%%/bin/smbcontrol"
-# Custom commands
-extra_commands="reload status"
-
-start_precmd="samba_server_prestart"
-restart_precmd="samba_server_checkconfig"
-reload_precmd="samba_server_checkconfig"
-start_cmd="samba_server_cmd"
-stop_cmd="samba_server_cmd"
-status_cmd="samba_server_cmd"
-reload_cmd="samba_server_reload_cmd"
-rcvar_cmd="samba_server_rcvar_cmd"
-
-samba_server_checkconfig() {
- echo -n "Performing sanity check on Samba configuration: "
- if ${testparm_command} >/dev/null 2>&1; then
- echo "OK"
- else
- echo "FAILED"
- return 1
- fi
-}
-
-samba_server_prestart() {
- # Make sure we have our RUNDIR, even if it's on a tmpfs
- if [ -d "${samba_server_piddir}" -o ! -e "${samba_server_piddir}" ]; then
- install -d -m 0755 "${samba_server_piddir}"
- fi
- # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200186
- if [ -d "${samba_server_privatedir}" -o ! -e "${samba_server_privatedir}" ]; then
- install -d -m 0700 "${samba_server_privatedir}"
- fi
-# # Remove smbd.pid before starting up samba(needed for s3fs)
-# if [ -e "${samba_server_piddir}/smbd.pid" ] ; then
-# rm -f "${samba_server_piddir}/smbd.pid"
-# fi
- samba_server_checkconfig
-}
-
-samba_server_rcvar_cmd() {
- local name rcvar
- rcvar=${name}_enable
- # Prevent recursive calling
- unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd"
- # Check master variable
- run_rc_command "${_rc_prefix}${rc_arg}" ${rc_extra_args}
- # Check dependent variables
- for name in ${samba_daemons}; do
- # XXX
- rcvars=''; v=''
- rcvar=${name}_enable
- run_rc_command "${_rc_prefix}${rc_arg}" ${rc_extra_args}
- done
-}
-
-samba_server_reload_cmd() {
- local name rcvar command pidfile force_run
- # Prevent recursive calling
- unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd"
- # Ignore rcvar and run command
- if [ -n "${_rc_prefix}" -a "${_rc_prefix}" = "one" ] || [ -n "${rc_force}" ] || [ -n "${rc_fast}" ]; then
- force_run=yes
- fi
- # Apply to all daemons
- for name in ${samba_daemons}; do
- rcvar=${name}_enable
- command="%%PREFIX%%/sbin/${name}"
- pidfile="${samba_server_piddir}/${name}.pid"
- # Daemon should be enabled and running
- if ( [ -n "${rcvar}" ] && checkyesno "${rcvar}" ) || [ -n "$force_run" ]; then
- if [ -n "$(check_pidfile "${pidfile}" "${command}")" ]; then
- debug "reloading ${name} configuration"
- echo "Reloading ${name}."
- ${smbcontrol_command} "${name}" 'reload-config' ${command_args} >/dev/null 2>&1
- fi
- fi
- done
-}
-
-samba_server_cmd() {
- local name rcvar rcvars v command pidfile samba_daemons result force_run
- # Prevent recursive calling
- unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd"
- # Stop processes in the reverse order
- if [ "${rc_arg}" = "stop" ] ; then
- samba_daemons=$(reverse_list ${samba_daemons})
- fi
- # Ignore rcvar and run command
- if [ -n "${_rc_prefix}" -a "${_rc_prefix}" = "one" ] || [ -n "${rc_force}" ] || [ -n "${rc_fast}" ]; then
- force_run=yes
- fi
- # Assume success
- result=0
- # Apply to all daemons
- for name in ${samba_daemons}; do
- # XXX
- rcvars=''; v=''
- rcvar=${name}_enable
- command="%%PREFIX%%/sbin/${name}"
- pidfile="${samba_server_piddir}/${name}.pid"
- # Daemon should be enabled and running
- if ( [ -n "${rcvar}" ] && checkyesno "${rcvar}" ) || [ -n "$force_run" ]; then
- run_rc_command "${_rc_prefix}${rc_arg}" ${rc_extra_args}
- # If any of the commands failed, take it as a global result
- result=$((${result} || $?))
- fi
- done
- return ${result}
-}
-
-samba_server_config_init() {
- local name
- # Load configuration
- load_rc_config "${name}"
- # Defaults
- samba_server_enable=${samba_server_enable:=NO}
- samba_server_config=${samba_server_config=${samba_server_config_default}}
- samba_server_configfile_arg=${samba_server_config:+--configfile="${samba_server_config}"} #"
- #testparm_command="%%PREFIX%%/bin/samba-tool testparm --suppress-prompt --verbose ${samba_server_configfile_arg}"
- testparm_command="%%PREFIX%%/bin/testparm --suppress-prompt --verbose ${samba_server_config}"
- # Determine what daemons are necessary to run Samba in the current role
- samba_server_role=$(${testparm_command} --parameter-name='server role' 2>/dev/null)
- case "${samba_server_role}" in
- active\ directory\ domain\ controller)
- samba_daemons="samba"
- ;;
- auto|*)
- samba_daemons="nmbd smbd winbindd"
- ;;
- esac
- # Load daemons configuration
- for name in ${samba_daemons}; do
- load_rc_config "${name}"
- # If samba_server_enable is 'YES'
- if [ -n "${rcvar}" ] && checkyesno "${rcvar}"; then
- if [ "${name}" != "winbindd" ]; then
- # Set variable to 'YES' only if it is unset
- eval ${name}_enable=\${${name}_enable-YES}
- else
- # Winbindd
- samba_server_idmap=$(${testparm_command} --parameter-name='idmap uid' 2>/dev/null)
- if [ -n "${samba_server_idmap}" ]; then
- winbindd_enable="YES"
- fi
- fi
- fi
- # If variable is empty, set it to 'NO'
- eval ${name}_enable=\${${name}_enable:-NO}
- done
- # Fetch parameters from configuration file
- samba_server_lockdir="$(${testparm_command} --parameter-name='lock directory' 2>/dev/null)"
- samba_server_lockdir=${samba_server_lockdir:=%%SAMBA4_LOCKDIR%%}
- samba_server_piddir="$(${testparm_command} --parameter-name='pid directory' 2>/dev/null)"
- samba_server_piddir=${samba_server_piddir:=%%SAMBA4_RUNDIR%%}
- samba_server_privatedir="$(${testparm_command} --parameter-name='private dir' 2>/dev/null)"
- samba_server_privatedir=${samba_server_privatedir:=%%SAMBA4_PRIVATEDIR%%}
-}
-
-# Load configuration variables
-samba_server_config_init
-# Common flags
-command_args=${samba_server_configfile_arg}
-samba_flags=${samba_flags="--daemon"}
-nmbd_flags=${nmbd_flags="--daemon"}
-smbd_flags=${smbd_flags="--daemon"}
-winbindd_flags=${winbindd_flags="--daemon"}
-# Requirements
-required_files="${samba_server_config}"
-required_dirs="${samba_server_lockdir}"
-
-run_rc_command "$1"