aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2019-08-19 10:03:15 +0000
committerRene Ladan <rene@FreeBSD.org>2019-08-19 10:03:15 +0000
commit28723315a8acf41dc4bfe531a6f27af2addb7f41 (patch)
tree5dfd19d15a9cfda725fb81b4b90d25ec433b8028
parent1a9b72f890040a778a20ed395a40dd022da8eb5c (diff)
downloadports-28723315a8acf41dc4bfe531a6f27af2addb7f41.tar.gz
ports-28723315a8acf41dc4bfe531a6f27af2addb7f41.zip
Notes
-rw-r--r--MOVED2
-rw-r--r--net/Makefile2
-rw-r--r--net/samba46/Makefile401
-rw-r--r--net/samba46/distinfo3
-rw-r--r--net/samba46/files/README.FreeBSD.in99
-rw-r--r--net/samba46/files/man/gentest.1133
-rw-r--r--net/samba46/files/man/locktest.1137
-rw-r--r--net/samba46/files/man/masktest.1113
-rw-r--r--net/samba46/files/man/ndrdump.183
-rw-r--r--net/samba46/files/man/nmblookup4.1157
-rw-r--r--net/samba46/files/man/ntlm_auth4.1233
-rw-r--r--net/samba46/files/man/oLschema2ldif.174
-rw-r--r--net/samba46/files/man/regdiff.187
-rw-r--r--net/samba46/files/man/regpatch.181
-rw-r--r--net/samba46/files/man/regshell.1177
-rw-r--r--net/samba46/files/man/regtree.189
-rw-r--r--net/samba46/files/man/smbtorture.1367
-rw-r--r--net/samba46/files/patch-buildtools__scripts__abi_gen.sh17
-rw-r--r--net/samba46/files/patch-buildtools__wafsamba__samba_autoconf.py11
-rw-r--r--net/samba46/files/patch-buildtools__wafsamba__samba_install.py11
-rw-r--r--net/samba46/files/patch-buildtools__wafsamba__wafsamba.py11
-rw-r--r--net/samba46/files/patch-dynconfig__wscript32
-rw-r--r--net/samba46/files/patch-lib__crypto__wscript_configure14
-rw-r--r--net/samba46/files/patch-lib__param__wscript_build11
-rw-r--r--net/samba46/files/patch-lib__socket__wscript_build10
-rw-r--r--net/samba46/files/patch-lib__util__wscript_build11
-rw-r--r--net/samba46/files/patch-nsswitch__wscript_build17
-rw-r--r--net/samba46/files/patch-source3__client__dnsbrowse.c11
-rw-r--r--net/samba46/files/patch-source3__libads__kerberos_keytab.c20
-rw-r--r--net/samba46/files/patch-source3__librpc__crypto__gse.c16
-rw-r--r--net/samba46/files/patch-source3__smbd__quotas.c19
-rw-r--r--net/samba46/files/patch-source3__utils__net.c18
-rw-r--r--net/samba46/files/patch-source3__utils__net_time.c19
-rw-r--r--net/samba46/files/patch-source3__wscript38
-rw-r--r--net/samba46/files/patch-source3__wscript_build26
-rw-r--r--net/samba46/files/patch-source4__lib__http__http.c69
-rw-r--r--net/samba46/files/patch-third_party__waf__wafadmin__Logs.py21
-rw-r--r--net/samba46/files/patch-third_party__waf__wafadmin__Tools__cc.py11
-rw-r--r--net/samba46/files/pkg-message.in24
-rw-r--r--net/samba46/files/samba_server.in202
-rw-r--r--net/samba46/pkg-descr8
-rw-r--r--net/samba46/pkg-plist840
-rw-r--r--net/samba47/Makefile590
-rw-r--r--net/samba47/distinfo3
-rw-r--r--net/samba47/files/0001-Freenas-master-mdns-fixes-22.patch375
-rw-r--r--net/samba47/files/0001-Zfs-provision-1.patch321
-rw-r--r--net/samba47/files/0001-audit.patch247
-rw-r--r--net/samba47/files/0001-bug-228462.patch182
-rw-r--r--net/samba47/files/README.FreeBSD.in99
-rw-r--r--net/samba47/files/man/ctdb-etcd.7106
-rw-r--r--net/samba47/files/man/ctdb-statistics.7528
-rw-r--r--net/samba47/files/man/ctdb-tunables.7409
-rw-r--r--net/samba47/files/man/ctdb.11566
-rw-r--r--net/samba47/files/man/ctdb.7783
-rw-r--r--net/samba47/files/man/ctdb_diagnostics.179
-rw-r--r--net/samba47/files/man/ctdb_mutex_ceph_rados_helper.779
-rw-r--r--net/samba47/files/man/ctdbd.1358
-rw-r--r--net/samba47/files/man/ctdbd.conf.51130
-rw-r--r--net/samba47/files/man/ctdbd_wrapper.169
-rw-r--r--net/samba47/files/man/gentest.1133
-rw-r--r--net/samba47/files/man/ldb.3457
-rw-r--r--net/samba47/files/man/ldbadd.178
-rw-r--r--net/samba47/files/man/ldbdel.180
-rw-r--r--net/samba47/files/man/ldbedit.1111
-rw-r--r--net/samba47/files/man/ldbmodify.173
-rw-r--r--net/samba47/files/man/ldbrename.181
-rw-r--r--net/samba47/files/man/ldbsearch.191
-rw-r--r--net/samba47/files/man/locktest.1137
-rw-r--r--net/samba47/files/man/ltdbtool.1256
-rw-r--r--net/samba47/files/man/masktest.1113
-rw-r--r--net/samba47/files/man/ndrdump.183
-rw-r--r--net/samba47/files/man/nmblookup4.1157
-rw-r--r--net/samba47/files/man/ntlm_auth4.1233
-rw-r--r--net/samba47/files/man/oLschema2ldif.174
-rw-r--r--net/samba47/files/man/onnode.1252
-rw-r--r--net/samba47/files/man/ping_pong.1122
-rw-r--r--net/samba47/files/man/regdiff.187
-rw-r--r--net/samba47/files/man/regpatch.181
-rw-r--r--net/samba47/files/man/regshell.1177
-rw-r--r--net/samba47/files/man/regtree.189
-rw-r--r--net/samba47/files/man/smbtorture.1367
-rw-r--r--net/samba47/files/man/talloc.3683
-rw-r--r--net/samba47/files/man/tdbbackup.8129
-rw-r--r--net/samba47/files/man/tdbdump.872
-rw-r--r--net/samba47/files/man/tdbrestore.854
-rw-r--r--net/samba47/files/man/tdbtool.8170
-rw-r--r--net/samba47/files/patch-buildtools__scripts__abi_gen.sh21
-rw-r--r--net/samba47/files/patch-buildtools__wafsamba__samba_autoconf.py52
-rw-r--r--net/samba47/files/patch-buildtools__wafsamba__samba_install.py11
-rw-r--r--net/samba47/files/patch-buildtools__wafsamba__samba_python.py40
-rw-r--r--net/samba47/files/patch-buildtools__wafsamba__wafsamba.py11
-rw-r--r--net/samba47/files/patch-buildtools__wafsamba__wscript22
-rw-r--r--net/samba47/files/patch-ctdb__wscript62
-rw-r--r--net/samba47/files/patch-dbwrap96
-rw-r--r--net/samba47/files/patch-dynconfig__wscript32
-rw-r--r--net/samba47/files/patch-examples__pdb__wscript_build11
-rw-r--r--net/samba47/files/patch-glusterfs31
-rw-r--r--net/samba47/files/patch-lib__crypto__wscript_configure15
-rw-r--r--net/samba47/files/patch-lib__replace__wscript11
-rw-r--r--net/samba47/files/patch-lib__util__debug.c68
-rw-r--r--net/samba47/files/patch-lib__util__wscript_build11
-rw-r--r--net/samba47/files/patch-librpc__idl__xattr.idl13
-rw-r--r--net/samba47/files/patch-nsswitch__wscript_build17
-rw-r--r--net/samba47/files/patch-source3__lib__util.c16
-rw-r--r--net/samba47/files/patch-source3__librpc__crypto__gse.c16
-rw-r--r--net/samba47/files/patch-source3__modules__vfs_streams_xattr.c505
-rw-r--r--net/samba47/files/patch-source3__modules__wscript_build15
-rw-r--r--net/samba47/files/patch-source3__smbd__quotas.c19
-rw-r--r--net/samba47/files/patch-source3__utils__net.c18
-rw-r--r--net/samba47/files/patch-source3__utils__net_time.c19
-rw-r--r--net/samba47/files/patch-source3__winbindd__wscript_build20
-rw-r--r--net/samba47/files/patch-source3__wscript47
-rw-r--r--net/samba47/files/patch-source3__wscript_build48
-rw-r--r--net/samba47/files/patch-source4__lib__http__http.c69
-rw-r--r--net/samba47/files/patch-third__party_aesni-intel_wscript33
-rw-r--r--net/samba47/files/patch-third_party__waf__wafadmin__Logs.py21
-rw-r--r--net/samba47/files/patch-third_party__waf__wafadmin__Tools__cc.py11
-rw-r--r--net/samba47/files/patch-vfs_freebsd.c1785
-rw-r--r--net/samba47/files/pkg-message.in24
-rw-r--r--net/samba47/files/samba_server.in199
-rw-r--r--net/samba47/pkg-descr8
-rw-r--r--net/samba47/pkg-plist1240
122 files changed, 2 insertions, 19724 deletions
diff --git a/MOVED b/MOVED
index ea97773d574a..344a27a30fc5 100644
--- a/MOVED
+++ b/MOVED
@@ -12871,3 +12871,5 @@ sysutils/openhpi||2019-08-12|Has expired: Broken for more than 6 months
textproc/scim-bridge||2019-08-17|Has expired: Broken for more than 6 months
devel/py-efilter||2019-08-17|Has expired: No longer maintained
sysutils/grub2||2019-08-17|Has expired: Unmaintained (more than five years), not updated (one-and-a-half years), does not build with modern compilers
+net/samba46|net/samba48|2019-08-19|Has expired: yes
+net/samba47|net/samba48|2019-08-19|Has expired: yes
diff --git a/net/Makefile b/net/Makefile
index 1174ffe4e392..8ec15cc024c5 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1338,8 +1338,6 @@
SUBDIR += rude
SUBDIR += ryu
SUBDIR += s3ql
- SUBDIR += samba46
- SUBDIR += samba47
SUBDIR += samba48
SUBDIR += samba410
SUBDIR += samplicator
diff --git a/net/samba46/Makefile b/net/samba46/Makefile
deleted file mode 100644
index 7c6f7f55b06a..000000000000
--- a/net/samba46/Makefile
+++ /dev/null
@@ -1,401 +0,0 @@
-# Created by: timur@FreeBSD.org
-# $FreeBSD$
-
-PORTNAME?= ${SAMBA4_BASENAME}46
-PORTVERSION?= ${SAMBA4_VERSION}
-PORTREVISION?= 3
-CATEGORIES?= net
-MASTER_SITES= SAMBA/samba/stable SAMBA/samba/rc
-DISTNAME= ${SAMBA4_DISTNAME}
-
-MAINTAINER?= timur@FreeBSD.org
-COMMENT?= Free SMB/CIFS and AD/DC server and client for Unix
-
-LICENSE= GPLv3+
-LICENSE_FILE= ${WRKSRC}/COPYING
-
-DEPRECATED= yes
-EXPIRATION_DATE= 2019-08-19
-BROKEN_powerpc64= fails to compile: unrecognized command line option "-Wno-format-truncation"
-
-IGNORE_NONTHREAD_PYTHON= needs port lang/python${PYTHON_SUFFIX} to be build with THREADS support
-
-CONFLICTS_INSTALL?= samba4-4.0.* samba4[1-57-9]-4.* p5-Parse-Pidl-4.*
-
-SAMBA4_BASENAME= samba
-SAMBA4_PORTNAME= ${SAMBA4_BASENAME}4
-SAMBA4_VERSION= 4.6.16
-SAMBA4_DISTNAME= ${SAMBA4_BASENAME}-${SAMBA4_VERSION:S|.p|pre|:S|.r|rc|:S|.t|tp|:S|.a|alpha|}
-
-WRKSRC?= ${WRKDIR}/${DISTNAME}
-
-.if !defined(SAMBA4_SUBPORT)
-CPE_VENDOR= samba
-CPE_PRODUCT= samba
-# Directories
-VARDIR= ${DESTDIR}/var
-SAMBA4_RUNDIR= ${VARDIR}/run/${SAMBA4_PORTNAME}
-SAMBA4_LOGDIR= ${VARDIR}/log/${SAMBA4_PORTNAME}
-SAMBA4_LOCKDIR= ${VARDIR}/db/${SAMBA4_PORTNAME}
-SAMBA4_PRIVATEDIR= ${SAMBA4_LOCKDIR}/private
-SAMBA4_PAMDIR= ${PREFIX}/lib
-SAMBA4_LIBDIR= ${PREFIX}/lib/${SAMBA4_PORTNAME}
-SAMBA4_MODULEDIR= ${PREFIX}/lib/shared-modules
-SAMBA4_INCLUDEDIR= ${PREFIX}/include/${SAMBA4_PORTNAME}
-SAMBA4_CONFDIR= ${PREFIX}/etc
-SAMBA4_CONFIG= smb4.conf
-
-CONFIGURE_ARGS+= --mandir="${MANPREFIX}/man" \
- --sysconfdir="${SAMBA4_CONFDIR}" \
- --includedir="${SAMBA4_INCLUDEDIR}" \
- --datadir="${DATADIR}" \
- --libdir="${SAMBA4_LIBDIR}" \
- --with-privatelibdir="${SAMBA4_LIBDIR}/private" \
- --with-pammodulesdir="${SAMBA4_PAMDIR}" \
- --with-modulesdir="${SAMBA4_MODULEDIR}" \
- --with-pkgconfigdir="${PKGCONFIGDIR}" \
- --localstatedir="${VARDIR}" \
- --with-piddir="${SAMBA4_RUNDIR}" \
- --with-sockets-dir="${SAMBA4_RUNDIR}" \
- --with-privileged-socket-dir="${SAMBA4_RUNDIR}" \
- --with-lockdir="${SAMBA4_LOCKDIR}" \
- --with-statedir="${SAMBA4_LOCKDIR}" \
- --with-cachedir="${SAMBA4_LOCKDIR}" \
- --with-privatedir="${SAMBA4_PRIVATEDIR}" \
- --with-logfilebase="${SAMBA4_LOGDIR}"
-# Flags
-CONFIGURE_ENV+= PTHREAD_LDFLAGS="-lpthread"
-
-USES= cpe compiler waf pkgconfig perl5 python:2.7 \
- readline iconv shebangfix
-USE_PERL5= build
-USE_LDCONFIG= ${SAMBA4_LIBDIR}
-WAF_CMD= buildtools/bin/waf
-CONFIGURE_LOG= bin/config.log
-
-PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
-PKGCONFIGDIR_REL?= ${PKGCONFIGDIR:S,^${PREFIX}/,,}
-PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR_REL}
-##############################################################################
-# Options
-OPTIONS_SUB= yes
-
-OPTIONS_DEFINE= ADS AD_DC CUPS \
- DOCS FAM LDAP \
- QUOTAS SYSLOG UTMP
-
-OPTIONS_DEFAULT:= ${OPTIONS_DEFINE}
-
-AD_DC_DESC= Active Directory Domain Controller support
-ADS_DESC= Active Directory client support(implies LDAP)
-EXP_MODULES_DESC= Experimental modules(WANT_EXP_MODULES)
-FAM_DESC= File Alteration Monitor support
-LDAP_DESC= LDAP client support
-PAM_SMBPASS_DESC= PAM authentication via passdb backends
-QUOTAS_DESC= Disk quota support
-UTMP_DESC= UTMP accounting support
-##############################################################################
-OPTIONS_DEFINE+= CUPS DEBUG DEVELOPER MANPAGES EXP_MODULES NTVFS
-
-DEVELOPER_DESC= With development support(implies NTVFS)
-MANPAGES_DESC= Build manpages from DOCBOOK templates
-NTVFS_DESC= Build *DEPRECATED* NTVFS file server
-
-OPTIONS_RADIO= DNS ZEROCONF
-OPTIONS_RADIO_DNS= NSUPDATE BIND911
-OPTIONS_RADIO_ZEROCONF= AVAHI MDNSRESPONDER
-
-BIND911_DESC= Use Bind 9.11 as AD DC DNS server frontend
-NSUPDATE_DESC= Use samba NSUPDATE utility for AD DC
-# XXX: Unconditional dependencies which can't be switched off(if present in the system)
-# popt
-LIB_DEPENDS+= libpopt.so:devel/popt
-# inotify
-LIB_DEPENDS+= libinotify.so:devel/libinotify
-# GNUTLS
-LIB_DEPENDS+= libgnutls.so:security/gnutls
-# NFS4 ACL glue
-LIB_DEPENDS+= libsunacl.so:sysutils/libsunacl
-# Libarchive
-BUILD_DEPENDS+= libarchive>=3.1.2:archivers/libarchive
-RUN_DEPENDS+= libarchive>=3.1.2:archivers/libarchive
-# External Samba dependencies
-# Needed for IDL compiler
-BUILD_DEPENDS+= p5-Parse-Yapp>=0:devel/p5-Parse-Yapp
-# External Python modules
-BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dnspython>=1.9.4:dns/py-dnspython@${PY_FLAVOR}
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dnspython>=1.9.4:dns/py-dnspython@${PY_FLAVOR}
-PLIST_SUB+= PY_DNSPYTHON="@comment "
-#
-BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.11:devel/py-iso8601@${PY_FLAVOR}
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.11:devel/py-iso8601@${PY_FLAVOR}
-PLIST_SUB+= PY_ISO8601="@comment "
-# talloc
-BUILD_DEPENDS+= talloc1>=2.1.9:devel/talloc1
-RUN_DEPENDS+= talloc1>=2.1.9:devel/talloc1
-SAMBA4_BUNDLED_LIBS+= !talloc
-# tevent
-BUILD_DEPENDS+= tevent1>=0.9.34:devel/tevent1
-RUN_DEPENDS+= tevent1>=0.9.34:devel/tevent1
-SAMBA4_BUNDLED_LIBS+= !tevent
-# tdb
-BUILD_DEPENDS+= tdb1>=1.3.12:databases/tdb1
-RUN_DEPENDS+= tdb1>=1.3.12:databases/tdb1
-SAMBA4_BUNDLED_LIBS+= !tdb
-# ldb
-BUILD_DEPENDS+= ldb>=1.1.29:databases/ldb
-RUN_DEPENDS+= ldb>=1.1.29:databases/ldb
-SAMBA4_BUNDLED_LIBS+= !ldb
-# Don't use external libcom_err, cmocka
-SAMBA4_BUNDLED_LIBS+= com_err,cmocka
-
-CONFIGURE_ARGS+= \
- --with-pam \
- --with-iconv \
- --with-winbind \
- --disable-rpath \
- --without-gettext \
- --enable-pthreadpool \
- --with-acl-support \
- --with-sendfile-support \
- ${ICONV_CONFIGURE_BASE}
-
-BIND911_RUN_DEPENDS= bind911>=9.11.0.0:dns/bind911
-NSUPDATE_RUN_DEPENDS= samba-nsupdate:dns/samba-nsupdate
-
-DEBUG_CONFIGURE_ON= --verbose --enable-debug
-DEBUG_MAKE_ARGS= --verbose
-DEBUG_VARS= WITH_DEBUG=yes
-
-# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194046
-GDB_CMD?= ${LOCALBASE}/bin/gdb
-# https://bugzilla.samba.org/show_bug.cgi?id=8969
-DEVELOPER_IMPLIES= NTVFS
-DEVELOPER_BUILD_DEPENDS= ${GDB_CMD}:devel/gdb
-DEVELOPER_RUN_DEPENDS= ${GDB_CMD}:devel/gdb
-DEVELOPER_CONFIGURE_ON= --enable-developer --enable-selftest --abi-check-disable
-DEVELOPER_VARS_OFF= GDB_CMD=true
-# XXX: Mostly used in conjuction with DEVELOPER option, don't enable it if you don't know what you are doing
-NTVFS_CONFIGURE_WITH= ntvfs-fileserver
-##############################################################################
-AVAHI_CONFIGURE_ENABLE= avahi
-AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app
-
-MDNSRESPONDER_CONFIGURE_ENABLE= dnssd
-MDNSRESPONDER_LIB_DEPENDS= libdns_sd.so:net/mDNSResponder
-
-CUPS_CONFIGURE_ENABLE= cups iprint
-CUPS_LIB_DEPENDS= libcups.so:print/cups
-
-# https://bugzilla.samba.org/show_bug.cgi?id=9545
-FAM_USES= fam
-FAM_CONFIGURE_WITH= fam
-
-QUOTAS_CONFIGURE_WITH= quotas
-
-SYSLOG_CONFIGURE_WITH= syslog
-
-UTMP_CONFIGURE_WITH= utmp
-
-AD_DC_CONFIGURE_OFF= --without-ad-dc
-
-#NTVFS_PREVENTS= AD_DC
-#NTVFS_PREVENTS_MSG= NTVFS needs AD_DC
-
-ADS_IMPLIES= LDAP
-ADS_CONFIGURE_WITH= ads dnsupdate
-
-LDAP_CONFIGURE_WITH= ldap
-LDAP_USE= OPENLDAP=yes
-LDAP_VARS= SAMBA4_MODULES+=idmap_ldap
-
-MANPAGES_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \
- xsltproc:textproc/libxslt
-MANPAGES_CONFIGURE_ENV_OFF= XSLTPROC="true"
-
-# !SAMBA4_SUBPORT
-.endif
-
-##############################################################################
-.include <bsd.port.options.mk>
-##############################################################################
-
-.if !defined(SAMBA4_SUBPORT)
-
-.if ${PORT_OPTIONS:MEXP_MODULES}
-. if !defined(WANT_EXP_MODULES) || empty(WANT_EXP_MODULES)
-WANT_EXP_MODULES= vfs_cacheprime
-. endif
-.endif
-
-SAMBA4_MODULES+= idmap_nss idmap_autorid idmap_rid idmap_hash idmap_tdb idmap_tdb2 idmap_script nss-info_hash
-# List of extra modules taken from RHEL build
-# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197320
-.if ${PORT_OPTIONS:MADS}
-SAMBA4_MODULES+= idmap_ad idmap_rfc2307 nss-info_template nss-info_rfc2307 nss-info_sfu nss-info_sfu20
-.endif
-
-.if ${PORT_OPTIONS:MDEVELOPER}
-SAMBA4_MODULES+= auth_skel pdb_test gpext_security gpext_registry gpext_scripts perfcount_test \
- vfs_fake_dfq vfs_skel_opaque vfs_skel_transparent vfs_shadow_copy_test vfs_fake_acls \
- vfs_nfs4acl_xattr vfs_error_inject
-.endif
-
-.if defined(WANT_EXP_MODULES) && !empty(WANT_EXP_MODULES)
-SAMBA4_MODULES+= ${WANT_EXP_MODULES}
-.endif
-
-.if defined(SAMBA4_BUNDLED_LIBS) && !empty(SAMBA4_BUNDLED_LIBS)
-CONFIGURE_ARGS+= --bundled-libraries="${SAMBA4_BUNDLED_LIBS:Q:C|(\\\\ )+|,|g:S|\\||g}"
-.endif
-
-.if defined(SAMBA4_MODULES) && !empty(SAMBA4_MODULES)
-CONFIGURE_ARGS+= --with-shared-modules="${SAMBA4_MODULES:C|-|_|:Q:C|(\\\\ )+|,|g:S|\\||g}"
-.endif
-# XXX: Hack for nss-info_* -> nss_info/* modules
-# Add selected modules to the plist
-.for module in ${SAMBA4_MODULES}
-PLIST_FILES+= lib/shared-modules/${module:C|_|/|:C|-|_|}.so
-.endfor
-# !SAMBA4_SUBPORT
-.endif
-
-##############################################################################
-.include <bsd.port.pre.mk>
-##############################################################################
-
-.if !defined(SAMBA4_SUBPORT)
-SAMBA4_SUB= SAMBA4_LOGDIR="${SAMBA4_LOGDIR}" \
- SAMBA4_RUNDIR="${SAMBA4_RUNDIR}" \
- SAMBA4_LOCKDIR="${SAMBA4_LOCKDIR}" \
- SAMBA4_MODULEDIR="${SAMBA4_MODULEDIR}" \
- SAMBA4_PRIVATEDIR="${SAMBA4_PRIVATEDIR}" \
- SAMBA4_CONFDIR="${SAMBA4_CONFDIR}" \
- SAMBA4_CONFIG="${SAMBA4_CONFIG}"
-
-PLIST_SUB+= ${SAMBA4_SUB}
-SUB_LIST+= ${SAMBA4_SUB}
-
-USE_RC_SUBR= samba_server
-SUB_FILES= pkg-message README.FreeBSD
-# Make sure that the right version of Python is used by the tools
-# https://bugzilla.samba.org/show_bug.cgi?id=7305
-SHEBANG_FILES= ${PATCH_WRKSRC}/source4/scripting/bin/*
-# No fancy color error messages
-
-# for libexecinfo: (so that __builtin_frame_address() finds the top of the stack)
-.if ${ARCH} == "amd64"
-CFLAGS+= -fno-omit-frame-pointer
-.endif
-.if ${CHOSEN_COMPILER_TYPE} == clang
-CFLAGS+= -fno-color-diagnostics
-.endif
-.if ${readline_ARGS} == port
-CFLAGS+= -D_FUNCTION_DEF
-.endif
-CONFIGURE_ENV+= NOCOLOR=yes WAF_LOG_FORMAT='%(c1)s%(zone)s%(c2)s %(message)s'
-MAKE_ENV+= NOCOLOR=yes WAF_LOG_FORMAT='%(c1)s%(zone)s%(c2)s %(message)s'
-
-SAMBA_MAN1+= dbwrap_tool.1 findsmb.1 gentest.1 locktest.1 \
- log2pcap.1 masktest.1 mvxattr.1 ndrdump.1 nmblookup.1 \
- nmblookup4.1 ntlm_auth.1 oLschema2ldif.1 \
- profiles.1 regdiff.1 regpatch.1 regshell.1 \
- regtree.1 rpcclient.1 sharesec.1 smbcacls.1 \
- smbclient.1 smbcontrol.1 smbcquotas.1 smbget.1 \
- smbstatus.1 smbtar.1 smbtorture.1 smbtree.1 \
- testparm.1 vfstest.1 wbinfo.1
-
-SAMBA_MAN5+= lmhosts.5 smbgetrc.5 smbpasswd.5 pam_winbind.conf.5 \
- smb.conf.5
-
-SAMBA_MAN7+= libsmbclient.7 samba.7 winbind_krb5_locator.7
-
-SAMBA_MAN8+= cifsdd.8 eventlogadm.8 idmap_ad.8 idmap_autorid.8 idmap_hash.8 \
- idmap_ldap.8 idmap_nss.8 idmap_rfc2307.8 idmap_rid.8 idmap_script.8 \
- idmap_tdb.8 idmap_tdb2.8 net.8 nmbd.8 pam_winbind.8 pdbedit.8 \
- samba-regedit.8 samba-tool.8 samba.8 smbd.8 smbpasswd.8 \
- smbspool_krb5_wrapper.8 smbspool.8 smbta-util.8 vfs_acl_tdb.8 vfs_acl_xattr.8 \
- vfs_aio_fork.8 vfs_aio_linux.8 vfs_aio_pthread.8 \
- vfs_audit.8 vfs_cacheprime.8 vfs_cap.8 vfs_catia.8 vfs_ceph.8 \
- vfs_commit.8 vfs_crossrename.8 vfs_default_quota.8 \
- vfs_dirsort.8 vfs_extd_audit.8 vfs_fake_perms.8 vfs_fileid.8 \
- vfs_fruit.8 vfs_full_audit.8 vfs_glusterfs.8 vfs_gpfs.8 vfs_media_harmony.8 \
- vfs_netatalk.8 vfs_offline.8 vfs_prealloc.8 \
- vfs_preopen.8 vfs_readahead.8 vfs_readonly.8 \
- vfs_recycle.8 vfs_scannedonly.8 vfs_shadow_copy.8 \
- vfs_shadow_copy2.8 vfs_snapper.8 vfs_smb_traffic_analyzer.8 \
- vfs_streams_depot.8 vfs_streams_xattr.8 vfs_syncops.8 vfs_time_audit.8 \
- vfs_tsmsm.8 vfs_worm.8 vfs_xattr_tdb.8 winbindd.8 \
- vfs_linux_xfs_sgid.8 vfs_btrfs.8 vfs_shell_snap.8 vfs_unityed_media.8 vfs_zfsacl.8
-
-PORTDOCS= README.FreeBSD
-
-post-extract:
- @${RM} -r ${WRKSRC}/pidl/lib/Parse/Yapp
-
-post-patch:
- @${REINPLACE_CMD} -e 's|$${PKGCONFIGDIR}|${PKGCONFIGDIR}|g' \
- ${PATCH_WRKSRC}/buildtools/wafsamba/pkgconfig.py
- @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
- ${PATCH_WRKSRC}/buildtools/wafsamba/wafsamba.py
- @${REINPLACE_CMD} -e 's|%%GDB_CMD%%|${GDB_CMD}|g' \
- ${PATCH_WRKSRC}/buildtools/scripts/abi_gen.sh
- @${REINPLACE_CMD} -e 's|%%SAMBA4_CONFIG%%|${SAMBA4_CONFIG}|g' \
- ${PATCH_WRKSRC}/dynconfig/wscript
-
-# Use threading (or multiprocessing) but not thread (renamed in python 3+).
-pre-configure:
- @if ! ${PYTHON_CMD} -c "import multiprocessing;" 2>/dev/null; then \
- ${ECHO_CMD}; \
- ${ECHO_MSG} "===> ${PKGNAME} "${IGNORE_NONTHREAD_PYTHON:Q}.; \
- ${ECHO_CMD}; \
- ${FALSE}; \
- fi
-
-pre-build-MANPAGES-off:
-.for man in libcli/nbt/man/nmblookup4.1 \
- librpc/tools/ndrdump.1 \
- source4/lib/registry/man/regdiff.1 \
- source4/lib/registry/man/regpatch.1 \
- source4/lib/registry/man/regshell.1 \
- source4/lib/registry/man/regtree.1 \
- source4/torture/man/gentest.1 \
- source4/torture/man/locktest.1 \
- source4/torture/man/masktest.1 \
- source4/torture/man/smbtorture.1 \
- source4/utils/man/ntlm_auth4.1 \
- source4/utils/man/oLschema2ldif.1
- -@${MKDIR} `dirname ${BUILD_WRKSRC}/bin/default/${man}`
- ${INSTALL_MAN} ${FILESDIR}/man/`basename ${man}` ${BUILD_WRKSRC}/bin/default/${man}
-.endfor
- -@${MKDIR} ${BUILD_WRKSRC}/bin/default/docs-xml/manpages
-.for man in ${SAMBA_MAN1} ${SAMBA_MAN5} ${SAMBA_MAN7} ${SAMBA_MAN8}
- -${INSTALL_MAN} ${BUILD_WRKSRC}/docs/manpages/${man} ${BUILD_WRKSRC}/bin/default/docs-xml/manpages
-.endfor
-
-post-install:
- ${LN} -sf smb.conf.5.gz ${STAGEDIR}${PREFIX}/man/man5/smb4.conf.5.gz
-# Run post-install script
-.for dir in ${SAMBA4_LOGDIR} ${SAMBA4_RUNDIR} ${SAMBA4_LOCKDIR} ${SAMBA4_MODULEDIR}
- ${INSTALL} -d -m 0755 "${STAGEDIR}${dir}"
-.endfor
- ${INSTALL} -d -m 0700 "${STAGEDIR}${SAMBA4_PRIVATEDIR}"
-.for dir in auth bind9 gensec gpext idmap ldb nss_info pdb perfcount process_model service vfs
- ${INSTALL} -d -m 0755 "${STAGEDIR}${SAMBA4_MODULEDIR}/${dir}"
-.endfor
-
-post-install-DOCS-on:
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for doc in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKDIR}/${doc} ${STAGEDIR}${DOCSDIR}
-.endfor
-
-.if ${PORT_OPTIONS:MDEVELOPER}
-test: build
- @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${INSTALL_WRKSRC}/${WAF_CMD} ${MAKE_ARGS} $@)
-.endif
-
-# !SAMBA4_SUBPORT
-.endif
-
-.include <bsd.port.post.mk>
diff --git a/net/samba46/distinfo b/net/samba46/distinfo
deleted file mode 100644
index 87b90e6e9a83..000000000000
--- a/net/samba46/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1534257386
-SHA256 (samba-4.6.16.tar.gz) = 62987da35d88c7c7c20c26c57fe98e3e0de2bdb3aae5f9c8b1f6925b5d844067
-SIZE (samba-4.6.16.tar.gz) = 21184221
diff --git a/net/samba46/files/README.FreeBSD.in b/net/samba46/files/README.FreeBSD.in
deleted file mode 100644
index b40faa7ceed2..000000000000
--- a/net/samba46/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/samba46/files/man/gentest.1 b/net/samba46/files/man/gentest.1
deleted file mode 100644
index 272f49a8c295..000000000000
--- a/net/samba46/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/samba46/files/man/locktest.1 b/net/samba46/files/man/locktest.1
deleted file mode 100644
index 1ebff93dc207..000000000000
--- a/net/samba46/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/samba46/files/man/masktest.1 b/net/samba46/files/man/masktest.1
deleted file mode 100644
index 3bb867e16f51..000000000000
--- a/net/samba46/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/samba46/files/man/ndrdump.1 b/net/samba46/files/man/ndrdump.1
deleted file mode 100644
index 4b32e0e15f65..000000000000
--- a/net/samba46/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/samba46/files/man/nmblookup4.1 b/net/samba46/files/man/nmblookup4.1
deleted file mode 100644
index 8b98f793c915..000000000000
--- a/net/samba46/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/samba46/files/man/ntlm_auth4.1 b/net/samba46/files/man/ntlm_auth4.1
deleted file mode 100644
index ad1863b7aa56..000000000000
--- a/net/samba46/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/samba46/files/man/oLschema2ldif.1 b/net/samba46/files/man/oLschema2ldif.1
deleted file mode 100644
index a5538d30c040..000000000000
--- a/net/samba46/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/samba46/files/man/regdiff.1 b/net/samba46/files/man/regdiff.1
deleted file mode 100644
index 5828876a99ab..000000000000
--- a/net/samba46/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/samba46/files/man/regpatch.1 b/net/samba46/files/man/regpatch.1
deleted file mode 100644
index ac290c39db2b..000000000000
--- a/net/samba46/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/samba46/files/man/regshell.1 b/net/samba46/files/man/regshell.1
deleted file mode 100644
index 67bbebc7b819..000000000000
--- a/net/samba46/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/samba46/files/man/regtree.1 b/net/samba46/files/man/regtree.1
deleted file mode 100644
index bd6d2997e756..000000000000
--- a/net/samba46/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/samba46/files/man/smbtorture.1 b/net/samba46/files/man/smbtorture.1
deleted file mode 100644
index c35fe067bd88..000000000000
--- a/net/samba46/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/samba46/files/patch-buildtools__scripts__abi_gen.sh b/net/samba46/files/patch-buildtools__scripts__abi_gen.sh
deleted file mode 100644
index a32a5a28e035..000000000000
--- a/net/samba46/files/patch-buildtools__scripts__abi_gen.sh
+++ /dev/null
@@ -1,17 +0,0 @@
---- buildtools/scripts/abi_gen.sh.orig 2017-01-11 07:55:14 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/samba46/files/patch-buildtools__wafsamba__samba_autoconf.py b/net/samba46/files/patch-buildtools__wafsamba__samba_autoconf.py
deleted file mode 100644
index 5d742aa67d99..000000000000
--- a/net/samba46/files/patch-buildtools__wafsamba__samba_autoconf.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- buildtools/wafsamba/samba_autoconf.py.orig 2017-07-04 10:05:25 UTC
-+++ buildtools/wafsamba/samba_autoconf.py
-@@ -873,7 +873,7 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(c
- conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
-
- if not sys.platform.startswith("openbsd") and conf.env.undefined_ignore_ldflags == []:
-- if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup']):
-+ if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'] + conf.env.WERROR_CFLAGS):
- conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup']
-
- @conf
diff --git a/net/samba46/files/patch-buildtools__wafsamba__samba_install.py b/net/samba46/files/patch-buildtools__wafsamba__samba_install.py
deleted file mode 100644
index f33d4bdf7428..000000000000
--- a/net/samba46/files/patch-buildtools__wafsamba__samba_install.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- buildtools/wafsamba/samba_install.py.orig 2017-01-11 07:55:14 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/samba46/files/patch-buildtools__wafsamba__wafsamba.py b/net/samba46/files/patch-buildtools__wafsamba__wafsamba.py
deleted file mode 100644
index 574abc74b1dd..000000000000
--- a/net/samba46/files/patch-buildtools__wafsamba__wafsamba.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./buildtools/wafsamba/wafsamba.py.orig 2015-07-21 09:47:48 UTC
-+++ ./buildtools/wafsamba/wafsamba.py
-@@ -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/samba46/files/patch-dynconfig__wscript b/net/samba46/files/patch-dynconfig__wscript
deleted file mode 100644
index 4a0fe3076c30..000000000000
--- a/net/samba46/files/patch-dynconfig__wscript
+++ /dev/null
@@ -1,32 +0,0 @@
---- dynconfig/wscript.orig 2017-01-11 07:55:14 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}/smb4.conf',
-+ 'FHS-PATH': '${CONFIGDIR}/smb4.conf',
- 'DELAY': True,
- },
- 'LMHOSTSFILE' : {
-@@ -302,9 +304,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/samba46/files/patch-lib__crypto__wscript_configure b/net/samba46/files/patch-lib__crypto__wscript_configure
deleted file mode 100644
index 7a26e75fbcee..000000000000
--- a/net/samba46/files/patch-lib__crypto__wscript_configure
+++ /dev/null
@@ -1,14 +0,0 @@
---- lib/crypto/wscript_configure.orig 2017-01-11 07:55:14 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/samba46/files/patch-lib__param__wscript_build b/net/samba46/files/patch-lib__param__wscript_build
deleted file mode 100644
index c56f22717a1b..000000000000
--- a/net/samba46/files/patch-lib__param__wscript_build
+++ /dev/null
@@ -1,11 +0,0 @@
---- lib/param/wscript_build.orig 2017-01-11 07:55:14 UTC
-+++ lib/param/wscript_build
-@@ -32,7 +32,7 @@ bld.SAMBA_GENERATOR('param_table_gen.c',
-
- 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/samba46/files/patch-lib__socket__wscript_build b/net/samba46/files/patch-lib__socket__wscript_build
deleted file mode 100644
index 2e5c6078ee61..000000000000
--- a/net/samba46/files/patch-lib__socket__wscript_build
+++ /dev/null
@@ -1,10 +0,0 @@
---- lib/socket/wscript_build.orig 2017-01-11 07:55:14 UTC
-+++ lib/socket/wscript_build
-@@ -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/samba46/files/patch-lib__util__wscript_build b/net/samba46/files/patch-lib__util__wscript_build
deleted file mode 100644
index 445baead02f5..000000000000
--- a/net/samba46/files/patch-lib__util__wscript_build
+++ /dev/null
@@ -1,11 +0,0 @@
---- lib/util/wscript_build.orig 2017-01-11 07:55:14 UTC
-+++ lib/util/wscript_build
-@@ -132,7 +132,7 @@ else:
-
- 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/samba46/files/patch-nsswitch__wscript_build b/net/samba46/files/patch-nsswitch__wscript_build
deleted file mode 100644
index 84602f34efcc..000000000000
--- a/net/samba46/files/patch-nsswitch__wscript_build
+++ /dev/null
@@ -1,17 +0,0 @@
---- nsswitch/wscript_build.orig 2017-01-11 07:55:14 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/samba46/files/patch-source3__client__dnsbrowse.c b/net/samba46/files/patch-source3__client__dnsbrowse.c
deleted file mode 100644
index c542b77969d9..000000000000
--- a/net/samba46/files/patch-source3__client__dnsbrowse.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- source3/client/dnsbrowse.c.orig 2017-01-11 07:55:15 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/samba46/files/patch-source3__libads__kerberos_keytab.c b/net/samba46/files/patch-source3__libads__kerberos_keytab.c
deleted file mode 100644
index 4a89736864b5..000000000000
--- a/net/samba46/files/patch-source3__libads__kerberos_keytab.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- source3/libads/kerberos_keytab.c.orig 2017-12-23 15:23:53 UTC
-+++ source3/libads/kerberos_keytab.c
-@@ -32,8 +32,6 @@
-
- #ifdef HAVE_KRB5
-
--#ifdef HAVE_ADS
--
- /* This MAX_NAME_LEN is a constant defined in krb5.h */
- #ifndef MAX_KEYTAB_NAME_LEN
- #define MAX_KEYTAB_NAME_LEN 1100
-@@ -85,6 +83,8 @@
- return ret;
- }
-
-+#ifdef HAVE_ADS
-+
- /**********************************************************************
- Adds a single service principal, i.e. 'host' to the system keytab
- ***********************************************************************/
diff --git a/net/samba46/files/patch-source3__librpc__crypto__gse.c b/net/samba46/files/patch-source3__librpc__crypto__gse.c
deleted file mode 100644
index 9178eaed2a6d..000000000000
--- a/net/samba46/files/patch-source3__librpc__crypto__gse.c
+++ /dev/null
@@ -1,16 +0,0 @@
---- source3/librpc/crypto/gse.c.orig 2017-05-23 08:19:23 UTC
-+++ source3/librpc/crypto/gse.c
-@@ -334,11 +334,12 @@ static NTSTATUS gse_get_client_auth_toke
- struct gse_context *gse_ctx =
- talloc_get_type_abort(gensec_security->private_data,
- struct gse_context);
-- OM_uint32 gss_maj, gss_min;
-+ OM_uint32 gss_min;
- gss_buffer_desc in_data;
- gss_buffer_desc out_data;
- DATA_BLOB blob = data_blob_null;
- NTSTATUS status;
-+ OM_uint32 gss_maj = -1;
- OM_uint32 time_rec = 0;
- struct timeval tv;
- struct cli_credentials *cli_creds = gensec_get_credentials(gensec_security);
diff --git a/net/samba46/files/patch-source3__smbd__quotas.c b/net/samba46/files/patch-source3__smbd__quotas.c
deleted file mode 100644
index 0d7efe235944..000000000000
--- a/net/samba46/files/patch-source3__smbd__quotas.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- source3/smbd/quotas.c.orig 2017-01-11 07:55:15 UTC
-+++ source3/smbd/quotas.c
-@@ -125,6 +125,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));
-@@ -133,7 +134,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/samba46/files/patch-source3__utils__net.c b/net/samba46/files/patch-source3__utils__net.c
deleted file mode 100644
index a1d32a1c763c..000000000000
--- a/net/samba46/files/patch-source3__utils__net.c
+++ /dev/null
@@ -1,18 +0,0 @@
---- source3/utils/net.c.orig 2017-08-08 06:56:05 UTC
-+++ source3/utils/net.c
-@@ -1079,8 +1079,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/samba46/files/patch-source3__utils__net_time.c b/net/samba46/files/patch-source3__utils__net_time.c
deleted file mode 100644
index 653ae4bcf545..000000000000
--- a/net/samba46/files/patch-source3__utils__net_time.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- source3/utils/net_time.c.orig 2017-01-11 07:55:15 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/samba46/files/patch-source3__wscript b/net/samba46/files/patch-source3__wscript
deleted file mode 100644
index aabeb86bbeee..000000000000
--- a/net/samba46/files/patch-source3__wscript
+++ /dev/null
@@ -1,38 +0,0 @@
---- source3/wscript.orig 2017-05-23 08:19: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')
-@@ -868,6 +869,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'):
-@@ -1738,9 +1750,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/samba46/files/patch-source3__wscript_build b/net/samba46/files/patch-source3__wscript_build
deleted file mode 100644
index 1e51d37da3b6..000000000000
--- a/net/samba46/files/patch-source3__wscript_build
+++ /dev/null
@@ -1,26 +0,0 @@
---- source3/wscript_build.orig 2017-05-23 08:19:23 UTC
-+++ source3/wscript_build
-@@ -151,7 +151,6 @@ ldapsam_pdb_match = ['!priv2ld', '!smbldap_search_doma
- '!get_attr_list']
- private_pdb_match.append('!pdb_nds_*')
- private_pdb_match.append('!pdb_ldapsam_init*')
--private_pdb_match.append('!pdb_*_init')
- private_pdb_match = private_pdb_match + ldapsam_pdb_match
-
- bld.SAMBA3_LIBRARY('samba-passdb',
-@@ -741,6 +740,7 @@ bld.SAMBA3_LIBRARY('smbd_base',
- smbd_conn
- param_service
- AVAHI
-+ dns_sd
- PRINTBASE
- PROFILE
- LOCKING
-@@ -1129,6 +1129,7 @@ bld.SAMBA3_BINARY('client/smbclient',
- msrpc3
- RPC_NDR_SRVSVC
- cli_smb_common
-+ dns_sd
- archive
- ''')
-
diff --git a/net/samba46/files/patch-source4__lib__http__http.c b/net/samba46/files/patch-source4__lib__http__http.c
deleted file mode 100644
index 39f8362f2729..000000000000
--- a/net/samba46/files/patch-source4__lib__http__http.c
+++ /dev/null
@@ -1,69 +0,0 @@
---- source4/lib/http/http.c.orig 2017-01-11 07:55:15 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/samba46/files/patch-third_party__waf__wafadmin__Logs.py b/net/samba46/files/patch-third_party__waf__wafadmin__Logs.py
deleted file mode 100644
index e30f2618b827..000000000000
--- a/net/samba46/files/patch-third_party__waf__wafadmin__Logs.py
+++ /dev/null
@@ -1,21 +0,0 @@
---- third_party/waf/wafadmin/Logs.py.orig 2017-01-11 07:55:16 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/samba46/files/patch-third_party__waf__wafadmin__Tools__cc.py b/net/samba46/files/patch-third_party__waf__wafadmin__Tools__cc.py
deleted file mode 100644
index 95ceb1119917..000000000000
--- a/net/samba46/files/patch-third_party__waf__wafadmin__Tools__cc.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- third_party/waf/wafadmin/Tools/cc.py.orig 2017-01-11 07:55:16 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/samba46/files/pkg-message.in b/net/samba46/files/pkg-message.in
deleted file mode 100644
index 22dcc3886939..000000000000
--- a/net/samba46/files/pkg-message.in
+++ /dev/null
@@ -1,24 +0,0 @@
-[
-{ type: install
- message: <<EOM
-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/
-EOM
-}
-]
diff --git a/net/samba46/files/samba_server.in b/net/samba46/files/samba_server.in
deleted file mode 100644
index c28ccebc695e..000000000000
--- a/net/samba46/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"
diff --git a/net/samba46/pkg-descr b/net/samba46/pkg-descr
deleted file mode 100644
index a0ffcef6af6e..000000000000
--- a/net/samba46/pkg-descr
+++ /dev/null
@@ -1,8 +0,0 @@
-Samba4 is an attempt to implement an Active Directory compatible Domain
-Controller.
-
-In short, you can join a WinNT, Win2000, WinXP or Win2003 member server
-to a Samba4 domain, and it will behave much as it does in AD, including
-Kerberos domain logins where applicable.
-
-WWW: https://www.samba.org/
diff --git a/net/samba46/pkg-plist b/net/samba46/pkg-plist
deleted file mode 100644
index ae9f8638a5f0..000000000000
--- a/net/samba46/pkg-plist
+++ /dev/null
@@ -1,840 +0,0 @@
-bin/cifsdd
-bin/dbwrap_tool
-bin/eventlogadm
-bin/findsmb
-bin/gentest
-bin/locktest
-bin/masktest
-bin/mvxattr
-bin/ndrdump
-bin/net
-bin/nmblookup
-bin/ntlm_auth
-bin/oLschema2ldif
-bin/pdbedit
-bin/profiles
-bin/pidl
-bin/regdiff
-bin/regpatch
-bin/regshell
-bin/regtree
-bin/rpcclient
-bin/samba-regedit
-%%AD_DC%%bin/samba-tool
-bin/sharesec
-bin/smbcacls
-bin/smbclient
-bin/smbcontrol
-bin/smbcquotas
-bin/smbget
-bin/smbpasswd
-bin/smbspool
-bin/smbstatus
-bin/smbtar
-bin/smbtorture
-bin/smbtree
-bin/testparm
-bin/wbinfo
-sbin/nmbd
-sbin/smbd
-sbin/winbindd
-%%AD_DC%%sbin/samba
-%%AD_DC%%sbin/samba_dnsupdate
-%%AD_DC%%sbin/samba_kcc
-%%AD_DC%%sbin/samba_spnupdate
-%%AD_DC%%sbin/samba_upgradedns
-include/samba4/charset.h
-include/samba4/core/doserr.h
-include/samba4/core/error.h
-include/samba4/core/hresult.h
-include/samba4/core/ntstatus.h
-include/samba4/core/werror.h
-include/samba4/credentials.h
-include/samba4/dcerpc.h
-%%AD_DC%%include/samba4/dcerpc_server.h
-%%LDAP%%include/samba4/smb_ldap.h
-%%LDAP%%include/samba4/smbldap.h
-include/samba4/domain_credentials.h
-include/samba4/gen_ndr/atsvc.h
-include/samba4/gen_ndr/auth.h
-include/samba4/gen_ndr/dcerpc.h
-include/samba4/gen_ndr/drsblobs.h
-include/samba4/gen_ndr/drsuapi.h
-include/samba4/gen_ndr/krb5pac.h
-include/samba4/gen_ndr/lsa.h
-include/samba4/gen_ndr/misc.h
-include/samba4/gen_ndr/nbt.h
-include/samba4/gen_ndr/ndr_atsvc.h
-include/samba4/gen_ndr/ndr_dcerpc.h
-include/samba4/gen_ndr/ndr_drsblobs.h
-include/samba4/gen_ndr/ndr_drsuapi.h
-include/samba4/gen_ndr/ndr_krb5pac.h
-include/samba4/gen_ndr/ndr_misc.h
-include/samba4/gen_ndr/ndr_nbt.h
-include/samba4/gen_ndr/ndr_samr_c.h
-include/samba4/gen_ndr/ndr_samr.h
-include/samba4/gen_ndr/ndr_svcctl_c.h
-include/samba4/gen_ndr/ndr_svcctl.h
-include/samba4/gen_ndr/netlogon.h
-include/samba4/gen_ndr/samr.h
-include/samba4/gen_ndr/security.h
-include/samba4/gen_ndr/server_id.h
-include/samba4/gen_ndr/svcctl.h
-include/samba4/ldb_wrap.h
-include/samba4/libsmbclient.h
-include/samba4/lookup_sid.h
-include/samba4/machine_sid.h
-include/samba4/ndr.h
-include/samba4/ndr/ndr_dcerpc.h
-include/samba4/ndr/ndr_drsblobs.h
-include/samba4/ndr/ndr_drsuapi.h
-include/samba4/ndr/ndr_krb5pac.h
-include/samba4/ndr/ndr_nbt.h
-include/samba4/ndr/ndr_svcctl.h
-include/samba4/netapi.h
-include/samba4/param.h
-include/samba4/passdb.h
-include/samba4/policy.h
-include/samba4/rpc_common.h
-include/samba4/samba/session.h
-include/samba4/samba/version.h
-include/samba4/share.h
-include/samba4/smb2_lease_struct.h
-include/samba4/smbconf.h
-include/samba4/tdr.h
-include/samba4/tsocket_internal.h
-include/samba4/tsocket.h
-include/samba4/util_ldb.h
-include/samba4/util/attr.h
-include/samba4/util/blocking.h
-include/samba4/util/byteorder.h
-include/samba4/util/data_blob.h
-include/samba4/util/debug.h
-include/samba4/util/fault.h
-include/samba4/util/genrand.h
-include/samba4/util/idtree_random.h
-include/samba4/util/idtree.h
-include/samba4/util/memory.h
-include/samba4/util/safe_string.h
-include/samba4/util/signal.h
-include/samba4/util/string_wrappers.h
-include/samba4/util/substitute.h
-include/samba4/util/talloc_stack.h
-include/samba4/util/tevent_ntstatus.h
-include/samba4/util/tevent_unix.h
-include/samba4/util/tevent_werror.h
-include/samba4/util/time.h
-include/samba4/wbclient.h
-lib/samba4/libdcerpc-binding.so
-lib/samba4/libdcerpc-binding.so.0
-lib/samba4/libdcerpc-samr.so
-lib/samba4/libdcerpc-samr.so.0
-%%AD_DC%%lib/samba4/libdcerpc-server.so
-%%AD_DC%%lib/samba4/libdcerpc-server.so.0
-lib/samba4/libdcerpc.so
-lib/samba4/libdcerpc.so.0
-lib/samba4/libndr-krb5pac.so
-lib/samba4/libndr-krb5pac.so.0
-lib/samba4/libndr-nbt.so
-lib/samba4/libndr-nbt.so.0
-lib/samba4/libndr-standard.so
-lib/samba4/libndr-standard.so.0
-lib/samba4/libndr.so
-lib/samba4/libndr.so.0
-lib/samba4/libnetapi.so
-lib/samba4/libnetapi.so.0
-lib/samba4/libsamba-credentials.so
-lib/samba4/libsamba-credentials.so.0
-lib/samba4/libsamba-errors.so
-lib/samba4/libsamba-errors.so.1
-lib/samba4/libsamba-hostconfig.so
-lib/samba4/libsamba-hostconfig.so.0
-lib/samba4/libsamba-passdb.so
-lib/samba4/libsamba-passdb.so.0
-lib/samba4/libsamba-policy.so
-lib/samba4/libsamba-policy.so.0
-lib/samba4/libsamba-util.so
-lib/samba4/libsamba-util.so.0
-lib/samba4/libsamdb.so
-lib/samba4/libsamdb.so.0
-lib/samba4/libsmbclient.so
-lib/samba4/libsmbclient.so.0
-lib/samba4/libsmbconf.so
-lib/samba4/libsmbconf.so.0
-%%LDAP%%lib/samba4/libsmbldap.so
-%%LDAP%%lib/samba4/libsmbldap.so.0
-lib/samba4/libtevent-util.so
-lib/samba4/libtevent-util.so.0
-lib/samba4/libwbclient.so
-lib/samba4/libwbclient.so.0
-lib/samba4/winbind_krb5_locator.so
-lib/nss_winbind.so.1
-lib/nss_wins.so.1
-lib/pam_winbind.so
-%%CUPS%%libexec/samba/smbspool_krb5_wrapper
-%%AD_DC%%lib/samba4/private/libdlz-bind9-for-torture-samba4.so
-%%AD_DC%%lib/samba4/private/libposix-eadb-samba4.so
-%%AD_DC%%lib/samba4/private/libprocess-model-samba4.so
-%%AD_DC%%lib/samba4/private/libservice-samba4.so
-lib/samba4/private/libCHARSET3-samba4.so
-%%AD_DC%%lib/samba4/private/libHDB-SAMBA4-samba4.so
-lib/samba4/private/libLIBWBCLIENT-OLD-samba4.so
-lib/samba4/private/libMESSAGING-samba4.so
-lib/samba4/private/libaddns-samba4.so
-lib/samba4/private/libads-samba4.so
-lib/samba4/private/libasn1-samba4.so.8
-lib/samba4/private/libasn1util-samba4.so
-lib/samba4/private/libauth-sam-reply-samba4.so
-lib/samba4/private/libauth-samba4.so
-lib/samba4/private/libauth-unix-token-samba4.so
-lib/samba4/private/libauth4-samba4.so
-lib/samba4/private/libauthkrb5-samba4.so
-lib/samba4/private/libcli-cldap-samba4.so
-lib/samba4/private/libcli-ldap-common-samba4.so
-lib/samba4/private/libcli-ldap-samba4.so
-lib/samba4/private/libcli-nbt-samba4.so
-lib/samba4/private/libcli-smb-common-samba4.so
-lib/samba4/private/libcli-spoolss-samba4.so
-lib/samba4/private/libcliauth-samba4.so
-lib/samba4/private/libcluster-samba4.so
-lib/samba4/private/libcmdline-credentials-samba4.so
-lib/samba4/private/libcom_err-samba4.so.0
-%%AD_DC%%lib/samba4/private/libdb-glue-samba4.so
-lib/samba4/private/libdbwrap-samba4.so
-lib/samba4/private/libdcerpc-samba-samba4.so
-lib/samba4/private/libdcerpc-samba4.so
-%%AD_DC%%lib/samba4/private/libdfs-server-ad-samba4.so
-%%AD_DC%%lib/samba4/private/libdnsserver-common-samba4.so
-lib/samba4/private/libdsdb-garbage-collect-tombstones-samba4.so
-lib/samba4/private/libdsdb-module-samba4.so
-lib/samba4/private/libevents-samba4.so
-lib/samba4/private/libflag-mapping-samba4.so
-lib/samba4/private/libgenrand-samba4.so
-lib/samba4/private/libgensec-samba4.so
-lib/samba4/private/libgpo-samba4.so
-lib/samba4/private/libgse-samba4.so
-lib/samba4/private/libgssapi-samba4.so.2
-lib/samba4/private/libhcrypto-samba4.so.5
-lib/samba4/private/libhdb-samba4.so.11
-lib/samba4/private/libheimbase-samba4.so.1
-lib/samba4/private/libheimntlm-samba4.so.1
-lib/samba4/private/libhttp-samba4.so
-lib/samba4/private/libhx509-samba4.so.5
-lib/samba4/private/libidmap-samba4.so
-lib/samba4/private/libinterfaces-samba4.so
-lib/samba4/private/libiov-buf-samba4.so
-lib/samba4/private/libkdc-samba4.so.2
-lib/samba4/private/libkrb5-samba4.so.26
-lib/samba4/private/libkrb5samba-samba4.so
-lib/samba4/private/libldbsamba-samba4.so
-lib/samba4/private/liblibcli-lsa3-samba4.so
-lib/samba4/private/liblibcli-netlogon3-samba4.so
-lib/samba4/private/liblibsmb-samba4.so
-lib/samba4/private/libmessages-dgm-samba4.so
-lib/samba4/private/libmessages-util-samba4.so
-lib/samba4/private/libmsghdr-samba4.so
-lib/samba4/private/libmsrpc3-samba4.so
-lib/samba4/private/libndr-samba-samba4.so
-lib/samba4/private/libndr-samba4.so
-lib/samba4/private/libnet-keytab-samba4.so
-lib/samba4/private/libnetif-samba4.so
-lib/samba4/private/libnon-posix-acls-samba4.so
-lib/samba4/private/libnpa-tstream-samba4.so
-lib/samba4/private/libnss-info-samba4.so
-%%AD_DC%%lib/samba4/private/libpac-samba4.so
-lib/samba4/private/libpopt-samba3-samba4.so
-lib/samba4/private/libprinting-migrate-samba4.so
-lib/samba4/private/libregistry-samba4.so
-lib/samba4/private/libreplace-samba4.so
-lib/samba4/private/libroken-samba4.so.19
-lib/samba4/private/libsamba-cluster-support-samba4.so
-lib/samba4/private/libsamba-debug-samba4.so
-lib/samba4/private/libsamba-modules-samba4.so
-lib/samba4/private/libsamba-net-samba4.so
-lib/samba4/private/libsamba-python-samba4.so
-lib/samba4/private/libsamba-security-samba4.so
-lib/samba4/private/libsamba-sockets-samba4.so
-lib/samba4/private/libsamba3-util-samba4.so
-lib/samba4/private/libsamdb-common-samba4.so
-lib/samba4/private/libsecrets3-samba4.so
-lib/samba4/private/libserver-id-db-samba4.so
-lib/samba4/private/libserver-role-samba4.so
-lib/samba4/private/libshares-samba4.so
-lib/samba4/private/libsmb-transport-samba4.so
-lib/samba4/private/libsmbclient-raw-samba4.so
-lib/samba4/private/libsmbd-base-samba4.so
-lib/samba4/private/libsmbd-conn-samba4.so
-lib/samba4/private/libsmbd-shim-samba4.so
-%%LDAP%%lib/samba4/private/libsmbldaphelper-samba4.so
-%%NTVFS%%lib/samba4/private/libntvfs-samba4.so
-lib/samba4/private/libsmbpasswdparser-samba4.so
-lib/samba4/private/libsocket-blocking-samba4.so
-lib/samba4/private/libsys-rw-samba4.so
-lib/samba4/private/libtalloc-report-samba4.so
-lib/samba4/private/libtdb-wrap-samba4.so
-lib/samba4/private/libtime-basic-samba4.so
-lib/samba4/private/libtorture-samba4.so
-lib/samba4/private/libtrusts-util-samba4.so
-lib/samba4/private/libutil-cmdline-samba4.so
-lib/samba4/private/libutil-reg-samba4.so
-lib/samba4/private/libutil-setid-samba4.so
-lib/samba4/private/libutil-tdb-samba4.so
-lib/samba4/private/libwinbind-client-samba4.so
-lib/samba4/private/libwind-samba4.so.0
-lib/samba4/private/libxattr-tdb-samba4.so
-%%AD_DC%%lib/shared-modules/bind9/dlz_bind9_10.so
-%%AD_DC%%lib/shared-modules/bind9/dlz_bind9_11.so
-%%AD_DC%%lib/shared-modules/bind9/dlz_bind9_9.so
-%%AD_DC%%lib/shared-modules/bind9/dlz_bind9.so
-%%AD_DC%%lib/shared-modules/gensec/krb5.so
-%%AD_DC%%lib/shared-modules/ldb/acl.so
-%%AD_DC%%lib/shared-modules/ldb/aclread.so
-%%AD_DC%%lib/shared-modules/ldb/anr.so
-%%AD_DC%%lib/shared-modules/ldb/descriptor.so
-%%AD_DC%%lib/shared-modules/ldb/dirsync.so
-%%AD_DC%%lib/shared-modules/ldb/dsdb_notification.so
-%%AD_DC%%lib/shared-modules/ldb/extended_dn_in.so
-%%AD_DC%%lib/shared-modules/ldb/extended_dn_out.so
-%%AD_DC%%lib/shared-modules/ldb/extended_dn_store.so
-%%AD_DC%%lib/shared-modules/ldb/instancetype.so
-%%AD_DC%%lib/shared-modules/ldb/lazy_commit.so
-%%AD_DC%%lib/shared-modules/ldb/linked_attributes.so
-%%AD_DC%%lib/shared-modules/ldb/local_password.so
-%%AD_DC%%lib/shared-modules/ldb/new_partition.so
-%%AD_DC%%lib/shared-modules/ldb/objectclass_attrs.so
-%%AD_DC%%lib/shared-modules/ldb/objectclass.so
-%%AD_DC%%lib/shared-modules/ldb/objectguid.so
-%%AD_DC%%lib/shared-modules/ldb/operational.so
-%%AD_DC%%lib/shared-modules/ldb/partition.so
-%%AD_DC%%lib/shared-modules/ldb/password_hash.so
-%%AD_DC%%lib/shared-modules/ldb/ranged_results.so
-%%AD_DC%%lib/shared-modules/ldb/repl_meta_data.so
-%%AD_DC%%lib/shared-modules/ldb/resolve_oids.so
-%%AD_DC%%lib/shared-modules/ldb/rootdse.so
-%%AD_DC%%lib/shared-modules/ldb/samba_dsdb.so
-%%AD_DC%%lib/shared-modules/ldb/samba_secrets.so
-%%AD_DC%%lib/shared-modules/ldb/samba3sam.so
-%%AD_DC%%lib/shared-modules/ldb/samba3sid.so
-%%AD_DC%%lib/shared-modules/ldb/samldb.so
-%%AD_DC%%lib/shared-modules/ldb/schema_data.so
-%%AD_DC%%lib/shared-modules/ldb/schema_load.so
-%%AD_DC%%lib/shared-modules/ldb/secrets_tdb_sync.so
-%%AD_DC%%lib/shared-modules/ldb/show_deleted.so
-%%AD_DC%%lib/shared-modules/ldb/simple_dn.so
-%%AD_DC%%lib/shared-modules/ldb/simple_ldap_map.so
-%%AD_DC%%lib/shared-modules/ldb/subtree_delete.so
-%%AD_DC%%lib/shared-modules/ldb/subtree_rename.so
-%%AD_DC%%lib/shared-modules/ldb/update_keytab.so
-%%AD_DC%%lib/shared-modules/ldb/vlv.so
-%%AD_DC%%lib/shared-modules/ldb/wins_ldb.so
-%%AD_DC%%lib/shared-modules/process_model/standard.so
-%%AD_DC%%lib/shared-modules/service/cldap.so
-%%AD_DC%%lib/shared-modules/service/dcerpc.so
-%%AD_DC%%lib/shared-modules/service/dns_update.so
-%%AD_DC%%lib/shared-modules/service/dns.so
-%%AD_DC%%lib/shared-modules/service/drepl.so
-%%AD_DC%%lib/shared-modules/service/kcc.so
-%%AD_DC%%lib/shared-modules/service/kdc.so
-%%AD_DC%%lib/shared-modules/service/ldap.so
-%%AD_DC%%lib/shared-modules/service/nbtd.so
-%%AD_DC%%lib/shared-modules/service/ntp_signd.so
-%%AD_DC%%lib/shared-modules/service/s3fs.so
-%%AD_DC%%lib/shared-modules/service/web.so
-%%AD_DC%%lib/shared-modules/service/winbindd.so
-%%AD_DC%%lib/shared-modules/service/wrepl.so
-%%AD_DC%%lib/shared-modules/vfs/posix_eadb.so
-%%NTVFS%%lib/shared-modules/service/smb.so
-lib/shared-modules/auth/script.so
-%%AD_DC%%lib/shared-modules/ldb/dns_notify.so
-lib/shared-modules/ldb/ildap.so
-lib/shared-modules/ldb/ldbsamba_extensions.so
-%%AD_DC%%lib/shared-modules/ldb/tombstone_reanimate.so
-lib/shared-modules/vfs/acl_tdb.so
-lib/shared-modules/vfs/acl_xattr.so
-lib/shared-modules/vfs/aio_fork.so
-lib/shared-modules/vfs/aio_pthread.so
-lib/shared-modules/vfs/audit.so
-lib/shared-modules/vfs/cap.so
-lib/shared-modules/vfs/catia.so
-lib/shared-modules/vfs/commit.so
-lib/shared-modules/vfs/crossrename.so
-lib/shared-modules/vfs/default_quota.so
-lib/shared-modules/vfs/dirsort.so
-lib/shared-modules/vfs/expand_msdfs.so
-lib/shared-modules/vfs/extd_audit.so
-lib/shared-modules/vfs/fake_perms.so
-lib/shared-modules/vfs/fruit.so
-lib/shared-modules/vfs/full_audit.so
-lib/shared-modules/vfs/linux_xfs_sgid.so
-lib/shared-modules/vfs/media_harmony.so
-lib/shared-modules/vfs/netatalk.so
-lib/shared-modules/vfs/offline.so
-lib/shared-modules/vfs/preopen.so
-lib/shared-modules/vfs/readahead.so
-lib/shared-modules/vfs/readonly.so
-lib/shared-modules/vfs/recycle.so
-lib/shared-modules/vfs/shadow_copy.so
-lib/shared-modules/vfs/shadow_copy2.so
-lib/shared-modules/vfs/shell_snap.so
-lib/shared-modules/vfs/streams_depot.so
-lib/shared-modules/vfs/streams_xattr.so
-lib/shared-modules/vfs/syncops.so
-lib/shared-modules/vfs/time_audit.so
-lib/shared-modules/vfs/unityed_media.so
-lib/shared-modules/vfs/worm.so
-lib/shared-modules/vfs/xattr_tdb.so
-lib/shared-modules/vfs/zfsacl.so
-@dir lib/shared-modules/vfs
-%%AD_DC%%@dir lib/shared-modules/service
-%%AD_DC%%@dir lib/shared-modules/process_model
-@dir lib/shared-modules/perfcount
-@dir lib/shared-modules/pdb
-@dir lib/shared-modules/nss_info
-@dir lib/shared-modules/ldb
-@dir lib/shared-modules/idmap
-@dir lib/shared-modules/gpext
-@dir lib/shared-modules/gensec
-@dir lib/shared-modules/bind9
-@dir lib/shared-modules/auth
-@dir lib/shared-modules
-@dir lib/samba4/private
-@dir lib/samba4
-%%PKGCONFIGDIR%%/dcerpc.pc
-%%PKGCONFIGDIR%%/dcerpc_samr.pc
-%%AD_DC%%%%PKGCONFIGDIR%%/dcerpc_server.pc
-%%PKGCONFIGDIR%%/ndr.pc
-%%PKGCONFIGDIR%%/ndr_krb5pac.pc
-%%PKGCONFIGDIR%%/ndr_nbt.pc
-%%PKGCONFIGDIR%%/ndr_standard.pc
-%%PKGCONFIGDIR%%/netapi.pc
-%%PKGCONFIGDIR%%/samba-credentials.pc
-%%PKGCONFIGDIR%%/samba-hostconfig.pc
-%%PKGCONFIGDIR%%/samba-policy.pc
-%%PKGCONFIGDIR%%/samba-util.pc
-%%PKGCONFIGDIR%%/samdb.pc
-%%PKGCONFIGDIR%%/smbclient.pc
-%%PKGCONFIGDIR%%/wbclient.pc
-%%AD_DC%%%%PYTHON_SITELIBDIR%%/samba/dckeytab.so
-%%AD_DC%%%%PYTHON_SITELIBDIR%%/samba/posix_eadb.so
-%%AD_DC%%%%PYTHON_SITELIBDIR%%/samba/xattr_native.so
-%%AD_DC%%%%PYTHON_SITELIBDIR%%/samba/xattr_tdb.so
-%%PYTHON_SITELIBDIR%%/samba/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/_glue.so
-%%PYTHON_SITELIBDIR%%/samba/_ldb.so
-%%PYTHON_SITELIBDIR%%/samba/auth.so
-%%PYTHON_SITELIBDIR%%/samba/com.so
-%%PYTHON_SITELIBDIR%%/samba/common.py
-%%PYTHON_SITELIBDIR%%/samba/credentials.so
-%%PYTHON_SITELIBDIR%%/samba/crypto.so
-%%PYTHON_SITELIBDIR%%/samba/dbchecker.py
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/atsvc.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/auth.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/base.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/dcerpc.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/dfs.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/dns.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/dnsp.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/dnsserver.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/drsblobs.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/drsuapi.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/echo.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/epmapper.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/idmap.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/initshutdown.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/irpc.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/krb5pac.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/lsa.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/mgmt.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/misc.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/nbt.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/netlogon.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/samr.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/security.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/server_id.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/smb_acl.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/srvsvc.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/svcctl.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/unixinfo.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/winbind.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/winreg.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/wkssvc.so
-%%PYTHON_SITELIBDIR%%/samba/dcerpc/xattr.so
-%%PYTHON_SITELIBDIR%%/samba/descriptor.py
-%%PYTHON_SITELIBDIR%%/samba/drs_utils.py
-%%PYTHON_SITELIBDIR%%/samba/dsdb.so
-%%PYTHON_SITELIBDIR%%/samba/dsdb_dns.so
-%%PYTHON_SITELIBDIR%%/samba/gensec.so
-%%PYTHON_SITELIBDIR%%/samba/getopt.py
-%%PYTHON_SITELIBDIR%%/samba/hostconfig.py
-%%PYTHON_SITELIBDIR%%/samba/idmap.py
-%%PYTHON_SITELIBDIR%%/samba/join.py
-%%PYTHON_SITELIBDIR%%/samba/kcc/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/kcc/debug.py
-%%PYTHON_SITELIBDIR%%/samba/kcc/graph.py
-%%PYTHON_SITELIBDIR%%/samba/kcc/graph_utils.py
-%%PYTHON_SITELIBDIR%%/samba/kcc/kcc_utils.py
-%%PYTHON_SITELIBDIR%%/samba/kcc/ldif_import_export.py
-%%PYTHON_SITELIBDIR%%/samba/messaging.so
-%%PYTHON_SITELIBDIR%%/samba/ms_display_specifiers.py
-%%PYTHON_SITELIBDIR%%/samba/ms_schema.py
-%%PYTHON_SITELIBDIR%%/samba/ndr.py
-%%PYTHON_SITELIBDIR%%/samba/net.so
-%%PYTHON_SITELIBDIR%%/samba/netbios.so
-%%PYTHON_SITELIBDIR%%/samba/netcmd/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/common.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/dbcheck.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/delegation.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/dns.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/domain.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/drs.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/dsacl.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/fsmo.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/gpo.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/group.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/ldapcmp.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/main.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/nettime.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/ntacl.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/processes.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/rodc.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/sites.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/spn.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/testparm.py
-%%PYTHON_SITELIBDIR%%/samba/netcmd/user.py
-%%PYTHON_SITELIBDIR%%/samba/ntacls.py
-%%PYTHON_SITELIBDIR%%/samba/param.so
-%%PYTHON_SITELIBDIR%%/samba/policy.so
-%%PYTHON_SITELIBDIR%%/samba/provision/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/provision/backend.py
-%%PYTHON_SITELIBDIR%%/samba/provision/common.py
-%%PYTHON_SITELIBDIR%%/samba/provision/sambadns.py
-%%PYTHON_SITELIBDIR%%/samba/registry.so
-%%PYTHON_SITELIBDIR%%/samba/remove_dc.py
-%%PYTHON_SITELIBDIR%%/samba/samba3/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/samba3/libsmb_samba_internal.so
-%%PYTHON_SITELIBDIR%%/samba/samba3/param.so
-%%PYTHON_SITELIBDIR%%/samba/samba3/passdb.so
-%%PYTHON_SITELIBDIR%%/samba/samba3/smbd.so
-%%PYTHON_SITELIBDIR%%/samba/samdb.py
-%%PYTHON_SITELIBDIR%%/samba/schema.py
-%%PYTHON_SITELIBDIR%%/samba/sd_utils.py
-%%PYTHON_SITELIBDIR%%/samba/security.so
-%%PYTHON_SITELIBDIR%%/samba/sites.py
-%%PYTHON_SITELIBDIR%%/samba/smb.so
-%%PYTHON_SITELIBDIR%%/samba/subnets.py
-%%PYTHON_SITELIBDIR%%/samba/subunit/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/subunit/run.py
-%%PYTHON_SITELIBDIR%%/samba/tdb_util.py
-%%PYTHON_SITELIBDIR%%/samba/tests/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/tests/auth.py
-%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/ndrdump.py
-%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/samba_dnsupdate.py
-%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/samba_tool_drs.py
-%%PYTHON_SITELIBDIR%%/samba/tests/common.py
-%%PYTHON_SITELIBDIR%%/samba/tests/core.py
-%%PYTHON_SITELIBDIR%%/samba/tests/credentials.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/array.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/bare.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/dnsserver.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/integer.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/misc.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/raw_protocol.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/registry.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/rpc_talloc.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/rpcecho.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/sam.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/srvsvc.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/string.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/testrpc.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/unix.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dns.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dns_forwarder.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dns_forwarder_helpers/server.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dns_tkey.py
-%%PYTHON_SITELIBDIR%%/samba/tests/docs.py
-%%PYTHON_SITELIBDIR%%/samba/tests/dsdb.py
-%%PYTHON_SITELIBDIR%%/samba/tests/gensec.py
-%%PYTHON_SITELIBDIR%%/samba/tests/get_opt.py
-%%PYTHON_SITELIBDIR%%/samba/tests/hostconfig.py
-%%PYTHON_SITELIBDIR%%/samba/tests/kcc/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/tests/kcc/graph.py
-%%PYTHON_SITELIBDIR%%/samba/tests/kcc/graph_utils.py
-%%PYTHON_SITELIBDIR%%/samba/tests/kcc/kcc_utils.py
-%%PYTHON_SITELIBDIR%%/samba/tests/kcc/ldif_import_export.py
-%%PYTHON_SITELIBDIR%%/samba/tests/libsmb_samba_internal.py
-%%PYTHON_SITELIBDIR%%/samba/tests/messaging.py
-%%PYTHON_SITELIBDIR%%/samba/tests/netcmd.py
-%%PYTHON_SITELIBDIR%%/samba/tests/ntacls.py
-%%PYTHON_SITELIBDIR%%/samba/tests/param.py
-%%PYTHON_SITELIBDIR%%/samba/tests/policy.py
-%%PYTHON_SITELIBDIR%%/samba/tests/posixacl.py
-%%PYTHON_SITELIBDIR%%/samba/tests/provision.py
-%%PYTHON_SITELIBDIR%%/samba/tests/registry.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba3.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba3sam.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/base.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/dnscmd.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/fsmo.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/gpo.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/group.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/join.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/ntacl.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/processes.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/rodc.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/sites.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/timecmd.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user_check_password_script.py
-%%PYTHON_SITELIBDIR%%/samba/tests/samdb.py
-%%PYTHON_SITELIBDIR%%/samba/tests/security.py
-%%PYTHON_SITELIBDIR%%/samba/tests/source.py
-%%PYTHON_SITELIBDIR%%/samba/tests/strings.py
-%%PYTHON_SITELIBDIR%%/samba/tests/subunitrun.py
-%%PYTHON_SITELIBDIR%%/samba/tests/unicodenames.py
-%%PYTHON_SITELIBDIR%%/samba/tests/upgrade.py
-%%PYTHON_SITELIBDIR%%/samba/tests/upgradeprovision.py
-%%PYTHON_SITELIBDIR%%/samba/tests/upgradeprovisionneeddc.py
-%%PYTHON_SITELIBDIR%%/samba/tests/xattr.py
-%%PY_ISO8601%%%%PYTHON_SITELIBDIR%%/samba/third_party/__init__.py
-%%PY_ISO8601%%%%PYTHON_SITELIBDIR%%/samba/third_party/iso8601/__init__.py
-%%PY_ISO8601%%%%PYTHON_SITELIBDIR%%/samba/third_party/iso8601/iso8601.py
-%%PY_ISO8601%%%%PYTHON_SITELIBDIR%%/samba/third_party/iso8601/test_iso8601.py
-%%PYTHON_SITELIBDIR%%/samba/upgrade.py
-%%PYTHON_SITELIBDIR%%/samba/upgradehelpers.py
-%%PYTHON_SITELIBDIR%%/samba/web_server/__init__.py
-%%PYTHON_SITELIBDIR%%/samba/xattr.py
-@unexec find %D/%%PYTHON_SITELIBDIR%%/samba -name '*.py[co]' -delete >/dev/null 2>&1
-%%DATADIR%%/perl5/Parse/Pidl.pm
-%%DATADIR%%/perl5/Parse/Pidl/CUtil.pm
-%%DATADIR%%/perl5/Parse/Pidl/Compat.pm
-%%DATADIR%%/perl5/Parse/Pidl/Dump.pm
-%%DATADIR%%/perl5/Parse/Pidl/Expr.pm
-%%DATADIR%%/perl5/Parse/Pidl/IDL.pm
-%%DATADIR%%/perl5/Parse/Pidl/NDR.pm
-%%DATADIR%%/perl5/Parse/Pidl/ODL.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba3/ClientNDR.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba3/ServerNDR.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/COM/Header.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/COM/Proxy.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/COM/Stub.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/Header.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/NDR/Client.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/NDR/Parser.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/NDR/Server.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/Python.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/TDR.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/Template.pm
-%%DATADIR%%/perl5/Parse/Pidl/Typelist.pm
-%%DATADIR%%/perl5/Parse/Pidl/Util.pm
-%%DATADIR%%/perl5/Parse/Pidl/Wireshark/Conformance.pm
-%%DATADIR%%/perl5/Parse/Pidl/Wireshark/NDR.pm
-%%AD_DC%%%%DATADIR%%/setup/DB_CONFIG
-%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_Attributes.txt
-%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_Classes.txt
-%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_R2_Attributes.txt
-%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_R2_Classes.txt
-%%AD_DC%%%%DATADIR%%/setup/ad-schema/licence.txt
-%%AD_DC%%%%DATADIR%%/setup/aggregate_schema.ldif
-%%AD_DC%%%%DATADIR%%/setup/cn=samba.ldif
-%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k0.txt
-%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k3.txt
-%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k3R2.txt
-%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k8.txt
-%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k8R2.txt
-%%AD_DC%%%%DATADIR%%/setup/dns_update_list
-%%AD_DC%%%%DATADIR%%/setup/fedora-ds-init.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-dna.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-index.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-linked-attributes.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-pam.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-partitions.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-refint-add.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-refint-delete.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-samba.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-sasl.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads.inf
-%%AD_DC%%%%DATADIR%%/setup/idmap_init.ldif
-%%AD_DC%%%%DATADIR%%/setup/krb5.conf
-%%AD_DC%%%%DATADIR%%/setup/memberof.conf
-%%AD_DC%%%%DATADIR%%/setup/mmr_serverids.conf
-%%AD_DC%%%%DATADIR%%/setup/mmr_syncrepl.conf
-%%AD_DC%%%%DATADIR%%/setup/modules.conf
-%%AD_DC%%%%DATADIR%%/setup/named.conf
-%%AD_DC%%%%DATADIR%%/setup/named.conf.dlz
-%%AD_DC%%%%DATADIR%%/setup/named.conf.update
-%%AD_DC%%%%DATADIR%%/setup/named.txt
-%%AD_DC%%%%DATADIR%%/setup/olc_mmr.conf
-%%AD_DC%%%%DATADIR%%/setup/olc_seed.ldif
-%%AD_DC%%%%DATADIR%%/setup/olc_serverid.conf
-%%AD_DC%%%%DATADIR%%/setup/olc_syncrepl.conf
-%%AD_DC%%%%DATADIR%%/setup/olc_syncrepl_seed.conf
-%%AD_DC%%%%DATADIR%%/setup/prefixMap.txt
-%%AD_DC%%%%DATADIR%%/setup/provision.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision.reg
-%%AD_DC%%%%DATADIR%%/setup/provision.zone
-%%AD_DC%%%%DATADIR%%/setup/provision_basedn.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_basedn_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_basedn_options.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_basedn_references.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_computers_add.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_computers_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_configuration.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_configuration_basedn.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_configuration_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_configuration_references.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_dns_accounts_add.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_dns_add_samba.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_dnszones_add.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_dnszones_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_dnszones_partitions.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_group_policy.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_init.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_partitions.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_privilege.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_rootdse_add.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_rootdse_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_schema_basedn.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_schema_basedn_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_self_join.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_self_join_config.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_self_join_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_self_join_modify_config.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_users.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_users_add.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_users_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_well_known_sec_princ.ldif
-%%AD_DC%%%%DATADIR%%/setup/refint.conf
-%%AD_DC%%%%DATADIR%%/setup/schema-map-fedora-ds-1.0
-%%AD_DC%%%%DATADIR%%/setup/schema-map-openldap-2.3
-%%AD_DC%%%%DATADIR%%/setup/schema_samba4.ldif
-%%AD_DC%%%%DATADIR%%/setup/secrets.ldif
-%%AD_DC%%%%DATADIR%%/setup/secrets_dns.ldif
-%%AD_DC%%%%DATADIR%%/setup/secrets_init.ldif
-%%AD_DC%%%%DATADIR%%/setup/secrets_sasl_ldap.ldif
-%%AD_DC%%%%DATADIR%%/setup/secrets_simple_ldap.ldif
-%%AD_DC%%%%DATADIR%%/setup/share.ldif
-%%AD_DC%%%%DATADIR%%/setup/slapd.conf
-%%AD_DC%%%%DATADIR%%/setup/spn_update_list
-%%AD_DC%%%%DATADIR%%/setup/ypServ30.ldif
-man/man1/dbwrap_tool.1.gz
-man/man1/findsmb.1.gz
-man/man1/gentest.1.gz
-man/man1/locktest.1.gz
-man/man1/log2pcap.1.gz
-man/man1/masktest.1.gz
-man/man1/mvxattr.1.gz
-man/man1/ndrdump.1.gz
-man/man1/nmblookup.1.gz
-man/man1/ntlm_auth.1.gz
-man/man1/oLschema2ldif.1.gz
-man/man1/profiles.1.gz
-man/man1/pidl.1.gz
-man/man1/regdiff.1.gz
-man/man1/regpatch.1.gz
-man/man1/regshell.1.gz
-man/man1/regtree.1.gz
-man/man1/rpcclient.1.gz
-man/man1/sharesec.1.gz
-man/man1/smbcacls.1.gz
-man/man1/smbclient.1.gz
-man/man1/smbcontrol.1.gz
-man/man1/smbcquotas.1.gz
-man/man1/smbget.1.gz
-man/man1/smbstatus.1.gz
-man/man1/smbtar.1.gz
-man/man1/smbtorture.1.gz
-man/man1/smbtree.1.gz
-man/man1/testparm.1.gz
-man/man1/vfstest.1.gz
-man/man1/wbinfo.1.gz
-man/man3/Parse::Pidl::Dump.3.gz
-man/man3/Parse::Pidl::NDR.3.gz
-man/man3/Parse::Pidl::Util.3.gz
-man/man3/Parse::Pidl::Wireshark::Conformance.3.gz
-man/man3/Parse::Pidl::Wireshark::NDR.3.gz
-man/man5/lmhosts.5.gz
-man/man5/pam_winbind.conf.5.gz
-man/man5/smb.conf.5.gz
-man/man5/smb4.conf.5.gz
-man/man5/smbgetrc.5.gz
-man/man5/smbpasswd.5.gz
-man/man7/libsmbclient.7.gz
-man/man7/samba.7.gz
-man/man7/winbind_krb5_locator.7.gz
-man/man8/cifsdd.8.gz
-man/man8/eventlogadm.8.gz
-man/man8/idmap_ad.8.gz
-man/man8/idmap_autorid.8.gz
-man/man8/idmap_hash.8.gz
-man/man8/idmap_ldap.8.gz
-man/man8/idmap_nss.8.gz
-man/man8/idmap_rfc2307.8.gz
-man/man8/idmap_rid.8.gz
-man/man8/idmap_script.8.gz
-man/man8/idmap_tdb.8.gz
-man/man8/idmap_tdb2.8.gz
-man/man8/net.8.gz
-man/man8/nmbd.8.gz
-man/man8/pam_winbind.8.gz
-man/man8/pdbedit.8.gz
-man/man8/samba-regedit.8.gz
-man/man8/samba-tool.8.gz
-man/man8/samba.8.gz
-man/man8/smbd.8.gz
-man/man8/smbpasswd.8.gz
-man/man8/smbspool_krb5_wrapper.8.gz
-man/man8/smbspool.8.gz
-man/man8/vfs_acl_tdb.8.gz
-man/man8/vfs_acl_xattr.8.gz
-man/man8/vfs_aio_fork.8.gz
-man/man8/vfs_aio_linux.8.gz
-man/man8/vfs_aio_pthread.8.gz
-man/man8/vfs_audit.8.gz
-man/man8/vfs_btrfs.8.gz
-man/man8/vfs_cacheprime.8.gz
-man/man8/vfs_cap.8.gz
-man/man8/vfs_catia.8.gz
-man/man8/vfs_ceph.8.gz
-man/man8/vfs_commit.8.gz
-man/man8/vfs_crossrename.8.gz
-man/man8/vfs_default_quota.8.gz
-man/man8/vfs_dirsort.8.gz
-man/man8/vfs_extd_audit.8.gz
-man/man8/vfs_fake_perms.8.gz
-man/man8/vfs_fileid.8.gz
-man/man8/vfs_fruit.8.gz
-man/man8/vfs_full_audit.8.gz
-man/man8/vfs_glusterfs.8.gz
-man/man8/vfs_gpfs.8.gz
-man/man8/vfs_linux_xfs_sgid.8.gz
-man/man8/vfs_media_harmony.8.gz
-man/man8/vfs_offline.8.gz
-man/man8/vfs_netatalk.8.gz
-man/man8/vfs_prealloc.8.gz
-man/man8/vfs_preopen.8.gz
-man/man8/vfs_readahead.8.gz
-man/man8/vfs_readonly.8.gz
-man/man8/vfs_recycle.8.gz
-man/man8/vfs_shadow_copy.8.gz
-man/man8/vfs_shadow_copy2.8.gz
-man/man8/vfs_shell_snap.8.gz
-man/man8/vfs_snapper.8.gz
-man/man8/vfs_streams_depot.8.gz
-man/man8/vfs_streams_xattr.8.gz
-man/man8/vfs_syncops.8.gz
-man/man8/vfs_time_audit.8.gz
-man/man8/vfs_tsmsm.8.gz
-man/man8/vfs_unityed_media.8.gz
-man/man8/vfs_worm.8.gz
-man/man8/vfs_xattr_tdb.8.gz
-man/man8/vfs_zfsacl.8.gz
-man/man8/winbindd.8.gz
-@dir /var/run/samba4
-@dir /var/log/samba4
-@dir /var/db/samba4/private
-@dir /var/db/samba4
diff --git a/net/samba47/Makefile b/net/samba47/Makefile
deleted file mode 100644
index c91230faef2f..000000000000
--- a/net/samba47/Makefile
+++ /dev/null
@@ -1,590 +0,0 @@
-# Created by: timur@FreeBSD.org
-# $FreeBSD$
-
-PORTNAME= ${SAMBA4_BASENAME}47
-PORTVERSION= ${SAMBA4_VERSION}
-PORTREVISION= 2
-CATEGORIES?= net
-MASTER_SITES= SAMBA/samba/stable SAMBA/samba/rc
-DISTNAME= ${SAMBA4_DISTNAME}
-
-MAINTAINER= timur@FreeBSD.org
-COMMENT= Free SMB/CIFS and AD/DC server and client for Unix
-
-LICENSE= GPLv3+
-LICENSE_FILE= ${WRKSRC}/COPYING
-
-DEPRECATED= yes
-EXPIRATION_DATE= 2019-08-19
-
-IGNORE_NONTHREAD_PYTHON= needs port lang/python${PYTHON_SUFFIX} to be build with THREADS support
-
-CONFLICTS_INSTALL?= samba4-4.0.* samba4[1-689]-4.* p5-Parse-Pidl-4.*
-
-EXTRA_PATCHES+= ${PATCHDIR}/0001-Zfs-provision-1.patch:-p1
-EXTRA_PATCHES+= ${PATCHDIR}/0001-Freenas-master-mdns-fixes-22.patch:-p1
-EXTRA_PATCHES+= ${PATCHDIR}/0001-audit.patch:-p1
-EXTRA_PATCHES+= ${PATCHDIR}/0001-bug-228462.patch:-p1
-
-SAMBA4_BASENAME= samba
-SAMBA4_PORTNAME= ${SAMBA4_BASENAME}4
-SAMBA4_VERSION= 4.7.12
-SAMBA4_DISTNAME= ${SAMBA4_BASENAME}-${SAMBA4_VERSION:S|.p|pre|:S|.r|rc|:S|.t|tp|:S|.a|alpha|}
-
-WRKSRC?= ${WRKDIR}/${DISTNAME}
-
-.if !defined(SAMBA4_SUBPORT)
-CPE_VENDOR= samba
-CPE_PRODUCT= samba
-# Directories
-VARDIR= ${DESTDIR}/var
-SAMBA4_RUNDIR= ${VARDIR}/run/${SAMBA4_PORTNAME}
-SAMBA4_LOGDIR= ${VARDIR}/log/${SAMBA4_PORTNAME}
-SAMBA4_LOCKDIR= ${VARDIR}/db/${SAMBA4_PORTNAME}
-SAMBA4_BINDDNSDIR= ${SAMBA4_LOCKDIR}/bind-dns
-SAMBA4_PRIVATEDIR= ${SAMBA4_LOCKDIR}/private
-SAMBA4_PAMDIR= ${PREFIX}/lib
-SAMBA4_LIBDIR= ${PREFIX}/lib/${SAMBA4_PORTNAME}
-SAMBA4_MODULEDIR= ${PREFIX}/lib/shared-modules
-SAMBA4_INCLUDEDIR= ${PREFIX}/include/${SAMBA4_PORTNAME}
-SAMBA4_CONFDIR= ${PREFIX}/etc
-SAMBA4_CONFIG= smb4.conf
-
-CONFIGURE_ARGS+= --mandir="${MANPREFIX}/man" \
- --sysconfdir="${SAMBA4_CONFDIR}" \
- --includedir="${SAMBA4_INCLUDEDIR}" \
- --datadir="${DATADIR}" \
- --libdir="${SAMBA4_LIBDIR}" \
- --with-privatelibdir="${SAMBA4_LIBDIR}/private" \
- --with-pammodulesdir="${SAMBA4_PAMDIR}" \
- --with-modulesdir="${SAMBA4_MODULEDIR}" \
- --with-pkgconfigdir="${PKGCONFIGDIR}" \
- --localstatedir="${VARDIR}" \
- --with-piddir="${SAMBA4_RUNDIR}" \
- --with-sockets-dir="${SAMBA4_RUNDIR}" \
- --with-privileged-socket-dir="${SAMBA4_RUNDIR}" \
- --with-lockdir="${SAMBA4_LOCKDIR}" \
- --with-statedir="${SAMBA4_LOCKDIR}" \
- --with-cachedir="${SAMBA4_LOCKDIR}" \
- --with-privatedir="${SAMBA4_PRIVATEDIR}" \
- --with-logfilebase="${SAMBA4_LOGDIR}"
-# XXX: Flags
-CONFIGURE_ENV+= PTHREAD_LDFLAGS="-lpthread"
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-
-USES= cpe compiler waf pkgconfig perl5 \
- iconv shebangfix
-USE_PERL5= build
-USE_LDCONFIG= ${SAMBA4_LIBDIR}
-WAF_CMD= buildtools/bin/waf
-CONFIGURE_LOG= bin/config.log
-
-PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
-PKGCONFIGDIR_REL?= ${PKGCONFIGDIR:S,^${PREFIX}/,,}
-PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR_REL}
-SUB_LIST+= PKGCONFIGDIR=${PKGCONFIGDIR_REL}
-##############################################################################
-# Options
-OPTIONS_SUB= yes
-
-OPTIONS_DEFINE= AD_DC ADS DEBUG DOCS FAM LDAP \
- QUOTAS SYSLOG UTMP PROFILE
-# Make those default options
-OPTIONS_DEFAULT:= ${OPTIONS_DEFINE}
-# This shouldn't be default in the release
-OPTIONS_DEFINE+= DEVELOPER MANDOC
-
-OPTIONS_DEFINE_amd64= AESNI
-OPTIONS_DEFAULT_amd64= AESNI
-
-OPTIONS_DEFINE+= CLUSTER CUPS GLUSTERFS GPGME NTVFS SPOTLIGHT
-
-OPTIONS_RADIO= DNS ZEROCONF
-OPTIONS_RADIO_DNS= NSUPDATE BIND911
-OPTIONS_RADIO_ZEROCONF= MDNSRESPONDER AVAHI
-##############################################################################
-AD_DC_DESC= Active Directory Domain Controller
-ADS_DESC= Active Directory client(implies LDAP)
-AESNI_DESC= Accelerated AES crypto functions(amd64 only)
-CLUSTER_DESC= Clustering
-DEVELOPER_DESC= With developer framework(implies NTVFS)
-FAM_DESC= File Alteration Monitor
-GPGME_DESC= GpgME
-GLUSTERFS_DESC= GlusterFS
-LDAP_DESC= LDAP client
-LIBZFS_DESC= LibZFS
-SPOTLIGHT_DESC= Spotlight
-MANDOC_DESC= Build manpages from DOCBOOK templates
-NTVFS_DESC= Build *DEPRECATED* NTVFS file server
-PICKY_DEVELOPER_DESC= Treat compiler warnings as errors(implies DEVELOPER)
-PROFILE_DESC= Profiling data
-QUOTAS_DESC= Disk quota
-UTMP_DESC= UTMP accounting
-
-BIND911_DESC= Use Bind 9.11 as AD DC DNS server frontend
-NSUPDATE_DESC= Use samba NSUPDATE utility for AD DC
-##############################################################################
-# XXX: Unconditional dependencies which can't be switched off(if present in
-# the system)
-# Readline(sponsored by Python)
-# XXX: USES=readline pollutes CPPFLAGS, so we explicitly put dependency
-LIB_DEPENDS+= libreadline.so.8:devel/readline
-# popt
-LIB_DEPENDS+= libpopt.so:devel/popt
-# inotify
-LIB_DEPENDS+= libinotify.so:devel/libinotify
-# GNUTLS
-LIB_DEPENDS+= libgnutls.so:security/gnutls
-# NFS4 ACL glue
-LIB_DEPENDS+= libsunacl.so:sysutils/libsunacl
-# Jansson
-BUILD_DEPENDS+= jansson>=2.10:devel/jansson
-RUN_DEPENDS+= jansson>=2.10:devel/jansson
-# External Samba dependencies
-# Needed for IDL compiler
-BUILD_DEPENDS+= p5-Parse-Yapp>=0:devel/p5-Parse-Yapp
-# Libarchive
-SAMBA4_BUNDLED_LIBS+= !libarchive
-BUILD_DEPENDS+= libarchive>=3.1.2:archivers/libarchive
-RUN_DEPENDS+= libarchive>=3.1.2:archivers/libarchive
-### Bundled libraries
-#SAMBA4_BUNDLED_CMOCKA= yes
-#SAMBA4_BUNDLED_TALLOC= yes
-#SAMBA4_BUNDLED_TEVENT= yes
-#SAMBA4_BUNDLED_TDB= yes
-SAMBA4_BUNDLED_LDB= yes
-SAMBA4_LDB= 12
-# cmocka
-.if defined(SAMBA4_BUNDLED_CMOCKA)
-SAMBA4_BUNDLED_LIBS+= cmocka
-CONFLICTS+= cmocka-1.*
-PLIST_SUB+= SAMBA4_BUNDLED_CMOCKA=""
-SUB_LIST+= SAMBA4_BUNDLED_CMOCKA=""
-.else
-SAMBA4_BUNDLED_LIBS+= !cmocka
-BUILD_DEPENDS+= cmocka>=1.1.1:sysutils/cmocka
-RUN_DEPENDS+= cmocka>=1.1.1:sysutils/cmocka
-PLIST_SUB+= SAMBA4_BUNDLED_CMOCKA="@comment "
-SUB_LIST+= SAMBA4_BUNDLED_CMOCKA="@comment "
-.endif
-# talloc
-.if defined(SAMBA4_BUNDLED_TALLOC)
-SAMBA4_BUNDLED_LIBS+= talloc
-CONFLICTS+= talloc1-2.*
-PLIST_SUB+= SAMBA4_BUNDLED_TALLOC=""
-SUB_LIST+= SAMBA4_BUNDLED_TALLOC=""
-.else
-SAMBA4_BUNDLED_LIBS+= !talloc
-BUILD_DEPENDS+= talloc1>=2.1.11:devel/talloc1
-RUN_DEPENDS+= talloc1>=2.1.11:devel/talloc1
-PLIST_SUB+= SAMBA4_BUNDLED_TALLOC="@comment "
-SUB_LIST+= SAMBA4_BUNDLED_TALLOC="@comment "
-.endif
-# tevent
-.if defined(SAMBA4_BUNDLED_TEVENT)
-SAMBA4_BUNDLED_LIBS+= tevent
-CONFLICTS+= tevent1-0.*
-PLIST_SUB+= SAMBA4_BUNDLED_TEVENT=""
-SUB_LIST+= SAMBA4_BUNDLED_TEVENT=""
-.else
-SAMBA4_BUNDLED_LIBS+= !tevent
-BUILD_DEPENDS+= tevent1>=0.9.36:devel/tevent1
-RUN_DEPENDS+= tevent1>=0.9.36:devel/tevent1
-PLIST_SUB+= SAMBA4_BUNDLED_TEVENT="@comment "
-SUB_LIST+= SAMBA4_BUNDLED_TEVENT="@comment "
-.endif
-# tdb
-.if defined(SAMBA4_BUNDLED_TDB)
-SAMBA4_BUNDLED_LIBS+= tdb
-CONFLICTS+= tdb1-1.*
-PLIST_SUB+= SAMBA4_BUNDLED_TDB=""
-SUB_LIST+= SAMBA4_BUNDLED_TDB=""
-.else
-SAMBA4_BUNDLED_LIBS+= !tdb
-BUILD_DEPENDS+= tdb1>=1.3.15:databases/tdb1
-RUN_DEPENDS+= tdb1>=1.3.15:databases/tdb1
-PLIST_SUB+= SAMBA4_BUNDLED_TDB="@comment "
-SUB_LIST+= SAMBA4_BUNDLED_TDB="@comment "
-.endif
-# ldb
-.if defined(SAMBA4_BUNDLED_LDB) || !defined(SAMBA4_LDB)
-SAMBA4_BUNDLED_LDB= yes
-SAMBA4_BUNDLED_LIBS+= ldb
-CONFLICTS+= ldb-1.* ldb1[23]-1.*
-PLIST_SUB+= SAMBA4_BUNDLED_LDB=""
-SUB_LIST+= SAMBA4_BUNDLED_LDB=""
-.else
-. if ${SAMBA4_LDB} == 13
-BUILD_DEPENDS+= ldb13>=1.3.3:databases/ldb13
-RUN_DEPENDS+= ldb13>=1.3.3:databases/ldb13
-. elif ${SAMBA4_LDB} == 12
-BUILD_DEPENDS+= ldb12>=1.2.3:databases/ldb12
-RUN_DEPENDS+= ldb12>=1.2.3:databases/ldb12
-. elif ${SAMBA4_LDB} == 11
-BUILD_DEPENDS+= ldb>=1.1.29:databases/ldb
-RUN_DEPENDS+= ldb>=1.1.29:databases/ldb
-. endif
-SAMBA4_BUNDLED_LIBS+= !ldb
-PLIST_SUB+= SAMBA4_BUNDLED_LDB="@comment "
-SUB_LIST+= SAMBA4_BUNDLED_LDB="@comment "
-.endif
-
-.if defined(SAMBA4_BUNDLED_TALLOC) || defined(SAMBA4_BUNDLED_TEVENT) || defined(SAMBA4_BUNDLED_TDB)
-SAMBA4_BUNDLED_LIBS+= replace
-.endif
-# Don't use external libcom_err
-SAMBA4_BUNDLED_LIBS+= com_err
-# Set the test environment variables
-TEST_USES= python
-TEST_ENV+= PYTHON="${PYTHON_CMD}" \
- SHA1SUM=/sbin/sha1 \
- SHA256SUM=/sbin/sha256 \
- MD5SUM=/sbin/md5
-TEST_DEPENDS+= bash:shells/bash \
- tshark:net/tshark
-##############################################################################
-CONFIGURE_ARGS+= \
- --with-pam \
- --with-iconv \
- --with-winbind \
- --with-regedit \
- --disable-rpath \
- --without-lttng \
- --without-gettext \
- --enable-pthreadpool \
- --without-fake-kaserver \
- --without-systemd \
- --enable-gnutls \
- --with-libarchive \
- --with-acl-support \
- --with-sendfile-support \
- --disable-ctdb-tests \
- ${ICONV_CONFIGURE_BASE}
-
-##############################################################################
-BIND911_RUN_DEPENDS= bind911>=9.11.0.0:dns/bind911
-NSUPDATE_RUN_DEPENDS= samba-nsupdate:dns/samba-nsupdate
-
-AVAHI_CONFIGURE_ENABLE= avahi
-AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app
-
-MDNSRESPONDER_CONFIGURE_ENABLE= dnssd
-MDNSRESPONDER_LIB_DEPENDS= libdns_sd.so:net/mDNSResponder
-##############################################################################
-DEBUG_CONFIGURE_ON= --verbose --enable-debug
-DEBUG_MAKE_ARGS= --verbose
-DEBUG_FLAGS= -g -ggdb3 -O0
-# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194046
-GDB_CMD?= ${LOCALBASE}/bin/gdb
-# https://bugzilla.samba.org/show_bug.cgi?id=8969
-PICKY_DEVELOPER_IMPLIES= DEVELOPER
-PICKY_DEVELOPER_CONFIGURE_ON= --picky-developer
-
-DEVELOPER_IMPLIES= NTVFS
-DEVELOPER_CONFIGURE_ON= --enable-developer --enable-selftest --abi-check-disable
-DEVELOPER_BUILD_DEPENDS= ${GDB_CMD}:devel/gdb
-DEVELOPER_TEST_DEPENDS= ${GDB_CMD}:devel/gdb
-DEVELOPER_VARS_OFF= GDB_CMD=true
-# XXX: Mostly used in conjuction with the DEVELOPER option, don't enable it
-# if you don't know what you are doing
-NTVFS_CONFIGURE_WITH= ntvfs-fileserver
-NTVFS_PLIST_FILES= lib/shared-modules/service/smb.so \
- lib/samba4/private/libntvfs-samba4.so
-##############################################################################
-CLUSTER_CONFIGURE_WITH= cluster-support
-
-CUPS_CONFIGURE_ENABLE= cups iprint
-CUPS_LIB_DEPENDS= libcups.so:print/cups
-# https://bugzilla.samba.org/show_bug.cgi?id=9545
-FAM_USES= fam
-FAM_CONFIGURE_WITH= fam
-
-GLUSTERFS_CONFIGURE_ENABLE= glusterfs
-GLUSTERFS_LIB_DEPENDS= libglusterfs.so:net/glusterfs
-GLUSTERFS_VARS= SAMBA4_MODULES+=vfs_glusterfs
-
-GPGME_CONFIGURE_WITH= gpgme
-GPGME_LIB_DEPENDS= libgpgme.so:security/gpgme
-
-PROFILE_CONFIGURE_WITH= profiling-data
-
-QUOTAS_CONFIGURE_WITH= quotas
-
-SPOTLIGHT_CONFIGURE_ENABLE= spotlight
-SPOTLIGHT_BUILD_DEPENDS= tracker>=1.4.1:sysutils/tracker
-SPOTLIGHT_RUN_DEPENDS= tracker>=1.4.1:sysutils/tracker
-SPOTLIGHT_USES= bison
-SPOTLIGHT_USE= gnome=glib20
-
-SYSLOG_CONFIGURE_WITH= syslog
-
-UTMP_CONFIGURE_WITH= utmp
-
-AD_DC_CONFIGURE_OFF= --without-ad-dc
-
-ADS_IMPLIES= LDAP
-ADS_CONFIGURE_WITH= ads dnsupdate
-
-LDAP_CONFIGURE_WITH= ldap
-LDAP_CONFIGURE_ON= --with-openldap=${LOCALBASE}
-LDAP_USE= OPENLDAP=yes
-LDAP_VARS= SAMBA4_MODULES+=idmap_ldap
-
-LIBZFS_CONFIGURE_WITH= libzfs
-LIBZFS_VARS= SAMBA4_MODULES+=vfs_zfs_space
-
-MANDOC_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \
- xsltproc:textproc/libxslt
-MANDOC_CONFIGURE_ENV_OFF= XSLTPROC="true"
-# !SAMBA4_SUBPORT
-.endif
-
-##############################################################################
-.include <bsd.port.options.mk>
-##############################################################################
-
-.if !defined(SAMBA4_SUBPORT)
-
-.if !defined(WANT_EXP_MODULES) || empty(WANT_EXP_MODULES)
-WANT_EXP_MODULES= vfs_cacheprime
-.endif
-
-.if ${WANT_EXP_MODULES:Mvfs_snapper}
-# snapper needs dbus
-LIB_DEPENDS+= libdbus-1.so:devel/dbus
-LIB_DEPENDS+= libdbus-glib-1.so:devel/dbus-glib
-.endif
-
-SAMBA4_MODULES+= vfs_freebsd
-
-SAMBA4_MODULES+= idmap_nss idmap_autorid idmap_rid idmap_hash idmap_tdb idmap_tdb2 idmap_script nss-info_hash
-# List of extra modules taken from RHEL build
-# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197320
-.if ${PORT_OPTIONS:MADS}
-SAMBA4_MODULES+= idmap_ad idmap_rfc2307 nss-info_template nss-info_rfc2307 nss-info_sfu nss-info_sfu20
-.endif
-
-.if ${PORT_OPTIONS:MDEVELOPER}
-SAMBA4_MODULES+= auth_skel pdb_test gpext_security gpext_registry gpext_scripts perfcount_test \
- vfs_fake_dfq vfs_skel_opaque vfs_skel_transparent vfs_shadow_copy_test vfs_fake_acls \
- vfs_nfs4acl_xattr vfs_error_inject vfs_delay_inject
-.endif
-
-.if defined(WANT_EXP_MODULES) && !empty(WANT_EXP_MODULES)
-SAMBA4_MODULES+= ${WANT_EXP_MODULES}
-.endif
-
-.if defined(SAMBA4_BUNDLED_LIBS) && !empty(SAMBA4_BUNDLED_LIBS)
-CONFIGURE_ARGS+= --bundled-libraries="${SAMBA4_BUNDLED_LIBS:Q:C|(\\\\ )+|,|g:S|\\||g}"
-.endif
-
-.if defined(SAMBA4_MODULES) && !empty(SAMBA4_MODULES)
-CONFIGURE_ARGS+= --with-shared-modules="${SAMBA4_MODULES:C|-|_|:Q:C|(\\\\ )+|,|g:S|\\||g}"
-.endif
-# XXX: Hack for nss-info_* -> nss_info/* modules
-# Add selected modules to the plist
-.for module in ${SAMBA4_MODULES}
-PLIST_FILES+= lib/shared-modules/${module:C|_|/|:C|-|_|}.so
-.endfor
-# Python bindings
-.if defined(NO_PYTHON)
-USES+= python:2.7,build,test
-CONFIGURE_ARGS+= --disable-python
-PLIST_SUB+= SAMBA4_PYTHON2="@comment " SAMBA4_PYTHON3="@comment "
-SUB_LIST+= SAMBA4_PYTHON2="@comment " SAMBA4_PYTHON3="@comment "
-.else
-USES+= python:2.7
-PLIST_SUB+= SAMBA4_PYTHON2=""
-SUB_LIST+= SAMBA4_PYTHON2=""
-
-.if !defined(SAMBA4_BUNDLED_TALLOC)
-SAMBA4_BUNDLED_LIBS+= !pytalloc-util
-.endif
-.if !defined(SAMBA4_BUNDLED_TEVENT)
-SAMBA4_BUNDLED_LIBS+= !pytevent
-.endif
-.if !defined(SAMBA4_BUNDLED_TDB)
-SAMBA4_BUNDLED_LIBS+= !pytdb
-.endif
-.if !defined(SAMBA4_BUNDLED_LDB)
-SAMBA4_BUNDLED_LIBS+= !pyldb,!pyldb-util
-.endif
-# External Python modules
-BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dnspython>=1.15.0:dns/py-dnspython@${PY_FLAVOR}
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dnspython>=1.15.0:dns/py-dnspython@${PY_FLAVOR}
-
-BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.11:devel/py-iso8601@${PY_FLAVOR}
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}iso8601>=0.1.11:devel/py-iso8601@${PY_FLAVOR}
-# XXX: This is a gross hack to make port use both Python 2.7+ and 3.3+
-# This is not officially supported, use at your own risk
-.if defined(WITH_SAMBA4_PYTHON3) && ${WITH_SAMBA4_PYTHON3:M3\.[0-9]}
-SAMBA4_PYTHON3_VERSION= ${WITH_SAMBA4_PYTHON3}
-SAMBA4_PYTHON3= python${SAMBA4_PYTHON3_VERSION}
-SAMBA4_PYTHON3_VER= ${SAMBA4_PYTHON3_VERSION:C/\.//}
-.if !exists(${PORTSDIR}/lang/python${SAMBA4_PYTHON3_VER})
-.error unsupported or unknown Python version ${SAMBA4_PYTHON3_VERSION}
-.endif
-BUILD_DEPENDS+= ${SAMBA4_PYTHON3}:lang/python${SAMBA4_PYTHON3_VER}
-RUN_DEPENDS+= ${SAMBA4_PYTHON3}:lang/python${SAMBA4_PYTHON3_VER}
-# External Python modules
-BUILD_DEPENDS+= py${SAMBA4_PYTHON3_VER}-dnspython>=1.15.0:dns/py-dnspython@py${SAMBA4_PYTHON3_VER}
-RUN_DEPENDS+= py${SAMBA4_PYTHON3_VER}-dnspython>=1.15.0:dns/py-dnspython@py${SAMBA4_PYTHON3_VER}
-
-BUILD_DEPENDS+= py${SAMBA4_PYTHON3_VER}-iso8601>=0.1.11:devel/py-iso8601@py${SAMBA4_PYTHON3_VER}
-RUN_DEPENDS+= py${SAMBA4_PYTHON3_VER}-iso8601>=0.1.11:devel/py-iso8601@py${SAMBA4_PYTHON3_VER}
-# cpython-36m
-SAMBA4_PYTHON3_SO_ABI!= [ ! -f "${LOCALBASE}/bin/${SAMBA4_PYTHON3}" ] || ${LOCALBASE}/bin/${SAMBA4_PYTHON3} -c 'import sysconfig; print(sysconfig.get_config_var("SOABI") or "")' 2>/dev/null
-SAMBA4_PYTHON3_SITELIBDIR= lib/python${SAMBA4_PYTHON3_VERSION}/site-packages
-
-CONFIGURE_ENV+= PYTHON3_SO_ABI_FLAG=.${SAMBA4_PYTHON3_SO_ABI}
-CONFIGURE_ARGS+= --extra-python=${LOCALBASE}/bin/${SAMBA4_PYTHON3}
-
-PLIST_SUB+= SAMBA4_PYTHON3="" SAMBA4_PYTHON3_SITELIBDIR="${SAMBA4_PYTHON3_SITELIBDIR}"
-SUB_LIST+= SAMBA4_PYTHON3="" SAMBA4_PYTHON3_SITELIBDIR="${SAMBA4_PYTHON3_SITELIBDIR}"
-.else
-PLIST_SUB+= SAMBA4_PYTHON3="@comment "
-SUB_LIST+= SAMBA4_PYTHON3="@comment "
-.endif
-.endif
-# !SAMBA4_SUBPORT
-.endif
-
-##############################################################################
-.include <bsd.port.pre.mk>
-##############################################################################
-
-.if !defined(SAMBA4_SUBPORT)
-# Require llvm 4.0 and AMD64
-.if ${PORT_OPTIONS:MAESNI} && ${ARCH} == "amd64"
-CONFIGURE_ARGS+= --accel-aes=intelaesni
-PLIST_FILES+= lib/samba4/private/libaesni-intel-samba4.so
-.else
-CONFIGURE_ARGS+= --accel-aes=none
-.endif
-# for libexecinfo: (so that __builtin_frame_address() finds the top of the stack)
-CFLAGS_amd64+= -fno-omit-frame-pointer
-# No fancy color error messages
-CONFIGURE_ENV+= NOCOLOR=yes WAF_LOG_FORMAT='%(c1)s%(zone)s%(c2)s %(message)s'
-MAKE_ENV+= NOCOLOR=yes WAF_LOG_FORMAT='%(c1)s%(zone)s%(c2)s %(message)s'
-.if ${CHOSEN_COMPILER_TYPE} == clang
-CFLAGS+= -fno-color-diagnostics
-.endif
-#.if ${readline_ARGS} == port
-CFLAGS+= -D_FUNCTION_DEF
-#.endif
-# Make sure that the right version of Python is used by the tools
-# https://bugzilla.samba.org/show_bug.cgi?id=7305
-SHEBANG_FILES= ${PATCH_WRKSRC}/source4/scripting/bin/* ${PATCH_WRKSRC}/selftest/*
-
-SAMBA4_SUB= SAMBA4_LOGDIR="${SAMBA4_LOGDIR}" \
- SAMBA4_RUNDIR="${SAMBA4_RUNDIR}" \
- SAMBA4_LOCKDIR="${SAMBA4_LOCKDIR}" \
- SAMBA4_MODULEDIR="${SAMBA4_MODULEDIR}" \
- SAMBA4_BINDDNSDIR="${SAMBA4_BINDDNSDIR}" \
- SAMBA4_PRIVATEDIR="${SAMBA4_PRIVATEDIR}" \
- SAMBA4_CONFDIR="${SAMBA4_CONFDIR}" \
- SAMBA4_CONFIG="${SAMBA4_CONFIG}"
-
-PLIST_SUB+= ${SAMBA4_SUB}
-SUB_LIST+= ${SAMBA4_SUB}
-
-USE_RC_SUBR= samba_server
-SUB_FILES= pkg-message README.FreeBSD
-
-PORTDOCS= README.FreeBSD
-
-post-extract:
- @${RM} -r ${WRKSRC}/pidl/lib/Parse/Yapp
-
-post-patch:
- @${REINPLACE_CMD} -e 's|$${PKGCONFIGDIR}|${PKGCONFIGDIR}|g' \
- ${PATCH_WRKSRC}/buildtools/wafsamba/pkgconfig.py
- @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
- ${PATCH_WRKSRC}/buildtools/wafsamba/wafsamba.py
- @${REINPLACE_CMD} -e 's|%%GDB_CMD%%|${GDB_CMD}|g' \
- ${PATCH_WRKSRC}/buildtools/scripts/abi_gen.sh
- @${REINPLACE_CMD} -e 's|%%SAMBA4_CONFIG%%|${SAMBA4_CONFIG}|g' \
- ${PATCH_WRKSRC}/dynconfig/wscript
- @${REINPLACE_CMD} -e '1s|/bin/bash|/bin/sh|' \
- ${PATCH_WRKSRC}/ctdb/tools/onnode
-
-# Use threading (or multiprocessing) but not thread (renamed in python 3+).
-pre-configure:
- @if ! ${PYTHON_CMD} -c "import multiprocessing;" 2>/dev/null; then \
- ${ECHO_CMD}; \
- ${ECHO_MSG} "===> ${PKGNAME} "${IGNORE_NONTHREAD_PYTHON:Q}.; \
- ${ECHO_CMD}; \
- ${FALSE}; \
- fi
-
-pre-build-MANDOC-off:
- ${MKDIR} ${BUILD_WRKSRC}/bin/default/docs-xml/
- ${CP} -rp ${BUILD_WRKSRC}/docs/manpages ${BUILD_WRKSRC}/bin/default/docs-xml/
-.for man in libcli/nbt/man/nmblookup4.1 \
- librpc/tools/ndrdump.1 \
- source4/lib/registry/man/regdiff.1 \
- source4/lib/registry/man/regpatch.1 \
- source4/lib/registry/man/regshell.1 \
- source4/lib/registry/man/regtree.1 \
- source4/torture/man/gentest.1 \
- source4/torture/man/locktest.1 \
- source4/torture/man/masktest.1 \
- source4/torture/man/smbtorture.1 \
- source4/utils/man/ntlm_auth4.1 \
- source4/utils/man/oLschema2ldif.1 \
- lib/tdb/man/tdbdump.8 \
- lib/tdb/man/tdbbackup.8 \
- lib/tdb/man/tdbtool.8 \
- lib/talloc/man/talloc.3 \
- lib/tdb/man/tdbrestore.8 \
- lib/ldb/man/ldb.3 \
- lib/ldb/man/ldbadd.1 \
- lib/ldb/man/ldbsearch.1 \
- lib/ldb/man/ldbmodify.1 \
- lib/ldb/man/ldbrename.1 \
- lib/ldb/man/ldbdel.1 \
- lib/ldb/man/ldbedit.1
- ${MKDIR} `dirname ${BUILD_WRKSRC}/bin/default/${man}`
- ${INSTALL_MAN} ${FILESDIR}/man/`basename ${man}` ${BUILD_WRKSRC}/bin/default/${man}
-.endfor
-.if ${PORT_OPTIONS:MCLUSTER}
- ${MKDIR} ${BUILD_WRKSRC}/bin/default/ctdb/
-. for man in ctdb_diagnostics.1 ctdb.1 ctdbd_wrapper.1 ctdbd.1 \
- ltdbtool.1 onnode.1 ping_pong.1 ctdbd.conf.5 \
- ctdb.7 ctdb-statistics.7 ctdb-tunables.7
- ${INSTALL_MAN} ${FILESDIR}/man/${man} ${BUILD_WRKSRC}/bin/default/ctdb/
-. endfor
-.endif
-
-post-install-rm-junk:
-.for f in vfs_aio_linux.8 vfs_btrfs.8 vfs_ceph.8 vfs_gpfs.8
- ${RM} ${STAGEDIR}${PREFIX}/man/man8/${f}
-.endfor
-.if defined(NO_PYTHON)
- ${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/samba/third_party/dns \
- ${STAGEDIR}${PYTHON_SITELIBDIR}/samba/third_party/iso8601
-.endif
-
-post-install: post-install-rm-junk
- ${LN} -sf smb.conf.5.gz ${STAGEDIR}${PREFIX}/man/man5/smb4.conf.5.gz
-# Run post-install script
-.for dir in ${SAMBA4_LOGDIR} ${SAMBA4_RUNDIR} ${SAMBA4_LOCKDIR} ${SAMBA4_MODULEDIR}
- ${INSTALL} -d -m 0755 "${STAGEDIR}${dir}"
-.endfor
- ${INSTALL} -d -m 0750 "${STAGEDIR}${SAMBA4_BINDDNSDIR}"
- ${INSTALL} -d -m 0750 "${STAGEDIR}${SAMBA4_PRIVATEDIR}"
-.for dir in auth bind9 gensec gpext idmap ldb nss_info pdb perfcount process_model service vfs
- ${INSTALL} -d -m 0755 "${STAGEDIR}${SAMBA4_MODULEDIR}/${dir}"
-.endfor
-
-post-install-DOCS-on:
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for doc in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKDIR}/${doc} ${STAGEDIR}${DOCSDIR}
-.endfor
-
-# !SAMBA4_SUBPORT
-.endif
-
-.include <bsd.port.post.mk>
diff --git a/net/samba47/distinfo b/net/samba47/distinfo
deleted file mode 100644
index b290b026b2f1..000000000000
--- a/net/samba47/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1543313407
-SHA256 (samba-4.7.12.tar.gz) = 0e9c386bc32983452c5dcafdee561f37e43a411ac1919c864404e6177b1aaf4a
-SIZE (samba-4.7.12.tar.gz) = 16923189
diff --git a/net/samba47/files/0001-Freenas-master-mdns-fixes-22.patch b/net/samba47/files/0001-Freenas-master-mdns-fixes-22.patch
deleted file mode 100644
index 70c87d0eff74..000000000000
--- a/net/samba47/files/0001-Freenas-master-mdns-fixes-22.patch
+++ /dev/null
@@ -1,375 +0,0 @@
-From 923bc7a1afeb0b920e60e14846987ae1d2d7dca4 Mon Sep 17 00:00:00 2001
-From: John Hixson <john@ixsystems.com>
-Date: Thu, 7 Dec 2017 09:36:32 -0500
-Subject: [PATCH] Freenas/master mdns fixes (#22)
-
-* mDNS fixes for Samba (work in progress).
-
-* Fix mDNS - Can advertise on individual interfaces
-
-* Fix mDNS browsing in smbclient
-
-Signed-off-by: Timur I. Bakeyev <timur@iXsystems.com>
----
- source3/client/dnsbrowse.c | 17 ++--
- source3/smbd/dnsregister.c | 193 +++++++++++++++++++++++++++++----------------
- 2 files changed, 137 insertions(+), 73 deletions(-)
-
-diff --git a/source3/client/dnsbrowse.c b/source3/client/dnsbrowse.c
-index efd57d42d88..83aef966d2a 100644
---- a/source3/client/dnsbrowse.c
-+++ b/source3/client/dnsbrowse.c
-@@ -39,6 +39,7 @@ struct mdns_smbsrv_result
- struct mdns_browse_state
- {
- struct mdns_smbsrv_result *listhead; /* Browse result list head */
-+ TALLOC_CTX * ctx;
- int browseDone;
-
- };
-@@ -64,7 +65,7 @@ static void do_smb_resolve(struct mdns_smbsrv_result *browsesrv)
- struct timeval tv;
- DNSServiceErrorType err;
-
-- TALLOC_CTX * ctx = talloc_tos();
-+ TALLOC_CTX * ctx = talloc_new(NULL);
-
- err = DNSServiceResolve(&mdns_conn_sdref, 0 /* flags */,
- browsesrv->ifIndex,
-@@ -91,7 +91,7 @@ static void do_smb_resolve(struct mdns_s
- }
- }
-
-- TALLOC_FREE(fdset);
-+ TALLOC_FREE(ctx);
- DNSServiceRefDeallocate(mdns_conn_sdref);
- }
-
-@@ -124,18 +125,19 @@ do_smb_browse_reply(DNSServiceRef sdRef, DNSServiceFlags flags,
- return;
- }
-
-- bresult = talloc_array(talloc_tos(), struct mdns_smbsrv_result, 1);
-+ bresult = talloc_array(bstatep->ctx, struct mdns_smbsrv_result, 1);
- if (bresult == NULL) {
- return;
- }
-
-+ bresult->nextResult = NULL;
- if (bstatep->listhead != NULL) {
- bresult->nextResult = bstatep->listhead;
- }
-
-- bresult->serviceName = talloc_strdup(talloc_tos(), serviceName);
-- bresult->regType = talloc_strdup(talloc_tos(), regtype);
-- bresult->domain = talloc_strdup(talloc_tos(), replyDomain);
-+ bresult->serviceName = talloc_strdup(bstatep->ctx, serviceName);
-+ bresult->regType = talloc_strdup(bstatep->ctx, regtype);
-+ bresult->domain = talloc_strdup(bstatep->ctx, replyDomain);
- bresult->ifIndex = interfaceIndex;
- bstatep->listhead = bresult;
- }
-@@ -151,10 +153,13 @@ int do_smb_browse(void)
- DNSServiceRef mdns_conn_sdref = NULL;
- DNSServiceErrorType err;
-
-- TALLOC_CTX * ctx = talloc_stackframe();
-+ TALLOC_CTX * ctx = talloc_new(NULL);
-
- ZERO_STRUCT(bstate);
-
-+ bstate.ctx = ctx;
-+ bstate.listhead = NULL;
-+
- err = DNSServiceBrowse(&mdns_conn_sdref, 0, 0, "_smb._tcp", "",
- do_smb_browse_reply, &bstate);
-
-diff --git a/source3/smbd/dnsregister.c b/source3/smbd/dnsregister.c
-index df189001a09..f25b60f4611 100644
---- a/source3/smbd/dnsregister.c
-+++ b/source3/smbd/dnsregister.c
-@@ -36,85 +36,111 @@
- #include <dns_sd.h>
-
- struct dns_reg_state {
-- struct tevent_context *event_ctx;
-- uint16_t port;
-- DNSServiceRef srv_ref;
-- struct tevent_timer *te;
-- int fd;
-- struct tevent_fd *fde;
-+ int count;
-+ struct reg_state {
-+ DNSServiceRef srv_ref;
-+ TALLOC_CTX *mem_ctx;
-+ struct tevent_context *event_ctx;
-+ struct tevent_timer *te;
-+ struct tevent_fd *fde;
-+ uint16_t port;
-+ int if_index;
-+ int fd;
-+ } *drs;
- };
-
--static int dns_reg_state_destructor(struct dns_reg_state *dns_state)
-+static void dns_register_smbd_retry(struct tevent_context *ctx,
-+ struct tevent_timer *te,
-+ struct timeval now,
-+ void *private_data);
-+static void dns_register_smbd_fde_handler(struct tevent_context *ev,
-+ struct tevent_fd *fde,
-+ uint16_t flags,
-+ void *private_data);
-+
-+
-+static int reg_state_destructor(struct reg_state *state)
- {
-- if (dns_state->srv_ref != NULL) {
-+ if (state == NULL) {
-+ return -1;
-+ }
-+
-+ if (state->srv_ref != NULL) {
- /* Close connection to the mDNS daemon */
-- DNSServiceRefDeallocate(dns_state->srv_ref);
-- dns_state->srv_ref = NULL;
-+ DNSServiceRefDeallocate(state->srv_ref);
-+ state->srv_ref = NULL;
- }
-
- /* Clear event handler */
-- TALLOC_FREE(dns_state->te);
-- TALLOC_FREE(dns_state->fde);
-- dns_state->fd = -1;
-+ TALLOC_FREE(state->te);
-+ TALLOC_FREE(state->fde);
-+ state->fd = -1;
-
- return 0;
- }
-
--static void dns_register_smbd_retry(struct tevent_context *ctx,
-- struct tevent_timer *te,
-- struct timeval now,
-- void *private_data);
--static void dns_register_smbd_fde_handler(struct tevent_context *ev,
-- struct tevent_fd *fde,
-- uint16_t flags,
-- void *private_data);
-
--static bool dns_register_smbd_schedule(struct dns_reg_state *dns_state,
-+static bool dns_register_smbd_schedule(struct reg_state *state,
- struct timeval tval)
- {
-- dns_reg_state_destructor(dns_state);
-+ reg_state_destructor(state);
-
-- dns_state->te = tevent_add_timer(dns_state->event_ctx,
-- dns_state,
-+ state->te = tevent_add_timer(state->event_ctx,
-+ state->mem_ctx,
- tval,
- dns_register_smbd_retry,
-- dns_state);
-- if (!dns_state->te) {
-+ state);
-+ if (!state->te) {
- return false;
- }
-
- return true;
- }
-
-+static void dns_register_smbd_callback(DNSServiceRef service,
-+ DNSServiceFlags flags,
-+ DNSServiceErrorType errorCode,
-+ const char *name,
-+ const char *type,
-+ const char *domain,
-+ void *context)
-+{
-+ if (errorCode != kDNSServiceErr_NoError) {
-+ DEBUG(6, ("error=%d\n", errorCode));
-+ } else {
-+ DEBUG(6, ("%-15s %s.%s%s\n", "REGISTER", name, type, domain));
-+ }
-+}
-+
- static void dns_register_smbd_retry(struct tevent_context *ctx,
- struct tevent_timer *te,
- struct timeval now,
- void *private_data)
- {
-- struct dns_reg_state *dns_state = talloc_get_type_abort(private_data,
-- struct dns_reg_state);
-+ struct reg_state *state = (struct reg_state *)private_data;
- DNSServiceErrorType err;
-
-- dns_reg_state_destructor(dns_state);
-+ reg_state_destructor(state);
-
-- DEBUG(6, ("registering _smb._tcp service on port %d\n",
-- dns_state->port));
-+ DEBUG(6, ("registering _smb._tcp service on port %d index %d\n",
-+ state->port, state->if_index));
-
- /* Register service with DNS. Connects with the mDNS
- * daemon running on the local system to perform DNS
- * service registration.
- */
-- err = DNSServiceRegister(&dns_state->srv_ref, 0 /* flags */,
-- kDNSServiceInterfaceIndexAny,
-- NULL /* service name */,
-- "_smb._tcp" /* service type */,
-- NULL /* domain */,
-- "" /* SRV target host name */,
-- htons(dns_state->port),
-- 0 /* TXT record len */,
-- NULL /* TXT record data */,
-- NULL /* callback func */,
-- NULL /* callback context */);
-+ err = DNSServiceRegister(&state->srv_ref,
-+ 0 /* flags */,
-+ state->if_index /* interface index */,
-+ NULL /* service name */,
-+ "_smb._tcp" /* service type */,
-+ NULL /* domain */,
-+ "" /* SRV target host name */,
-+ htons(state->port) /* port */,
-+ 0 /* TXT record len */,
-+ NULL /* TXT record data */,
-+ dns_register_smbd_callback /* callback func */,
-+ NULL /* callback context */);
-
- if (err != kDNSServiceErr_NoError) {
- /* Failed to register service. Schedule a re-try attempt.
-@@ -123,24 +149,24 @@ static void dns_register_smbd_retry(struct tevent_context *ctx,
- goto retry;
- }
-
-- dns_state->fd = DNSServiceRefSockFD(dns_state->srv_ref);
-- if (dns_state->fd == -1) {
-+ state->fd = DNSServiceRefSockFD(state->srv_ref);
-+ if (state->fd == -1) {
- goto retry;
- }
-
-- dns_state->fde = tevent_add_fd(dns_state->event_ctx,
-- dns_state,
-- dns_state->fd,
-- TEVENT_FD_READ,
-- dns_register_smbd_fde_handler,
-- dns_state);
-- if (!dns_state->fde) {
-+ state->fde = tevent_add_fd(state->event_ctx,
-+ state->mem_ctx,
-+ state->fd,
-+ TEVENT_FD_READ,
-+ dns_register_smbd_fde_handler,
-+ state);
-+ if (!state->fde) {
- goto retry;
- }
-
- return;
- retry:
-- dns_register_smbd_schedule(dns_state,
-+ dns_register_smbd_schedule(state,
- timeval_current_ofs(DNS_REG_RETRY_INTERVAL, 0));
- }
-
-@@ -150,44 +176,77 @@ static void dns_register_smbd_fde_handler(struct tevent_context *ev,
- uint16_t flags,
- void *private_data)
- {
-- struct dns_reg_state *dns_state = talloc_get_type_abort(private_data,
-- struct dns_reg_state);
-+ struct reg_state *state = (struct reg_state *)private_data;
- DNSServiceErrorType err;
-
-- err = DNSServiceProcessResult(dns_state->srv_ref);
-+ err = DNSServiceProcessResult(state->srv_ref);
- if (err != kDNSServiceErr_NoError) {
-- DEBUG(3, ("failed to process mDNS result (err %d), re-trying\n",
-- err));
-+ DEBUG(3, ("failed to process mDNS result (err %d), re-trying\n", err));
- goto retry;
- }
-
-- talloc_free(dns_state);
- return;
-
- retry:
-- dns_register_smbd_schedule(dns_state,
-- timeval_current_ofs(DNS_REG_RETRY_INTERVAL, 0));
-+ dns_register_smbd_schedule(state, timeval_zero());
- }
-
-+static int dns_reg_state_destructor(struct dns_reg_state *state)
-+{
-+ if (state != NULL) {
-+ talloc_free(state);
-+ }
-+ return 0;
-+}
-+
-+
- bool smbd_setup_mdns_registration(struct tevent_context *ev,
- TALLOC_CTX *mem_ctx,
- uint16_t port)
- {
- struct dns_reg_state *dns_state;
-+ bool bind_all = true;
-+ int i;
-
- dns_state = talloc_zero(mem_ctx, struct dns_reg_state);
-- if (dns_state == NULL) {
-+ if (dns_state == NULL)
-+ return false;
-+
-+ if (lp_interfaces() && lp_bind_interfaces_only())
-+ bind_all = false;
-+
-+ dns_state->count = iface_count();
-+ if (dns_state->count <= 0 || bind_all == true)
-+ dns_state->count = 1;
-+
-+ dns_state->drs = talloc_array(mem_ctx, struct reg_state, dns_state->count);
-+ if (dns_state->drs == NULL) {
-+ talloc_free(dns_state);
- return false;
- }
-- dns_state->event_ctx = ev;
-- dns_state->port = port;
-- dns_state->fd = -1;
-
-- talloc_set_destructor(dns_state, dns_reg_state_destructor);
-+ for (i = 0; i < dns_state->count; i++) {
-+ struct interface *iface = get_interface(i);
-+ struct reg_state *state = &dns_state->drs[i];
-+
-+ state->mem_ctx = mem_ctx;
-+ state->srv_ref = NULL;
-+ state->event_ctx = ev;
-+ state->te = NULL;
-+ state->fde = NULL;
-+ state->port = port;
-+ state->fd = -1;
-+
-+ state->if_index = bind_all ? kDNSServiceInterfaceIndexAny : iface->if_index;
-
-- return dns_register_smbd_schedule(dns_state, timeval_zero());
-+ dns_register_smbd_schedule(&dns_state->drs[i], timeval_zero());
-+ }
-+
-+ talloc_set_destructor(dns_state, dns_reg_state_destructor);
-+ return true;
- }
-
-+
- #else /* WITH_DNSSD_SUPPORT */
-
- bool smbd_setup_mdns_registration(struct tevent_context *ev,
---
-2.14.2
-
diff --git a/net/samba47/files/0001-Zfs-provision-1.patch b/net/samba47/files/0001-Zfs-provision-1.patch
deleted file mode 100644
index 7edd94a9b1d9..000000000000
--- a/net/samba47/files/0001-Zfs-provision-1.patch
+++ /dev/null
@@ -1,321 +0,0 @@
-From 2664c997587416a2c8c911a75158485a5c98b70b Mon Sep 17 00:00:00 2001
-From: John Hixon <john@ixsystems.com>
-Date: Sat, 20 May 2017 04:39:37 +0200
-Subject: [PATCH] Zfs provision (#1)
-
-Cherry-pick ZFS provisioning code by iXsystems Inc.
-
-* Check if sysvol is on filesystem with NFSv4 ACL's
-(cherry picked from commit ca86f52b78a7b6e7537454a69cf93e7b96210cba)
-
-* Only check targetdir if it is defined (I had assumed it was)
-(cherry picked from commit a29050cb2978ce23e3c04a859340dc2664c77a8a)
-
-* Kick samba a little bit into understanding NFSv4 ACL's
-(cherry picked from commit 1c7542ff4904b729e311e17464ee76582760c219)
-
-Signed-off-by: Timur I. Bakeyev <timur@iXsystems.com>
----
- python/samba/provision/__init__.py | 25 ++++--
- source3/lib/sysacls.c | 10 +++
- source3/param/loadparm.c | 7 ++
- source3/smbd/pysmbd.c | 156 ++++++++++++++++++++++++++++++++++++-
- 4 files changed, 191 insertions(+), 7 deletions(-)
-
-diff --git a/python/samba/provision/__init__.py b/python/samba/provision/__init__.py
-index 5de986463a5..cd3b91f41b9 100644
---- a/python/samba/provision/__init__.py
-+++ b/python/samba/provision/__init__.py
-@@ -1556,19 +1556,24 @@ def setsysvolacl(samdb, netlogon, sysvol, uid, gid, domainsid, dnsdomain,
- s3conf = s3param.get_context()
- s3conf.load(lp.configfile)
-
-- file = tempfile.NamedTemporaryFile(dir=os.path.abspath(sysvol))
-+ sysvol_dir = os.path.abspath(sysvol)
-+
-+ set_simple_acl = smbd.set_simple_acl
-+ if smbd.has_nfsv4_acls(sysvol_dir):
-+ set_simple_acl = smbd.set_simple_nfsv4_acl
-+
-+ file = tempfile.NamedTemporaryFile(dir=sysvol_dir)
- try:
- try:
-- smbd.set_simple_acl(file.name, 0755, gid)
-+ set_simple_acl(file.name, 0755, gid)
- except OSError:
-- if not smbd.have_posix_acls():
-+ if not smbd.have_posix_acls() and not smbd.have_nfsv4_acls():
- # This clue is only strictly correct for RPM and
- # Debian-like Linux systems, but hopefully other users
- # will get enough clue from it.
-- raise ProvisioningError("Samba was compiled without the posix ACL support that s3fs requires. "
-+ raise ProvisioningError("Samba was compiled without the ACL support that s3fs requires. "
- "Try installing libacl1-dev or libacl-devel, then re-run configure and make.")
--
-- raise ProvisioningError("Your filesystem or build does not support posix ACLs, which s3fs requires. "
-+ raise ProvisioningError("Your filesystem or build does not support ACLs, which s3fs requires. "
- "Try the mounting the filesystem with the 'acl' option.")
- try:
- smbd.chown(file.name, uid, gid)
-@@ -1821,6 +1828,9 @@ def provision_fill(samdb, secrets_ldb, logger, names, paths,
- samdb.transaction_commit()
-
- if serverrole == "active directory domain controller":
-+ if targetdir and smbd.have_nfsv4_acls() and smbd.has_nfsv4_acls(targetdir):
-+ smbd.set_nfsv4_defaults()
-+
- # Continue setting up sysvol for GPO. This appears to require being
- # outside a transaction.
- if not skip_sysvolacl:
-@@ -2184,6 +2194,9 @@ def provision(logger, session_info, smbconf=None,
- if not os.path.isdir(paths.netlogon):
- os.makedirs(paths.netlogon, 0755)
-
-+ if smbd.have_nfsv4_acls() and smbd.has_nfsv4_acls(paths.sysvol):
-+ smbd.set_nfsv4_defaults()
-+
- if adminpass is None:
- adminpass = samba.generate_random_password(12, 32)
- adminpass_generated = True
-diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c
-index 0bf3c37edfa..786cd39b5bc 100644
---- a/source3/lib/sysacls.c
-+++ b/source3/lib/sysacls.c
-@@ -38,6 +38,16 @@
- #include "modules/vfs_hpuxacl.h"
- #endif
-
-+/*
-+ * NFSv4 ACL's should be understood and a first class citizen. Work
-+ * needs to be done in librpc/idl/smb_acl.idl for this to occur.
-+ */
-+#if defined(HAVE_LIBSUNACL) && defined(FREEBSD)
-+#if 0
-+#include "modules/nfs4_acls.h"
-+#endif
-+#endif
-+
- #undef DBGC_CLASS
- #define DBGC_CLASS DBGC_ACLS
-
-diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
-index a2fcc4246c9..4b676897fc1 100644
---- a/source3/param/loadparm.c
-+++ b/source3/param/loadparm.c
-@@ -2740,6 +2740,13 @@ static void init_locals(void)
- } else if (lp_parm_const_string(-1, "posix", "eadb", NULL)) {
- lp_do_parameter(-1, "vfs objects", "dfs_samba4 acl_xattr posix_eadb");
- } else {
-+ /*
-+ * This should only set dfs_samba4 and leave acl_xattr
-+ * to be set later (or zfsacl). The only reason the decision
-+ * can't be made here to load acl_xattr or zfsacl is
-+ * that we don't have access to what the target
-+ * directory is.
-+ */
- lp_do_parameter(-1, "vfs objects", "dfs_samba4 acl_xattr");
- }
- }
-diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c
-index 63fc5d68c33..f5a536ee186 100644
---- a/source3/smbd/pysmbd.c
-+++ b/source3/smbd/pysmbd.c
-@@ -368,6 +368,20 @@ static SMB_ACL_T make_simple_acl(TALLOC_
- return acl;
- }
-
-+static SMB_ACL_T make_simple_nfsv4_acl(TALLOC_CTX *mem_ctx,
-+ gid_t gid,
-+ mode_t chmod_mode)
-+{
-+ /*
-+ * This function needs to create an NFSv4 ACL. Currently, the only way
-+ * to do so is to use the operating system interface, or to use the
-+ * functions in source3/modules/nfs4_acls.c. These seems ugly and
-+ * hacky. NFSv4 ACL's should be a first class citizen and
-+ * librpc/idl/smb_acl.idl should be modified accordingly.
-+ */
-+ return NULL;
-+}
-+
- /*
- set a simple ACL on a file, as a test
- */
-@@ -413,6 +427,53 @@ static PyObject *py_smbd_set_simple_acl(
- }
-
- /*
-+ set a simple NFSv4 ACL on a file, as a test
-+ */
-+static PyObject *py_smbd_set_simple_nfsv4_acl(PyObject *self, PyObject *args, PyObject *kwargs)
-+{
-+ const char * const kwnames[] = { "fname", "mode", "gid", "service", NULL };
-+ char *fname, *service = NULL;
-+ int ret;
-+ int mode, gid = -1;
-+ SMB_ACL_T acl;
-+ TALLOC_CTX *frame;
-+ connection_struct *conn;
-+
-+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "si|iz",
-+ discard_const_p(char *, kwnames),
-+ &fname, &mode, &gid, &service))
-+ return NULL;
-+
-+ frame = talloc_stackframe();
-+
-+ acl = make_simple_nfsv4_acl(frame, gid, mode);
-+ if (acl == NULL) {
-+ TALLOC_FREE(frame);
-+ return NULL;
-+ }
-+
-+ conn = get_conn(frame, service);
-+ if (!conn) {
-+ return NULL;
-+ }
-+
-+ /*
-+ * SMB_ACL_TYPE_ACCESS -> ACL_TYPE_ACCESS -> Not valid for NFSv4 ACL
-+ */
-+ ret = 0;
-+
-+ if (ret != 0) {
-+ TALLOC_FREE(frame);
-+ errno = ret;
-+ return PyErr_SetFromErrno(PyExc_OSError);
-+ }
-+
-+ TALLOC_FREE(frame);
-+
-+ Py_RETURN_NONE;
-+}
-+
-+/*
- chown a file
- */
- static PyObject *py_smbd_chown(PyObject *self, PyObject *args, PyObject *kwargs)
-@@ -519,7 +580,7 @@ static PyObject *py_smbd_unlink(PyObject
- }
-
- /*
-- check if we have ACL support
-+ check if we have POSIX.1e ACL support
- */
- static PyObject *py_smbd_have_posix_acls(PyObject *self)
- {
-@@ -530,6 +591,86 @@ static PyObject *py_smbd_have_posix_acls
- #endif
- }
-
-+static PyObject *py_smbd_has_posix_acls(PyObject *self, PyObject *args, PyObject *kwargs)
-+{
-+ const char * const kwnames[] = { "path", NULL };
-+ char *path = NULL;
-+ TALLOC_CTX *frame;
-+ struct statfs fs;
-+ int ret = false;
-+
-+ frame = talloc_stackframe();
-+
-+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|z",
-+ discard_const_p(char *, kwnames), &path)) {
-+ TALLOC_FREE(frame);
-+ return NULL;
-+ }
-+
-+ if (statfs(path, &fs) != 0) {
-+ TALLOC_FREE(frame);
-+ return NULL;
-+ }
-+
-+ if (fs.f_flags & MNT_ACLS)
-+ ret = true;
-+
-+ TALLOC_FREE(frame);
-+ return PyBool_FromLong(ret);
-+}
-+
-+/*
-+ check if we have NFSv4 ACL support
-+ */
-+static PyObject *py_smbd_have_nfsv4_acls(PyObject *self)
-+{
-+#ifdef HAVE_LIBSUNACL
-+ return PyBool_FromLong(true);
-+#else
-+ return PyBool_FromLong(false);
-+#endif
-+}
-+
-+static PyObject *py_smbd_has_nfsv4_acls(PyObject *self, PyObject *args, PyObject *kwargs)
-+{
-+ const char * const kwnames[] = { "path", NULL };
-+ char *path = NULL;
-+ TALLOC_CTX *frame;
-+ struct statfs fs;
-+ int ret = false;
-+
-+ frame = talloc_stackframe();
-+
-+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|z",
-+ discard_const_p(char *, kwnames), &path)) {
-+ TALLOC_FREE(frame);
-+ return NULL;
-+ }
-+
-+ if (statfs(path, &fs) != 0) {
-+ TALLOC_FREE(frame);
-+ return NULL;
-+ }
-+
-+ if (fs.f_flags & MNT_NFS4ACLS)
-+ ret = true;
-+
-+ TALLOC_FREE(frame);
-+ return PyBool_FromLong(ret);
-+}
-+
-+
-+static PyObject *py_smbd_set_nfsv4_defaults(PyObject *self)
-+{
-+ /*
-+ * This should really be done in source3/param/loadparm.c
-+ */
-+#if defined(HAVE_LIBSUNACL) && defined(FREEBSD)
-+ lp_do_parameter(-1, "vfs objects", "dfs_samba4 zfsacl");
-+#endif
-+ Py_RETURN_NONE;
-+}
-+
- /*
- set the NT ACL on a file
- */
-@@ -717,9 +858,24 @@ static PyMethodDef py_smbd_methods[] = {
- { "have_posix_acls",
- (PyCFunction)py_smbd_have_posix_acls, METH_NOARGS,
- NULL },
-+ { "has_posix_acls",
-+ (PyCFunction)py_smbd_has_posix_acls, METH_VARARGS|METH_KEYWORDS,
-+ NULL },
-+ { "have_nfsv4_acls",
-+ (PyCFunction)py_smbd_have_nfsv4_acls, METH_NOARGS,
-+ NULL },
-+ { "has_nfsv4_acls",
-+ (PyCFunction)py_smbd_has_nfsv4_acls, METH_VARARGS|METH_KEYWORDS,
-+ NULL },
-+ { "set_nfsv4_defaults",
-+ (PyCFunction)py_smbd_set_nfsv4_defaults, METH_NOARGS,
-+ NULL },
- { "set_simple_acl",
- (PyCFunction)py_smbd_set_simple_acl, METH_VARARGS|METH_KEYWORDS,
- NULL },
-+ { "set_simple_nfsv4_acl",
-+ (PyCFunction)py_smbd_set_simple_nfsv4_acl, METH_VARARGS|METH_KEYWORDS,
-+ NULL },
- { "set_nt_acl",
- (PyCFunction)py_smbd_set_nt_acl, METH_VARARGS|METH_KEYWORDS,
- NULL },
---
-2.14.2
-
diff --git a/net/samba47/files/0001-audit.patch b/net/samba47/files/0001-audit.patch
deleted file mode 100644
index 75708608e4ad..000000000000
--- a/net/samba47/files/0001-audit.patch
+++ /dev/null
@@ -1,247 +0,0 @@
-From 7d1bcfc99c393367093c903f95a5e365881b7989 Mon Sep 17 00:00:00 2001
-From: "Timur I. Bakeyev" <timur@iXsystems.com>
-Date: Fri, 22 Jun 2018 12:15:30 +0800
-Subject: [PATCH 1/3] Make sure that vfs*audit modules recognize and accept all
- the syslog facilities.
-
----
- source3/modules/vfs_audit.c | 34 +++++++++++++++++++++++-----------
- source3/modules/vfs_extd_audit.c | 34 +++++++++++++++++++++++-----------
- source3/modules/vfs_full_audit.c | 34 +++++++++++++++++++++++-----------
- 3 files changed, 69 insertions(+), 33 deletions(-)
-
-diff --git a/source3/modules/vfs_audit.c b/source3/modules/vfs_audit.c
-index 12477d5b01f..4f9d16c452e 100644
---- a/source3/modules/vfs_audit.c
-+++ b/source3/modules/vfs_audit.c
-@@ -33,16 +33,28 @@
- static int audit_syslog_facility(vfs_handle_struct *handle)
- {
- static const struct enum_list enum_log_facilities[] = {
-- { LOG_USER, "USER" },
-- { LOG_LOCAL0, "LOCAL0" },
-- { LOG_LOCAL1, "LOCAL1" },
-- { LOG_LOCAL2, "LOCAL2" },
-- { LOG_LOCAL3, "LOCAL3" },
-- { LOG_LOCAL4, "LOCAL4" },
-- { LOG_LOCAL5, "LOCAL5" },
-- { LOG_LOCAL6, "LOCAL6" },
-- { LOG_LOCAL7, "LOCAL7" },
-- { -1, NULL}
-+ { LOG_AUTH, "AUTH" },
-+ { LOG_CRON, "CRON" },
-+ { LOG_DAEMON, "DAEMON" },
-+ { LOG_FTP, "FTP" },
-+ { LOG_KERN, "KERN" },
-+ { LOG_LPR, "LPR" },
-+ { LOG_MAIL, "MAIL" },
-+ { LOG_NEWS, "NEWS" },
-+ { LOG_NTP, "NTP" },
-+ { LOG_SECURITY, "SECURITY" },
-+ { LOG_SYSLOG, "SYSLOG" },
-+ { LOG_USER, "USER" },
-+ { LOG_UUCP, "UUCP" },
-+ { LOG_LOCAL0, "LOCAL0" },
-+ { LOG_LOCAL1, "LOCAL1" },
-+ { LOG_LOCAL2, "LOCAL2" },
-+ { LOG_LOCAL3, "LOCAL3" },
-+ { LOG_LOCAL4, "LOCAL4" },
-+ { LOG_LOCAL5, "LOCAL5" },
-+ { LOG_LOCAL6, "LOCAL6" },
-+ { LOG_LOCAL7, "LOCAL7" },
-+ { -1, NULL }
- };
-
- int facility;
-@@ -64,7 +76,7 @@ static int audit_syslog_priority(vfs_handle_struct *handle)
- { LOG_NOTICE, "NOTICE" },
- { LOG_INFO, "INFO" },
- { LOG_DEBUG, "DEBUG" },
-- { -1, NULL}
-+ { -1, NULL }
- };
-
- int priority;
-diff --git a/source3/modules/vfs_extd_audit.c b/source3/modules/vfs_extd_audit.c
-index 7d1fe273978..5307569a010 100644
---- a/source3/modules/vfs_extd_audit.c
-+++ b/source3/modules/vfs_extd_audit.c
-@@ -36,16 +36,28 @@ static int vfs_extd_audit_debug_level = DBGC_VFS;
- static int audit_syslog_facility(vfs_handle_struct *handle)
- {
- static const struct enum_list enum_log_facilities[] = {
-- { LOG_USER, "USER" },
-- { LOG_LOCAL0, "LOCAL0" },
-- { LOG_LOCAL1, "LOCAL1" },
-- { LOG_LOCAL2, "LOCAL2" },
-- { LOG_LOCAL3, "LOCAL3" },
-- { LOG_LOCAL4, "LOCAL4" },
-- { LOG_LOCAL5, "LOCAL5" },
-- { LOG_LOCAL6, "LOCAL6" },
-- { LOG_LOCAL7, "LOCAL7" },
-- { -1, NULL}
-+ { LOG_AUTH, "AUTH" },
-+ { LOG_CRON, "CRON" },
-+ { LOG_DAEMON, "DAEMON" },
-+ { LOG_FTP, "FTP" },
-+ { LOG_KERN, "KERN" },
-+ { LOG_LPR, "LPR" },
-+ { LOG_MAIL, "MAIL" },
-+ { LOG_NEWS, "NEWS" },
-+ { LOG_NTP, "NTP" },
-+ { LOG_SECURITY, "SECURITY" },
-+ { LOG_SYSLOG, "SYSLOG" },
-+ { LOG_USER, "USER" },
-+ { LOG_UUCP, "UUCP" },
-+ { LOG_LOCAL0, "LOCAL0" },
-+ { LOG_LOCAL1, "LOCAL1" },
-+ { LOG_LOCAL2, "LOCAL2" },
-+ { LOG_LOCAL3, "LOCAL3" },
-+ { LOG_LOCAL4, "LOCAL4" },
-+ { LOG_LOCAL5, "LOCAL5" },
-+ { LOG_LOCAL6, "LOCAL6" },
-+ { LOG_LOCAL7, "LOCAL7" },
-+ { -1, NULL }
- };
-
- int facility;
-@@ -67,7 +79,7 @@ static int audit_syslog_priority(vfs_handle_struct *handle)
- { LOG_NOTICE, "NOTICE" },
- { LOG_INFO, "INFO" },
- { LOG_DEBUG, "DEBUG" },
-- { -1, NULL}
-+ { -1, NULL }
- };
-
- int priority;
-diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
-index a205007f46f..a52af4b5740 100644
---- a/source3/modules/vfs_full_audit.c
-+++ b/source3/modules/vfs_full_audit.c
-@@ -357,16 +357,28 @@ static struct {
- static int audit_syslog_facility(vfs_handle_struct *handle)
- {
- static const struct enum_list enum_log_facilities[] = {
-- { LOG_USER, "USER" },
-- { LOG_LOCAL0, "LOCAL0" },
-- { LOG_LOCAL1, "LOCAL1" },
-- { LOG_LOCAL2, "LOCAL2" },
-- { LOG_LOCAL3, "LOCAL3" },
-- { LOG_LOCAL4, "LOCAL4" },
-- { LOG_LOCAL5, "LOCAL5" },
-- { LOG_LOCAL6, "LOCAL6" },
-- { LOG_LOCAL7, "LOCAL7" },
-- { -1, NULL}
-+ { LOG_AUTH, "AUTH" },
-+ { LOG_CRON, "CRON" },
-+ { LOG_DAEMON, "DAEMON" },
-+ { LOG_FTP, "FTP" },
-+ { LOG_KERN, "KERN" },
-+ { LOG_LPR, "LPR" },
-+ { LOG_MAIL, "MAIL" },
-+ { LOG_NEWS, "NEWS" },
-+ { LOG_NTP, "NTP" },
-+ { LOG_SECURITY, "SECURITY" },
-+ { LOG_SYSLOG, "SYSLOG" },
-+ { LOG_USER, "USER" },
-+ { LOG_UUCP, "UUCP" },
-+ { LOG_LOCAL0, "LOCAL0" },
-+ { LOG_LOCAL1, "LOCAL1" },
-+ { LOG_LOCAL2, "LOCAL2" },
-+ { LOG_LOCAL3, "LOCAL3" },
-+ { LOG_LOCAL4, "LOCAL4" },
-+ { LOG_LOCAL5, "LOCAL5" },
-+ { LOG_LOCAL6, "LOCAL6" },
-+ { LOG_LOCAL7, "LOCAL7" },
-+ { -1, NULL }
- };
-
- int facility;
-@@ -387,7 +399,7 @@ static int audit_syslog_priority(vfs_handle_struct *handle)
- { LOG_NOTICE, "NOTICE" },
- { LOG_INFO, "INFO" },
- { LOG_DEBUG, "DEBUG" },
-- { -1, NULL}
-+ { -1, NULL }
- };
-
- int priority;
---
-2.16.3
-
-
-From b98fc517251ad25b695ef64453ffe3eaaffed5d8 Mon Sep 17 00:00:00 2001
-From: "Timur I. Bakeyev" <timur@iXsystems.com>
-Date: Fri, 22 Jun 2018 12:19:42 +0800
-Subject: [PATCH 2/3] Make "none" is the default setting for the successful and
- failed operations in the vfs_full_audit, so you don't blow up your server by
- just adding this module to the configuration.
-
----
- source3/modules/vfs_full_audit.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
-index a52af4b5740..bc40c8137dc 100644
---- a/source3/modules/vfs_full_audit.c
-+++ b/source3/modules/vfs_full_audit.c
-@@ -624,6 +624,7 @@ static int smb_full_audit_connect(vfs_handle_struct *handle,
- const char *svc, const char *user)
- {
- int result;
-+ const char *none[] = { "none" };
- struct vfs_full_audit_private_data *pd = NULL;
-
- result = SMB_VFS_NEXT_CONNECT(handle, svc, user);
-@@ -663,10 +664,10 @@ static int smb_full_audit_connect(vfs_handle_struct *handle,
-
- pd->success_ops = init_bitmap(
- pd, lp_parm_string_list(SNUM(handle->conn), "full_audit",
-- "success", NULL));
-+ "success", none));
- pd->failure_ops = init_bitmap(
- pd, lp_parm_string_list(SNUM(handle->conn), "full_audit",
-- "failure", NULL));
-+ "failure", none));
-
- /* Store the private data. */
- SMB_VFS_HANDLE_SET_DATA(handle, pd, NULL,
---
-2.16.3
-
-
-From e25f3a6cfc284737d8df941686f6629568763103 Mon Sep 17 00:00:00 2001
-From: "Timur I. Bakeyev" <timur@iXsystems.com>
-Date: Fri, 22 Jun 2018 12:36:07 +0800
-Subject: [PATCH 3/3] Document that vfs_full_audit defaults are "none" for the
- successful and failed operations.
-
----
- docs-xml/manpages/vfs_full_audit.8.xml | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/docs-xml/manpages/vfs_full_audit.8.xml b/docs-xml/manpages/vfs_full_audit.8.xml
-index cefe66d8b6f..ac8473f9990 100644
---- a/docs-xml/manpages/vfs_full_audit.8.xml
-+++ b/docs-xml/manpages/vfs_full_audit.8.xml
-@@ -164,7 +164,7 @@
- <para>LIST is a list of VFS operations that should be
- recorded if they succeed. Operations are specified using
- the names listed above. Operations can be unset by prefixing
-- the names with "!". The default is all operations.
-+ the names with "!". The default is none operations.
- </para>
-
- </listitem>
-@@ -176,7 +176,7 @@
- <para>LIST is a list of VFS operations that should be
- recorded if they failed. Operations are specified using
- the names listed above. Operations can be unset by prefixing
-- the names with "!". The default is all operations.
-+ the names with "!". The default is none operations.
- </para>
-
- </listitem>
---
-2.16.3
-
diff --git a/net/samba47/files/0001-bug-228462.patch b/net/samba47/files/0001-bug-228462.patch
deleted file mode 100644
index 911974bac140..000000000000
--- a/net/samba47/files/0001-bug-228462.patch
+++ /dev/null
@@ -1,182 +0,0 @@
-From d9b748869a8f4018ebee302aae8246bf29f60309 Mon Sep 17 00:00:00 2001
-From: "Timur I. Bakeyev" <timur@iXsystems.com>
-Date: Fri, 1 Jun 2018 01:35:08 +0800
-Subject: [PATCH 1/2] vfs_fruit: allow broken AFP_Signature where the first
- byte is 0
-
-FreeBSD bug ... caused the first byte of the AFP_AfpInfo xattr to be 0
-instead of 'A'. This hack allows such broken AFP_AfpInfo blobs to be
-parsed by afpinfo_unpack().
-
-FreeBSD Bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228462
-
-Signed-off-by: Ralph Boehme <slow@samba.org>
----
- source3/modules/vfs_fruit.c | 32 ++++++++++++++++++++++++--------
- 1 file changed, 24 insertions(+), 8 deletions(-)
-
-diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c
-index df3cd0c899e..d84e6991036 100644
---- a/source3/modules/vfs_fruit.c
-+++ b/source3/modules/vfs_fruit.c
-@@ -485,8 +485,9 @@ static int adouble_path(TALLOC_CTX *ctx,
- struct smb_filename **ppsmb_fname_out);
- static AfpInfo *afpinfo_new(TALLOC_CTX *ctx);
- static ssize_t afpinfo_pack(const AfpInfo *ai, char *buf);
--static AfpInfo *afpinfo_unpack(TALLOC_CTX *ctx, const void *data);
--
-+static AfpInfo *afpinfo_unpack(TALLOC_CTX *ctx,
-+ const void *data,
-+ const struct smb_filename *smb_fname);
-
- /**
- * Return a pointer to an AppleDouble entry
-@@ -2073,13 +2074,17 @@ static ssize_t afpinfo_pack(const AfpInfo *ai, char *buf)
- return AFP_INFO_SIZE;
- }
-
-+#define BROKEN_FREEBSD_AFP_Signature 0x00465000
-+
- /**
- * Unpack a buffer into a AfpInfo structure
- *
- * Buffer size must be at least AFP_INFO_SIZE
- * Returns allocated AfpInfo struct
- **/
--static AfpInfo *afpinfo_unpack(TALLOC_CTX *ctx, const void *data)
-+static AfpInfo *afpinfo_unpack(TALLOC_CTX *ctx,
-+ const void *data,
-+ const struct smb_filename *smb_fname)
- {
- AfpInfo *ai = talloc_zero(ctx, AfpInfo);
- if (ai == NULL) {
-@@ -2092,10 +2097,21 @@ static AfpInfo *afpinfo_unpack(TALLOC_CTX *ctx, const void *data)
- memcpy(ai->afpi_FinderInfo, (const char *)data + 16,
- sizeof(ai->afpi_FinderInfo));
-
-- if (ai->afpi_Signature != AFP_Signature
-- || ai->afpi_Version != AFP_Version) {
-- DEBUG(1, ("Bad AfpInfo signature or version\n"));
-+ if (ai->afpi_Signature != AFP_Signature) {
-+ DBG_WARNING("Bad signature [%x] on [%s]\n",
-+ ai->afpi_Signature, smb_fname_str_dbg(smb_fname));
-+
-+ if (ai->afpi_Signature != BROKEN_FREEBSD_AFP_Signature) {
-+ DBG_ERR("Bad AfpInfo signature\n");
-+ TALLOC_FREE(ai);
-+ return NULL;
-+ }
-+ }
-+
-+ if (ai->afpi_Version != AFP_Version) {
-+ DBG_ERR("Bad AfpInfo version\n");
- TALLOC_FREE(ai);
-+ return NULL;
- }
-
- return ai;
-@@ -4222,7 +4238,7 @@ static ssize_t fruit_pwrite_meta_stream(vfs_handle_struct *handle,
- size_t nwritten;
- bool ok;
-
-- ai = afpinfo_unpack(talloc_tos(), data);
-+ ai = afpinfo_unpack(talloc_tos(), data, fsp->fsp_name);
- if (ai == NULL) {
- return -1;
- }
-@@ -4260,7 +4276,7 @@ static ssize_t fruit_pwrite_meta_netatalk(vfs_handle_struct *handle,
- int ret;
- bool ok;
-
-- ai = afpinfo_unpack(talloc_tos(), data);
-+ ai = afpinfo_unpack(talloc_tos(), data, fsp->fsp_name);
- if (ai == NULL) {
- return -1;
- }
---
-2.16.3
-
-
-From 83ce03a278ec9d15b595f4daf8da1641d27ebdd6 Mon Sep 17 00:00:00 2001
-From: "Timur I. Bakeyev" <timur@iXsystems.com>
-Date: Fri, 1 Jun 2018 01:35:58 +0800
-Subject: [PATCH 2/2] vfs_streams_xattr: don't append 0 byte when creating
- xattr
-
-Upstream Samba always appends an internal 0-byte to xattrs to cope
-with filesytems or systems that don't support 0-byte sized xattrs.
-
-An older patch already remove this behaviour from the read and write
-code paths, but didn't remove it from the create codepath.
-
-FreeBSD Bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228462
-
-Signed-off-by: Ralph Boehme <slow@samba.org>
----
- source3/modules/vfs_streams_xattr.c | 8 +-------
- 1 file changed, 1 insertion(+), 7 deletions(-)
-
-diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c
-index 8714007cb8d..5f3dfb30beb 100644
---- a/source3/modules/vfs_streams_xattr.c
-+++ b/source3/modules/vfs_streams_xattr.c
-@@ -476,19 +476,13 @@ static int streams_xattr_open(vfs_handle_struct *handle,
- /*
- * The attribute does not exist or needs to be truncated
- */
--
-- /*
-- * Darn, xattrs need at least 1 byte
-- */
-- char null = '\0';
--
- DEBUG(10, ("creating or truncating attribute %s on file %s\n",
- xattr_name, smb_fname->base_name));
-
- ret = SMB_VFS_SETXATTR(fsp->conn,
- smb_fname,
- xattr_name,
-- &null, sizeof(null),
-+ NULL, 0,
- flags & O_EXCL ? XATTR_CREATE : 0);
- if (ret != 0) {
- goto fail;
---
-2.16.3
-
-From daa9930fc10459f0567931622e2ffbb636e365f0 Mon Sep 17 00:00:00 2001
-From: Ralph Boehme <slow@samba.org>
-Date: Sat, 19 May 2018 01:35:45 +0200
-Subject: [PATCH] vfs_fruit: fixup broken AFP_Signatures
-
-FreeBSD Bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228462
-
-Signed-off-by: Ralph Boehme <slow@samba.org>
----
- source3/modules/vfs_fruit.c | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c
-index d92049cc899..0594fd7a538 100644
---- a/source3/modules/vfs_fruit.c
-+++ b/source3/modules/vfs_fruit.c
-@@ -3935,10 +3935,16 @@ static ssize_t fruit_pread_meta_stream(vfs_handle_struct *handle,
- {
- ssize_t nread;
- int ret;
-+ char *p = (char *)data;
-
- nread = SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset);
-
- if (nread == n) {
-+ if (offset == 0 && nread > 3 && p[0] == 0 && p[1] == 'F' && p[2] == 'P') {
-+ DBG_NOTICE("Fixing AFP_Info of [%s]\n",
-+ fsp_str_dbg(fsp));
-+ p[0] = 'A';
-+ }
- return nread;
- }
-
---
-2.17.0
-
diff --git a/net/samba47/files/README.FreeBSD.in b/net/samba47/files/README.FreeBSD.in
deleted file mode 100644
index b40faa7ceed2..000000000000
--- a/net/samba47/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/samba47/files/man/ctdb-etcd.7 b/net/samba47/files/man/ctdb-etcd.7
deleted file mode 100644
index 75c739274925..000000000000
--- a/net/samba47/files/man/ctdb-etcd.7
+++ /dev/null
@@ -1,106 +0,0 @@
-'\" t
-.\" Title: ctdb-etcd
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "CTDB\-ETCD" "7" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ctdb-etcd \- CTDB etcd integration
-.SH "SYNOPSIS"
-.HP \w'\fBctdb_etcd_lock\fR\ 'u
-\fBctdb_etcd_lock\fR
-.SH "DESCRIPTION"
-.PP
-ctdb_etcd_lock is intended to be run as a mutex helper for CTDB\&. It will try to connect to an existing etcd cluster and grab a lock in that cluster to function as CTDB\*(Aqs recovery lock\&. Please see
-\fIctdb/doc/cluster_mutex_helper\&.txt\fR
-for details on the mutex helper API\&. To use this, include the following line in your CTDB config file:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-CTDB_RECOVERY_LOCK="!/usr/local/usr/libexec/ctdb/ctdb_etcd_lock"
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-You can also pass "\-v", "\-vv", or "\-vvv" to include verbose output in the CTDB log\&. Additional "v"s indicate increases in verbosity\&.
-.PP
-This mutex helper expects the system Python interpreter to have access to the etcd Python module\&. It also expects an etcd cluster to be configured and running\&. To integrate with this, there is an optional config file of the following format:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-key = value
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-The following configuration parameters (and their defaults) are defined for use by ctdb_etcd_lock:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-port = 2379 # connecting port for the etcd cluster
-lock_ttl = 9 # seconds for TTL
-refresh = 2 # seconds between attempts to maintain lock
-locks_dir = _ctdb # where to store CTDB locks in etcd
- # The final etcd directory for any given lock looks like:
- # /_locks/{locks_dir}/{netbios name}/
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-In addition, any keyword parameter that can be used to configure an etcd client may be specified and modified here\&. For more documentation on these parameters, see here: https://github\&.com/jplana/python\-etcd/
-.SH "SEE ALSO"
-.PP
-\fBctdb\fR(7),
-\fBctdbd\fR(1),
-\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Jose A\&. Rivera
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2016 Jose A. Rivera
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/ctdb-statistics.7 b/net/samba47/files/man/ctdb-statistics.7
deleted file mode 100644
index 760abf040d2e..000000000000
--- a/net/samba47/files/man/ctdb-statistics.7
+++ /dev/null
@@ -1,528 +0,0 @@
-'\" t
-.\" Title: ctdb-statistics
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "CTDB\-STATISTICS" "7" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ctdb-statistics \- CTDB statistics output
-.SH "OVERALL STATISTICS"
-.PP
-CTDB maintains information about various messages communicated and some of the important operations per node\&. See the
-\fBctdb\fR(1)
-commands
-\fBstatistics\fR
-and
-\fBstatisticsreset\fR
-for displaying statistics\&.
-.SS "Example: ctdb statistics"
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-CTDB version 1
-Current time of statistics : Fri Sep 12 13:32:32 2014
-Statistics collected since : (000 01:49:20) Fri Sep 12 11:43:12 2014
- num_clients 6
- frozen 0
- recovering 0
- num_recoveries 2
- client_packets_sent 281293
- client_packets_recv 296317
- node_packets_sent 452387
- node_packets_recv 182394
- keepalive_packets_sent 3927
- keepalive_packets_recv 3928
- node
- req_call 48605
- reply_call 1
- req_dmaster 23404
- reply_dmaster 24917
- reply_error 0
- req_message 958
- req_control 197513
- reply_control 153705
- client
- req_call 130866
- req_message 770
- req_control 168921
- timeouts
- call 0
- control 0
- traverse 0
- locks
- num_calls 220
- num_current 0
- num_pending 0
- num_failed 0
- total_calls 130866
- pending_calls 0
- childwrite_calls 1
- pending_childwrite_calls 0
- memory_used 334490
- max_hop_count 18
- total_ro_delegations 2
- total_ro_revokes 2
- hop_count_buckets: 42816 5464 26 1 0 0 0 0 0 0 0 0 0 0 0 0
- lock_buckets: 9 165 14 15 7 2 2 0 0 0 0 0 0 0 0 0
- locks_latency MIN/AVG/MAX 0\&.000685/0\&.160302/6\&.369342 sec out of 214
- reclock_ctdbd MIN/AVG/MAX 0\&.004940/0\&.004969/0\&.004998 sec out of 2
- reclock_recd MIN/AVG/MAX 0\&.000000/0\&.000000/0\&.000000 sec out of 0
- call_latency MIN/AVG/MAX 0\&.000006/0\&.000719/4\&.562991 sec out of 126626
- childwrite_latency MIN/AVG/MAX 0\&.014527/0\&.014527/0\&.014527 sec out of 1
-
-.fi
-.if n \{\
-.RE
-.\}
-.SS "CTDB version"
-.PP
-Version of the ctdb protocol used by the node\&.
-.SS "Current time of statistics"
-.PP
-Time when the statistics are generated\&.
-.PP
-This is useful when collecting statistics output periodically for post\-processing\&.
-.SS "Statistics collected since"
-.PP
-Time when ctdb was started or the last time statistics was reset\&. The output shows the duration and the timestamp\&.
-.SS "num_clients"
-.PP
-Number of processes currently connected to CTDB\*(Aqs unix socket\&. This includes recovery daemon, ctdb tool and samba processes (smbd, winbindd)\&.
-.SS "frozen"
-.PP
-1 if the the databases are currently frozen, 0 otherwise\&.
-.SS "recovering"
-.PP
-1 if recovery is active, 0 otherwise\&.
-.SS "num_recoveries"
-.PP
-Number of recoveries since the start of ctdb or since the last statistics reset\&.
-.SS "client_packets_sent"
-.PP
-Number of packets sent to client processes via unix domain socket\&.
-.SS "client_packets_recv"
-.PP
-Number of packets received from client processes via unix domain socket\&.
-.SS "node_packets_sent"
-.PP
-Number of packets sent to the other nodes in the cluster via TCP\&.
-.SS "node_packets_recv"
-.PP
-Number of packets received from the other nodes in the cluster via TCP\&.
-.SS "keepalive_packets_sent"
-.PP
-Number of keepalive messages sent to other nodes\&.
-.PP
-CTDB periodically sends keepalive messages to other nodes\&. See
-KeepaliveInterval
-tunable in
-\fBctdb-tunables\fR(7)
-for more details\&.
-.SS "keepalive_packets_recv"
-.PP
-Number of keepalive messages received from other nodes\&.
-.SS "node"
-.PP
-This section lists various types of messages processed which originated from other nodes via TCP\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBreq_call\fR
-.RS 4
-.PP
-Number of REQ_CALL messages from the other nodes\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBreply_call\fR
-.RS 4
-.PP
-Number of REPLY_CALL messages from the other nodes\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBreq_dmaster\fR
-.RS 4
-.PP
-Number of REQ_DMASTER messages from the other nodes\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBreply_dmaster\fR
-.RS 4
-.PP
-Number of REPLY_DMASTER messages from the other nodes\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBreply_error\fR
-.RS 4
-.PP
-Number of REPLY_ERROR messages from the other nodes\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBreq_message\fR
-.RS 4
-.PP
-Number of REQ_MESSAGE messages from the other nodes\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBreq_control\fR
-.RS 4
-.PP
-Number of REQ_CONTROL messages from the other nodes\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBreply_control\fR
-.RS 4
-.PP
-Number of REPLY_CONTROL messages from the other nodes\&.
-.RE
-.SS "client"
-.PP
-This section lists various types of messages processed which originated from clients via unix domain socket\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBreq_call\fR
-.RS 4
-.PP
-Number of REQ_CALL messages from the clients\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBreq_message\fR
-.RS 4
-.PP
-Number of REQ_MESSAGE messages from the clients\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBreq_control\fR
-.RS 4
-.PP
-Number of REQ_CONTROL messages from the clients\&.
-.RE
-.SS "timeouts"
-.PP
-This section lists timeouts occurred when sending various messages\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBcall\fR
-.RS 4
-.PP
-Number of timeouts for REQ_CALL messages\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBcontrol\fR
-.RS 4
-.PP
-Number of timeouts for REQ_CONTROL messages\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBtraverse\fR
-.RS 4
-.PP
-Number of timeouts for database traverse operations\&.
-.RE
-.SS "locks"
-.PP
-This section lists locking statistics\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBnum_calls\fR
-.RS 4
-.PP
-Number of completed lock calls\&. This includes database locks and record locks\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBnum_current\fR
-.RS 4
-.PP
-Number of scheduled lock calls\&. This includes database locks and record locks\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBnum_pending\fR
-.RS 4
-.PP
-Number of queued lock calls\&. This includes database locks and record locks\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBnum_failed\fR
-.RS 4
-.PP
-Number of failed lock calls\&. This includes database locks and record locks\&.
-.RE
-.SS "total_calls"
-.PP
-Number of req_call messages processed from clients\&. This number should be same as client \-\-> req_call\&.
-.SS "pending_calls"
-.PP
-Number of req_call messages which are currenly being processed\&. This number indicates the number of record migrations in flight\&.
-.SS "childwrite_calls"
-.PP
-Number of record update calls\&. Record update calls are used to update a record under a transaction\&.
-.SS "pending_childwrite_calls"
-.PP
-Number of record update calls currently active\&.
-.SS "memory_used"
-.PP
-The amount of memory in bytes currently used by CTDB using talloc\&. This includes all the memory used for CTDB\*(Aqs internal data structures\&. This does not include the memory mapped TDB databases\&.
-.SS "max_hop_count"
-.PP
-The maximum number of hops required for a record migration request to obtain the record\&. High numbers indicate record contention\&.
-.SS "total_ro_delegations"
-.PP
-Number of readonly delegations created\&.
-.SS "total_ro_revokes"
-.PP
-Number of readonly delegations that were revoked\&. The difference between total_ro_revokes and total_ro_delegations gives the number of currently active readonly delegations\&.
-.SS "hop_count_buckets"
-.PP
-Distribution of migration requests based on hop counts values\&. Buckets are 1, < 4, < 8, < 16, < 32, < 64, < 128, < 256, < 512, ≥ 512\&.
-.SS "lock_buckets"
-.PP
-Distribution of record lock requests based on time required to obtain locks\&. Buckets are < 1ms, < 10ms, < 100ms, < 1s, < 2s, < 4s, < 8s, < 16s, < 32s, < 64s, ≥ 64s\&.
-.SS "locks_latency"
-.PP
-The minimum, the average and the maximum time (in seconds) required to obtain record locks\&.
-.SS "reclock_ctdbd"
-.PP
-The minimum, the average and the maximum time (in seconds) required to check if recovery lock is still held by recovery daemon when recovery mode is changed\&. This check is done in ctdb daemon\&.
-.SS "reclock_recd"
-.PP
-The minimum, the average and the maximum time (in seconds) required to check if recovery lock is still held by recovery daemon during recovery\&. This check is done in recovery daemon\&.
-.SS "call_latency"
-.PP
-The minimum, the average and the maximum time (in seconds) required to process a REQ_CALL message from client\&. This includes the time required to migrate a record from remote node, if the record is not available on the local node\&.
-.SS "childwrite_latency"
-.PP
-Default: 0
-.PP
-The minimum, the average and the maximum time (in seconds) required to update records under a transaction\&.
-.SH "DATABASE STATISTICS"
-.PP
-CTDB maintains per database statistics about important operations\&. See the
-\fBctdb\fR(1)
-command
-\fBdbstatistics\fR
-for displaying database statistics\&.
-.SS "Example: ctdb dbstatistics notify_index\&.tdb"
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-DB Statistics: notify_index\&.tdb
- ro_delegations 0
- ro_revokes 0
- locks
- total 131
- failed 0
- current 0
- pending 0
- hop_count_buckets: 9890 5454 26 1 0 0 0 0 0 0 0 0 0 0 0 0
- lock_buckets: 4 117 10 0 0 0 0 0 0 0 0 0 0 0 0 0
- locks_latency MIN/AVG/MAX 0\&.000683/0\&.004198/0\&.014730 sec out of 131
- Num Hot Keys: 3
- Count:7 Key:2f636c75737465726673
- Count:18 Key:2f636c757374657266732f64617461
- Count:7 Key:2f636c757374657266732f646174612f636c69656e7473
-
-.fi
-.if n \{\
-.RE
-.\}
-.SS "DB Statistics"
-.PP
-Name of the database\&.
-.SS "ro_delegations"
-.PP
-Number of readonly delegations created in the database\&.
-.SS "ro_revokes"
-.PP
-Number of readonly delegations revoked\&. The difference in ro_delegations and ro_revokes indicates the currently active readonly delegations\&.
-.SS "locks"
-.PP
-This section lists locking statistics\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBtotal\fR
-.RS 4
-.PP
-Number of completed lock calls\&. This includes database locks and record locks\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBfailed\fR
-.RS 4
-.PP
-Number of failed lock calls\&. This includes database locks and record locks\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBcurrent\fR
-.RS 4
-.PP
-Number of scheduled lock calls\&. This includes database locks and record locks\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBpending\fR
-.RS 4
-.PP
-Number of queued lock calls\&. This includes database locks and record locks\&.
-.RE
-.SS "hop_count_buckets"
-.PP
-Distribution of migration requests based on hop counts values\&. Buckets are 1, < 4, < 8, < 16, < 32, < 64, < 128, < 256, < 512, ≥ 512\&.
-.SS "lock_buckets"
-.PP
-Distribution of record lock requests based on time required to obtain locks\&. Buckets are < 1ms, < 10ms, < 100ms, < 1s, < 2s, < 4s, < 8s, < 16s, < 32s, < 64s, ≥ 64s\&.
-.SS "locks_latency"
-.PP
-The minimum, the average and the maximum time (in seconds) required to obtain record locks\&.
-.SS "Num Hot Keys"
-.PP
-Number of contended records determined by hop count\&. CTDB keeps track of top 10 hot records and the output shows hex encoded keys for the hot records\&.
-.SH "SEE ALSO"
-.PP
-\fBctdb\fR(1),
-\fBctdbd\fR(1),
-\fBctdb-tunables\fR(7),
-\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Amitay Isaacs, Martin Schwenke
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/ctdb-tunables.7 b/net/samba47/files/man/ctdb-tunables.7
deleted file mode 100644
index e4ce6a685d3d..000000000000
--- a/net/samba47/files/man/ctdb-tunables.7
+++ /dev/null
@@ -1,409 +0,0 @@
-'\" t
-.\" Title: ctdb-tunables
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "CTDB\-TUNABLES" "7" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ctdb-tunables \- CTDB tunable configuration variables
-.SH "DESCRIPTION"
-.PP
-CTDB\*(Aqs behaviour can be configured by setting run\-time tunable variables\&. This lists and describes all tunables\&. See the
-\fBctdb\fR(1)
-\fBlistvars\fR,
-\fBsetvar\fR
-and
-\fBgetvar\fR
-commands for more details\&.
-.PP
-Unless otherwise stated, tunables should be set to the same value on all nodes\&. Setting tunables to different values across nodes may produce unexpected results\&. Future releases may set (some or most) tunables globally across the cluster but doing so is currently a manual process\&.
-.PP
-The tunable variables are listed alphabetically\&.
-.SS "AllowClientDBAttach"
-.PP
-Default: 1
-.PP
-When set to 0, clients are not allowed to attach to any databases\&. This can be used to temporarily block any new processes from attaching to and accessing the databases\&. This is mainly used for detaching a volatile database using \*(Aqctdb detach\*(Aq\&.
-.SS "AllowMixedVersions"
-.PP
-Default: 0
-.PP
-CTDB will not allow incompatible versions to co\-exist in a cluster\&. If a version mismatch is found, then losing CTDB will shutdown\&. To disable the incompatible version check, set this tunable to 1\&.
-.PP
-For version checking, CTDB uses major and minor version\&. For example, CTDB 4\&.6\&.1 and CTDB CTDB 4\&.6\&.2 are matching versions; CTDB 4\&.5\&.x and CTDB 4\&.6\&.y do not match\&.
-.PP
-CTDB with version check support will lose to CTDB without version check support\&. Between two different CTDB versions with version check support, one running for less time will lose\&. If the running time for both CTDB versions with version check support is equal (to seconds), then the older version will lose\&. The losing CTDB daemon will shutdown\&.
-.SS "AllowUnhealthyDBRead"
-.PP
-Default: 0
-.PP
-When set to 1, ctdb allows database traverses to read unhealthy databases\&. By default, ctdb does not allow reading records from unhealthy databases\&.
-.SS "ControlTimeout"
-.PP
-Default: 60
-.PP
-This is the default setting for timeout for when sending a control message to either the local or a remote ctdb daemon\&.
-.SS "DatabaseHashSize"
-.PP
-Default: 100001
-.PP
-Number of the hash chains for the local store of the tdbs that ctdb manages\&.
-.SS "DatabaseMaxDead"
-.PP
-Default: 5
-.PP
-Maximum number of dead records per hash chain for the tdb databses managed by ctdb\&.
-.SS "DBRecordCountWarn"
-.PP
-Default: 100000
-.PP
-When set to non\-zero, ctdb will log a warning during recovery if a database has more than this many records\&. This will produce a warning if a database grows uncontrollably with orphaned records\&.
-.SS "DBRecordSizeWarn"
-.PP
-Default: 10000000
-.PP
-When set to non\-zero, ctdb will log a warning during recovery if a single record is bigger than this size\&. This will produce a warning if a database record grows uncontrollably\&.
-.SS "DBSizeWarn"
-.PP
-Default: 1000000000
-.PP
-When set to non\-zero, ctdb will log a warning during recovery if a database size is bigger than this\&. This will produce a warning if a database grows uncontrollably\&.
-.SS "DeferredAttachTO"
-.PP
-Default: 120
-.PP
-When databases are frozen we do not allow clients to attach to the databases\&. Instead of returning an error immediately to the client, the attach request from the client is deferred until the database becomes available again at which stage we respond to the client\&.
-.PP
-This timeout controls how long we will defer the request from the client before timing it out and returning an error to the client\&.
-.SS "DisableIPFailover"
-.PP
-Default: 0
-.PP
-When set to non\-zero, ctdb will not perform failover or failback\&. Even if a node fails while holding public IPs, ctdb will not recover the IPs or assign them to another node\&.
-.PP
-When this tunable is enabled, ctdb will no longer attempt to recover the cluster by failing IP addresses over to other nodes\&. This leads to a service outage until the administrator has manually performed IP failover to replacement nodes using the \*(Aqctdb moveip\*(Aq command\&.
-.SS "ElectionTimeout"
-.PP
-Default: 3
-.PP
-The number of seconds to wait for the election of recovery master to complete\&. If the election is not completed during this interval, then that round of election fails and ctdb starts a new election\&.
-.SS "EnableBans"
-.PP
-Default: 1
-.PP
-This parameter allows ctdb to ban a node if the node is misbehaving\&.
-.PP
-When set to 0, this disables banning completely in the cluster and thus nodes can not get banned, even it they break\&. Don\*(Aqt set to 0 unless you know what you are doing\&.
-.SS "EventScriptTimeout"
-.PP
-Default: 30
-.PP
-Maximum time in seconds to allow an event to run before timing out\&. This is the total time for all enabled scripts that are run for an event, not just a single event script\&.
-.PP
-Note that timeouts are ignored for some events ("takeip", "releaseip", "startrecovery", "recovered") and converted to success\&. The logic here is that the callers of these events implement their own additional timeout\&.
-.SS "FetchCollapse"
-.PP
-Default: 1
-.PP
-This parameter is used to avoid multiple migration requests for the same record from a single node\&. All the record requests for the same record are queued up and processed when the record is migrated to the current node\&.
-.PP
-When many clients across many nodes try to access the same record at the same time this can lead to a fetch storm where the record becomes very active and bounces between nodes very fast\&. This leads to high CPU utilization of the ctdbd daemon, trying to bounce that record around very fast, and poor performance\&. This can improve performance and reduce CPU utilization for certain workloads\&.
-.SS "HopcountMakeSticky"
-.PP
-Default: 50
-.PP
-For database(s) marked STICKY (using \*(Aqctdb setdbsticky\*(Aq), any record that is migrating so fast that hopcount exceeds this limit is marked as STICKY record for
-\fIStickyDuration\fR
-seconds\&. This means that after each migration the sticky record will be kept on the node
-\fIStickyPindown\fRmilliseconds and prevented from being migrated off the node\&.
-.PP
-This will improve performance for certain workloads, such as locking\&.tdb if many clients are opening/closing the same file concurrently\&.
-.SS "IPAllocAlgorithm"
-.PP
-Default: 2
-.PP
-Selects the algorithm that CTDB should use when doing public IP address allocation\&. Meaningful values are:
-.PP
-0
-.RS 4
-Deterministic IP address allocation\&.
-.sp
-This is a simple and fast option\&. However, it can cause unnecessary address movement during fail\-over because each address has a "home" node\&. Works badly when some nodes do not have any addresses defined\&. Should be used with care when addresses are defined across multiple networks\&.
-.RE
-.PP
-1
-.RS 4
-Non\-deterministic IP address allocation\&.
-.sp
-This is a relatively fast option that attempts to do a minimise unnecessary address movements\&. Addresses do not have a "home" node\&. Rebalancing is limited but it usually adequate\&. Works badly when addresses are defined across multiple networks\&.
-.RE
-.PP
-2
-.RS 4
-LCP2 IP address allocation\&.
-.sp
-Uses a heuristic to assign addresses defined across multiple networks, usually balancing addresses on each network evenly across nodes\&. Addresses do not have a "home" node\&. Minimises unnecessary address movements\&. The algorithm is complex, so is slower than other choices for a large number of addresses\&. However, it can calculate an optimal assignment of 900 addresses in under 10 seconds on modern hardware\&.
-.RE
-.PP
-If the specified value is not one of these then the default will be used\&.
-.SS "KeepaliveInterval"
-.PP
-Default: 5
-.PP
-How often in seconds should the nodes send keep\-alive packets to each other\&.
-.SS "KeepaliveLimit"
-.PP
-Default: 5
-.PP
-After how many keepalive intervals without any traffic should a node wait until marking the peer as DISCONNECTED\&.
-.PP
-If a node has hung, it can take
-\fIKeepaliveInterval\fR
-* (\fIKeepaliveLimit\fR
-+ 1) seconds before ctdb determines that the node is DISCONNECTED and performs a recovery\&. This limit should not be set too high to enable early detection and avoid any application timeouts (e\&.g\&. SMB1) to kick in before the fail over is completed\&.
-.SS "LockProcessesPerDB"
-.PP
-Default: 200
-.PP
-This is the maximum number of lock helper processes ctdb will create for obtaining record locks\&. When ctdb cannot get a record lock without blocking, it creates a helper process that waits for the lock to be obtained\&.
-.SS "LogLatencyMs"
-.PP
-Default: 0
-.PP
-When set to non\-zero, ctdb will log if certains operations take longer than this value, in milliseconds, to complete\&. These operations include "process a record request from client", "take a record or database lock", "update a persistent database record" and "vaccum a database"\&.
-.SS "MaxQueueDropMsg"
-.PP
-Default: 1000000
-.PP
-This is the maximum number of messages to be queued up for a client before ctdb will treat the client as hung and will terminate the client connection\&.
-.SS "MonitorInterval"
-.PP
-Default: 15
-.PP
-How often should ctdb run the \*(Aqmonitor\*(Aq event in seconds to check for a node\*(Aqs health\&.
-.SS "MonitorTimeoutCount"
-.PP
-Default: 20
-.PP
-How many \*(Aqmonitor\*(Aq events in a row need to timeout before a node is flagged as UNHEALTHY\&. This setting is useful if scripts can not be written so that they do not hang for benign reasons\&.
-.SS "NoIPFailback"
-.PP
-Default: 0
-.PP
-When set to 1, ctdb will not perform failback of IP addresses when a node becomes healthy\&. When a node becomes UNHEALTHY, ctdb WILL perform failover of public IP addresses, but when the node becomes HEALTHY again, ctdb will not fail the addresses back\&.
-.PP
-Use with caution! Normally when a node becomes available to the cluster ctdb will try to reassign public IP addresses onto the new node as a way to distribute the workload evenly across the clusternode\&. Ctdb tries to make sure that all running nodes have approximately the same number of public addresses it hosts\&.
-.PP
-When you enable this tunable, ctdb will no longer attempt to rebalance the cluster by failing IP addresses back to the new nodes\&. An unbalanced cluster will therefore remain unbalanced until there is manual intervention from the administrator\&. When this parameter is set, you can manually fail public IP addresses over to the new node(s) using the \*(Aqctdb moveip\*(Aq command\&.
-.SS "NoIPHostOnAllDisabled"
-.PP
-Default: 0
-.PP
-If no nodes are HEALTHY then by default ctdb will happily host public IPs on disabled (unhealthy or administratively disabled) nodes\&. This can cause problems, for example if the underlying cluster filesystem is not mounted\&. When set to 1 and a node is disabled, any IPs hosted by this node will be released and the node will not takeover any IPs until it is no longer disabled\&.
-.SS "NoIPTakeover"
-.PP
-Default: 0
-.PP
-When set to 1, ctdb will not allow IP addresses to be failed over to other nodes\&. Any IP addresses already hosted on healthy nodes will remain\&. Usually IP addresses hosted on unhealthy nodes will also remain, if NoIPHostOnAllDisabled is 0\&. However, if NoIPHostOnAllDisabled is 1 then IP addresses will be released by unhealthy nodes and will become un\-hosted\&.
-.SS "PullDBPreallocation"
-.PP
-Default: 10*1024*1024
-.PP
-This is the size of a record buffer to pre\-allocate for sending reply to PULLDB control\&. Usually record buffer starts with size of the first record and gets reallocated every time a new record is added to the record buffer\&. For a large number of records, this can be very inefficient to grow the record buffer one record at a time\&.
-.SS "QueueBufferSize"
-.PP
-Default: 1024
-.PP
-This is the maximum amount of data (in bytes) ctdb will read from a socket at a time\&.
-.PP
-For a busy setup, if ctdb is not able to process the TCP sockets fast enough (large amount of data in Recv\-Q for tcp sockets), then this tunable value should be increased\&. However, large values can keep ctdb busy processing packets and prevent ctdb from handling other events\&.
-.SS "RecBufferSizeLimit"
-.PP
-Default: 1000000
-.PP
-This is the limit on the size of the record buffer to be sent in various controls\&. This limit is used by new controls used for recovery and controls used in vacuuming\&.
-.SS "RecdFailCount"
-.PP
-Default: 10
-.PP
-If the recovery daemon has failed to ping the main dameon for this many consecutive intervals, the main daemon will consider the recovery daemon as hung and will try to restart it to recover\&.
-.SS "RecdPingTimeout"
-.PP
-Default: 60
-.PP
-If the main dameon has not heard a "ping" from the recovery dameon for this many seconds, the main dameon will log a message that the recovery daemon is potentially hung\&. This also increments a counter which is checked against
-\fIRecdFailCount\fR
-for detection of hung recovery daemon\&.
-.SS "RecLockLatencyMs"
-.PP
-Default: 1000
-.PP
-When using a reclock file for split brain prevention, if set to non\-zero this tunable will make the recovery dameon log a message if the fcntl() call to lock/testlock the recovery file takes longer than this number of milliseconds\&.
-.SS "RecoverInterval"
-.PP
-Default: 1
-.PP
-How frequently in seconds should the recovery daemon perform the consistency checks to determine if it should perform a recovery\&.
-.SS "RecoverTimeout"
-.PP
-Default: 120
-.PP
-This is the default setting for timeouts for controls when sent from the recovery daemon\&. We allow longer control timeouts from the recovery daemon than from normal use since the recovery dameon often use controls that can take a lot longer than normal controls\&.
-.SS "RecoveryBanPeriod"
-.PP
-Default: 300
-.PP
-The duration in seconds for which a node is banned if the node fails during recovery\&. After this time has elapsed the node will automatically get unbanned and will attempt to rejoin the cluster\&.
-.PP
-A node usually gets banned due to real problems with the node\&. Don\*(Aqt set this value too small\&. Otherwise, a problematic node will try to re\-join cluster too soon causing unnecessary recoveries\&.
-.SS "RecoveryDropAllIPs"
-.PP
-Default: 120
-.PP
-If a node is stuck in recovery, or stopped, or banned, for this many seconds, then ctdb will release all public addresses on that node\&.
-.SS "RecoveryGracePeriod"
-.PP
-Default: 120
-.PP
-During recoveries, if a node has not caused recovery failures during the last grace period in seconds, any records of transgressions that the node has caused recovery failures will be forgiven\&. This resets the ban\-counter back to zero for that node\&.
-.SS "RepackLimit"
-.PP
-Default: 10000
-.PP
-During vacuuming, if the number of freelist records are more than
-\fIRepackLimit\fR, then the database is repacked to get rid of the freelist records to avoid fragmentation\&.
-.PP
-Databases are repacked only if both
-\fIRepackLimit\fR
-and
-\fIVacuumLimit\fR
-are exceeded\&.
-.SS "RerecoveryTimeout"
-.PP
-Default: 10
-.PP
-Once a recovery has completed, no additional recoveries are permitted until this timeout in seconds has expired\&.
-.SS "SeqnumInterval"
-.PP
-Default: 1000
-.PP
-Some databases have seqnum tracking enabled, so that samba will be able to detect asynchronously when there has been updates to the database\&. Everytime a database is updated its sequence number is increased\&.
-.PP
-This tunable is used to specify in milliseconds how frequently ctdb will send out updates to remote nodes to inform them that the sequence number is increased\&.
-.SS "StatHistoryInterval"
-.PP
-Default: 1
-.PP
-Granularity of the statistics collected in the statistics history\&. This is reported by \*(Aqctdb stats\*(Aq command\&.
-.SS "StickyDuration"
-.PP
-Default: 600
-.PP
-Once a record has been marked STICKY, this is the duration in seconds, the record will be flagged as a STICKY record\&.
-.SS "StickyPindown"
-.PP
-Default: 200
-.PP
-Once a STICKY record has been migrated onto a node, it will be pinned down on that node for this number of milliseconds\&. Any request from other nodes to migrate the record off the node will be deferred\&.
-.SS "TakeoverTimeout"
-.PP
-Default: 9
-.PP
-This is the duration in seconds in which ctdb tries to complete IP failover\&.
-.SS "TDBMutexEnabled"
-.PP
-Default: 1
-.PP
-This parameter enables TDB_MUTEX_LOCKING feature on volatile databases if the robust mutexes are supported\&. This optimizes the record locking using robust mutexes and is much more efficient that using posix locks\&.
-.SS "TickleUpdateInterval"
-.PP
-Default: 20
-.PP
-Every
-\fITickleUpdateInterval\fR
-seconds, ctdb synchronizes the client connection information across nodes\&.
-.SS "TraverseTimeout"
-.PP
-Default: 20
-.PP
-This is the duration in seconds for which a database traverse is allowed to run\&. If the traverse does not complete during this interval, ctdb will abort the traverse\&.
-.SS "VacuumFastPathCount"
-.PP
-Default: 60
-.PP
-During a vacuuming run, ctdb usually processes only the records marked for deletion also called the fast path vacuuming\&. After finishing
-\fIVacuumFastPathCount\fR
-number of fast path vacuuming runs, ctdb will trigger a scan of complete database for any empty records that need to be deleted\&.
-.SS "VacuumInterval"
-.PP
-Default: 10
-.PP
-Periodic interval in seconds when vacuuming is triggered for volatile databases\&.
-.SS "VacuumLimit"
-.PP
-Default: 5000
-.PP
-During vacuuming, if the number of deleted records are more than
-\fIVacuumLimit\fR, then databases are repacked to avoid fragmentation\&.
-.PP
-Databases are repacked only if both
-\fIRepackLimit\fR
-and
-\fIVacuumLimit\fR
-are exceeded\&.
-.SS "VacuumMaxRunTime"
-.PP
-Default: 120
-.PP
-The maximum time in seconds for which the vacuuming process is allowed to run\&. If vacuuming process takes longer than this value, then the vacuuming process is terminated\&.
-.SS "VerboseMemoryNames"
-.PP
-Default: 0
-.PP
-When set to non\-zero, ctdb assigns verbose names for some of the talloc allocated memory objects\&. These names are visible in the talloc memory report generated by \*(Aqctdb dumpmemory\*(Aq\&.
-.SH "SEE ALSO"
-.PP
-\fBctdb\fR(1),
-\fBctdbd\fR(1),
-\fBctdbd.conf\fR(5),
-\fBctdb\fR(7),
-\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Ronnie Sahlberg, Amitay Isaacs, Martin Schwenke
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/ctdb.1 b/net/samba47/files/man/ctdb.1
deleted file mode 100644
index 0cc973b6b65e..000000000000
--- a/net/samba47/files/man/ctdb.1
+++ /dev/null
@@ -1,1566 +0,0 @@
-'\" t
-.\" Title: ctdb
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "CTDB" "1" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ctdb \- CTDB management utility
-.SH "SYNOPSIS"
-.HP \w'\fBctdb\fR\ 'u
-\fBctdb\fR [\fIOPTION\fR...] {\fICOMMAND\fR} [\fICOMMAND\-ARGS\fR]
-.SH "DESCRIPTION"
-.PP
-ctdb is a utility to view and manage a CTDB cluster\&.
-.PP
-The following terms are used when referring to nodes in a cluster:
-.PP
-PNN
-.RS 4
-Physical Node Number\&. The physical node number is an integer that describes the node in the cluster\&. The first node has physical node number 0\&. in a cluster\&.
-.RE
-.PP
-PNN\-LIST
-.RS 4
-This is either a single PNN, a comma\-separate list of PNNs or "all"\&.
-.RE
-.PP
-Commands that reference a database use the following terms:
-.PP
-DB
-.RS 4
-This is either a database name, such as
-locking\&.tdb
-or a database ID such as "0x42fe72c5"\&.
-.RE
-.PP
-DB\-LIST
-.RS 4
-A space separated list of at least one
-\fIDB\fR\&.
-.RE
-.SH "OPTIONS"
-.PP
-\-n \fIPNN\fR
-.RS 4
-The node specified by PNN should be queried for the requested information\&. Default is to query the daemon running on the local host\&.
-.RE
-.PP
-\-Y
-.RS 4
-Produce output in machine readable form for easier parsing by scripts\&. This uses a field delimiter of \*(Aq:\*(Aq\&. Not all commands support this option\&.
-.RE
-.PP
-\-x \fISEPARATOR\fR
-.RS 4
-Use SEPARATOR to delimit fields in machine readable output\&. This implies \-Y\&.
-.RE
-.PP
-\-X
-.RS 4
-Produce output in machine readable form for easier parsing by scripts\&. This uses a field delimiter of \*(Aq|\*(Aq\&. Not all commands support this option\&.
-.sp
-This is equivalent to "\-x|" and avoids some shell quoting issues\&.
-.RE
-.PP
-\-t \fITIMEOUT\fR
-.RS 4
-Indicates that ctdb should wait up to TIMEOUT seconds for a response to most commands sent to the CTDB daemon\&. The default is 10 seconds\&.
-.RE
-.PP
-\-T \fITIMELIMIT\fR
-.RS 4
-Indicates that TIMELIMIT is the maximum run time (in seconds) for the ctdb command\&. When TIMELIMIT is exceeded the ctdb command will terminate with an error\&. The default is 120 seconds\&.
-.RE
-.PP
-\-? \-\-help
-.RS 4
-Print some help text to the screen\&.
-.RE
-.PP
-\-\-usage
-.RS 4
-Print useage information to the screen\&.
-.RE
-.PP
-\-d \-\-debug=\fIDEBUGLEVEL\fR
-.RS 4
-Change the debug level for the command\&. Default is NOTICE\&.
-.RE
-.PP
-\-\-socket=\fIFILENAME\fR
-.RS 4
-Specify that FILENAME is the name of the Unix domain socket to use when connecting to the local CTDB daemon\&. The default is
-/usr/local/var/run/ctdb/ctdbd\&.socket\&.
-.RE
-.SH "ADMINISTRATIVE COMMANDS"
-.PP
-These are commands used to monitor and administer a CTDB cluster\&.
-.SS "pnn"
-.PP
-This command displays the PNN of the current node\&.
-.SS "status"
-.PP
-This command shows the current status of all CTDB nodes based on information from the queried node\&.
-.PP
-Note: If the the queried node is INACTIVE then the status might not be current\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBNode status\fR
-.RS 4
-.PP
-This includes the number of physical nodes and the status of each node\&. See
-\fBctdb\fR(7)
-for information about node states\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBGeneration\fR
-.RS 4
-.PP
-The generation id is a number that indicates the current generation of a cluster instance\&. Each time a cluster goes through a reconfiguration or a recovery its generation id will be changed\&.
-.PP
-This number does not have any particular meaning other than to keep track of when a cluster has gone through a recovery\&. It is a random number that represents the current instance of a ctdb cluster and its databases\&. The CTDB daemon uses this number internally to be able to tell when commands to operate on the cluster and the databases was issued in a different generation of the cluster, to ensure that commands that operate on the databases will not survive across a cluster database recovery\&. After a recovery, all old outstanding commands will automatically become invalid\&.
-.PP
-Sometimes this number will be shown as "INVALID"\&. This only means that the ctdbd daemon has started but it has not yet merged with the cluster through a recovery\&. All nodes start with generation "INVALID" and are not assigned a real generation id until they have successfully been merged with a cluster through a recovery\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBVirtual Node Number (VNN) map\fR
-.RS 4
-.PP
-Consists of the number of virtual nodes and mapping from virtual node numbers to physical node numbers\&. Virtual nodes host CTDB databases\&. Only nodes that are participating in the VNN map can become lmaster or dmaster for database records\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBRecovery mode\fR
-.RS 4
-.PP
-This is the current recovery mode of the cluster\&. There are two possible modes:
-.PP
-NORMAL \- The cluster is fully operational\&.
-.PP
-RECOVERY \- The cluster databases have all been frozen, pausing all services while the cluster awaits a recovery process to complete\&. A recovery process should finish within seconds\&. If a cluster is stuck in the RECOVERY state this would indicate a cluster malfunction which needs to be investigated\&.
-.PP
-Once the recovery master detects an inconsistency, for example a node becomes disconnected/connected, the recovery daemon will trigger a cluster recovery process, where all databases are remerged across the cluster\&. When this process starts, the recovery master will first "freeze" all databases to prevent applications such as samba from accessing the databases and it will also mark the recovery mode as RECOVERY\&.
-.PP
-When the CTDB daemon starts up, it will start in RECOVERY mode\&. Once the node has been merged into a cluster and all databases have been recovered, the node mode will change into NORMAL mode and the databases will be "thawed", allowing samba to access the databases again\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBRecovery master\fR
-.RS 4
-.PP
-This is the cluster node that is currently designated as the recovery master\&. This node is responsible of monitoring the consistency of the cluster and to perform the actual recovery process when reqired\&.
-.PP
-Only one node at a time can be the designated recovery master\&. Which node is designated the recovery master is decided by an election process in the recovery daemons running on each node\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb status
-Number of nodes:4
-pnn:0 192\&.168\&.2\&.200 OK (THIS NODE)
-pnn:1 192\&.168\&.2\&.201 OK
-pnn:2 192\&.168\&.2\&.202 OK
-pnn:3 192\&.168\&.2\&.203 OK
-Generation:1362079228
-Size:4
-hash:0 lmaster:0
-hash:1 lmaster:1
-hash:2 lmaster:2
-hash:3 lmaster:3
-Recovery mode:NORMAL (0)
-Recovery master:0
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "nodestatus [\fIPNN\-LIST\fR]"
-.PP
-This command is similar to the
-\fBstatus\fR
-command\&. It displays the "node status" subset of output\&. The main differences are:
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-The exit code is the bitwise\-OR of the flags for each specified node, while
-\fBctdb status\fR
-exits with 0 if it was able to retrieve status for all nodes\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-\fBctdb status\fR
-provides status information for all nodes\&.
-\fBctdb nodestatus\fR
-defaults to providing status for only the current node\&. If PNN\-LIST is provided then status is given for the indicated node(s)\&.
-.RE
-.PP
-A common invocation in scripts is
-\fBctdb nodestatus all\fR
-to check whether all nodes in a cluster are healthy\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb nodestatus
-pnn:0 10\&.0\&.0\&.30 OK (THIS NODE)
-
-# ctdb nodestatus all
-Number of nodes:2
-pnn:0 10\&.0\&.0\&.30 OK (THIS NODE)
-pnn:1 10\&.0\&.0\&.31 OK
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "recmaster"
-.PP
-This command shows the pnn of the node which is currently the recmaster\&.
-.PP
-Note: If the the queried node is INACTIVE then the status might not be current\&.
-.SS "uptime"
-.PP
-This command shows the uptime for the ctdb daemon\&. When the last recovery or ip\-failover completed and how long it took\&. If the "duration" is shown as a negative number, this indicates that there is a recovery/failover in progress and it started that many seconds ago\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb uptime
-Current time of node : Thu Oct 29 10:38:54 2009
-Ctdbd start time : (000 16:54:28) Wed Oct 28 17:44:26 2009
-Time of last recovery/failover: (000 16:53:31) Wed Oct 28 17:45:23 2009
-Duration of last recovery/failover: 2\&.248552 seconds
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "listnodes"
-.PP
-This command shows lists the ip addresses of all the nodes in the cluster\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb listnodes
-192\&.168\&.2\&.200
-192\&.168\&.2\&.201
-192\&.168\&.2\&.202
-192\&.168\&.2\&.203
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "natgw {master|list|status}"
-.PP
-This command shows different aspects of NAT gateway status\&. For an overview of CTDB\*(Aqs NAT gateway functionality please see the
-NAT GATEWAY
-section in
-\fBctdb\fR(7)\&.
-.PP
-master
-.RS 4
-Show the PNN and private IP address of the current NAT gateway master node\&.
-.sp
-Example output:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-1 192\&.168\&.2\&.201
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.PP
-list
-.RS 4
-List the private IP addresses of nodes in the current NAT gateway group, annotating the master node\&.
-.sp
-Example output:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-192\&.168\&.2\&.200
-192\&.168\&.2\&.201 MASTER
-192\&.168\&.2\&.202
-192\&.168\&.2\&.203
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.PP
-status
-.RS 4
-List the nodes in the current NAT gateway group and their status\&.
-.sp
-Example output:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-pnn:0 192\&.168\&.2\&.200 UNHEALTHY (THIS NODE)
-pnn:1 192\&.168\&.2\&.201 OK
-pnn:2 192\&.168\&.2\&.202 OK
-pnn:3 192\&.168\&.2\&.203 OK
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "ping"
-.PP
-This command will "ping" specified CTDB nodes in the cluster to verify that they are running\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb ping
-response from 0 time=0\&.000054 sec (3 clients)
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "ifaces"
-.PP
-This command will display the list of network interfaces, which could host public addresses, along with their status\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb ifaces
-Interfaces on node 0
-name:eth5 link:up references:2
-name:eth4 link:down references:0
-name:eth3 link:up references:1
-name:eth2 link:up references:1
-
-# ctdb \-X ifaces
-|Name|LinkStatus|References|
-|eth5|1|2|
-|eth4|0|0|
-|eth3|1|1|
-|eth2|1|1|
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "ip"
-.PP
-This command will display the list of public addresses that are provided by the cluster and which physical node is currently serving this ip\&. By default this command will ONLY show those public addresses that are known to the node itself\&. To see the full list of all public ips across the cluster you must use "ctdb ip all"\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb ip \-v
-Public IPs on node 0
-172\&.31\&.91\&.82 node[1] active[] available[eth2,eth3] configured[eth2,eth3]
-172\&.31\&.91\&.83 node[0] active[eth3] available[eth2,eth3] configured[eth2,eth3]
-172\&.31\&.91\&.84 node[1] active[] available[eth2,eth3] configured[eth2,eth3]
-172\&.31\&.91\&.85 node[0] active[eth2] available[eth2,eth3] configured[eth2,eth3]
-172\&.31\&.92\&.82 node[1] active[] available[eth5] configured[eth4,eth5]
-172\&.31\&.92\&.83 node[0] active[eth5] available[eth5] configured[eth4,eth5]
-172\&.31\&.92\&.84 node[1] active[] available[eth5] configured[eth4,eth5]
-172\&.31\&.92\&.85 node[0] active[eth5] available[eth5] configured[eth4,eth5]
-
-# ctdb \-X ip \-v
-|Public IP|Node|ActiveInterface|AvailableInterfaces|ConfiguredInterfaces|
-|172\&.31\&.91\&.82|1||eth2,eth3|eth2,eth3|
-|172\&.31\&.91\&.83|0|eth3|eth2,eth3|eth2,eth3|
-|172\&.31\&.91\&.84|1||eth2,eth3|eth2,eth3|
-|172\&.31\&.91\&.85|0|eth2|eth2,eth3|eth2,eth3|
-|172\&.31\&.92\&.82|1||eth5|eth4,eth5|
-|172\&.31\&.92\&.83|0|eth5|eth5|eth4,eth5|
-|172\&.31\&.92\&.84|1||eth5|eth4,eth5|
-|172\&.31\&.92\&.85|0|eth5|eth5|eth4,eth5|
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "ipinfo \fIIP\fR"
-.PP
-This command will display details about the specified public addresses\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb ipinfo 172\&.31\&.92\&.85
-Public IP[172\&.31\&.92\&.85] info on node 0
-IP:172\&.31\&.92\&.85
-CurrentNode:0
-NumInterfaces:2
-Interface[1]: Name:eth4 Link:down References:0
-Interface[2]: Name:eth5 Link:up References:2 (active)
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "event run|status|script list|script enable|script disable"
-.PP
-This command is used to control event daemon and to inspect status of various events\&.
-.PP
-run \fIEVENT\fR \fITIMEOUT\fR [\fIARGUMENTS\fR]
-.RS 4
-This command can be used to manually run specified EVENT with optional ARGUMENTS\&. The event will be allowed to run a maximum of TIMEOUT seconds\&. If TIMEOUT is 0, then there is no time limit for running the event\&.
-.RE
-.PP
-status [\fIEVENT\fR] [lastrun|lastpass|lastfail]
-.RS 4
-This command displays the last execution status of the specified EVENT\&. If no event is specified, then the status of last executed monitor event will be displayed\&.
-.sp
-To see the last successful execution of the event, lastpass can be specified\&. Similarly lastfail can be specified to see the last unsuccessful execution of the event\&. The optional lastrun can be specified to query the last execution of the event\&.
-.sp
-The command will terminate with the exit status corresponding to the overall status of event that is displayed\&. If lastpass is specified, then the command will always terminate with 0\&. If lastfail is specified then the command will always terminate with non\-zero exit status\&. If lastrun is specified, then the command will terminate with 0 or not depending on if the last execution of the event was successful or not\&.
-.sp
-The output is the list of event scripts executed\&. Each line shows the name, status, duration and start time for each script\&.
-.sp
-Example output:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-00\&.ctdb OK 0\&.014 Sat Dec 17 19:39:11 2016
-01\&.reclock OK 0\&.013 Sat Dec 17 19:39:11 2016
-05\&.system OK 0\&.029 Sat Dec 17 19:39:11 2016
-06\&.nfs OK 0\&.014 Sat Dec 17 19:39:11 2016
-10\&.external DISABLED
-10\&.interface OK 0\&.037 Sat Dec 17 19:39:11 2016
-11\&.natgw OK 0\&.011 Sat Dec 17 19:39:11 2016
-11\&.routing OK 0\&.007 Sat Dec 17 19:39:11 2016
-13\&.per_ip_routing OK 0\&.007 Sat Dec 17 19:39:11 2016
-20\&.multipathd OK 0\&.007 Sat Dec 17 19:39:11 2016
-31\&.clamd OK 0\&.007 Sat Dec 17 19:39:11 2016
-40\&.vsftpd OK 0\&.013 Sat Dec 17 19:39:11 2016
-41\&.httpd OK 0\&.018 Sat Dec 17 19:39:11 2016
-49\&.winbind OK 0\&.023 Sat Dec 17 19:39:11 2016
-50\&.samba OK 0\&.100 Sat Dec 17 19:39:12 2016
-60\&.nfs OK 0\&.376 Sat Dec 17 19:39:12 2016
-70\&.iscsi OK 0\&.009 Sat Dec 17 19:39:12 2016
-91\&.lvs OK 0\&.007 Sat Dec 17 19:39:12 2016
-99\&.timeout OK 0\&.007 Sat Dec 17 19:39:12 2016
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.PP
-script list
-.RS 4
-List the available event scripts\&.
-.sp
-Example output:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-00\&.ctdb
-01\&.reclock
-05\&.system
-06\&.nfs
-10\&.external DISABLED
-10\&.interface
-11\&.natgw
-11\&.routing
-13\&.per_ip_routing
-20\&.multipathd
-31\&.clamd
-40\&.vsftpd
-41\&.httpd
-49\&.winbind
-50\&.samba
-60\&.nfs
-70\&.iscsi
-91\&.lvs
-99\&.timeout
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.PP
-script enable \fISCRIPT\fR
-.RS 4
-Enable the specified event SCRIPT\&. Only enabled scripts will be executed when running any event\&.
-.RE
-.PP
-script disable \fISCRIPT\fR
-.RS 4
-Disable the specified event SCRIPT\&. This will prevent the script from executing when running any event\&.
-.RE
-.SS "scriptstatus"
-.PP
-This command displays which event scripts where run in the previous monitoring cycle and the result of each script\&. If a script failed with an error, causing the node to become unhealthy, the output from that script is also shown\&.
-.PP
-This command is deprecated\&. It\*(Aqs provided for backward compatibility\&. In place of
-\fBctdb scriptstatus\fR, use
-\fBctdb event status\fR\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb scriptstatus
-00\&.ctdb OK 0\&.011 Sat Dec 17 19:40:46 2016
-01\&.reclock OK 0\&.010 Sat Dec 17 19:40:46 2016
-05\&.system OK 0\&.030 Sat Dec 17 19:40:46 2016
-06\&.nfs OK 0\&.014 Sat Dec 17 19:40:46 2016
-10\&.external DISABLED
-10\&.interface OK 0\&.041 Sat Dec 17 19:40:46 2016
-11\&.natgw OK 0\&.008 Sat Dec 17 19:40:46 2016
-11\&.routing OK 0\&.007 Sat Dec 17 19:40:46 2016
-13\&.per_ip_routing OK 0\&.007 Sat Dec 17 19:40:46 2016
-20\&.multipathd OK 0\&.007 Sat Dec 17 19:40:46 2016
-31\&.clamd OK 0\&.007 Sat Dec 17 19:40:46 2016
-40\&.vsftpd OK 0\&.013 Sat Dec 17 19:40:46 2016
-41\&.httpd OK 0\&.015 Sat Dec 17 19:40:46 2016
-49\&.winbind OK 0\&.022 Sat Dec 17 19:40:46 2016
-50\&.samba ERROR 0\&.077 Sat Dec 17 19:40:46 2016
- OUTPUT: ERROR: samba tcp port 445 is not responding
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "listvars"
-.PP
-List all tuneable variables, except the values of the obsolete tunables like VacuumMinInterval\&. The obsolete tunables can be retrieved only explicitly with the "ctdb getvar" command\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb listvars
-SeqnumInterval = 1000
-ControlTimeout = 60
-TraverseTimeout = 20
-KeepaliveInterval = 5
-KeepaliveLimit = 5
-RecoverTimeout = 120
-RecoverInterval = 1
-ElectionTimeout = 3
-TakeoverTimeout = 9
-MonitorInterval = 15
-TickleUpdateInterval = 20
-EventScriptTimeout = 30
-MonitorTimeoutCount = 20
-RecoveryGracePeriod = 120
-RecoveryBanPeriod = 300
-DatabaseHashSize = 100001
-DatabaseMaxDead = 5
-RerecoveryTimeout = 10
-EnableBans = 1
-NoIPFailback = 0
-DisableIPFailover = 0
-VerboseMemoryNames = 0
-RecdPingTimeout = 60
-RecdFailCount = 10
-LogLatencyMs = 0
-RecLockLatencyMs = 1000
-RecoveryDropAllIPs = 120
-VacuumInterval = 10
-VacuumMaxRunTime = 120
-RepackLimit = 10000
-VacuumLimit = 5000
-VacuumFastPathCount = 60
-MaxQueueDropMsg = 1000000
-AllowUnhealthyDBRead = 0
-StatHistoryInterval = 1
-DeferredAttachTO = 120
-AllowClientDBAttach = 1
-RecoverPDBBySeqNum = 1
-DeferredRebalanceOnNodeAdd = 300
-FetchCollapse = 1
-HopcountMakeSticky = 50
-StickyDuration = 600
-StickyPindown = 200
-NoIPTakeover = 0
-DBRecordCountWarn = 100000
-DBRecordSizeWarn = 10000000
-DBSizeWarn = 100000000
-PullDBPreallocation = 10485760
-NoIPHostOnAllDisabled = 0
-TDBMutexEnabled = 1
-LockProcessesPerDB = 200
-RecBufferSizeLimit = 1000000
-QueueBufferSize = 1024
-IPAllocAlgorithm = 2
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "getvar \fINAME\fR"
-.PP
-Get the runtime value of a tuneable variable\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb getvar MonitorInterval
-MonitorInterval = 15
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "setvar \fINAME\fR \fIVALUE\fR"
-.PP
-Set the runtime value of a tuneable variable\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb setvar MonitorInterval 20
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "lvs {master|list|status}"
-.PP
-This command shows different aspects of LVS status\&. For an overview of CTDB\*(Aqs LVS functionality please see the
-LVS
-section in
-\fBctdb\fR(7)\&.
-.PP
-master
-.RS 4
-Shows the PNN of the current LVS master node\&.
-.sp
-Example output:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-2
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.PP
-list
-.RS 4
-Lists the currently usable LVS nodes\&.
-.sp
-Example output:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-2 10\&.0\&.0\&.13
-3 10\&.0\&.0\&.14
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.PP
-status
-.RS 4
-List the nodes in the current LVS group and their status\&.
-.sp
-Example output:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-pnn:0 10\&.0\&.0\&.11 UNHEALTHY (THIS NODE)
-pnn:1 10\&.0\&.0\&.12 UNHEALTHY
-pnn:2 10\&.0\&.0\&.13 OK
-pnn:3 10\&.0\&.0\&.14 OK
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "getcapabilities"
-.PP
-This command shows the capabilities of the current node\&. See the
-CAPABILITIES
-section in
-\fBctdb\fR(7)
-for more details\&.
-.PP
-Example output:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-RECMASTER: YES
-LMASTER: YES
-
-.fi
-.if n \{\
-.RE
-.\}
-.SS "statistics"
-.PP
-Collect statistics from the CTDB daemon about how many calls it has served\&. Information about various fields in statistics can be found in
-\fBctdb-statistics\fR(7)\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb statistics
-CTDB version 1
-Current time of statistics : Tue Mar 8 15:18:51 2016
-Statistics collected since : (003 21:31:32) Fri Mar 4 17:47:19 2016
- num_clients 9
- frozen 0
- recovering 0
- num_recoveries 2
- client_packets_sent 8170534
- client_packets_recv 7166132
- node_packets_sent 16549998
- node_packets_recv 5244418
- keepalive_packets_sent 201969
- keepalive_packets_recv 201969
- node
- req_call 26
- reply_call 0
- req_dmaster 9
- reply_dmaster 12
- reply_error 0
- req_message 1339231
- req_control 8177506
- reply_control 6831284
- client
- req_call 15
- req_message 334809
- req_control 6831308
- timeouts
- call 0
- control 0
- traverse 0
- locks
- num_calls 8
- num_current 0
- num_pending 0
- num_failed 0
- total_calls 15
- pending_calls 0
- childwrite_calls 0
- pending_childwrite_calls 0
- memory_used 394879
- max_hop_count 1
- total_ro_delegations 0
- total_ro_revokes 0
- hop_count_buckets: 8 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0
- lock_buckets: 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0
- locks_latency MIN/AVG/MAX 0\&.010005/0\&.010418/0\&.011010 sec out of 8
- reclock_ctdbd MIN/AVG/MAX 0\&.002538/0\&.002538/0\&.002538 sec out of 1
- reclock_recd MIN/AVG/MAX 0\&.000000/0\&.000000/0\&.000000 sec out of 0
- call_latency MIN/AVG/MAX 0\&.000044/0\&.002142/0\&.011702 sec out of 15
- childwrite_latency MIN/AVG/MAX 0\&.000000/0\&.000000/0\&.000000 sec out of 0
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "statisticsreset"
-.PP
-This command is used to clear all statistics counters in a node\&.
-.PP
-Example: ctdb statisticsreset
-.SS "dbstatistics \fIDB\fR"
-.PP
-Display statistics about the database DB\&. Information about various fields in dbstatistics can be found in
-\fBctdb-statistics\fR(7)\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb dbstatistics locking\&.tdb
-DB Statistics: locking\&.tdb
- ro_delegations 0
- ro_revokes 0
- locks
- total 14356
- failed 0
- current 0
- pending 0
- hop_count_buckets: 28087 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0
- lock_buckets: 0 14188 38 76 32 19 3 0 0 0 0 0 0 0 0 0
- locks_latency MIN/AVG/MAX 0\&.001066/0\&.012686/4\&.202292 sec out of 14356
- vacuum_latency MIN/AVG/MAX 0\&.000472/0\&.002207/15\&.243570 sec out of 224530
- Num Hot Keys: 1
- Count:8 Key:ff5bd7cb3ee3822edc1f0000000000000000000000000000
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "getreclock"
-.PP
-Show details of the recovery lock, if any\&.
-.PP
-Example output:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- /clusterfs/\&.ctdb/recovery\&.lock
-
-.fi
-.if n \{\
-.RE
-.\}
-.SS "getdebug"
-.PP
-Get the current debug level for the node\&. the debug level controls what information is written to the log file\&.
-.PP
-The debug levels are mapped to the corresponding syslog levels\&. When a debug level is set, only those messages at that level and higher levels will be printed\&.
-.PP
-The list of debug levels from highest to lowest are :
-.PP
-ERROR WARNING NOTICE INFO DEBUG
-.SS "setdebug \fIDEBUGLEVEL\fR"
-.PP
-Set the debug level of a node\&. This controls what information will be logged\&.
-.PP
-The debuglevel is one of ERROR WARNING NOTICE INFO DEBUG
-.SS "getpid"
-.PP
-This command will return the process id of the ctdb daemon\&.
-.SS "disable"
-.PP
-This command is used to administratively disable a node in the cluster\&. A disabled node will still participate in the cluster and host clustered TDB records but its public ip address has been taken over by a different node and it no longer hosts any services\&.
-.SS "enable"
-.PP
-Re\-enable a node that has been administratively disabled\&.
-.SS "stop"
-.PP
-This command is used to administratively STOP a node in the cluster\&. A STOPPED node is connected to the cluster but will not host any public ip addresse, nor does it participate in the VNNMAP\&. The difference between a DISABLED node and a STOPPED node is that a STOPPED node does not host any parts of the database which means that a recovery is required to stop/continue nodes\&.
-.SS "continue"
-.PP
-Re\-start a node that has been administratively stopped\&.
-.SS "addip \fIIPADDR\fR/\fImask\fR \fIIFACE\fR"
-.PP
-This command is used to add a new public ip to a node during runtime\&. It should be followed by a
-\fBctdb ipreallocate\fR\&. This allows public addresses to be added to a cluster without having to restart the ctdb daemons\&.
-.PP
-Note that this only updates the runtime instance of ctdb\&. Any changes will be lost next time ctdb is restarted and the public addresses file is re\-read\&. If you want this change to be permanent you must also update the public addresses file manually\&.
-.SS "delip \fIIPADDR\fR"
-.PP
-This command flags IPADDR for deletion from a node at runtime\&. It should be followed by a
-\fBctdb ipreallocate\fR\&. If IPADDR is currently hosted by the node it is being removed from, this ensures that the IP will first be failed over to another node, if possible, and that it is then actually removed\&.
-.PP
-Note that this only updates the runtime instance of CTDB\&. Any changes will be lost next time CTDB is restarted and the public addresses file is re\-read\&. If you want this change to be permanent you must also update the public addresses file manually\&.
-.SS "moveip \fIIPADDR\fR \fIPNN\fR"
-.PP
-This command can be used to manually fail a public ip address to a specific node\&.
-.PP
-In order to manually override the "automatic" distribution of public ip addresses that ctdb normally provides, this command only works when you have changed the tunables for the daemon to:
-.PP
-IPAllocAlgorithm != 0
-.PP
-NoIPFailback = 1
-.SS "shutdown"
-.PP
-This command will shutdown a specific CTDB daemon\&.
-.SS "setlmasterrole on|off"
-.PP
-This command is used ot enable/disable the LMASTER capability for a node at runtime\&. This capability determines whether or not a node can be used as an LMASTER for records in the database\&. A node that does not have the LMASTER capability will not show up in the vnnmap\&.
-.PP
-Nodes will by default have this capability, but it can be stripped off nodes by the setting in the sysconfig file or by using this command\&.
-.PP
-Once this setting has been enabled/disabled, you need to perform a recovery for it to take effect\&.
-.PP
-See also "ctdb getcapabilities"
-.SS "setrecmasterrole on|off"
-.PP
-This command is used ot enable/disable the RECMASTER capability for a node at runtime\&. This capability determines whether or not a node can be used as an RECMASTER for the cluster\&. A node that does not have the RECMASTER capability can not win a recmaster election\&. A node that already is the recmaster for the cluster when the capability is stripped off the node will remain the recmaster until the next cluster election\&.
-.PP
-Nodes will by default have this capability, but it can be stripped off nodes by the setting in the sysconfig file or by using this command\&.
-.PP
-See also "ctdb getcapabilities"
-.SS "reloadnodes"
-.PP
-This command is used when adding new nodes, or removing existing nodes from an existing cluster\&.
-.PP
-Procedure to add nodes:
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 1.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 1." 4.2
-.\}
-To expand an existing cluster, first ensure with
-\fBctdb status\fR
-that all nodes are up and running and that they are all healthy\&. Do not try to expand a cluster unless it is completely healthy!
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 2.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 2." 4.2
-.\}
-On all nodes, edit
-/usr/local/etc/ctdb/nodes
-and
-\fIadd the new nodes at the end of this file\fR\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 3.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 3." 4.2
-.\}
-Verify that all the nodes have identical
-/usr/local/etc/ctdb/nodes
-files after adding the new nodes\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 4.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 4." 4.2
-.\}
-Run
-\fBctdb reloadnodes\fR
-to force all nodes to reload the nodes file\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 5.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 5." 4.2
-.\}
-Use
-\fBctdb status\fR
-on all nodes and verify that they now show the additional nodes\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 6.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 6." 4.2
-.\}
-Install and configure the new node and bring it online\&.
-.RE
-.PP
-Procedure to remove nodes:
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 1.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 1." 4.2
-.\}
-To remove nodes from an existing cluster, first ensure with
-\fBctdb status\fR
-that all nodes, except the node to be deleted, are up and running and that they are all healthy\&. Do not try to remove nodes from a cluster unless the cluster is completely healthy!
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 2.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 2." 4.2
-.\}
-Shutdown and power off the node to be removed\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 3.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 3." 4.2
-.\}
-On all other nodes, edit the
-/usr/local/etc/ctdb/nodes
-file and
-\fIcomment out\fR
-the nodes to be removed\&.
-\fIDo not delete the lines for the deleted nodes\fR, just comment them out by adding a \*(Aq#\*(Aq at the beginning of the lines\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 4.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 4." 4.2
-.\}
-Run
-\fBctdb reloadnodes\fR
-to force all nodes to reload the nodes file\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 5.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 5." 4.2
-.\}
-Use
-\fBctdb status\fR
-on all nodes and verify that the deleted nodes are no longer listed\&.
-.RE
-.SS "reloadips [\fIPNN\-LIST\fR]"
-.PP
-This command reloads the public addresses configuration file on the specified nodes\&. When it completes addresses will be reconfigured and reassigned across the cluster as necessary\&.
-.PP
-This command is currently unable to make changes to the netmask or interfaces associated with existing addresses\&. Such changes must be made in 2 steps by deleting addresses in question and re\-adding then\&. Unfortunately this will disrupt connections to the changed addresses\&.
-.SS "getdbmap"
-.PP
-This command lists all clustered TDB databases that the CTDB daemon has attached to\&. Some databases are flagged as PERSISTENT, this means that the database stores data persistently and the data will remain across reboots\&. One example of such a database is secrets\&.tdb where information about how the cluster was joined to the domain is stored\&. Some database are flagged as REPLICATED, this means that the data in that database is replicated across all the nodes\&. But the data will not remain across reboots\&. This type of database is used by CTDB to store it\*(Aqs internal state\&.
-.PP
-If a PERSISTENT database is not in a healthy state the database is flagged as UNHEALTHY\&. If there\*(Aqs at least one completely healthy node running in the cluster, it\*(Aqs possible that the content is restored by a recovery run automaticly\&. Otherwise an administrator needs to analyze the problem\&.
-.PP
-See also "ctdb getdbstatus", "ctdb backupdb", "ctdb restoredb", "ctdb dumpbackup", "ctdb wipedb", "ctdb setvar AllowUnhealthyDBRead 1" and (if samba or tdb\-utils are installed) "tdbtool check"\&.
-.PP
-Most databases are not persistent and only store the state information that the currently running samba daemons need\&. These databases are always wiped when ctdb/samba starts and when a node is rebooted\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb getdbmap
-Number of databases:10
-dbid:0x435d3410 name:notify\&.tdb path:/usr/local/var/lib/ctdb/notify\&.tdb\&.0
-dbid:0x42fe72c5 name:locking\&.tdb path:/usr/local/var/lib/ctdb/locking\&.tdb\&.0
-dbid:0x1421fb78 name:brlock\&.tdb path:/usr/local/var/lib/ctdb/brlock\&.tdb\&.0
-dbid:0x17055d90 name:connections\&.tdb path:/usr/local/var/lib/ctdb/connections\&.tdb\&.0
-dbid:0xc0bdde6a name:sessionid\&.tdb path:/usr/local/var/lib/ctdb/sessionid\&.tdb\&.0
-dbid:0x122224da name:test\&.tdb path:/usr/local/var/lib/ctdb/test\&.tdb\&.0
-dbid:0x2672a57f name:idmap2\&.tdb path:/usr/local/var/lib/ctdb/persistent/idmap2\&.tdb\&.0 PERSISTENT
-dbid:0xb775fff6 name:secrets\&.tdb path:/usr/local/var/lib/ctdb/persistent/secrets\&.tdb\&.0 PERSISTENT
-dbid:0xe98e08b6 name:group_mapping\&.tdb path:/usr/local/var/lib/ctdb/persistent/group_mapping\&.tdb\&.0 PERSISTENT
-dbid:0x7bbbd26c name:passdb\&.tdb path:/usr/local/var/lib/ctdb/persistent/passdb\&.tdb\&.0 PERSISTENT
-
-# ctdb getdbmap # example for unhealthy database
-Number of databases:1
-dbid:0xb775fff6 name:secrets\&.tdb path:/usr/local/var/lib/ctdb/persistent/secrets\&.tdb\&.0 PERSISTENT UNHEALTHY
-
-# ctdb \-X getdbmap
-|ID|Name|Path|Persistent|Unhealthy|
-|0x7bbbd26c|passdb\&.tdb|/usr/local/var/lib/ctdb/persistent/passdb\&.tdb\&.0|1|0|
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "backupdb \fIDB\fR \fIFILE\fR"
-.PP
-Copy the contents of database DB to FILE\&. FILE can later be read back using
-\fBrestoredb\fR\&. This is mainly useful for backing up persistent databases such as
-secrets\&.tdb
-and similar\&.
-.SS "restoredb \fIFILE\fR [\fIDB\fR]"
-.PP
-This command restores a persistent database that was previously backed up using backupdb\&. By default the data will be restored back into the same database as it was created from\&. By specifying dbname you can restore the data into a different database\&.
-.SS "setdbreadonly \fIDB\fR"
-.PP
-This command will enable the read\-only record support for a database\&. This is an experimental feature to improve performance for contended records primarily in locking\&.tdb and brlock\&.tdb\&. When enabling this feature you must set it on all nodes in the cluster\&.
-.SS "setdbsticky \fIDB\fR"
-.PP
-This command will enable the sticky record support for the specified database\&. This is an experimental feature to improve performance for contended records primarily in locking\&.tdb and brlock\&.tdb\&. When enabling this feature you must set it on all nodes in the cluster\&.
-.SH "INTERNAL COMMANDS"
-.PP
-Internal commands are used by CTDB\*(Aqs scripts and are not required for managing a CTDB cluster\&. Their parameters and behaviour are subject to change\&.
-.SS "gettickles \fIIPADDR\fR"
-.PP
-Show TCP connections that are registered with CTDB to be "tickled" if there is a failover\&.
-.SS "gratarp \fIIPADDR\fR \fIINTERFACE\fR"
-.PP
-Send out a gratuitous ARP for the specified interface through the specified interface\&. This command is mainly used by the ctdb eventscripts\&.
-.SS "pdelete \fIDB\fR \fIKEY\fR"
-.PP
-Delete KEY from DB\&.
-.SS "pfetch \fIDB\fR \fIKEY\fR"
-.PP
-Print the value associated with KEY in DB\&.
-.SS "pstore \fIDB\fR \fIKEY\fR \fIFILE\fR"
-.PP
-Store KEY in DB with contents of FILE as the associated value\&.
-.SS "ptrans \fIDB\fR [\fIFILE\fR]"
-.PP
-Read a list of key\-value pairs, one per line from FILE, and store them in DB using a single transaction\&. An empty value is equivalent to deleting the given key\&.
-.PP
-The key and value should be separated by spaces or tabs\&. Each key/value should be a printable string enclosed in double\-quotes\&.
-.SS "runstate [setup|first_recovery|startup|running]"
-.PP
-Print the runstate of the specified node\&. Runstates are used to serialise important state transitions in CTDB, particularly during startup\&.
-.PP
-If one or more optional runstate arguments are specified then the node must be in one of these runstates for the command to succeed\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb runstate
-RUNNING
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "setifacelink \fIIFACE\fR up|down"
-.PP
-Set the internal state of network interface IFACE\&. This is typically used in the
-10\&.interface
-script in the "monitor" event\&.
-.PP
-Example: ctdb setifacelink eth0 up
-.SS "tickle"
-.PP
-Read a list of TCP connections, one per line, from standard input and send a TCP tickle to the source host for each connection\&. A connection is specified as:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- \fISRC\-IPADDR\fR:\fISRC\-PORT\fR \fIDST\-IPADDR\fR:\fIDST\-PORT\fR
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-A single connection can be specified on the command\-line rather than on standard input\&.
-.PP
-A TCP tickle is a TCP ACK packet with an invalid sequence and acknowledge number and will when received by the source host result in it sending an immediate correct ACK back to the other end\&.
-.PP
-TCP tickles are useful to "tickle" clients after a IP failover has occurred since this will make the client immediately recognize the TCP connection has been disrupted and that the client will need to reestablish\&. This greatly speeds up the time it takes for a client to detect and reestablish after an IP failover in the ctdb cluster\&.
-.SS "version"
-.PP
-Display the CTDB version\&.
-.SH "DEBUGGING COMMANDS"
-.PP
-These commands are primarily used for CTDB development and testing and should not be used for normal administration\&.
-.SS "OPTIONS"
-.PP
-\-\-print\-emptyrecords
-.RS 4
-This enables printing of empty records when dumping databases with the catdb, cattbd and dumpdbbackup commands\&. Records with empty data segment are considered deleted by ctdb and cleaned by the vacuuming mechanism, so this switch can come in handy for debugging the vacuuming behaviour\&.
-.RE
-.PP
-\-\-print\-datasize
-.RS 4
-This lets database dumps (catdb, cattdb, dumpdbbackup) print the size of the record data instead of dumping the data contents\&.
-.RE
-.PP
-\-\-print\-lmaster
-.RS 4
-This lets catdb print the lmaster for each record\&.
-.RE
-.PP
-\-\-print\-hash
-.RS 4
-This lets database dumps (catdb, cattdb, dumpdbbackup) print the hash for each record\&.
-.RE
-.PP
-\-\-print\-recordflags
-.RS 4
-This lets catdb and dumpdbbackup print the record flags for each record\&. Note that cattdb always prints the flags\&.
-.RE
-.SS "process\-exists \fIPID\fR \fI[SRVID]\fR"
-.PP
-This command checks if a specific process exists on the CTDB host\&. This is mainly used by Samba to check if remote instances of samba are still running or not\&. When the optional SRVID argument is specified, the command check if a specific process exists on the CTDB host and has registered for specified SRVID\&.
-.SS "getdbstatus \fIDB\fR"
-.PP
-This command displays more details about a database\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb getdbstatus test\&.tdb\&.0
-dbid: 0x122224da
-name: test\&.tdb
-path: /usr/local/var/lib/ctdb/test\&.tdb\&.0
-PERSISTENT: no
-HEALTH: OK
-
-# ctdb getdbstatus registry\&.tdb # with a corrupted TDB
-dbid: 0xf2a58948
-name: registry\&.tdb
-path: /usr/local/var/lib/ctdb/persistent/registry\&.tdb\&.0
-PERSISTENT: yes
-HEALTH: NO\-HEALTHY\-NODES \- ERROR \- Backup of corrupted TDB in \*(Aq/usr/local/var/lib/ctdb/persistent/registry\&.tdb\&.0\&.corrupted\&.20091208091949\&.0Z\*(Aq
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "catdb \fIDB\fR"
-.PP
-Print a dump of the clustered TDB database DB\&.
-.SS "cattdb \fIDB\fR"
-.PP
-Print a dump of the contents of the local TDB database DB\&.
-.SS "dumpdbbackup \fIFILE\fR"
-.PP
-Print a dump of the contents from database backup FILE, similar to
-\fBcatdb\fR\&.
-.SS "wipedb \fIDB\fR"
-.PP
-Remove all contents of database DB\&.
-.SS "recover"
-.PP
-This command will trigger the recovery daemon to do a cluster recovery\&.
-.SS "ipreallocate, sync"
-.PP
-This command will force the recovery master to perform a full ip reallocation process and redistribute all ip addresses\&. This is useful to "reset" the allocations back to its default state if they have been changed using the "moveip" command\&. While a "recover" will also perform this reallocation, a recovery is much more hevyweight since it will also rebuild all the databases\&.
-.SS "getmonmode"
-.PP
-This command prints the monitoring mode of a node\&. This indicates when CTDB is monitoring services on the node\&. The monitoring mode is either ENABLED or DISABLED\&.
-.SS "attach \fIDBNAME\fR [persistent|replicated]"
-.PP
-Create a new CTDB database called DBNAME and attach to it on all nodes\&.
-.SS "detach \fIDB\-LIST\fR"
-.PP
-Detach specified non\-persistent database(s) from the cluster\&. This command will disconnect specified database(s) on all nodes in the cluster\&. This command should only be used when none of the specified database(s) are in use\&.
-.PP
-All nodes should be active and tunable AllowClientDBAccess should be disabled on all nodes before detaching databases\&.
-.SS "dumpmemory"
-.PP
-This is a debugging command\&. This command will make the ctdb daemon to write a fill memory allocation map to standard output\&.
-.SS "rddumpmemory"
-.PP
-This is a debugging command\&. This command will dump the talloc memory allocation tree for the recovery daemon to standard output\&.
-.SS "ban \fIBANTIME\fR"
-.PP
-Administratively ban a node for BANTIME seconds\&. The node will be unbanned after BANTIME seconds have elapsed\&.
-.PP
-A banned node does not participate in the cluster\&. It does not host any records for the clustered TDB and does not host any public IP addresses\&.
-.PP
-Nodes are automatically banned if they misbehave\&. For example, a node may be banned if it causes too many cluster recoveries\&.
-.PP
-To administratively exclude a node from a cluster use the
-\fBstop\fR
-command\&.
-.SS "unban"
-.PP
-This command is used to unban a node that has either been administratively banned using the ban command or has been automatically banned\&.
-.SS "check_srvids \fISRVID\fR \&.\&.\&."
-.PP
-This command checks whether a set of srvid message ports are registered on the node or not\&. The command takes a list of values to check\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-# ctdb check_srvids 1 2 3 14765
-Server id 0:1 does not exist
-Server id 0:2 does not exist
-Server id 0:3 does not exist
-Server id 0:14765 exists
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SH "SEE ALSO"
-.PP
-\fBctdbd\fR(1),
-\fBonnode\fR(1),
-\fBctdb\fR(7),
-\fBctdb-statistics\fR(7),
-\fBctdb-tunables\fR(7),
-\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Ronnie Sahlberg, Amitay Isaacs, Martin Schwenke
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/ctdb.7 b/net/samba47/files/man/ctdb.7
deleted file mode 100644
index 4b763ee50e11..000000000000
--- a/net/samba47/files/man/ctdb.7
+++ /dev/null
@@ -1,783 +0,0 @@
-'\" t
-.\" Title: ctdb
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "CTDB" "7" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ctdb \- Clustered TDB
-.SH "DESCRIPTION"
-.PP
-CTDB is a clustered database component in clustered Samba that provides a high\-availability load\-sharing CIFS server cluster\&.
-.PP
-The main functions of CTDB are:
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-Provide a clustered version of the TDB database with automatic rebuild/recovery of the databases upon node failures\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-Monitor nodes in the cluster and services running on each node\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-Manage a pool of public IP addresses that are used to provide services to clients\&. Alternatively, CTDB can be used with LVS\&.
-.RE
-.PP
-Combined with a cluster filesystem CTDB provides a full high\-availablity (HA) environment for services such as clustered Samba, NFS and other services\&.
-.SH "ANATOMY OF A CTDB CLUSTER"
-.PP
-A CTDB cluster is a collection of nodes with 2 or more network interfaces\&. All nodes provide network (usually file/NAS) services to clients\&. Data served by file services is stored on shared storage (usually a cluster filesystem) that is accessible by all nodes\&.
-.PP
-CTDB provides an "all active" cluster, where services are load balanced across all nodes\&.
-.SH "RECOVERY LOCK"
-.PP
-CTDB uses a
-\fIrecovery lock\fR
-to avoid a
-\fIsplit brain\fR, where a cluster becomes partitioned and each partition attempts to operate independently\&. Issues that can result from a split brain include file data corruption, because file locking metadata may not be tracked correctly\&.
-.PP
-CTDB uses a
-\fIcluster leader and follower\fR
-model of cluster management\&. All nodes in a cluster elect one node to be the leader\&. The leader node coordinates privileged operations such as database recovery and IP address failover\&. CTDB refers to the leader node as the
-\fIrecovery master\fR\&. This node takes and holds the recovery lock to assert its privileged role in the cluster\&.
-.PP
-By default, the recovery lock is implemented using a file (specified by
-\fICTDB_RECOVERY_LOCK\fR) residing in shared storage (usually) on a cluster filesystem\&. To support a recovery lock the cluster filesystem must support lock coherence\&. See
-\fBping_pong\fR(1)
-for more details\&.
-.PP
-The recovery lock can also be implemented using an arbitrary cluster mutex call\-out by using an exclamation point (\*(Aq!\*(Aq) as the first character of
-\fICTDB_RECOVERY_LOCK\fR\&. For example, a value of
-\fB!/usr/local/bin/myhelper recovery\fR
-would run the given helper with the specified arguments\&. See the source code relating to cluster mutexes for clues about writing call\-outs\&.
-.PP
-If a cluster becomes partitioned (for example, due to a communication failure) and a different recovery master is elected by the nodes in each partition, then only one of these recovery masters will be able to take the recovery lock\&. The recovery master in the "losing" partition will not be able to take the recovery lock and will be excluded from the cluster\&. The nodes in the "losing" partition will elect each node in turn as their recovery master so eventually all the nodes in that partition will be excluded\&.
-.PP
-CTDB does sanity checks to ensure that the recovery lock is held as expected\&.
-.PP
-CTDB can run without a recovery lock but this is not recommended as there will be no protection from split brains\&.
-.SH "PRIVATE VS PUBLIC ADDRESSES"
-.PP
-Each node in a CTDB cluster has multiple IP addresses assigned to it:
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-A single private IP address that is used for communication between nodes\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-One or more public IP addresses that are used to provide NAS or other services\&.
-.RE
-.sp
-.SS "Private address"
-.PP
-Each node is configured with a unique, permanently assigned private address\&. This address is configured by the operating system\&. This address uniquely identifies a physical node in the cluster and is the address that CTDB daemons will use to communicate with the CTDB daemons on other nodes\&.
-.PP
-Private addresses are listed in the file specified by the
-\fICTDB_NODES\fR
-configuration variable (see
-\fBctdbd.conf\fR(5), default
-/usr/local/etc/ctdb/nodes)\&. This file contains the list of private addresses for all nodes in the cluster, one per line\&. This file must be the same on all nodes in the cluster\&.
-.PP
-Private addresses should not be used by clients to connect to services provided by the cluster\&.
-.PP
-It is strongly recommended that the private addresses are configured on a private network that is separate from client networks\&. This is because the CTDB protocol is both unauthenticated and unencrypted\&. If clients share the private network then steps need to be taken to stop injection of packets to relevant ports on the private addresses\&. It is also likely that CTDB protocol traffic between nodes could leak sensitive information if it can be intercepted\&.
-.PP
-Example
-/usr/local/etc/ctdb/nodes
-for a four node cluster:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-192\&.168\&.1\&.1
-192\&.168\&.1\&.2
-192\&.168\&.1\&.3
-192\&.168\&.1\&.4
-
-.fi
-.if n \{\
-.RE
-.\}
-.SS "Public addresses"
-.PP
-Public addresses are used to provide services to clients\&. Public addresses are not configured at the operating system level and are not permanently associated with a particular node\&. Instead, they are managed by CTDB and are assigned to interfaces on physical nodes at runtime\&.
-.PP
-The CTDB cluster will assign/reassign these public addresses across the available healthy nodes in the cluster\&. When one node fails, its public addresses will be taken over by one or more other nodes in the cluster\&. This ensures that services provided by all public addresses are always available to clients, as long as there are nodes available capable of hosting this address\&.
-.PP
-The public address configuration is stored in a file on each node specified by the
-\fICTDB_PUBLIC_ADDRESSES\fR
-configuration variable (see
-\fBctdbd.conf\fR(5), recommended
-/usr/local/etc/ctdb/public_addresses)\&. This file contains a list of the public addresses that the node is capable of hosting, one per line\&. Each entry also contains the netmask and the interface to which the address should be assigned\&.
-.PP
-Example
-/usr/local/etc/ctdb/public_addresses
-for a node that can host 4 public addresses, on 2 different interfaces:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-10\&.1\&.1\&.1/24 eth1
-10\&.1\&.1\&.2/24 eth1
-10\&.1\&.2\&.1/24 eth2
-10\&.1\&.2\&.2/24 eth2
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-In many cases the public addresses file will be the same on all nodes\&. However, it is possible to use different public address configurations on different nodes\&.
-.PP
-Example: 4 nodes partitioned into two subgroups:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-Node 0:/usr/local/etc/ctdb/public_addresses
- 10\&.1\&.1\&.1/24 eth1
- 10\&.1\&.1\&.2/24 eth1
-
-Node 1:/usr/local/etc/ctdb/public_addresses
- 10\&.1\&.1\&.1/24 eth1
- 10\&.1\&.1\&.2/24 eth1
-
-Node 2:/usr/local/etc/ctdb/public_addresses
- 10\&.1\&.2\&.1/24 eth2
- 10\&.1\&.2\&.2/24 eth2
-
-Node 3:/usr/local/etc/ctdb/public_addresses
- 10\&.1\&.2\&.1/24 eth2
- 10\&.1\&.2\&.2/24 eth2
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-In this example nodes 0 and 1 host two public addresses on the 10\&.1\&.1\&.x network while nodes 2 and 3 host two public addresses for the 10\&.1\&.2\&.x network\&.
-.PP
-Public address 10\&.1\&.1\&.1 can be hosted by either of nodes 0 or 1 and will be available to clients as long as at least one of these two nodes are available\&.
-.PP
-If both nodes 0 and 1 become unavailable then public address 10\&.1\&.1\&.1 also becomes unavailable\&. 10\&.1\&.1\&.1 can not be failed over to nodes 2 or 3 since these nodes do not have this public address configured\&.
-.PP
-The
-\fBctdb ip\fR
-command can be used to view the current assignment of public addresses to physical nodes\&.
-.SH "NODE STATUS"
-.PP
-The current status of each node in the cluster can be viewed by the
-\fBctdb status\fR
-command\&.
-.PP
-A node can be in one of the following states:
-.PP
-OK
-.RS 4
-This node is healthy and fully functional\&. It hosts public addresses to provide services\&.
-.RE
-.PP
-DISCONNECTED
-.RS 4
-This node is not reachable by other nodes via the private network\&. It is not currently participating in the cluster\&. It
-\fIdoes not\fR
-host public addresses to provide services\&. It might be shut down\&.
-.RE
-.PP
-DISABLED
-.RS 4
-This node has been administratively disabled\&. This node is partially functional and participates in the cluster\&. However, it
-\fIdoes not\fR
-host public addresses to provide services\&.
-.RE
-.PP
-UNHEALTHY
-.RS 4
-A service provided by this node has failed a health check and should be investigated\&. This node is partially functional and participates in the cluster\&. However, it
-\fIdoes not\fR
-host public addresses to provide services\&. Unhealthy nodes should be investigated and may require an administrative action to rectify\&.
-.RE
-.PP
-BANNED
-.RS 4
-CTDB is not behaving as designed on this node\&. For example, it may have failed too many recovery attempts\&. Such nodes are banned from participating in the cluster for a configurable time period before they attempt to rejoin the cluster\&. A banned node
-\fIdoes not\fR
-host public addresses to provide services\&. All banned nodes should be investigated and may require an administrative action to rectify\&.
-.RE
-.PP
-STOPPED
-.RS 4
-This node has been administratively exclude from the cluster\&. A stopped node does no participate in the cluster and
-\fIdoes not\fR
-host public addresses to provide services\&. This state can be used while performing maintenance on a node\&.
-.RE
-.PP
-PARTIALLYONLINE
-.RS 4
-A node that is partially online participates in a cluster like a healthy (OK) node\&. Some interfaces to serve public addresses are down, but at least one interface is up\&. See also
-\fBctdb ifaces\fR\&.
-.RE
-.SH "CAPABILITIES"
-.PP
-Cluster nodes can have several different capabilities enabled\&. These are listed below\&.
-.PP
-RECMASTER
-.RS 4
-Indicates that a node can become the CTDB cluster recovery master\&. The current recovery master is decided via an election held by all active nodes with this capability\&.
-.sp
-Default is YES\&.
-.RE
-.PP
-LMASTER
-.RS 4
-Indicates that a node can be the location master (LMASTER) for database records\&. The LMASTER always knows which node has the latest copy of a record in a volatile database\&.
-.sp
-Default is YES\&.
-.RE
-.PP
-The RECMASTER and LMASTER capabilities can be disabled when CTDB is used to create a cluster spanning across WAN links\&. In this case CTDB acts as a WAN accelerator\&.
-.SH "LVS"
-.PP
-LVS is a mode where CTDB presents one single IP address for the entire cluster\&. This is an alternative to using public IP addresses and round\-robin DNS to loadbalance clients across the cluster\&.
-.PP
-This is similar to using a layer\-4 loadbalancing switch but with some restrictions\&.
-.PP
-One extra LVS public address is assigned on the public network to each LVS group\&. Each LVS group is a set of nodes in the cluster that presents the same LVS address public address to the outside world\&. Normally there would only be one LVS group spanning an entire cluster, but in situations where one CTDB cluster spans multiple physical sites it might be useful to have one LVS group for each site\&. There can be multiple LVS groups in a cluster but each node can only be member of one LVS group\&.
-.PP
-Client access to the cluster is load\-balanced across the HEALTHY nodes in an LVS group\&. If no HEALTHY nodes exists then all nodes in the group are used, regardless of health status\&. CTDB will, however never load\-balance LVS traffic to nodes that are BANNED, STOPPED, DISABLED or DISCONNECTED\&. The
-\fBctdb lvs\fR
-command is used to show which nodes are currently load\-balanced across\&.
-.PP
-In each LVS group, one of the nodes is selected by CTDB to be the LVS master\&. This node receives all traffic from clients coming in to the LVS public address and multiplexes it across the internal network to one of the nodes that LVS is using\&. When responding to the client, that node will send the data back directly to the client, bypassing the LVS master node\&. The command
-\fBctdb lvsmaster\fR
-will show which node is the current LVS master\&.
-.PP
-The path used for a client I/O is:
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 1.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 1." 4.2
-.\}
-Client sends request packet to LVSMASTER\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 2.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 2." 4.2
-.\}
-LVSMASTER passes the request on to one node across the internal network\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 3.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 3." 4.2
-.\}
-Selected node processes the request\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04' 4.\h'+01'\c
-.\}
-.el \{\
-.sp -1
-.IP " 4." 4.2
-.\}
-Node responds back to client\&.
-.RE
-.PP
-This means that all incoming traffic to the cluster will pass through one physical node, which limits scalability\&. You can send more data to the LVS address that one physical node can multiplex\&. This means that you should not use LVS if your I/O pattern is write\-intensive since you will be limited in the available network bandwidth that node can handle\&. LVS does work wery well for read\-intensive workloads where only smallish READ requests are going through the LVSMASTER bottleneck and the majority of the traffic volume (the data in the read replies) goes straight from the processing node back to the clients\&. For read\-intensive i/o patterns you can achieve very high throughput rates in this mode\&.
-.PP
-Note: you can use LVS and public addresses at the same time\&.
-.PP
-If you use LVS, you must have a permanent address configured for the public interface on each node\&. This address must be routable and the cluster nodes must be configured so that all traffic back to client hosts are routed through this interface\&. This is also required in order to allow samba/winbind on the node to talk to the domain controller\&. This LVS IP address can not be used to initiate outgoing traffic\&.
-.PP
-Make sure that the domain controller and the clients are reachable from a node
-\fIbefore\fR
-you enable LVS\&. Also ensure that outgoing traffic to these hosts is routed out through the configured public interface\&.
-.SS "Configuration"
-.PP
-To activate LVS on a CTDB node you must specify the
-\fICTDB_LVS_PUBLIC_IFACE\fR,
-\fICTDB_LVS_PUBLIC_IP\fR
-and
-\fICTDB_LVS_NODES\fR
-configuration variables\&.
-\fICTDB_LVS_NODES\fR
-specifies a file containing the private address of all nodes in the current node\*(Aqs LVS group\&.
-.PP
-Example:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-CTDB_LVS_PUBLIC_IFACE=eth1
-CTDB_LVS_PUBLIC_IP=10\&.1\&.1\&.237
-CTDB_LVS_NODES=/usr/local/etc/ctdb/lvs_nodes
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Example
-/usr/local/etc/ctdb/lvs_nodes:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-192\&.168\&.1\&.2
-192\&.168\&.1\&.3
-192\&.168\&.1\&.4
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Normally any node in an LVS group can act as the LVS master\&. Nodes that are highly loaded due to other demands maybe flagged with the "slave\-only" option in the
-\fICTDB_LVS_NODES\fR
-file to limit the LVS functionality of those nodes\&.
-.PP
-LVS nodes file that excludes 192\&.168\&.1\&.4 from being the LVS master node:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-192\&.168\&.1\&.2
-192\&.168\&.1\&.3
-192\&.168\&.1\&.4 slave\-only
-
-.fi
-.if n \{\
-.RE
-.\}
-.SH "TRACKING AND RESETTING TCP CONNECTIONS"
-.PP
-CTDB tracks TCP connections from clients to public IP addresses, on known ports\&. When an IP address moves from one node to another, all existing TCP connections to that IP address are reset\&. The node taking over this IP address will also send gratuitous ARPs (for IPv4, or neighbour advertisement, for IPv6)\&. This allows clients to reconnect quickly, rather than waiting for TCP timeouts, which can be very long\&.
-.PP
-It is important that established TCP connections do not survive a release and take of a public IP address on the same node\&. Such connections can get out of sync with sequence and ACK numbers, potentially causing a disruptive ACK storm\&.
-.SH "NAT GATEWAY"
-.PP
-NAT gateway (NATGW) is an optional feature that is used to configure fallback routing for nodes\&. This allows cluster nodes to connect to external services (e\&.g\&. DNS, AD, NIS and LDAP) when they do not host any public addresses (e\&.g\&. when they are unhealthy)\&.
-.PP
-This also applies to node startup because CTDB marks nodes as UNHEALTHY until they have passed a "monitor" event\&. In this context, NAT gateway helps to avoid a "chicken and egg" situation where a node needs to access an external service to become healthy\&.
-.PP
-Another way of solving this type of problem is to assign an extra static IP address to a public interface on every node\&. This is simpler but it uses an extra IP address per node, while NAT gateway generally uses only one extra IP address\&.
-.SS "Operation"
-.PP
-One extra NATGW public address is assigned on the public network to each NATGW group\&. Each NATGW group is a set of nodes in the cluster that shares the same NATGW address to talk to the outside world\&. Normally there would only be one NATGW group spanning an entire cluster, but in situations where one CTDB cluster spans multiple physical sites it might be useful to have one NATGW group for each site\&.
-.PP
-There can be multiple NATGW groups in a cluster but each node can only be member of one NATGW group\&.
-.PP
-In each NATGW group, one of the nodes is selected by CTDB to be the NATGW master and the other nodes are consider to be NATGW slaves\&. NATGW slaves establish a fallback default route to the NATGW master via the private network\&. When a NATGW slave hosts no public IP addresses then it will use this route for outbound connections\&. The NATGW master hosts the NATGW public IP address and routes outgoing connections from slave nodes via this IP address\&. It also establishes a fallback default route\&.
-.SS "Configuration"
-.PP
-NATGW is usually configured similar to the following example configuration:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-CTDB_NATGW_NODES=/usr/local/etc/ctdb/natgw_nodes
-CTDB_NATGW_PRIVATE_NETWORK=192\&.168\&.1\&.0/24
-CTDB_NATGW_PUBLIC_IP=10\&.0\&.0\&.227/24
-CTDB_NATGW_PUBLIC_IFACE=eth0
-CTDB_NATGW_DEFAULT_GATEWAY=10\&.0\&.0\&.1
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Normally any node in a NATGW group can act as the NATGW master\&. Some configurations may have special nodes that lack connectivity to a public network\&. In such cases, those nodes can be flagged with the "slave\-only" option in the
-\fICTDB_NATGW_NODES\fR
-file to limit the NATGW functionality of those nodes\&.
-.PP
-See the
-NAT GATEWAY
-section in
-\fBctdbd.conf\fR(5)
-for more details of NATGW configuration\&.
-.SS "Implementation details"
-.PP
-When the NATGW functionality is used, one of the nodes is selected to act as a NAT gateway for all the other nodes in the group when they need to communicate with the external services\&. The NATGW master is selected to be a node that is most likely to have usable networks\&.
-.PP
-The NATGW master hosts the NATGW public IP address
-\fICTDB_NATGW_PUBLIC_IP\fR
-on the configured public interfaces
-\fICTDB_NATGW_PUBLIC_IFACE\fR
-and acts as a router, masquerading outgoing connections from slave nodes via this IP address\&. If
-\fICTDB_NATGW_DEFAULT_GATEWAY\fR
-is set then it also establishes a fallback default route to the configured this gateway with a metric of 10\&. A metric 10 route is used so it can co\-exist with other default routes that may be available\&.
-.PP
-A NATGW slave establishes its fallback default route to the NATGW master via the private network
-\fICTDB_NATGW_PRIVATE_NETWORK\fRwith a metric of 10\&. This route is used for outbound connections when no other default route is available because the node hosts no public addresses\&. A metric 10 routes is used so that it can co\-exist with other default routes that may be available when the node is hosting public addresses\&.
-.PP
-\fICTDB_NATGW_STATIC_ROUTES\fR
-can be used to have NATGW create more specific routes instead of just default routes\&.
-.PP
-This is implemented in the
-11\&.natgw
-eventscript\&. Please see the eventscript file and the
-NAT GATEWAY
-section in
-\fBctdbd.conf\fR(5)
-for more details\&.
-.SH "POLICY ROUTING"
-.PP
-Policy routing is an optional CTDB feature to support complex network topologies\&. Public addresses may be spread across several different networks (or VLANs) and it may not be possible to route packets from these public addresses via the system\*(Aqs default route\&. Therefore, CTDB has support for policy routing via the
-13\&.per_ip_routing
-eventscript\&. This allows routing to be specified for packets sourced from each public address\&. The routes are added and removed as CTDB moves public addresses between nodes\&.
-.SS "Configuration variables"
-.PP
-There are 4 configuration variables related to policy routing:
-\fICTDB_PER_IP_ROUTING_CONF\fR,
-\fICTDB_PER_IP_ROUTING_RULE_PREF\fR,
-\fICTDB_PER_IP_ROUTING_TABLE_ID_LOW\fR,
-\fICTDB_PER_IP_ROUTING_TABLE_ID_HIGH\fR\&. See the
-POLICY ROUTING
-section in
-\fBctdbd.conf\fR(5)
-for more details\&.
-.SS "Configuration"
-.PP
-The format of each line of
-\fICTDB_PER_IP_ROUTING_CONF\fR
-is:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-<public_address> <network> [ <gateway> ]
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Leading whitespace is ignored and arbitrary whitespace may be used as a separator\&. Lines that have a "public address" item that doesn\*(Aqt match an actual public address are ignored\&. This means that comment lines can be added using a leading character such as \*(Aq#\*(Aq, since this will never match an IP address\&.
-.PP
-A line without a gateway indicates a link local route\&.
-.PP
-For example, consider the configuration line:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- 192\&.168\&.1\&.99 192\&.168\&.1\&.1/24
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-If the corresponding public_addresses line is:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- 192\&.168\&.1\&.99/24 eth2,eth3
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-\fICTDB_PER_IP_ROUTING_RULE_PREF\fR
-is 100, and CTDB adds the address to eth2 then the following routing information is added:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ip rule add from 192\&.168\&.1\&.99 pref 100 table ctdb\&.192\&.168\&.1\&.99
- ip route add 192\&.168\&.1\&.0/24 dev eth2 table ctdb\&.192\&.168\&.1\&.99
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-This causes traffic from 192\&.168\&.1\&.1 to 192\&.168\&.1\&.0/24 go via eth2\&.
-.PP
-The
-\fBip rule\fR
-command will show (something like \- depending on other public addresses and other routes on the system):
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- 0: from all lookup local
- 100: from 192\&.168\&.1\&.99 lookup ctdb\&.192\&.168\&.1\&.99
- 32766: from all lookup main
- 32767: from all lookup default
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-\fBip route show table ctdb\&.192\&.168\&.1\&.99\fR
-will show:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- 192\&.168\&.1\&.0/24 dev eth2 scope link
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-The usual use for a line containing a gateway is to add a default route corresponding to a particular source address\&. Consider this line of configuration:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- 192\&.168\&.1\&.99 0\&.0\&.0\&.0/0 192\&.168\&.1\&.1
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-In the situation described above this will cause an extra routing command to be executed:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ip route add 0\&.0\&.0\&.0/0 via 192\&.168\&.1\&.1 dev eth2 table ctdb\&.192\&.168\&.1\&.99
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-With both configuration lines,
-\fBip route show table ctdb\&.192\&.168\&.1\&.99\fR
-will show:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- 192\&.168\&.1\&.0/24 dev eth2 scope link
- default via 192\&.168\&.1\&.1 dev eth2
-
-.fi
-.if n \{\
-.RE
-.\}
-.SS "Sample configuration"
-.PP
-Here is a more complete example configuration\&.
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-/usr/local/etc/ctdb/public_addresses:
-
- 192\&.168\&.1\&.98 eth2,eth3
- 192\&.168\&.1\&.99 eth2,eth3
-
-/usr/local/etc/ctdb/policy_routing:
-
- 192\&.168\&.1\&.98 192\&.168\&.1\&.0/24
- 192\&.168\&.1\&.98 192\&.168\&.200\&.0/24 192\&.168\&.1\&.254
- 192\&.168\&.1\&.98 0\&.0\&.0\&.0/0 192\&.168\&.1\&.1
- 192\&.168\&.1\&.99 192\&.168\&.1\&.0/24
- 192\&.168\&.1\&.99 192\&.168\&.200\&.0/24 192\&.168\&.1\&.254
- 192\&.168\&.1\&.99 0\&.0\&.0\&.0/0 192\&.168\&.1\&.1
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-The routes local packets as expected, the default route is as previously discussed, but packets to 192\&.168\&.200\&.0/24 are routed via the alternate gateway 192\&.168\&.1\&.254\&.
-.SH "NOTIFICATION SCRIPT"
-.PP
-When certain state changes occur in CTDB, it can be configured to perform arbitrary actions via a notification script\&. For example, sending SNMP traps or emails when a node becomes unhealthy or similar\&.
-.PP
-This is activated by setting the
-\fICTDB_NOTIFY_SCRIPT\fR
-configuration variable\&. The specified script must be executable\&.
-.PP
-Use of the provided
-/usr/local/etc/ctdb/notify\&.sh
-script is recommended\&. It executes files in
-/usr/local/etc/ctdb/notify\&.d/\&.
-.PP
-CTDB currently generates notifications after CTDB changes to these states:
-.RS 4
-init
-.RE
-.RS 4
-setup
-.RE
-.RS 4
-startup
-.RE
-.RS 4
-healthy
-.RE
-.RS 4
-unhealthy
-.RE
-.SH "DEBUG LEVELS"
-.PP
-Valid values for DEBUGLEVEL are:
-.RS 4
-ERR
-.RE
-.RS 4
-WARNING
-.RE
-.RS 4
-NOTICE
-.RE
-.RS 4
-INFO
-.RE
-.RS 4
-DEBUG
-.RE
-.SH "REMOTE CLUSTER NODES"
-.PP
-It is possible to have a CTDB cluster that spans across a WAN link\&. For example where you have a CTDB cluster in your datacentre but you also want to have one additional CTDB node located at a remote branch site\&. This is similar to how a WAN accelerator works but with the difference that while a WAN\-accelerator often acts as a Proxy or a MitM, in the ctdb remote cluster node configuration the Samba instance at the remote site IS the genuine server, not a proxy and not a MitM, and thus provides 100% correct CIFS semantics to clients\&.
-.PP
-See the cluster as one single multihomed samba server where one of the NICs (the remote node) is very far away\&.
-.PP
-NOTE: This does require that the cluster filesystem you use can cope with WAN\-link latencies\&. Not all cluster filesystems can handle WAN\-link latencies! Whether this will provide very good WAN\-accelerator performance or it will perform very poorly depends entirely on how optimized your cluster filesystem is in handling high latency for data and metadata operations\&.
-.PP
-To activate a node as being a remote cluster node you need to set the following two parameters in /etc/sysconfig/ctdb for the remote node:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-CTDB_CAPABILITY_LMASTER=no
-CTDB_CAPABILITY_RECMASTER=no
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Verify with the command "ctdb getcapabilities" that that node no longer has the recmaster or the lmaster capabilities\&.
-.SH "SEE ALSO"
-.PP
-\fBctdb\fR(1),
-\fBctdbd\fR(1),
-\fBctdbd_wrapper\fR(1),
-\fBctdb_diagnostics\fR(1),
-\fBltdbtool\fR(1),
-\fBonnode\fR(1),
-\fBping_pong\fR(1),
-\fBctdbd.conf\fR(5),
-\fBctdb-statistics\fR(7),
-\fBctdb-tunables\fR(7),
-\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Ronnie Sahlberg, Amitay Isaacs, Martin Schwenke
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/ctdb_diagnostics.1 b/net/samba47/files/man/ctdb_diagnostics.1
deleted file mode 100644
index e87057ece6c1..000000000000
--- a/net/samba47/files/man/ctdb_diagnostics.1
+++ /dev/null
@@ -1,79 +0,0 @@
-'\" t
-.\" Title: ctdb_diagnostics
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "CTDB_DIAGNOSTICS" "1" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ctdb_diagnostics \- dump diagnostic information about CTDB/Samba installation
-.SH "SYNOPSIS"
-.HP \w'\fBctdb_diagnostics\fR\ 'u
-\fBctdb_diagnostics\fR [OPTIONS] \&.\&.\&.
-.SH "DESCRIPTION"
-.PP
-ctdb_diagnostics is used to dump diagnostic information about a clustered Samba installation\&. This includes configuration files, output of relevant commands and logs\&. This information can be used to check the correctness of the configuration and to diagnose problems\&.
-.SH "OPTIONS"
-.PP
-\-n <nodes>
-.RS 4
-Comma separated list of nodes to operate on
-.RE
-.PP
-\-c
-.RS 4
-Ignore comment lines (starting with \*(Aq#\*(Aq) in file comparisons
-.RE
-.PP
-\-w
-.RS 4
-Ignore whitespace in file comparisons
-.RE
-.PP
-\-\-no\-ads
-.RS 4
-Do not use commands that assume an Active Directory Server
-.RE
-.SH "SEE ALSO"
-.PP
-\fBctdb\fR(1),
-\fBctdb\fR(7),
-\m[blue]\fB\%https://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Martijn van Brummelen
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2015 Martijn van Brummelen
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/ctdb_mutex_ceph_rados_helper.7 b/net/samba47/files/man/ctdb_mutex_ceph_rados_helper.7
deleted file mode 100644
index 90cf4c9e034e..000000000000
--- a/net/samba47/files/man/ctdb_mutex_ceph_rados_helper.7
+++ /dev/null
@@ -1,79 +0,0 @@
-'\" t
-.\" Title: Ceph RADOS Mutex
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "CEPH RADOS MUTEX" "7" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ctdb_mutex_ceph_rados_helper \- Ceph RADOS cluster mutex helper
-.SH "DESCRIPTION"
-.PP
-ctdb_mutex_ceph_rados_helper can be used as a recovery lock provider for CTDB\&. When configured, split brain avoidance during CTDB recovery will be handled using locks against an object located in a Ceph RADOS pool\&. To enable this functionality, include the following line in your CTDB config file:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-CTDB_RECOVERY_LOCK="!ctdb_mutex_ceph_rados_helper [Cluster] [User] [Pool] [Object]"
-
-Cluster: Ceph cluster name (e\&.g\&. ceph)
-User: Ceph cluster user name (e\&.g\&. client\&.admin)
-Pool: Ceph RADOS pool name
-Object: Ceph RADOS object name
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-The Ceph cluster
-\fICluster\fR
-must be up and running, with a configuration, and keyring file for
-\fIUser\fR
-located in a librados default search path (e\&.g\&. /etc/ceph/)\&.
-\fIPool\fR
-must already exist\&.
-.SH "SEE ALSO"
-.PP
-\fBctdb\fR(7),
-\fBctdbd\fR(1),
-\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by David Disseldorp
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2016 David Disseldorp
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/ctdbd.1 b/net/samba47/files/man/ctdbd.1
deleted file mode 100644
index e9146d847b60..000000000000
--- a/net/samba47/files/man/ctdbd.1
+++ /dev/null
@@ -1,358 +0,0 @@
-'\" t
-.\" Title: ctdbd
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "CTDBD" "1" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ctdbd \- The CTDB cluster daemon
-.SH "SYNOPSIS"
-.HP \w'\fBctdbd\fR\ 'u
-\fBctdbd\fR [\fIOPTION\fR...]
-.SH "DESCRIPTION"
-.PP
-ctdbd is the main CTDB daemon\&.
-.PP
-Note that ctdbd is not usually invoked directly\&. It is invoked via
-\fBctdbd_wrapper\fR(1)
-or via the initscript\&.
-.PP
-See
-\fBctdb\fR(7)
-for an overview of CTDB\&.
-.SH "GENERAL OPTIONS"
-.PP
-\-d, \-\-debug=\fIDEBUGLEVEL\fR
-.RS 4
-This option sets the debug level to DEBUGLEVEL, which controls what will be written by the logging subsystem\&. The default is 2\&.
-.sp
-See the
-DEBUG LEVELS
-section in
-\fBctdb\fR(7)
-for more information\&.
-.RE
-.PP
-\-\-dbdir=\fIDIRECTORY\fR
-.RS 4
-DIRECTORY on local storage where ctdbd keeps a local copy of TDB databases\&. This directory is local for each node and should not be stored on the shared cluster filesystem\&.
-.sp
-Defaults to
-/usr/local/var/lib/ctdb\&.
-.RE
-.PP
-\-\-dbdir\-persistent=\fIDIRECTORY\fR
-.RS 4
-DIRECTORY on local storage where ctdbd keeps a local copy of persistent TDB databases\&. This directory is local for each node and should not be stored on the shared cluster filesystem\&.
-.sp
-Defaults to
-/usr/local/var/lib/ctdb/persistent\&.
-.RE
-.PP
-\-\-dbdir\-state=\fIDIRECTORY\fR
-.RS 4
-DIRECTORY on local storage where ctdbd keep internal state TDB files\&. This directory is local for each node and should not be stored on the shared cluster filesystem\&.
-.sp
-Defaults to
-/usr/local/var/lib/ctdb/state\&.
-.RE
-.PP
-\-\-event\-script\-dir=\fIDIRECTORY\fR
-.RS 4
-DIRECTORY where the CTDB event scripts are stored\&. See the
-EVENT SCRIPTS
-section in
-\fBctdb\fR(7)
-for more information\&.
-.sp
-Default is
-\fBCTDB_BASE\fR/events\&.d, so usually
-/usr/local/etc/ctdb/events\&.d, which is part of the CTDB installation\&.
-.RE
-.PP
-\-\-listen=\fIIPADDR\fR
-.RS 4
-IPADDR is the private IP address that ctdbd will bind to\&.
-.sp
-By default ctdbd will select the first address from the nodes list that in can bind to\&. See also
-\-\-nlist\&.
-.sp
-This option is only required when automatic address detection can not be used\&. This can be the case when running multiple ctdbd daemons/nodes on the same physical host (usually for testing), using InfiniBand for the private network or on Linux when sysctl net\&.ipv4\&.ip_nonlocal_bind=1\&.
-.RE
-.PP
-\-\-logging=\fISTRING\fR
-.RS 4
-STRING specifies where ctdbd will write its log\&. The default is file:/usr/local/var/log/log\&.ctdb\&.
-.sp
-Valid values are:
-.PP
-file:\fIFILENAME\fR
-.RS 4
-FILENAME where ctdbd will write its log\&. This is usually
-/usr/local/var/log/log\&.ctdb\&.
-.RE
-.PP
-syslog[:\fIMETHOD\fR]
-.RS 4
-CTDB will log to syslog\&. By default this will use the syslog(3) API\&.
-.sp
-Under heavy loads syslog(3) can block if the syslog daemon processes messages too slowly\&. This can cause CTDB to block when logging\&.
-.sp
-If METHOD is specified then it specifies an extension that causes logging to be done in a non\-blocking mode\&. Note that
-\fIthis may cause messages to be dropped\fR\&. METHOD must be one of:
-.PP
-nonblocking
-.RS 4
-CTDB will log to syslog via
-/dev/log
-in non\-blocking mode\&.
-.RE
-.PP
-udp
-.RS 4
-CTDB will log to syslog via UDP to localhost:514\&. The syslog daemon must be configured to listen on (at least) localhost:514\&. Most syslog daemons will log the messages with hostname "localhost" \- this is a limitation of the implementation, for compatibility with more syslog daemons\&.
-.RE
-.PP
-udp\-rfc5424
-.RS 4
-As with "udp" but messages are sent in RFC5424 format\&. This method will log the correct hostname but is not as widely implemented in syslog daemons\&.
-.RE
-.RE
-.RE
-.PP
-\-\-max\-persistent\-check\-errors=\fINUM\fR
-.RS 4
-NUM specifies the maximum number of health check failures allowed for persistent databases during startup\&.
-.sp
-The default value is 0\&. Setting this to non\-zero allows a node with unhealthy persistent databases to startup and join the cluster as long as there is another node with healthy persistent databases\&.
-.RE
-.PP
-\-\-nlist=\fIFILENAME\fR
-.RS 4
-FILENAME containing a list of the private IP addresses, one per line, for each node in the cluster\&. This file
-\fImust be the same on each node\fR
-in the cluster\&.
-.sp
-Default is
-\fBCTDB_BASE\fR/nodes, so usually
-/usr/local/etc/ctdb/nodes\&.
-.RE
-.PP
-\-\-no\-lmaster
-.RS 4
-This argument specifies that this node can NOT become an lmaster for records in the database\&. This means that it will never show up in the vnnmap\&. This feature is primarily used for making a cluster span across a WAN link and use CTDB as a WAN\-accelerator\&.
-.sp
-Please see the
-REMOTE CLUSTER NODES
-section in
-\fBctdb\fR(7)
-for more information\&.
-.RE
-.PP
-\-\-no\-recmaster
-.RS 4
-This argument specifies that this node can NOT become a recmaster for the database\&. This feature is primarily used for making a cluster span across a WAN link and use CTDB as a WAN\-accelerator\&.
-.sp
-Please see the
-REMOTE CLUSTER NODES
-section in
-\fBctdb\fR(7)
-for more information\&.
-.RE
-.PP
-\-\-notification\-script=\fIFILENAME\fR
-.RS 4
-FILENAME specifying a script to be invoked by ctdbd when certain state changes occur\&.
-.sp
-This file is usually
-/usr/local/etc/ctdb/notify\&.sh\&.
-.sp
-Please see the
-NOTIFICATION SCRIPT
-section in
-\fBctdb\fR(7)
-for more information\&.
-.RE
-.PP
-\-\-pidfile=\fIFILENAME\fR
-.RS 4
-FILENAME for file containing process ID of main CTDB daemon\&. This file is automatically created and removed by CTDB\&.
-.sp
-The default is to not create a PID file\&.
-.RE
-.PP
-\-\-public_addresses=\fIFILENAME\fR
-.RS 4
-FILENAME specifying a file containing the public IP addresses to use on the cluster when CTDB should use IP takeover\&. This file contains a list of IP addresses, netmasks and interfaces\&. CTDB will distribute these public IP addresses appropriately across the available nodes\&.
-.sp
-The IP addresses specified in this file can differ across nodes\&.
-.sp
-This is usually the file
-/usr/local/etc/ctdb/public_addresses
-.RE
-.PP
-\-\-public\-interface=\fIINTERFACE\fR
-.RS 4
-Default INTERFACE on which to attach public IP addresses\&.
-.sp
-When using public IP addresses, this is only required if interfaces are not explicitly specified in the public addresses file\&.
-.RE
-.PP
-\-\-reclock=\fILOCK\fR
-.RS 4
-LOCK specifies the cluster\-wide mutex used to detect and prevent a partitioned cluster (or "split brain")\&.
-.sp
-For information about the recovery lock please see the
-RECOVERY LOCK
-section in
-\fBctdb\fR(7)\&.
-.RE
-.PP
-\-\-start\-as\-disabled
-.RS 4
-This makes ctdbd start in the DISABLED state\&.
-.sp
-To allow the node to host public IP addresses and services, it must be manually enabled using the
-\fBctdb enable\fR
-command\&.
-.sp
-Please see the
-NODE STATES
-section in
-\fBctdb\fR(7)
-for more information about the DISABLED state\&.
-.RE
-.PP
-\-\-start\-as\-stopped
-.RS 4
-This makes ctdbd start in the STOPPED state\&.
-.sp
-To allow the node to take part in the cluster it must be manually continued with the the
-\fBctdb enable\fR
-command\&.
-.sp
-Please see the
-NODE STATES
-section in
-\fBctdb\fR(7)
-for more information about the STOPPED state\&.
-.RE
-.PP
-\-\-transport=tcp|infiniband
-.RS 4
-This option specifies which transport to use for ctdbd internode communications\&. The default is "tcp"\&.
-.sp
-The "infiniband" support is not regularly tested\&.
-.RE
-.PP
-\-?, \-\-help
-.RS 4
-Display a summary of options\&.
-.RE
-.SH "DEBUGGING OPTIONS"
-.PP
-\-i, \-\-interactive
-.RS 4
-Enable interactive mode\&. This will make ctdbd run in the foreground and not detach from the terminal\&. By default ctdbd will detach itself and run in the background as a daemon\&.
-.RE
-.PP
-\-\-nopublicipcheck
-.RS 4
-This option is used when testing with multiple local daemons on a single machine\&. It disables checks related to public IP addresses\&.
-.RE
-.PP
-\-\-nosetsched
-.RS 4
-This is a debugging option\&. This option is only used when debugging ctdbd\&.
-.sp
-Normally ctdbd will change its scheduler to run as a real\-time process\&. This is the default mode for a normal ctdbd operation to gurarantee that ctdbd always gets the CPU cycles that it needs\&.
-.sp
-This option is used to tell ctdbd to
-\fInot\fR
-run as a real\-time process and instead run ctdbd as a normal userspace process\&. This is useful for debugging and when you want to run ctdbd under valgrind or gdb\&. (You don\*(Aqt want to attach valgrind or gdb to a real\-time process\&.)
-.RE
-.PP
-\-\-socket=\fIFILENAME\fR
-.RS 4
-FILENAME specifies the name of the Unix domain socket that ctdbd will create\&. This socket is used by local clients to communicate with ctdbd\&.
-.sp
-The default is
-/usr/local/var/run/ctdb/ctdbd\&.socket\&. You only need to use this option if you plan to run multiple ctdbd daemons on the same physical host, usually for testing\&.
-.RE
-.PP
-\-\-script\-log\-level=\fIDEBUGLEVEL\fR
-.RS 4
-This option sets the debug level of event script output to DEBUGLEVEL\&. The default is ERR\&.
-.sp
-See the
-DEBUG LEVELS
-section in
-\fBctdb\fR(7)
-for more information\&.
-.RE
-.PP
-\-\-sloppy\-start
-.RS 4
-This is debugging option\&. This speeds up the initial recovery during startup at the expense of some consistency checking\&.
-\fIDon\*(Aqt use this option in production\fR\&.
-.RE
-.PP
-\-\-torture
-.RS 4
-This option is only used for development and testing of CTDB\&. It adds artificial errors and failures to the common codepaths in ctdbd to verify that ctdbd can recover correctly from failures\&.
-.sp
-\fIDo not use this option\fR
-unless you are developing and testing new functionality in CTDB\&.
-.RE
-.PP
-\-\-valgrinding
-.RS 4
-This is a debugging option\&. This option is only used when debugging ctdbd\&. This enables additional debugging capabilities and implies \-\-nosetsched\&.
-.RE
-.SH "SEE ALSO"
-.PP
-\fBctdb\fR(1),
-\fBctdbd_wrapper\fR(1),
-\fBonnode\fR(1),
-\fBctdb\fR(7),
-\fBctdb-tunables\fR(7),
-\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Ronnie Sahlberg, Amitay Isaacs, Martin Schwenke
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/ctdbd.conf.5 b/net/samba47/files/man/ctdbd.conf.5
deleted file mode 100644
index 5601a979bf2a..000000000000
--- a/net/samba47/files/man/ctdbd.conf.5
+++ /dev/null
@@ -1,1130 +0,0 @@
-'\" t
-.\" Title: ctdbd.conf
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "CTDBD\&.CONF" "5" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ctdbd.conf \- CTDB daemon configuration file
-.SH "DESCRIPTION"
-.PP
-This file contains CTDB configuration variables that are affect the operation of CTDB\&. The default location of this file is
-/usr/local/etc/ctdb/ctdbd\&.conf\&.
-.PP
-This file is a shell script (see
-\fBsh\fR(1)) but is usually limited to simple variable assignments and shell\-style comments\&.
-.PP
-CTDB configuration variables are grouped into several categories below\&.
-.PP
-Variables defined in this document can also be set in a distribution\-specific configuration file such as
-/etc/sysconfig/ctdb
-(Red Hat) or
-/etc/default/ctdb
-(Debian)\&. However, these files should be reserved for variables used by the initscript\&. A historical alternative is
-/usr/local/etc/ctdb/sysconfig/ctdb
-\- this is deprecated\&.
-.SH "INITSCRIPT CONFIGURATION"
-.PP
-Some options must be available to the initscript so they need to be set in the distribution\-specific initscript configuration, such as
-/etc/sysconfig/ctdb
-or
-/etc/default/ctdb\&.
-.PP
-CTDB_PIDFILE=\fIFILENAME\fR
-.RS 4
-FILENAME is the name of the file used to contain the process ID (PID) of the main CTDB daemon when it is running\&. This is passed from the initscript to
-\fBctdbd_wrapper\fR(1)\&.
-.sp
-Default is
-/usr/local/var/run/ctdb/ctdbd\&.pid\&. Corresponds to
-\fB\-\-pidfile\fR\&.
-.RE
-.SH "GLOBAL CONFIGURATION"
-.PP
-These options may be used in the initscripts, daemon and scripts\&.
-.PP
-CTDB_BASE=\fIDIRECTORY\fR
-.RS 4
-DIRECTORY containing CTDB scripts and configuration files\&.
-.RE
-.SH "DAEMON CONFIGURATION"
-.PP
-Variables in this section are processed by
-\fBctdbd_wrapper\fR(1)
-and are converted into command\-line arguments to
-\fBctdbd\fR(1)\&. Correspondence with
-\fBctdbd\fR(1)
-options is shown for each variable\&. The the documentation for the relevant options for more details\&.
-.PP
-Many of these variables are also used by event scripts\&.
-.PP
-CTDB_CAPABILITY_LMASTER=yes|no
-.RS 4
-Defaults to yes\&. Corresponds to
-\fB\-\-no\-lmaster\fR\&.
-.RE
-.PP
-CTDB_CAPABILITY_RECMASTER=yes|no
-.RS 4
-Defaults to yes\&. Corresponds to
-\fB\-\-no\-recmaster\fR\&.
-.RE
-.PP
-CTDB_DBDIR=\fIDIRECTORY\fR
-.RS 4
-Defaults to
-/usr/local/var/lib/ctdb\&.
-.sp
-Apart from a DIRECTORY, this can take a special value of the form
-\fBtmpfs\fR[:\fIOPTIONS\fR]\&. OPTIONS is a comma\-separated list of any permissible options to the tmpfs filesystem\&. The only pre\-specified default is
-\fBmode=700\fR, which can overridden by specifying
-\fBmode\fR
-in OPTIONS\&. It probably makes sense to specify a maximum
-\fBsize\fR\&.
-.sp
-Corresponds to
-\fB\-\-dbdir\fR\&.
-.RE
-.PP
-CTDB_DBDIR_PERSISTENT=\fIDIRECTORY\fR
-.RS 4
-Defaults to
-/usr/local/var/lib/ctdb/persistent\&.
-.sp
-Corresponds to
-\fB\-\-dbdir\-persistent\fR\&.
-.RE
-.PP
-CTDB_DBDIR_STATE=\fIDIRECTORY\fR
-.RS 4
-Defaults to
-/usr/local/var/lib/ctdb/state\&.
-.sp
-Corresponds to
-\fB\-\-dbdir\-state\fR\&.
-.RE
-.PP
-CTDB_DEBUGLEVEL=\fIDEBUGLEVEL\fR
-.RS 4
-Default is NOTICE\&. Corresponds to
-\fB\-d\fR
-or
-\fB\-\-debug\fR\&.
-.RE
-.PP
-CTDB_EVENT_SCRIPT_DIR=\fIDIRECTORY\fR
-.RS 4
-Default is
-\fICTDB_BASE\fR/events\&.d, so usually
-/usr/local/etc/ctdb/events\&.d\&. Corresponds to
-\fB\-\-event\-script\-dir\fR\&.
-.RE
-.PP
-CTDB_LOGGING=\fISTRING\fR
-.RS 4
-STRING specifies where ctdbd will write its log\&. The default is file:/usr/local/var/log/log\&.ctdb\&. Corresponds to
-\fB\-\-logging\fR\&.
-.sp
-Valid values are:
-.PP
-file:\fIFILENAME\fR
-.RS 4
-FILENAME where ctdbd will write its log\&. This is usually
-/usr/local/var/log/log\&.ctdb\&.
-.RE
-.PP
-syslog[:\fIMETHOD\fR]
-.RS 4
-CTDB will log to syslog\&. By default this will use the syslog(3) API\&.
-.sp
-If METHOD is specified then it specifies an extension that causes logging to be done in a non\-blocking fashion\&. This can be useful under heavy loads that might cause the syslog daemon to dequeue messages too slowly, which would otherwise cause CTDB to block when logging\&. METHOD must be one of:
-.PP
-nonblocking
-.RS 4
-CTDB will log to syslog via
-/dev/log
-in non\-blocking mode\&.
-.RE
-.PP
-udp
-.RS 4
-CTDB will log to syslog via UDP to localhost:514\&. The syslog daemon must be configured to listen on (at least) localhost:514\&. Most implementations will log the messages against hostname "localhost" \- this is a limit of the implementation for compatibility with more syslog daemon implementations\&.
-.RE
-.PP
-udp\-rfc5424
-.RS 4
-As with "udp" but messages are sent in RFC5424 format\&. This method will log the correct hostname but is not as widely implemented in syslog daemons\&.
-.RE
-.RE
-.RE
-.PP
-CTDB_NODES=\fIFILENAME\fR
-.RS 4
-Default is
-\fICTDB_BASE\fR/nodes, so usually
-/usr/local/etc/ctdb/nodes\&. Corresponds to
-\fB\-\-nlist\fR\&.
-.RE
-.PP
-CTDB_NOSETSCHED=yes|no
-.RS 4
-Defaults to no\&. Corresponds to
-\fB\-\-nosetsched\fR\&.
-.sp
-Usually CTDB runs with real\-time priority\&. If you are running CTDB on a platform that does not support real\-time priority, you can set this\&.
-.RE
-.PP
-CTDB_NOTIFY_SCRIPT=\fIFILENAME\fR
-.RS 4
-No default, usually
-/usr/local/etc/ctdb/notify\&.sh\&. Corresponds to
-\fB\-\-notification\-script\fR\&.
-.RE
-.PP
-CTDB_MAX_PERSISTENT_CHECK_ERRORS=\fINUM\fR
-.RS 4
-Default 0\&. Corresponds to
-\fB\-\-max\-persistent\-check\-errors\fR\&.
-.RE
-.PP
-CTDB_NODE_ADDRESS=\fIIPADDR\fR
-.RS 4
-IPADDR is the private IP address that ctdbd will bind to\&. Corresponds to
-\fB\-\-listen\fR\&.
-.sp
-By default ctdbd will select the first address from the nodes list that in can bind to\&. See also
-CTDB_NODES\&.
-.sp
-This option is only required when automatic address detection can not be used\&. This can be the case when running multiple ctdbd daemons/nodes on the same physical host (usually for testing), using InfiniBand for the private network or on Linux when sysctl net\&.ipv4\&.ip_nonlocal_bind=1\&.
-.RE
-.PP
-CTDB_PUBLIC_ADDRESSES=\fIFILENAME\fR
-.RS 4
-No default, usually
-/usr/local/etc/ctdb/public_addresses\&. Corresponds to
-\fB\-\-public\-addresses\fR\&.
-.RE
-.PP
-CTDB_PUBLIC_INTERFACE=\fIINTERFACE\fR
-.RS 4
-No default\&. Corresponds to
-\fB\-\-public\-interface\fR\&.
-.RE
-.PP
-CTDB_RECOVERY_LOCK=\fILOCK\fR
-.RS 4
-LOCK specifies the cluster\-wide mutex used to detect and prevent a partitioned cluster (or "split brain")\&.
-.sp
-No default, but the default configuration file specifies
-/some/place/on/shared/storage, which should be change to a useful value\&. Corresponds to
-\fB\-\-reclock\fR\&.
-.sp
-For information about the recovery lock please see the
-RECOVERY LOCK
-section in
-\fBctdb\fR(7)\&.
-.RE
-.PP
-CTDB_SCRIPT_LOG_LEVEL=\fIDEBUGLEVEL\fR
-.RS 4
-Defaults to ERR\&. Corresponds to
-\fB\-\-script\-log\-level\fR\&.
-.RE
-.PP
-CTDB_SOCKET=\fIFILENAME\fR
-.RS 4
-Defaults to
-/usr/local/var/run/ctdb/ctdbd\&.socket\&. Corresponds to
-\fB\-\-socket\fR\&.
-.sp
-If you change this then you probably want to set this in root\*(Aqs environment (perhaps in a file in
-/etc/profile\&.d) so that you can use the
-\fBctdb\fR(1)
-command in a straightforward manner\&.
-.RE
-.PP
-CTDB_START_AS_DISABLED=yes|no
-.RS 4
-Default is no\&. Corresponds to
-\fB\-\-start\-as\-disabled\fR\&.
-.RE
-.PP
-CTDB_START_AS_STOPPED=yes|no
-.RS 4
-Default is no\&. Corresponds to
-\fB\-\-start\-as\-stopped\fR\&.
-.RE
-.PP
-CTDB_TRANSPORT=tcp|infiniband
-.RS 4
-Defaults to tcp\&. Corresponds to
-\fB\-\-transport\fR\&.
-.RE
-.PP
-While the following variables do not translate into daemon options they are used by
-\fBctdbd_wrapper\fR(1)
-when starting and stopping
-\fBctdbd\fR(1)\&.
-.PP
-CTDB_SHUTDOWN_TIMEOUT=\fINUM\fR
-.RS 4
-NUM is the number of seconds to wait for
-\fBctdbd\fR(1)
-to shut down gracefully before giving up and killing it\&.
-.sp
-Defaults is 30\&.
-.RE
-.PP
-CTDB_STARTUP_TIMEOUT=\fINUM\fR
-.RS 4
-NUM is the number of seconds to wait for
-\fBctdbd\fR(1)
-complete early initialisation up to a point where it is unlikely to abort\&. If
-\fBctdbd\fR
-doesn\*(Aqt complete the "setup" event before this timeout then it is killed\&.
-.sp
-Defaults is 10\&.
-.RE
-.SH "NETWORK CONFIGURATION"
-.SS "NAT GATEWAY"
-.PP
-NAT gateway is used to configure fallback routing for nodes when they do not host any public IP addresses\&. For example, it allows unhealthy nodes to reliably communicate with external infrastructure\&. One node in a NAT gateway group will be designated as the NAT gateway master node and other (slave) nodes will be configured with fallback routes via the NAT gateway master node\&. For more information, see the
-NAT GATEWAY
-section in
-\fBctdb\fR(7)\&.
-.PP
-CTDB_NATGW_DEFAULT_GATEWAY=\fIIPADDR\fR
-.RS 4
-IPADDR is an alternate network gateway to use on the NAT gateway master node\&. If set, a fallback default route is added via this network gateway\&.
-.sp
-No default\&. Setting this variable is optional \- if not set that no route is created on the NAT gateway master node\&.
-.RE
-.PP
-CTDB_NATGW_NODES=\fIFILENAME\fR
-.RS 4
-FILENAME contains the list of nodes that belong to the same NAT gateway group\&.
-.sp
-File format:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-\fIIPADDR\fR [slave\-only]
-
-.fi
-.if n \{\
-.RE
-.\}
-.sp
-IPADDR is the private IP address of each node in the NAT gateway group\&.
-.sp
-If "slave\-only" is specified then the corresponding node can not be the NAT gateway master node\&. In this case
-\fICTDB_NATGW_PUBLIC_IFACE\fR
-and
-\fICTDB_NATGW_PUBLIC_IP\fR
-are optional and unused\&.
-.sp
-No default, usually
-/usr/local/etc/ctdb/natgw_nodes
-when enabled\&.
-.RE
-.PP
-CTDB_NATGW_PRIVATE_NETWORK=\fIIPADDR/MASK\fR
-.RS 4
-IPADDR/MASK is the private sub\-network that is internally routed via the NAT gateway master node\&. This is usually the private network that is used for node addresses\&.
-.sp
-No default\&.
-.RE
-.PP
-CTDB_NATGW_PUBLIC_IFACE=\fIIFACE\fR
-.RS 4
-IFACE is the network interface on which the CTDB_NATGW_PUBLIC_IP will be configured\&.
-.sp
-No default\&.
-.RE
-.PP
-CTDB_NATGW_PUBLIC_IP=\fIIPADDR/MASK\fR
-.RS 4
-IPADDR/MASK indicates the IP address that is used for outgoing traffic (originating from CTDB_NATGW_PRIVATE_NETWORK) on the NAT gateway master node\&. This
-\fImust not\fR
-be a configured public IP address\&.
-.sp
-No default\&.
-.RE
-.PP
-CTDB_NATGW_STATIC_ROUTES=\fIIPADDR/MASK[@GATEWAY]\fR \&.\&.\&.
-.RS 4
-Each IPADDR/MASK identifies a network or host to which NATGW should create a fallback route, instead of creating a single default route\&. This can be used when there is already a default route, via an interface that can not reach required infrastructure, that overrides the NAT gateway default route\&.
-.sp
-If GATEWAY is specified then the corresponding route on the NATGW master node will be via GATEWAY\&. Such routes are created even if
-\fICTDB_NATGW_DEFAULT_GATEWAY\fR
-is not specified\&. If GATEWAY is not specified for some networks then routes are only created on the NATGW master node for those networks if
-\fICTDB_NATGW_DEFAULT_GATEWAY\fR
-is specified\&.
-.sp
-This should be used with care to avoid causing traffic to unnecessarily double\-hop through the NAT gateway master, even when a node is hosting public IP addresses\&. Each specified network or host should probably have a corresponding automatically created link route or static route to avoid this\&.
-.sp
-No default\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-CTDB_NATGW_NODES=/usr/local/etc/ctdb/natgw_nodes
-CTDB_NATGW_PRIVATE_NETWORK=192\&.168\&.1\&.0/24
-CTDB_NATGW_DEFAULT_GATEWAY=10\&.0\&.0\&.1
-CTDB_NATGW_PUBLIC_IP=10\&.0\&.0\&.227/24
-CTDB_NATGW_PUBLIC_IFACE=eth0
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-A variation that ensures that infrastructure (ADS, DNS, \&.\&.\&.) directly attached to the public network (10\&.0\&.0\&.0/24) is always reachable would look like this:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-CTDB_NATGW_NODES=/usr/local/etc/ctdb/natgw_nodes
-CTDB_NATGW_PRIVATE_NETWORK=192\&.168\&.1\&.0/24
-CTDB_NATGW_PUBLIC_IP=10\&.0\&.0\&.227/24
-CTDB_NATGW_PUBLIC_IFACE=eth0
-CTDB_NATGW_STATIC_ROUTES=10\&.0\&.0\&.0/24
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Note that
-\fICTDB_NATGW_DEFAULT_GATEWAY\fR
-is not specified\&.
-.RE
-.SS "POLICY ROUTING"
-.PP
-A node running CTDB may be a component of a complex network topology\&. In particular, public addresses may be spread across several different networks (or VLANs) and it may not be possible to route packets from these public addresses via the system\*(Aqs default route\&. Therefore, CTDB has support for policy routing via the
-13\&.per_ip_routing
-eventscript\&. This allows routing to be specified for packets sourced from each public address\&. The routes are added and removed as CTDB moves public addresses between nodes\&.
-.PP
-For more information, see the
-POLICY ROUTING
-section in
-\fBctdb\fR(7)\&.
-.PP
-CTDB_PER_IP_ROUTING_CONF=\fIFILENAME\fR
-.RS 4
-FILENAME contains elements for constructing the desired routes for each source address\&.
-.sp
-The special FILENAME value
-\fB__auto_link_local__\fR
-indicates that no configuration file is provided and that CTDB should generate reasonable link\-local routes for each public IP address\&.
-.sp
-File format:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-\fIIPADDR\fR \fIDEST\-IPADDR/MASK\fR [\fIGATEWAY\-IPADDR\fR]
-
-.fi
-.if n \{\
-.RE
-.\}
-.sp
-No default, usually
-/usr/local/etc/ctdb/policy_routing
-when enabled\&.
-.RE
-.PP
-CTDB_PER_IP_ROUTING_RULE_PREF=\fINUM\fR
-.RS 4
-NUM sets the priority (or preference) for the routing rules that are added by CTDB\&.
-.sp
-This should be (strictly) greater than 0 and (strictly) less than 32766\&. A priority of 100 is recommended, unless this conflicts with a priority already in use on the system\&. See
-\fBip\fR(8), for more details\&.
-.RE
-.PP
-CTDB_PER_IP_ROUTING_TABLE_ID_LOW=\fILOW\-NUM\fR, CTDB_PER_IP_ROUTING_TABLE_ID_HIGH=\fIHIGH\-NUM\fR
-.RS 4
-CTDB determines a unique routing table number to use for the routing related to each public address\&. LOW\-NUM and HIGH\-NUM indicate the minimum and maximum routing table numbers that are used\&.
-.sp
-\fBip\fR(8)
-uses some reserved routing table numbers below 255\&. Therefore, CTDB_PER_IP_ROUTING_TABLE_ID_LOW should be (strictly) greater than 255\&.
-.sp
-CTDB uses the standard file
-/etc/iproute2/rt_tables
-to maintain a mapping between the routing table numbers and labels\&. The label for a public address
-\fIADDR\fR
-will look like ctdb\&.\fIaddr\fR\&. This means that the associated rules and routes are easy to read (and manipulate)\&.
-.sp
-No default, usually 1000 and 9000\&.
-.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBExample\fR
-.RS 4
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-CTDB_PER_IP_ROUTING_CONF=/usr/local/etc/ctdb/policy_routing
-CTDB_PER_IP_ROUTING_RULE_PREF=100
-CTDB_PER_IP_ROUTING_TABLE_ID_LOW=1000
-CTDB_PER_IP_ROUTING_TABLE_ID_HIGH=9000
-
-.fi
-.if n \{\
-.RE
-.\}
-.RE
-.SS "LVS"
-.PP
-For a general description see the
-LVS
-section in
-\fBctdb\fR(7)\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBEventscript\fR
-.RS 4
-.RS 4
-91\&.lvs
-.RE
-.RE
-.PP
-CTDB_LVS_NODES=\fIFILENAME\fR
-.RS 4
-FILENAME contains the list of nodes that belong to the same LVS group\&.
-.sp
-File format:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-\fIIPADDR\fR [slave\-only]
-
-.fi
-.if n \{\
-.RE
-.\}
-.sp
-IPADDR is the private IP address of each node in the LVS group\&.
-.sp
-If "slave\-only" is specified then the corresponding node can not be the LVS master node\&. In this case
-\fICTDB_LVS_PUBLIC_IFACE\fR
-and
-\fICTDB_LVS_PUBLIC_IP\fR
-are optional and unused\&.
-.sp
-No default, usually
-/usr/local/etc/ctdb/lvs_nodes
-when enabled\&.
-.RE
-.PP
-CTDB_LVS_PUBLIC_IFACE=\fIINTERFACE\fR
-.RS 4
-INTERFACE is the network interface that clients will use to connection to
-\fICTDB_LVS_PUBLIC_IP\fR\&. This is optional for slave\-only nodes\&. No default\&.
-.RE
-.PP
-CTDB_LVS_PUBLIC_IP=\fIIPADDR\fR
-.RS 4
-CTDB_LVS_PUBLIC_IP is the LVS public address\&. No default\&.
-.RE
-.SS "MISCELLANEOUS NETWORK CONFIGURATION"
-.PP
-CTDB_PARTIALLY_ONLINE_INTERFACES=yes|no
-.RS 4
-Whether one or more offline interfaces should cause a monitor event to fail if there are other interfaces that are up\&. If this is "yes" and a node has some interfaces that are down then
-\fBctdb status\fR
-will display the node as "PARTIALLYONLINE"\&.
-.sp
-Note that CTDB_PARTIALLY_ONLINE_INTERFACES=yes is incompatible with NAT gateway, since NAT gateway relies on the interface configured by CTDB_NATGW_PUBLIC_IFACE to be up\&.
-.sp
-Default is "no"\&.
-.RE
-.SH "SERVICE CONFIGURATION"
-.PP
-CTDB can be configured to manage and/or monitor various NAS (and other) services via its eventscripts\&.
-.PP
-In the simplest case CTDB will manage a service\&. This means the service will be started and stopped along with CTDB, CTDB will monitor the service and CTDB will do any required reconfiguration of the service when public IP addresses are failed over\&.
-.SS "SAMBA"
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBEventscripts\fR
-.RS 4
-.RS 4
-49\&.winbind
-.RE
-.RS 4
-50\&.samba
-.RE
-.RE
-.PP
-CTDB_MANAGES_SAMBA=yes|no
-.RS 4
-Should CTDB manage Samba?
-.sp
-Default is no\&.
-.RE
-.PP
-CTDB_MANAGES_WINBIND=yes|no
-.RS 4
-Should CTDB manage Winbind?
-.sp
-Default is no\&.
-.RE
-.PP
-CTDB_SAMBA_CHECK_PORTS=\fIPORT\-LIST\fR
-.RS 4
-When monitoring Samba, check TCP ports in space\-separated PORT\-LIST\&.
-.sp
-Default is to monitor ports that Samba is configured to listen on\&.
-.RE
-.PP
-CTDB_SAMBA_SKIP_SHARE_CHECK=yes|no
-.RS 4
-As part of monitoring, should CTDB skip the check for the existence of each directory configured as share in Samba\&. This may be desirable if there is a large number of shares\&.
-.sp
-Default is no\&.
-.RE
-.PP
-CTDB_SERVICE_NMB=\fISERVICE\fR
-.RS 4
-Distribution specific SERVICE for managing nmbd\&.
-.sp
-Default is distribution\-dependant\&.
-.RE
-.PP
-CTDB_SERVICE_SMB=\fISERVICE\fR
-.RS 4
-Distribution specific SERVICE for managing smbd\&.
-.sp
-Default is distribution\-dependant\&.
-.RE
-.PP
-CTDB_SERVICE_WINBIND=\fISERVICE\fR
-.RS 4
-Distribution specific SERVICE for managing winbindd\&.
-.sp
-Default is "winbind"\&.
-.RE
-.SS "NFS"
-.PP
-This includes parameters for the kernel NFS server\&. Alternative NFS subsystems (such as
-\m[blue]\fBNFS\-Ganesha\fR\m[]\&\s-2\u[1]\d\s+2) can be integrated using
-\fICTDB_NFS_CALLOUT\fR\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBEventscript\fR
-.RS 4
-.RS 4
-60\&.nfs
-.RE
-.RE
-.PP
-CTDB_MANAGES_NFS=yes|no
-.RS 4
-Should CTDB manage NFS?
-.sp
-Default is no\&.
-.RE
-.PP
-CTDB_NFS_CALLOUT=\fICOMMAND\fR
-.RS 4
-COMMAND specifies the path to a callout to handle interactions with the configured NFS system, including startup, shutdown, monitoring\&.
-.sp
-Default is the included
-\fBnfs\-linux\-kernel\-callout\fR\&.
-.RE
-.PP
-CTDB_NFS_CHECKS_DIR=\fIDIRECTORY\fR
-.RS 4
-Specifies the path to a DIRECTORY containing files that describe how to monitor the responsiveness of NFS RPC services\&. See the README file for this directory for an explanation of the contents of these "check" files\&.
-.sp
-CTDB_NFS_CHECKS_DIR can be used to point to different sets of checks for different NFS servers\&.
-.sp
-One way of using this is to have it point to, say,
-/usr/local/etc/ctdb/nfs\-checks\-enabled\&.d
-and populate it with symbolic links to the desired check files\&. This avoids duplication and is upgrade\-safe\&.
-.sp
-Default is
-/usr/local/etc/ctdb/nfs\-checks\&.d, which contains NFS RPC checks suitable for Linux kernel NFS\&.
-.RE
-.PP
-CTDB_NFS_SKIP_SHARE_CHECK=yes|no
-.RS 4
-As part of monitoring, should CTDB skip the check for the existence of each directory exported via NFS\&. This may be desirable if there is a large number of exports\&.
-.sp
-Default is no\&.
-.RE
-.PP
-CTDB_RPCINFO_LOCALHOST=\fIIPADDR\fR|\fIHOSTNAME\fR
-.RS 4
-IPADDR or HOSTNAME indicates the address that
-\fBrpcinfo\fR
-should connect to when doing
-\fBrpcinfo\fR
-check on IPv4 RPC service during monitoring\&. Optimally this would be "localhost"\&. However, this can add some performance overheads\&.
-.sp
-Default is "127\&.0\&.0\&.1"\&.
-.RE
-.PP
-CTDB_RPCINFO_LOCALHOST6=\fIIPADDR\fR|\fIHOSTNAME\fR
-.RS 4
-IPADDR or HOSTNAME indicates the address that
-\fBrpcinfo\fR
-should connect to when doing
-\fBrpcinfo\fR
-check on IPv6 RPC service during monitoring\&. Optimally this would be "localhost6" (or similar)\&. However, this can add some performance overheads\&.
-.sp
-Default is "::1"\&.
-.RE
-.PP
-CTDB_NFS_STATE_FS_TYPE=\fITYPE\fR
-.RS 4
-The type of filesystem used for a clustered NFS\*(Aq shared state\&. No default\&.
-.RE
-.PP
-CTDB_NFS_STATE_MNT=\fIDIR\fR
-.RS 4
-The directory where a clustered NFS\*(Aq shared state will be located\&. No default\&.
-.RE
-.SS "APACHE HTTPD"
-.PP
-CTDB can manage the Apache web server\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBEventscript\fR
-.RS 4
-.RS 4
-41\&.httpd
-.RE
-.RE
-.PP
-CTDB_MANAGES_HTTPD=yes|no
-.RS 4
-Should CTDB manage the Apache web server?
-.sp
-Default is no\&.
-.RE
-.SS "CLAMAV"
-.PP
-CTDB has support to manage the popular anti\-virus daemon ClamAV\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBEventscript\fR
-.RS 4
-.RS 4
-31\&.clamd
-.RE
-.PP
-This eventscript is not enabled by default\&. Use
-\fBctdb enablescript\fR
-to enable it\&.
-.RE
-.PP
-CTDB_MANAGES_CLAMD=yes|no
-.RS 4
-Should CTDB manage ClamAV?
-.sp
-Default is no\&.
-.RE
-.PP
-CTDB_CLAMD_SOCKET=\fIFILENAME\fR
-.RS 4
-FILENAME is the socket to monitor ClamAV\&.
-.sp
-No default\&.
-.RE
-.SS "ISCSI"
-.PP
-CTDB has support for managing the Linux iSCSI tgtd service\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBEventscript\fR
-.RS 4
-.RS 4
-70\&.iscsi
-.RE
-.RE
-.PP
-CTDB_MANAGES_ISCSI=yes|no
-.RS 4
-Should CTDB manage iSCSI tgtd?
-.sp
-Default is no\&.
-.RE
-.PP
-CTDB_START_ISCSI_SCRIPTS=\fIDIRECTORY\fR
-.RS 4
-DIRECTORY on shared storage containing scripts to start tgtd for each public IP address\&.
-.sp
-No default\&.
-.RE
-.SS "MULTIPATHD"
-.PP
-CTDB can monitor multipath devices to ensure that active paths are available\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBEventscript\fR
-.RS 4
-.RS 4
-20\&.multipathd
-.RE
-.PP
-This eventscript is not enabled by default\&. Use
-\fBctdb enablescript\fR
-to enable it\&.
-.RE
-.PP
-CTDB_MONITOR_MPDEVICES=\fIMP\-DEVICE\-LIST\fR
-.RS 4
-MP\-DEVICE\-LIST is a list of multipath devices for CTDB to monitor?
-.sp
-No default\&.
-.RE
-.SS "VSFTPD"
-.PP
-CTDB can manage the vsftpd FTP server\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBEventscript\fR
-.RS 4
-.RS 4
-40\&.vsftpd
-.RE
-.RE
-.PP
-CTDB_MANAGES_VSFTPD=yes|no
-.RS 4
-Should CTDB manage the vsftpd FTP server?
-.sp
-Default is no\&.
-.RE
-.SS "SYSTEM RESOURCE MONITORING CONFIGURATION"
-.PP
-CTDB can experience seemingly random (performance and other) issues if system resources become too constrained\&. Options in this section can be enabled to allow certain system resources to be checked\&. They allows warnings to be logged and nodes to be marked unhealthy when system resource usage reaches the configured thresholds\&.
-.PP
-Some checks are enabled by default\&. It is recommended that these checks remain enabled or are augmented by extra checks\&. There is no supported way of completely disabling the checks\&.
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBEventscripts\fR
-.RS 4
-.RS 4
-05\&.system
-.RE
-.PP
-Filesystem and memory usage monitoring is in
-05\&.system\&.
-.RE
-.PP
-CTDB_MONITOR_FILESYSTEM_USAGE=\fIFS\-LIMIT\-LIST\fR
-.RS 4
-FS\-LIMIT\-LIST is a space\-separated list of
-\fIFILESYSTEM\fR:\fIWARN_LIMIT\fR[:\fIUNHEALTHY_LIMIT\fR]
-triples indicating that warnings should be logged if the space used on FILESYSTEM reaches WARN_LIMIT%\&. If usage reaches UNHEALTHY_LIMIT then the node should be flagged unhealthy\&. Either WARN_LIMIT or UNHEALTHY_LIMIT may be left blank, meaning that check will be omitted\&.
-.sp
-Default is to warn for each filesystem containing a database directory (\fBCTDB_DBDIR\fR,
-\fBCTDB_DBDIR_PERSISTENT\fR,
-\fBCTDB_DBDIR_STATE\fR) with a threshold of 90%\&.
-.RE
-.PP
-CTDB_MONITOR_MEMORY_USAGE=\fIMEM\-LIMITS\fR
-.RS 4
-MEM\-LIMITS takes the form
-\fIWARN_LIMIT\fR[:\fIUNHEALTHY_LIMIT\fR]
-indicating that warnings should be logged if memory usage reaches WARN_LIMIT%\&. If usage reaches UNHEALTHY_LIMIT then the node should be flagged unhealthy\&. Either WARN_LIMIT or UNHEALTHY_LIMIT may be left blank, meaning that check will be omitted\&.
-.sp
-Default is 80, so warnings will be logged when memory usage reaches 80%\&.
-.RE
-.PP
-CTDB_MONITOR_SWAP_USAGE=\fISWAP\-LIMITS\fR
-.RS 4
-SWAP\-LIMITS takes the form
-\fIWARN_LIMIT\fR[:\fIUNHEALTHY_LIMIT\fR]
-indicating that warnings should be logged if swap usage reaches WARN_LIMIT%\&. If usage reaches UNHEALTHY_LIMIT then the node should be flagged unhealthy\&. Either WARN_LIMIT or UNHEALTHY_LIMIT may be left blank, meaning that check will be omitted\&.
-.sp
-Default is 25, so warnings will be logged when swap usage reaches 25%\&.
-.RE
-.SS "MISCELLANEOUS SERVICE\-RELATED CONFIGURATION"
-.PP
-CTDB_MANAGED_SERVICES=\fISERVICE\-LIST\fR
-.RS 4
-SERVICE\-LIST is a space\-separated list of SERVICEs that CTDB should manage\&. This can be used as an alternative to the
-\fICTDB_MANAGES_\fR\fI\fISERVICE\fR\fR
-variables\&.
-.sp
-No default\&.
-.RE
-.SH "TUNABLES CONFIGURATION"
-.PP
-CTDB tunables (see
-\fBctdbd-tunables\fR(7)) can be set from the configuration file\&. They are set as follows:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-CTDB_SET_\fITUNABLE\fR=\fIVALUE\fR
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-For example:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-CTDB_SET_MonitorInterval=20
-
-.fi
-.if n \{\
-.RE
-.\}
-.sp
-.SH "DEBUG AND TEST"
-.PP
-Variable in this section are for debugging and testing CTDB\&. They should not generally be needed\&.
-.PP
-CTDB_DEBUG_HUNG_SCRIPT=\fIFILENAME\fR
-.RS 4
-FILENAME is a script to run to log debug information when an event script times out\&.
-.sp
-Default is
-\fICTDB_BASE\fR/debug\-hung\-script\&.sh\&.
-.RE
-.PP
-CTDB_DEBUG_HUNG_SCRIPT_LOGFILE=\fIFILENAME\fR
-.RS 4
-FILENAME specifies where log messages should go when debugging hung eventscripts\&. This is a testing option\&. See also
-CTDB_DEBUG_HUNG_SCRIPT\&.
-.sp
-No default\&. Messages go to stdout/stderr and are logged to the same place as other CTDB log messages\&.
-.RE
-.PP
-CTDB_DEBUG_HUNG_SCRIPT_STACKPAT=\fIREGEXP\fR
-.RS 4
-REGEXP specifies interesting processes for which stack traces should be logged when debugging hung eventscripts and those processes are matched in pstree output\&. REGEXP is an extended regexp so choices are separated by pipes (\*(Aq|\*(Aq)\&. However, REGEXP should not contain parentheses\&. See also
-CTDB_DEBUG_HUNG_SCRIPT\&.
-.sp
-Default is "exportfs|rpcinfo"\&.
-.RE
-.PP
-CTDB_DEBUG_LOCKS=\fIFILENAME\fR
-.RS 4
-FILENAME is a script to run to log debug information when an CTDB fails to freeze databases during recovery\&.
-.sp
-No default, usually
-\fICTDB_BASE\fR/debug_locks\&.sh\&.
-.RE
-.PP
-CTDB_SYS_ETCDIR=\fIDIRECTORY\fR
-.RS 4
-DIRECTORY containing system configuration files\&. This is used to provide alternate configuration when testing and should not need to be changed from the default\&.
-.sp
-Default is
-/etc\&.
-.RE
-.PP
-CTDB_INIT_STYLE=debian|redhat|suse
-.RS 4
-This is the init style used by the Linux distribution (or other operating system) being used\&. This is usually determined dynamically by checking the system\&. This variable is used by the initscript to determine which init system primitives to use\&. It is also used by some eventscripts to choose the name of initscripts for certain services, since these can vary between distributions\&.
-.sp
-No fixed default\&.
-.sp
-If this option needs to be changed from the calculated default for the initscript to function properly, then it must be set in the distribution\-specific initscript configuration, such as
-/etc/sysconfig/ctdb
-.RE
-.PP
-CTDB_MAX_CORRUPT_DB_BACKUPS=\fINUM\fR
-.RS 4
-NUM is the maximum number of volatile TDB database backups to be kept (for each database) when a corrupt database is found during startup\&. Volatile TDBs are zeroed during startup so backups are needed to debug any corruption that occurs before a restart\&.
-.sp
-Default is 10\&.
-.RE
-.PP
-CTDB_MAX_OPEN_FILES=\fINUM\fR
-.RS 4
-NUM is the maximum number of open files\&.
-.sp
-There is no default\&.
-.RE
-.PP
-CTDB_RC_LOCAL=\fIFILENAME\fR
-.RS 4
-FILENAME is a script fragment to be sourced by the
-functions
-that is sourced by scripts\&. On example use would be to override function definitions in unit tests\&. As a sanity check, this file must be executable for it to be used\&.
-.sp
-No default\&.
-.RE
-.PP
-CTDB_RUN_TIMEOUT_MONITOR=yes|no
-.RS 4
-Whether CTDB should simulate timing out monitor events\&. This uses the
-99\&.timeout
-eventscript\&.
-.sp
-Default is no\&.
-.RE
-.PP
-CTDB_SUPPRESS_COREFILE=yes|no
-.RS 4
-Whether CTDB core files should be suppressed\&.
-.sp
-Default is no\&.
-.RE
-.PP
-CTDB_VALGRIND=yes|no|\fICOMMAND\fR
-.RS 4
-If "yes", this causes
-\fBctdbd\fR(1)
-to be run under
-\fBvalgrind\fR(1)
-with logs going to
-/usr/local/var/log/ctdb_valgrind\&. If neither "yes" nor "no" then the value is assumed to be a COMMAND (e\&.g\&. a
-\fBvalgrind\fR
-variation, a
-\fBgdb\fR(1)
-command) that is used in place of the default
-\fBvalgrind\fR
-command\&. In either case, the
-\fB\-\-valgrind\fR
-option is passed to
-\fBctdbd\fR\&.
-.sp
-Default is no\&.
-.RE
-.PP
-CTDB_VARDIR=\fIDIRECTORY\fR
-.RS 4
-DIRECTORY containing CTDB files that are modified at runtime\&.
-.sp
-Defaults to
-/usr/local/var/lib/ctdb\&.
-.RE
-.SH "FILES"
-.RS 4
-/usr/local/etc/ctdb/ctdbd\&.conf
-.RE
-.RS 4
-/etc/sysconfig/ctdb
-.RE
-.RS 4
-/etc/default/ctdb
-.RE
-.RS 4
-/usr/local/etc/ctdb/sysconfig/ctdb
-.RE
-.SH "SEE ALSO"
-.PP
-\fBctdbd\fR(1),
-\fBctdbd_wrapper\fR(1),
-\fBonnode\fR(1),
-\fBctdb\fR(7),
-\fBctdb-tunables\fR(7),
-\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Amitay Isaacs, Martin Schwenke
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
-.SH "NOTES"
-.IP " 1." 4
-NFS-Ganesha
-.RS 4
-\%https://github.com/nfs-ganesha/nfs-ganesha/wiki
-.RE
diff --git a/net/samba47/files/man/ctdbd_wrapper.1 b/net/samba47/files/man/ctdbd_wrapper.1
deleted file mode 100644
index f3a9287119d1..000000000000
--- a/net/samba47/files/man/ctdbd_wrapper.1
+++ /dev/null
@@ -1,69 +0,0 @@
-'\" t
-.\" Title: ctdbd_wrapper
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "CTDBD_WRAPPER" "1" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ctdbd_wrapper \- Wrapper for ctdbd
-.SH "SYNOPSIS"
-.HP \w'\fBctdbd_wrapper\fR\ 'u
-\fBctdbd_wrapper\fR {\fIPIDFILE\fR} {start | stop}
-.SH "DESCRIPTION"
-.PP
-ctdbd_wrapper is used to start or stop the main CTDB daemon\&.
-.PP
-\fIPIDFILE\fR
-specifies the location of the file containing the PID of the main CTDB daemon\&.
-.PP
-ctdbd_wrapper constructs command\-line options for ctdbd from configuration variables specified in
-\fBctdbd.conf\fR(5)\&.
-.PP
-See
-\fBctdb\fR(7)
-for an overview of CTDB\&.
-.SH "SEE ALSO"
-.PP
-\fBctdbd\fR(1),
-\fBctdbd.conf\fR(5),
-\fBctdb\fR(7),
-\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Amitay Isaacs, Martin Schwenke
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/gentest.1 b/net/samba47/files/man/gentest.1
deleted file mode 100644
index 272f49a8c295..000000000000
--- a/net/samba47/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/samba47/files/man/ldb.3 b/net/samba47/files/man/ldb.3
deleted file mode 100644
index aa70f3deedd4..000000000000
--- a/net/samba47/files/man/ldb.3
+++ /dev/null
@@ -1,457 +0,0 @@
-'\" t
-.\" Title: ldb
-.\" Author: [see the "Author" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 11/05/2017
-.\" Manual: System Administration tools
-.\" Source: LDB 1.1
-.\" Language: English
-.\"
-.TH "LDB" "3" "11/05/2017" "LDB 1\&.1" "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"
-ldb \- A light\-weight database library
-.SH "SYNOPSIS"
-.sp
-.nf
-#include <ldb\&.h>
-.fi
-.SH "DESCRIPTION"
-.PP
-ldb is a light weight embedded database library and API\&. With a programming interface that is very similar to LDAP, ldb can store its data either in a tdb(3) database or in a real LDAP database\&.
-.PP
-When used with the tdb backend ldb does not require any database daemon\&. Instead, ldb function calls are processed immediately by the ldb library, which does IO directly on the database, while allowing multiple readers/writers using operating system byte range locks\&. This leads to an API with very low overheads, often resulting in speeds of more than 10x what can be achieved with a more traditional LDAP architecture\&.
-.PP
-In a taxonomy of databases ldb would sit half way between key/value pair databases (such as berkley db or tdb) and a full LDAP database\&. With a structured attribute oriented API like LDAP and good indexing capabilities, ldb can be used for quite sophisticated applications that need a light weight database, without the administrative overhead of a full LDAP installation\&.
-.PP
-Included with ldb are a number of useful command line tools for manipulating a ldb database\&. These tools are similar in style to the equivalent ldap command line tools\&.
-.PP
-In its default mode of operation with a tdb backend, ldb can also be seen as a "schema\-less LDAP"\&. By default ldb does not require a schema, which greatly reduces the complexity of getting started with ldb databases\&. As the complexity of you application grows you can take advantage of some of the optional schema\-like attributes that ldb offers, or you can migrate to using the full LDAP api while keeping your exiting ldb code\&.
-.PP
-If you are new to ldb, then I suggest starting with the manual pages for ldbsearch(1) and ldbedit(1), and experimenting with a local database\&. Then I suggest you look at the ldb_connect(3) and ldb_search(3) manual pages\&.
-.SH "TOOLS"
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-ldbsearch(1)
-\- command line ldb search utility
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-ldbedit(1)
-\- edit all or part of a ldb database using your favourite editor
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-ldbadd(1)
-\- add records to a ldb database using LDIF formatted input
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-ldbdel(1)
-\- delete records from a ldb database
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-ldbmodify(1)
-\- modify records in a ldb database using LDIF formatted input
-.RE
-.SH "FUNCTIONS"
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_connect(3)\fR
-\- connect to a ldb backend
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_search(3)\fR
-\- perform a database search
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_add(3)\fR
-\- add a record to the database
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_delete(3)\fR
-\- delete a record from the database
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_modify(3)\fR
-\- modify a record in the database
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_errstring(3)\fR
-\- retrieve extended error information from the last operation
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_ldif_write(3)\fR
-\- write a LDIF formatted message
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_ldif_write_file(3)\fR
-\- write a LDIF formatted message to a file
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_ldif_read(3)\fR
-\- read a LDIF formatted message
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_ldif_read_free(3)\fR
-\- free the result of a ldb_ldif_read()
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_ldif_read_file(3)\fR
-\- read a LDIF message from a file
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_ldif_read_string(3)\fR
-\- read a LDIF message from a string
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_msg_find_element(3)\fR
-\- find an element in a ldb_message
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_val_equal_exact(3)\fR
-\- compare two ldb_val structures
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_msg_find_val(3)\fR
-\- find an element by value
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_msg_add_empty(3)\fR
-\- add an empty message element to a ldb_message
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_msg_add(3)\fR
-\- add a non\-empty message element to a ldb_message
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_msg_element_compare(3)\fR
-\- compare two ldb_message_element structures
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_msg_find_int(3)\fR
-\- return an integer value from a ldb_message
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_msg_find_uint(3)\fR
-\- return an unsigned integer value from a ldb_message
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_msg_find_double(3)\fR
-\- return a double value from a ldb_message
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_msg_find_string(3)\fR
-\- return a string value from a ldb_message
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_set_alloc(3)\fR
-\- set the memory allocation function to be used by ldb
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_set_debug(3)\fR
-\- set a debug handler to be used by ldb
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBldb_set_debug_stderr(3)\fR
-\- set a debug handler for stderr output
-.RE
-.SH "AUTHOR"
-.PP
-ldb was written by
-\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\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\&.
-.PP
-ldb is released under the GNU Lesser General Public License version 2 or later\&. Please see the file COPYING for license details\&.
-.SH "NOTES"
-.IP " 1." 4
-Andrew Tridgell
-.RS 4
-\%https://www.samba.org/~tridge/
-.RE
diff --git a/net/samba47/files/man/ldbadd.1 b/net/samba47/files/man/ldbadd.1
deleted file mode 100644
index 4d491ee1fb64..000000000000
--- a/net/samba47/files/man/ldbadd.1
+++ /dev/null
@@ -1,78 +0,0 @@
-'\" t
-.\" Title: ldbadd
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 11/05/2017
-.\" Manual: System Administration tools
-.\" Source: LDB 1.1
-.\" Language: English
-.\"
-.TH "LDBADD" "1" "11/05/2017" "LDB 1\&.1" "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"
-ldbadd \- Command\-line utility for adding records to an LDB
-.SH "SYNOPSIS"
-.HP \w'\fBldbadd\fR\ 'u
-\fBldbadd\fR [\-h] [\-H\ LDB\-URL] [ldif\-file1] [ldif\-file2] [\&.\&.\&.]
-.SH "DESCRIPTION"
-.PP
-ldbadd adds records to an ldb(3) database\&. It reads the ldif(5) files specified on the command line and adds the records from these files to the LDB database, which is specified by the \-H option or the LDB_URL environment variable\&.
-.PP
-If \- is specified as a ldb file, the ldif input is read from standard input\&.
-.SH "OPTIONS"
-.PP
-\-h
-.RS 4
-Show list of available options\&.
-.RE
-.PP
-\-H <ldb\-url>
-.RS 4
-LDB URL to connect to\&. See ldb(3) for details\&.
-.RE
-.SH "ENVIRONMENT"
-.PP
-LDB_URL
-.RS 4
-LDB URL to connect to (can be overrided by using the \-H command\-line option\&.)
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 1\&.1 of LDB\&.
-.SH "SEE ALSO"
-.PP
-ldb(3), ldbmodify, ldbdel, ldif(5)
-.SH "AUTHOR"
-.PP
-ldb was written by
-\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\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\&.
-.PP
-This manpage was written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Andrew Tridgell
-.RS 4
-\%https://www.samba.org/~tridge/
-.RE
diff --git a/net/samba47/files/man/ldbdel.1 b/net/samba47/files/man/ldbdel.1
deleted file mode 100644
index 26e867bb0b04..000000000000
--- a/net/samba47/files/man/ldbdel.1
+++ /dev/null
@@ -1,80 +0,0 @@
-'\" t
-.\" Title: ldbdel
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 11/05/2017
-.\" Manual: System Administration tools
-.\" Source: LDB 1.1
-.\" Language: English
-.\"
-.TH "LDBDEL" "1" "11/05/2017" "LDB 1\&.1" "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"
-ldbdel \- Command\-line program for deleting LDB records
-.SH "SYNOPSIS"
-.HP \w'\fBldbdel\fR\ 'u
-\fBldbdel\fR [\-h] [\-H\ LDB\-URL] [dn] [\&.\&.\&.]
-.SH "DESCRIPTION"
-.PP
-ldbdel deletes records from an ldb(3) database\&. It deletes the records identified by the dn\*(Aqs specified on the command\-line\&.
-.PP
-ldbdel uses either the database that is specified with the \-H option or the database specified by the LDB_URL environment variable\&.
-.SH "OPTIONS"
-.PP
-\-h
-.RS 4
-Show list of available options\&.
-.RE
-.PP
-\-H <ldb\-url>
-.RS 4
-LDB URL to connect to\&. See ldb(3) for details\&.
-.RE
-.SH "ENVIRONMENT"
-.PP
-LDB_URL
-.RS 4
-LDB URL to connect to (can be overrided by using the \-H command\-line option\&.)
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 1\&.1 of LDB\&.
-.SH "SEE ALSO"
-.PP
-ldb(3), ldbmodify, ldbadd, ldif(5)
-.SH "AUTHOR"
-.PP
-ldb was written by
-\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\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\&.
-.PP
-ldbdel was written by Andrew Tridgell\&.
-.PP
-This manpage was written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Andrew Tridgell
-.RS 4
-\%https://www.samba.org/~tridge/
-.RE
diff --git a/net/samba47/files/man/ldbedit.1 b/net/samba47/files/man/ldbedit.1
deleted file mode 100644
index d838d3695d2e..000000000000
--- a/net/samba47/files/man/ldbedit.1
+++ /dev/null
@@ -1,111 +0,0 @@
-'\" t
-.\" Title: ldbedit
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 11/05/2017
-.\" Manual: System Administration tools
-.\" Source: LDB 1.1
-.\" Language: English
-.\"
-.TH "LDBEDIT" "1" "11/05/2017" "LDB 1\&.1" "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"
-ldbedit \- Edit LDB databases using your preferred editor
-.SH "SYNOPSIS"
-.HP \w'\fBldbedit\fR\ 'u
-\fBldbedit\fR [\-?] [\-\-usage] [\-s\ base|one|sub] [\-b\ basedn] [\-a] [\-e\ editor] [\-H\ LDB\-URL] [expression] [attributes...]
-.SH "DESCRIPTION"
-.PP
-ldbedit is a utility that allows you to edit LDB entries (in tdb files, sqlite files or LDAP servers) using your preferred editor\&. ldbedit generates an LDIF file based on your query, allows you to edit the LDIF, and then merges that LDIF back into the LDB backend\&.
-.SH "OPTIONS"
-.PP
-\-?, \-\-help
-.RS 4
-Show list of available options, and a phrase describing what that option does\&.
-.RE
-.PP
-\-\-usage
-.RS 4
-Show list of available options\&. This is similar to the help option, however it does not provide any description, and is hence shorter\&.
-.RE
-.PP
-\-H <ldb\-url>
-.RS 4
-LDB URL to connect to\&. For a tdb database, this will be of the form tdb://\fIfilename\fR\&. For a LDAP connection over unix domain sockets, this will be of the form ldapi://\fIsocket\fR\&. For a (potentially remote) LDAP connection over TCP, this will be of the form ldap://\fIhostname\fR\&. For an SQLite database, this will be of the form sqlite://\fIfilename\fR\&.
-.RE
-.PP
-\-s one|sub|base
-.RS 4
-Search scope to use\&. One\-level, subtree or base\&.
-.RE
-.PP
-\-a, \-all
-.RS 4
-Edit all records\&. This allows you to apply the same change to a number of records at once\&. You probably want to combine this with an expression of the form "objectclass=*"\&.
-.RE
-.PP
-\-e editor, \-\-editor editor
-.RS 4
-Specify the editor that should be used (overrides the VISUAL and EDITOR environment variables)\&. If this option is not used, and neither VISUAL nor EDITOR environment variables are set, then the vi editor will be used\&.
-.RE
-.PP
-\-b basedn
-.RS 4
-Specify Base Distinguished Name to use\&.
-.RE
-.PP
-\-v, \-\-verbose
-.RS 4
-Make ldbedit more verbose about the operations that are being performed\&. Without this option, ldbedit will only provide a summary change line\&.
-.RE
-.SH "ENVIRONMENT"
-.PP
-LDB_URL
-.RS 4
-LDB URL to connect to\&. This can be overridden by using the \-H command\-line option\&.)
-.RE
-.PP
-VISUAL and EDITOR
-.RS 4
-Environment variables used to determine what editor to use\&. VISUAL takes precedence over EDITOR, and both are overridden by the \-e command\-line option\&.
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 1\&.1 of LDB\&.
-.SH "SEE ALSO"
-.PP
-ldb(3), ldbmodify(1), ldbdel(1), ldif(5), vi(1)
-.SH "AUTHOR"
-.PP
-ldb was written by
-\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\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\&.
-.PP
-This manpage was written by Jelmer Vernooij and updated by Brad Hards\&.
-.SH "NOTES"
-.IP " 1." 4
-Andrew Tridgell
-.RS 4
-\%https://www.samba.org/~tridge/
-.RE
diff --git a/net/samba47/files/man/ldbmodify.1 b/net/samba47/files/man/ldbmodify.1
deleted file mode 100644
index e537a9b21f81..000000000000
--- a/net/samba47/files/man/ldbmodify.1
+++ /dev/null
@@ -1,73 +0,0 @@
-'\" t
-.\" Title: ldbmodify
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 11/05/2017
-.\" Manual: System Administration tools
-.\" Source: LDB 1.1
-.\" Language: English
-.\"
-.TH "LDBMODIFY" "1" "11/05/2017" "LDB 1\&.1" "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"
-ldbmodify \- Modify records in a LDB database
-.SH "SYNOPSIS"
-.HP \w'\fBldbmodify\fR\ 'u
-\fBldbmodify\fR [\-H\ LDB\-URL] [ldif\-file]
-.SH "DESCRIPTION"
-.PP
-ldbmodify changes, adds and deletes records in a LDB database\&. The changes that should be made to the LDB database are read from the specified LDIF\-file\&. If \- is specified as the filename, input is read from stdin\&.
-.PP
-For now, see ldapmodify(1) for details on the LDIF file format\&.
-.SH "OPTIONS"
-.PP
-\-H <ldb\-url>
-.RS 4
-LDB URL to connect to\&. See ldb(3) for details\&.
-.RE
-.SH "ENVIRONMENT"
-.PP
-LDB_URL
-.RS 4
-LDB URL to connect to (can be overrided by using the \-H command\-line option\&.)
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 1\&.1 of LDB\&.
-.SH "SEE ALSO"
-.PP
-ldb(3), ldbedit
-.SH "AUTHOR"
-.PP
-ldb was written by
-\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\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\&.
-.PP
-This manpage was written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Andrew Tridgell
-.RS 4
-\%https://www.samba.org/~tridge/
-.RE
diff --git a/net/samba47/files/man/ldbrename.1 b/net/samba47/files/man/ldbrename.1
deleted file mode 100644
index c406bbf2bbe0..000000000000
--- a/net/samba47/files/man/ldbrename.1
+++ /dev/null
@@ -1,81 +0,0 @@
-'\" t
-.\" Title: ldbrename
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 11/05/2017
-.\" Manual: System Administration tools
-.\" Source: LDB 1.1
-.\" Language: English
-.\"
-.TH "LDBRENAME" "1" "11/05/2017" "LDB 1\&.1" "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"
-ldbrename \- Edit LDB databases using your favorite editor
-.SH "SYNOPSIS"
-.HP \w'\fBldbrename\fR\ 'u
-\fBldbrename\fR [\-h] [\-o\ options] {olddn} {newdn}
-.SH "DESCRIPTION"
-.PP
-ldbrename is a utility that allows you to rename trees in an LDB database based by DN\&. This utility takes two arguments: the original DN name of the top element and the DN to change it to\&.
-.SH "OPTIONS"
-.PP
-\-h
-.RS 4
-Show list of available options\&.
-.RE
-.PP
-\-H <ldb\-url>
-.RS 4
-LDB URL to connect to\&. See ldb(3) for details\&.
-.RE
-.PP
-\-o options
-.RS 4
-Extra ldb options, such as modules\&.
-.RE
-.SH "ENVIRONMENT"
-.PP
-LDB_URL
-.RS 4
-LDB URL to connect to (can be overrided by using the \-H command\-line option\&.)
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 1\&.1 of LDB\&.
-.SH "SEE ALSO"
-.PP
-ldb(3), ldbmodify, ldbdel, ldif(5)
-.SH "AUTHOR"
-.PP
-ldb was written by
-\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\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\&.
-.PP
-This manpage was written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Andrew Tridgell
-.RS 4
-\%https://www.samba.org/~tridge/
-.RE
diff --git a/net/samba47/files/man/ldbsearch.1 b/net/samba47/files/man/ldbsearch.1
deleted file mode 100644
index 7d91e7ae1a09..000000000000
--- a/net/samba47/files/man/ldbsearch.1
+++ /dev/null
@@ -1,91 +0,0 @@
-'\" t
-.\" Title: ldbsearch
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 11/05/2017
-.\" Manual: System Administration tools
-.\" Source: LDB 1.1
-.\" Language: English
-.\"
-.TH "LDBSEARCH" "1" "11/05/2017" "LDB 1\&.1" "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"
-ldbsearch \- Search for records in a LDB database
-.SH "SYNOPSIS"
-.HP \w'\fBldbsearch\fR\ 'u
-\fBldbsearch\fR [\-h] [\-s\ base|one|sub] [\-b\ basedn] [\-i] [\-H\ LDB\-URL] [expression] [attributes]
-.SH "DESCRIPTION"
-.PP
-ldbsearch searches a LDB database for records matching the specified expression (see the ldapsearch(1) manpage for a description of the expression format)\&. For each record, the specified attributes are printed\&.
-.SH "OPTIONS"
-.PP
-\-h
-.RS 4
-Show list of available options\&.
-.RE
-.PP
-\-H <ldb\-url>
-.RS 4
-LDB URL to connect to\&. See ldb(3) for details\&.
-.RE
-.PP
-\-s one|sub|base
-.RS 4
-Search scope to use\&. One\-level, subtree or base\&.
-.RE
-.PP
-\-i
-.RS 4
-Read search expressions from stdin\&.
-.RE
-.PP
-\-b basedn
-.RS 4
-Specify Base DN to use\&.
-.RE
-.SH "ENVIRONMENT"
-.PP
-LDB_URL
-.RS 4
-LDB URL to connect to (can be overrided by using the \-H command\-line option\&.)
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 1\&.1 of LDB\&.
-.SH "SEE ALSO"
-.PP
-ldb(3), ldbedit(1)
-.SH "AUTHOR"
-.PP
-ldb was written by
-\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\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\&.
-.PP
-This manpage was written by Jelmer Vernooij\&.
-.SH "NOTES"
-.IP " 1." 4
-Andrew Tridgell
-.RS 4
-\%https://www.samba.org/~tridge/
-.RE
diff --git a/net/samba47/files/man/locktest.1 b/net/samba47/files/man/locktest.1
deleted file mode 100644
index 1ebff93dc207..000000000000
--- a/net/samba47/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/samba47/files/man/ltdbtool.1 b/net/samba47/files/man/ltdbtool.1
deleted file mode 100644
index 23171b423878..000000000000
--- a/net/samba47/files/man/ltdbtool.1
+++ /dev/null
@@ -1,256 +0,0 @@
-'\" t
-.\" Title: ltdbtool
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "LTDBTOOL" "1" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ltdbtool \- manipulate CTDB\*(Aqs local TDB files
-.SH "SYNOPSIS"
-.HP \w'\fBltdbtool\fR\ 'u
-\fBltdbtool\fR [\fIOPTION\fR...] {\fICOMMAND\fR} [\fICOMMAND\-ARGS\fR]
-.SH "DESCRIPTION"
-.PP
-ltdbtool is a utility to manipulate CTDB\*(Aqs local TDB databases (LTDBs) without connecting to a CTDB daemon\&.
-.PP
-It can be used to:
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-dump the contents of a LTDB, optionally printing the CTDB record header information,
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-convert between an LTDB and a non\-clustered tdb by adding or removing CTDB headers and
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-convert between 64 and 32 bit LTDBs where the CTDB record headers differ by 4 bytes of padding\&.
-.RE
-.SH "OPTIONS"
-.PP
-\-e
-.RS 4
-Dump empty records\&. These are normally excluded\&.
-.RE
-.PP
-\-p
-.RS 4
-Dump with header information, similar to "ctdb catdb"\&.
-.RE
-.PP
-\-s {0 | 32 | 64}
-.RS 4
-Specify how to determine the CTDB record header size for the input database:
-.PP
-0
-.RS 4
-no CTDB header
-.RE
-.PP
-32
-.RS 4
-CTDB header size of a 32 bit system (20 bytes)
-.RE
-.PP
-64
-.RS 4
-CTDB header size of a 64 bit system (24 bytes)
-.RE
-.sp
-The default is 32 or 64 depending on the system architecture\&.
-.RE
-.PP
-\-o {0 | 32 | 64}
-.RS 4
-Specify how to determine the CTDB record header size for the output database, see \-s\&.
-.RE
-.PP
-\-S \fISIZE\fR
-.RS 4
-Explicitly specify the CTDB record header SIZE of the input database in bytes\&.
-.RE
-.PP
-\-O \fISIZE\fR
-.RS 4
-Explicitly specify the CTDB record header SIZE for the output database in bytes\&.
-.RE
-.PP
-\-h
-.RS 4
-Print help text\&.
-.RE
-.SH "COMMANDS"
-.PP
-help
-.RS 4
-Print help text\&.
-.RE
-.PP
-dump \fIIDB\fR
-.RS 4
-Dump the contents of an LTDB input file IDB to standard output in a human\-readable format\&.
-.RE
-.PP
-convert \fIIDB\fR \fIODB\fR
-.RS 4
-Copy an LTDB input file IDB to output file ODB, optionally adding or removing CTDB headers\&.
-.RE
-.SH "EXAMPLES"
-.PP
-Print a local tdb in "tdbdump" style:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ltdbtool dump idmap2\&.tdb\&.0
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Print a local tdb with header information similar to "ctdb catdb":
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ltdbtool dump \-p idmap2\&.tdb\&.0
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Strip the CTDB headers from records:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ltdbtool convert \-o0 idmap2\&.tdb\&.0 idmap\&.tdb
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Strip 64 bit CTDB headers from records, running on i386:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ltdbtool convert \-s64 \-o0 idmap2\&.tdb\&.0 idmap\&.tdb
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Strip the CTDB headers from records by piping through tdbrestore:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ltdbtool dump idmap2\&.tdb\&.0 | tdbrestore idmap\&.tdb
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Convert a local tdb from a 64 bit system for usage on a 32 bit system:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ltdbtool convert \-s64 \-o32 idmap2\&.tdb\&.0 idmap2\&.tdb\&.1
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Add a default header:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ltdbtool convert \-s0 idmap\&.tdb idmap2\&.tdb\&.0
-
-.fi
-.if n \{\
-.RE
-.\}
-.SH "SEE ALSO"
-.PP
-\fBctdb\fR(1),
-\fBtdbdump\fR(1),
-\fBtdbrestore\fR(1),
-\fBctdb\fR(7),
-\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Gregor Beck
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2011 Gregor Beck, Michael Adam
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/masktest.1 b/net/samba47/files/man/masktest.1
deleted file mode 100644
index 3bb867e16f51..000000000000
--- a/net/samba47/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/samba47/files/man/ndrdump.1 b/net/samba47/files/man/ndrdump.1
deleted file mode 100644
index 4b32e0e15f65..000000000000
--- a/net/samba47/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/samba47/files/man/nmblookup4.1 b/net/samba47/files/man/nmblookup4.1
deleted file mode 100644
index 8b98f793c915..000000000000
--- a/net/samba47/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/samba47/files/man/ntlm_auth4.1 b/net/samba47/files/man/ntlm_auth4.1
deleted file mode 100644
index ad1863b7aa56..000000000000
--- a/net/samba47/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/samba47/files/man/oLschema2ldif.1 b/net/samba47/files/man/oLschema2ldif.1
deleted file mode 100644
index a5538d30c040..000000000000
--- a/net/samba47/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/samba47/files/man/onnode.1 b/net/samba47/files/man/onnode.1
deleted file mode 100644
index 76f426942153..000000000000
--- a/net/samba47/files/man/onnode.1
+++ /dev/null
@@ -1,252 +0,0 @@
-'\" t
-.\" Title: onnode
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "ONNODE" "1" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-onnode \- run commands on CTDB cluster nodes
-.SH "SYNOPSIS"
-.HP \w'\fBonnode\fR\ 'u
-\fBonnode\fR [\fIOPTION\fR...] {\fINODES\fR} {\fICOMMAND\fR}
-.SH "DESCRIPTION"
-.PP
-onnode is a utility to run commands on a specific node of a CTDB cluster, or on all nodes\&.
-.PP
-\fINODES\fR
-specifies which node(s) to run a command on\&. See section
-NODES SPECIFICATION
-for details\&.
-.PP
-\fICOMMAND\fR
-can be any shell command\&. The onnode utility uses ssh or rsh to connect to the remote nodes and run the command\&.
-.SH "OPTIONS"
-.PP
-\-c
-.RS 4
-Execute COMMAND in the current working directory on the specified nodes\&.
-.RE
-.PP
-\-f \fIFILENAME\fR
-.RS 4
-Specify an alternative nodes FILENAME to use instead of the default\&. This option overrides the CTDB_NODES_FILE and CTDB_NODES variables\&. See the discussion of
-/usr/local/etc/ctdb/nodes
-in the FILES section for more details\&.
-.RE
-.PP
-\-i
-.RS 4
-Keep standard input open, allowing data to be piped to onnode\&. Normally onnode closes stdin to avoid surprises when scripting\&. Note that this option is ignored when using
-\fB\-p\fR
-or if
-\fBSSH\fR
-is set to anything other than "ssh"\&.
-.RE
-.PP
-\-n
-.RS 4
-Allow nodes to be specified by name rather than node numbers\&. These nodes don\*(Aqt need to be listed in the nodes file\&. You can avoid the nodes file entirely by combining this with
-\-f /dev/null\&.
-.RE
-.PP
-\-o \fIPREFIX\fR
-.RS 4
-Causes standard output from each node to be saved into a file with name PREFIX\&.\fIIP\fR\&.
-.RE
-.PP
-\-p
-.RS 4
-Run COMMAND in parallel on the specified nodes\&. The default is to run COMMAND sequentially on each node\&.
-.RE
-.PP
-\-P
-.RS 4
-Push files to nodes\&. Names of files to push are specified rather than the usual command\&. Quoting is fragile/broken \- filenames with whitespace in them are not supported\&.
-.RE
-.PP
-\-q
-.RS 4
-Do not print node addresses\&. Normally, onnode prints informational node addresses if more than one node is specified\&. This overrides \-v\&.
-.RE
-.PP
-\-v
-.RS 4
-Print node addresses even if only one node is specified\&. Normally, onnode prints informational node addresses when more than one node is specified\&.
-.RE
-.PP
-\-h, \-\-help
-.RS 4
-Show a short usage guide\&.
-.RE
-.SH "NODES SPECIFICATION"
-.PP
-Nodes can be specified via numeric node numbers (from 0 to N\-1) or mnemonics\&. Multiple nodes are specified using lists of nodes, separated by commas, and ranges of numeric node numbers, separated by dashes\&. If nodes are specified multiple times then the command will be executed multiple times on those nodes\&. The order of nodes is significant\&.
-.PP
-The following mnemonics are available:
-.PP
-all
-.RS 4
-All nodes\&.
-.RE
-.PP
-any
-.RS 4
-A node where ctdbd is running\&. This semi\-random but there is a bias towards choosing a low numbered node\&.
-.RE
-.PP
-ok | healthy
-.RS 4
-All nodes that are not disconnected, banned, disabled or unhealthy\&.
-.RE
-.PP
-con | connected
-.RS 4
-All nodes that are not disconnected\&.
-.RE
-.SH "EXAMPLES"
-.PP
-The following command would show the process ID of ctdbd on all nodes
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- onnode all ctdb getpid
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-The following command would show the last 5 lines of log on each node, preceded by the node\*(Aqs hostname
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- onnode all "hostname; tail \-5 /usr/local/var/log/log\&.ctdb"
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-The following command would restart the ctdb service on all nodes, in parallel\&.
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- onnode \-p all service ctdb restart
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-The following command would run \&./foo in the current working directory, in parallel, on nodes 0, 2, 3 and 4\&.
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- onnode \-c \-p 0,2\-4 \&./foo
-
-.fi
-.if n \{\
-.RE
-.\}
-.SH "ENVIRONMENT"
-.PP
-\fBCTDB_BASE\fR
-.RS 4
-Directory containing CTDB configuration files\&. The default is
-/usr/local/etc/ctdb\&.
-.RE
-.PP
-\fBCTDB_NODES_FILE\fR
-.RS 4
-Name of alternative nodes file to use instead of the default\&. See the
-FILES
-section for more details\&.
-.RE
-.SH "FILES"
-.PP
-/usr/local/etc/ctdb/nodes
-.RS 4
-Default file containing a list of each node\*(Aqs IP address or hostname\&.
-.sp
-As above, a file specified via the
-\fB\-f\fR
-or
-\fBCTDB_NODES_FILE\fR
-is given precedence\&. If a relative path is specified and no corresponding file exists relative to the current directory then the file is also searched for in the
-$CTDB_BASE
-directory\&.
-.sp
-If
-\fBCTDB_NODES_FILE\fR
-is not set and
-\fBCTDB_NODES\fR
-is set in configuration then the file pointed to by
-\fBCTDB_NODES\fR
-is used\&.
-.sp
-Otherwise the default is
-$CTDB_BASE/nodes, where
-\fBCTDB_BASE\fR
-defaults to
-/usr/local/etc/ctdb\&.
-.RE
-.PP
-/usr/local/etc/ctdb/onnode\&.conf
-.RS 4
-If this file exists it is sourced by onnode\&. The main purpose is to allow the administrator to set
-\fBSSH\fR
-to something other than "ssh"\&. In this case the \-t option is ignored\&. For example, the administrator may choose to use use rsh instead of ssh\&.
-.RE
-.SH "SEE ALSO"
-.PP
-\fBctdb\fR(7),
-\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Andrew Tridgell, Martin Schwenke
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg
-.br
-Copyright \(co 2008 Martin Schwenke
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/ping_pong.1 b/net/samba47/files/man/ping_pong.1
deleted file mode 100644
index 6c9f213b902e..000000000000
--- a/net/samba47/files/man/ping_pong.1
+++ /dev/null
@@ -1,122 +0,0 @@
-'\" t
-.\" Title: ping_pong
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 11/20/2017
-.\" Manual: CTDB - clustered TDB database
-.\" Source: ctdb
-.\" Language: English
-.\"
-.TH "PING_PONG" "1" "11/20/2017" "ctdb" "CTDB \- clustered TDB database"
-.\" -----------------------------------------------------------------
-.\" * 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"
-ping_pong \- measures the ping\-pong byte range lock latency
-.SH "SYNOPSIS"
-.HP \w'\fBping_pong\fR\ 'u
-\fBping_pong\fR {\-r | \-w | \-rw} [\-m] [\-c] {\fIFILENAME\fR} {\fINUM\-LOCKS\fR}
-.SH "DESCRIPTION"
-.PP
-ping_pong measures the byte range lock latency\&. It is especially useful on a cluster of nodes sharing a common lock manager as it will give some indication of the lock manager\*(Aqs performance under stress\&.
-.PP
-FILENAME is a file on shared storage to use for byte range locking tests\&.
-.PP
-NUM\-LOCKS is the number of byte range locks, so needs to be (strictly) greater than the number of nodes in the cluster\&.
-.SH "OPTIONS"
-.PP
-\-r
-.RS 4
-test read performance
-.RE
-.PP
-\-w
-.RS 4
-test write performance
-.RE
-.PP
-\-m
-.RS 4
-use mmap
-.RE
-.PP
-\-c
-.RS 4
-validate the locks
-.RE
-.SH "EXAMPLES"
-.PP
-Testing lock coherence
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ping_pong test\&.dat N
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Testing lock coherence with lock validation
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ping_pong \-c test\&.dat N
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Testing IO coherence
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ping_pong \-rw test\&.dat N
-
-.fi
-.if n \{\
-.RE
-.\}
-.SH "SEE ALSO"
-.PP
-\fBctdb\fR(7),
-\m[blue]\fB\%https://wiki.samba.org/index.php/Ping_pong\fR\m[]
-.SH "AUTHOR"
-.br
-.PP
-This documentation was written by Mathieu Parent
-.SH "COPYRIGHT"
-.br
-Copyright \(co 2002 Andrew Tridgell
-.br
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see
-\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
-.sp
diff --git a/net/samba47/files/man/regdiff.1 b/net/samba47/files/man/regdiff.1
deleted file mode 100644
index 5828876a99ab..000000000000
--- a/net/samba47/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/samba47/files/man/regpatch.1 b/net/samba47/files/man/regpatch.1
deleted file mode 100644
index ac290c39db2b..000000000000
--- a/net/samba47/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/samba47/files/man/regshell.1 b/net/samba47/files/man/regshell.1
deleted file mode 100644
index 67bbebc7b819..000000000000
--- a/net/samba47/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/samba47/files/man/regtree.1 b/net/samba47/files/man/regtree.1
deleted file mode 100644
index bd6d2997e756..000000000000
--- a/net/samba47/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/samba47/files/man/smbtorture.1 b/net/samba47/files/man/smbtorture.1
deleted file mode 100644
index c35fe067bd88..000000000000
--- a/net/samba47/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/samba47/files/man/talloc.3 b/net/samba47/files/man/talloc.3
deleted file mode 100644
index 6a10b4990c2e..000000000000
--- a/net/samba47/files/man/talloc.3
+++ /dev/null
@@ -1,683 +0,0 @@
-'\" t
-.\" Title: talloc
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 2015-04-10
-.\" Manual: System Administration tools
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "TALLOC" "3" "2015\-04\-10" "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"
-talloc \- hierarchical reference counted memory pool system with destructors
-.SH "SYNOPSIS"
-.sp
-.nf
-#include <talloc\&.h>
-.fi
-.SH "DESCRIPTION"
-.PP
-If you are used to talloc from Samba3 then please read this carefully, as talloc has changed a lot\&.
-.PP
-The new talloc is a hierarchical, reference counted memory pool system with destructors\&. Quite a mouthful really, but not too bad once you get used to it\&.
-.PP
-Perhaps the biggest change from Samba3 is that there is no distinction between a "talloc context" and a "talloc pointer"\&. Any pointer returned from talloc() is itself a valid talloc context\&. This means you can do this:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- struct foo *X = talloc(mem_ctx, struct foo);
- X\->name = talloc_strdup(X, "foo");
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-and the pointer
-X\->name
-would be a "child" of the talloc context
-X
-which is itself a child of
-mem_ctx\&. So if you do
-talloc_free(mem_ctx)
-then it is all destroyed, whereas if you do
-talloc_free(X)
-then just
-X
-and
-X\->name
-are destroyed, and if you do
-talloc_free(X\->name)
-then just the name element of
-X
-is destroyed\&.
-.PP
-If you think about this, then what this effectively gives you is an n\-ary tree, where you can free any part of the tree with talloc_free()\&.
-.PP
-If you find this confusing, then I suggest you run the
-testsuite
-program to watch talloc in action\&. You may also like to add your own tests to
-testsuite\&.c
-to clarify how some particular situation is handled\&.
-.SH "TALLOC API"
-.PP
-The following is a complete guide to the talloc API\&. Read it all at least twice\&.
-.SS "(type *)talloc(const void *ctx, type);"
-.PP
-The talloc() macro is the core of the talloc library\&. It takes a memory
-\fIctx\fR
-and a
-\fItype\fR, and returns a pointer to a new area of memory of the given
-\fItype\fR\&.
-.PP
-The returned pointer is itself a talloc context, so you can use it as the
-\fIctx\fR
-argument to more calls to talloc() if you wish\&.
-.PP
-The returned pointer is a "child" of the supplied context\&. This means that if you talloc_free() the
-\fIctx\fR
-then the new child disappears as well\&. Alternatively you can free just the child\&.
-.PP
-The
-\fIctx\fR
-argument to talloc() can be NULL, in which case a new top level context is created\&.
-.SS "void *talloc_size(const void *ctx, size_t size);"
-.PP
-The function talloc_size() should be used when you don\*(Aqt have a convenient type to pass to talloc()\&. Unlike talloc(), it is not type safe (as it returns a void *), so you are on your own for type checking\&.
-.SS "(typeof(ptr)) talloc_ptrtype(const void *ctx, ptr);"
-.PP
-The talloc_ptrtype() macro should be used when you have a pointer and want to allocate memory to point at with this pointer\&. When compiling with gcc >= 3 it is typesafe\&. Note this is a wrapper of talloc_size() and talloc_get_name() will return the current location in the source file\&. and not the type\&.
-.SS "int talloc_free(void *ptr);"
-.PP
-The talloc_free() function frees a piece of talloc memory, and all its children\&. You can call talloc_free() on any pointer returned by talloc()\&.
-.PP
-The return value of talloc_free() indicates success or failure, with 0 returned for success and \-1 for failure\&. The only possible failure condition is if
-\fIptr\fR
-had a destructor attached to it and the destructor returned \-1\&. See
-\(lqtalloc_set_destructor()\(rq
-for details on destructors\&.
-.PP
-If this pointer has an additional parent when talloc_free() is called then the memory is not actually released, but instead the most recently established parent is destroyed\&. See
-\(lqtalloc_reference()\(rq
-for details on establishing additional parents\&.
-.PP
-For more control on which parent is removed, see
-\(lqtalloc_unlink()\(rq\&.
-.PP
-talloc_free() operates recursively on its children\&.
-.PP
-From the 2\&.0 version of talloc, as a special case, talloc_free() is refused on pointers that have more than one parent, as talloc would have no way of knowing which parent should be removed\&. To free a pointer that has more than one parent please use talloc_unlink()\&.
-.PP
-To help you find problems in your code caused by this behaviour, if you do try and free a pointer with more than one parent then the talloc logging function will be called to give output like this:
-.PP
-
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- ERROR: talloc_free with references at some_dir/source/foo\&.c:123
- reference at some_dir/source/other\&.c:325
- reference at some_dir/source/third\&.c:121
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Please see the documentation for talloc_set_log_fn() and talloc_set_log_stderr() for more information on talloc logging functions\&.
-.SS "void *talloc_reference(const void *ctx, const void *ptr);"
-.PP
-The talloc_reference() function makes
-\fIctx\fR
-an additional parent of
-\fIptr\fR\&.
-.PP
-The return value of talloc_reference() is always the original pointer
-\fIptr\fR, unless talloc ran out of memory in creating the reference in which case it will return NULL (each additional reference consumes around 48 bytes of memory on intel x86 platforms)\&.
-.PP
-If
-\fIptr\fR
-is NULL, then the function is a no\-op, and simply returns NULL\&.
-.PP
-After creating a reference you can free it in one of the following ways:
-.PP
-
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-you can talloc_free() any parent of the original pointer\&. That will reduce the number of parents of this pointer by 1, and will cause this pointer to be freed if it runs out of parents\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-you can talloc_free() the pointer itself if it has at maximum one parent\&. This behaviour has been changed since the release of version 2\&.0\&. Further informations in the description of "talloc_free"\&.
-.RE
-.PP
-For more control on which parent to remove, see
-\(lqtalloc_unlink()\(rq\&.
-.SS "int talloc_unlink(const void *ctx, void *ptr);"
-.PP
-The talloc_unlink() function removes a specific parent from
-\fIptr\fR\&. The
-\fIctx\fR
-passed must either be a context used in talloc_reference() with this pointer, or must be a direct parent of ptr\&.
-.PP
-Note that if the parent has already been removed using talloc_free() then this function will fail and will return \-1\&. Likewise, if
-\fIptr\fR
-is NULL, then the function will make no modifications and return \-1\&.
-.PP
-Usually you can just use talloc_free() instead of talloc_unlink(), but sometimes it is useful to have the additional control on which parent is removed\&.
-.SS "void talloc_set_destructor(const void *ptr, int (*destructor)(void *));"
-.PP
-The function talloc_set_destructor() sets the
-\fIdestructor\fR
-for the pointer
-\fIptr\fR\&. A
-\fIdestructor\fR
-is a function that is called when the memory used by a pointer is about to be released\&. The destructor receives
-\fIptr\fR
-as an argument, and should return 0 for success and \-1 for failure\&.
-.PP
-The
-\fIdestructor\fR
-can do anything it wants to, including freeing other pieces of memory\&. A common use for destructors is to clean up operating system resources (such as open file descriptors) contained in the structure the destructor is placed on\&.
-.PP
-You can only place one destructor on a pointer\&. If you need more than one destructor then you can create a zero\-length child of the pointer and place an additional destructor on that\&.
-.PP
-To remove a destructor call talloc_set_destructor() with NULL for the destructor\&.
-.PP
-If your destructor attempts to talloc_free() the pointer that it is the destructor for then talloc_free() will return \-1 and the free will be ignored\&. This would be a pointless operation anyway, as the destructor is only called when the memory is just about to go away\&.
-.SS "int talloc_increase_ref_count(const void *\fIptr\fR);"
-.PP
-The talloc_increase_ref_count(\fIptr\fR) function is exactly equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-talloc_reference(NULL, ptr);
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-You can use either syntax, depending on which you think is clearer in your code\&.
-.PP
-It returns 0 on success and \-1 on failure\&.
-.SS "size_t talloc_reference_count(const void *\fIptr\fR);"
-.PP
-Return the number of references to the pointer\&.
-.SS "void talloc_set_name(const void *ptr, const char *fmt, \&.\&.\&.);"
-.PP
-Each talloc pointer has a "name"\&. The name is used principally for debugging purposes, although it is also possible to set and get the name on a pointer in as a way of "marking" pointers in your code\&.
-.PP
-The main use for names on pointer is for "talloc reports"\&. See
-\(lqtalloc_report_depth_cb()\(rq,
-\(lqtalloc_report_depth_file()\(rq,
-\(lqtalloc_report()\(rq
-\(lqtalloc_report()\(rq
-and
-\(lqtalloc_report_full()\(rq
-for details\&. Also see
-\(lqtalloc_enable_leak_report()\(rq
-and
-\(lqtalloc_enable_leak_report_full()\(rq\&.
-.PP
-The talloc_set_name() function allocates memory as a child of the pointer\&. It is logically equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-talloc_set_name_const(ptr, talloc_asprintf(ptr, fmt, \&.\&.\&.));
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-Note that multiple calls to talloc_set_name() will allocate more memory without releasing the name\&. All of the memory is released when the ptr is freed using talloc_free()\&.
-.SS "void talloc_set_name_const(const void *\fIptr\fR, const char *\fIname\fR);"
-.PP
-The function talloc_set_name_const() is just like talloc_set_name(), but it takes a string constant, and is much faster\&. It is extensively used by the "auto naming" macros, such as talloc_p()\&.
-.PP
-This function does not allocate any memory\&. It just copies the supplied pointer into the internal representation of the talloc ptr\&. This means you must not pass a
-\fIname\fR
-pointer to memory that will disappear before
-\fIptr\fR
-is freed with talloc_free()\&.
-.SS "void *talloc_named(const void *\fIctx\fR, size_t \fIsize\fR, const char *\fIfmt\fR, \&.\&.\&.);"
-.PP
-The talloc_named() function creates a named talloc pointer\&. It is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-ptr = talloc_size(ctx, size);
-talloc_set_name(ptr, fmt, \&.\&.\&.\&.);
-.fi
-.if n \{\
-.RE
-.\}
-.SS "void *talloc_named_const(const void *\fIctx\fR, size_t \fIsize\fR, const char *\fIname\fR);"
-.PP
-This is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-ptr = talloc_size(ctx, size);
-talloc_set_name_const(ptr, name);
-.fi
-.if n \{\
-.RE
-.\}
-.SS "const char *talloc_get_name(const void *\fIptr\fR);"
-.PP
-This returns the current name for the given talloc pointer,
-\fIptr\fR\&. See
-\(lqtalloc_set_name()\(rq
-for details\&.
-.SS "void *talloc_init(const char *\fIfmt\fR, \&.\&.\&.);"
-.PP
-This function creates a zero length named talloc context as a top level context\&. It is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-talloc_named(NULL, 0, fmt, \&.\&.\&.);
-.fi
-.if n \{\
-.RE
-.\}
-.SS "void *talloc_new(void *\fIctx\fR);"
-.PP
-This is a utility macro that creates a new memory context hanging off an existing context, automatically naming it "talloc_new: __location__" where __location__ is the source line it is called from\&. It is particularly useful for creating a new temporary working context\&.
-.SS "(\fItype\fR *)talloc_realloc(const void *\fIctx\fR, void *\fIptr\fR, \fItype\fR, \fIcount\fR);"
-.PP
-The talloc_realloc() macro changes the size of a talloc pointer\&. It has the following equivalences:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-talloc_realloc(ctx, NULL, type, 1) ==> talloc(ctx, type);
-talloc_realloc(ctx, ptr, type, 0) ==> talloc_free(ptr);
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-The
-\fIctx\fR
-argument is only used if
-\fIptr\fR
-is not NULL, otherwise it is ignored\&.
-.PP
-talloc_realloc() returns the new pointer, or NULL on failure\&. The call will fail either due to a lack of memory, or because the pointer has more than one parent (see
-\(lqtalloc_reference()\(rq)\&.
-.SS "void *talloc_realloc_size(const void *ctx, void *ptr, size_t size);"
-.PP
-the talloc_realloc_size() function is useful when the type is not known so the type\-safe talloc_realloc() cannot be used\&.
-.SS "TYPE *talloc_steal(const void *\fInew_ctx\fR, const TYPE *\fIptr\fR);"
-.PP
-The talloc_steal() function changes the parent context of a talloc pointer\&. It is typically used when the context that the pointer is currently a child of is going to be freed and you wish to keep the memory for a longer time\&.
-.PP
-The talloc_steal() function returns the pointer that you pass it\&. It does not have any failure modes\&.
-.PP
-It is possible to produce loops in the parent/child relationship if you are not careful with talloc_steal()\&. No guarantees are provided as to your sanity or the safety of your data if you do this\&.
-.PP
-Note that if you try and call talloc_steal() on a pointer that has more than one parent then the result is ambiguous\&. Talloc will choose to remove the parent that is currently indicated by talloc_parent() and replace it with the chosen parent\&. You will also get a message like this via the talloc logging functions:
-.PP
-
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
- WARNING: talloc_steal with references at some_dir/source/foo\&.c:123
- reference at some_dir/source/other\&.c:325
- reference at some_dir/source/third\&.c:121
-
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-To unambiguously change the parent of a pointer please see the function
-\(lqtalloc_reparent()\(rq\&. See the talloc_set_log_fn() documentation for more information on talloc logging\&.
-.SS "TYPE *talloc_reparent(const void *\fIold_parent\fR, const void *\fInew_parent\fR, const TYPE *\fIptr\fR);"
-.PP
-The talloc_reparent() function changes the parent context of a talloc pointer\&. It is typically used when the context that the pointer is currently a child of is going to be freed and you wish to keep the memory for a longer time\&.
-.PP
-The talloc_reparent() function returns the pointer that you pass it\&. It does not have any failure modes\&.
-.PP
-The difference between talloc_reparent() and talloc_steal() is that talloc_reparent() can specify which parent you wish to change\&. This is useful when a pointer has multiple parents via references\&.
-.SS "TYPE *talloc_move(const void *\fInew_ctx\fR, TYPE **\fIptr\fR);"
-.PP
-The talloc_move() function is a wrapper around talloc_steal() which zeros the source pointer after the move\&. This avoids a potential source of bugs where a programmer leaves a pointer in two structures, and uses the pointer from the old structure after it has been moved to a new one\&.
-.SS "size_t talloc_total_size(const void *\fIptr\fR);"
-.PP
-The talloc_total_size() function returns the total size in bytes used by this pointer and all child pointers\&. Mostly useful for debugging\&.
-.PP
-Passing NULL is allowed, but it will only give a meaningful result if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&.
-.SS "size_t talloc_total_blocks(const void *\fIptr\fR);"
-.PP
-The talloc_total_blocks() function returns the total memory block count used by this pointer and all child pointers\&. Mostly useful for debugging\&.
-.PP
-Passing NULL is allowed, but it will only give a meaningful result if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&.
-.SS "void talloc_report(const void *ptr, FILE *f);"
-.PP
-The talloc_report() function prints a summary report of all memory used by
-\fIptr\fR\&. One line of report is printed for each immediate child of ptr, showing the total memory and number of blocks used by that child\&.
-.PP
-You can pass NULL for the pointer, in which case a report is printed for the top level memory context, but only if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&.
-.SS "void talloc_report_full(const void *\fIptr\fR, FILE *\fIf\fR);"
-.PP
-This provides a more detailed report than talloc_report()\&. It will recursively print the entire tree of memory referenced by the pointer\&. References in the tree are shown by giving the name of the pointer that is referenced\&.
-.PP
-You can pass NULL for the pointer, in which case a report is printed for the top level memory context, but only if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&.
-.SS ""
-.HP \w'void\ talloc_report_depth_cb('u
-.BI "void talloc_report_depth_cb(" "const\ void\ *ptr" ", " "int\ depth" ", " "int\ max_depth" ", " "void\ (*callback)(const\ void\ *ptr,\ int\ depth,\ int\ max_depth,\ int\ is_ref,\ void\ *priv)" ", " "void\ *priv" ");"
-.PP
-This provides a more flexible reports than talloc_report()\&. It will recursively call the callback for the entire tree of memory referenced by the pointer\&. References in the tree are passed with
-\fIis_ref = 1\fR
-and the pointer that is referenced\&.
-.PP
-You can pass NULL for the pointer, in which case a report is printed for the top level memory context, but only if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&.
-.PP
-The recursion is stopped when depth >= max_depth\&. max_depth = \-1 means only stop at leaf nodes\&.
-.SS ""
-.HP \w'void\ talloc_report_depth_file('u
-.BI "void talloc_report_depth_file(" "const\ void\ *ptr" ", " "int\ depth" ", " "int\ max_depth" ", " "FILE\ *f" ");"
-.PP
-This provides a more flexible reports than talloc_report()\&. It will let you specify the depth and max_depth\&.
-.SS "void talloc_enable_leak_report(void);"
-.PP
-This enables calling of talloc_report(NULL, stderr) when the program exits\&. In Samba4 this is enabled by using the \-\-leak\-report command line option\&.
-.PP
-For it to be useful, this function must be called before any other talloc function as it establishes a "null context" that acts as the top of the tree\&. If you don\*(Aqt call this function first then passing NULL to talloc_report() or talloc_report_full() won\*(Aqt give you the full tree printout\&.
-.PP
-Here is a typical talloc report:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-talloc report on \*(Aqnull_context\*(Aq (total 267 bytes in 15 blocks)
-libcli/auth/spnego_parse\&.c:55 contains 31 bytes in 2 blocks
-libcli/auth/spnego_parse\&.c:55 contains 31 bytes in 2 blocks
-iconv(UTF8,CP850) contains 42 bytes in 2 blocks
-libcli/auth/spnego_parse\&.c:55 contains 31 bytes in 2 blocks
-iconv(CP850,UTF8) contains 42 bytes in 2 blocks
-iconv(UTF8,UTF\-16LE) contains 45 bytes in 2 blocks
-iconv(UTF\-16LE,UTF8) contains 45 bytes in 2 blocks
-
-.fi
-.if n \{\
-.RE
-.\}
-.SS "void talloc_enable_leak_report_full(void);"
-.PP
-This enables calling of talloc_report_full(NULL, stderr) when the program exits\&. In Samba4 this is enabled by using the \-\-leak\-report\-full command line option\&.
-.PP
-For it to be useful, this function must be called before any other talloc function as it establishes a "null context" that acts as the top of the tree\&. If you don\*(Aqt call this function first then passing NULL to talloc_report() or talloc_report_full() won\*(Aqt give you the full tree printout\&.
-.PP
-Here is a typical full report:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-full talloc report on \*(Aqroot\*(Aq (total 18 bytes in 8 blocks)
-p1 contains 18 bytes in 7 blocks (ref 0)
- r1 contains 13 bytes in 2 blocks (ref 0)
- reference to: p2
- p2 contains 1 bytes in 1 blocks (ref 1)
- x3 contains 1 bytes in 1 blocks (ref 0)
- x2 contains 1 bytes in 1 blocks (ref 0)
- x1 contains 1 bytes in 1 blocks (ref 0)
-
-.fi
-.if n \{\
-.RE
-.\}
-.SS "(\fItype\fR *)talloc_zero(const void *\fIctx\fR, \fItype\fR);"
-.PP
-The talloc_zero() macro is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-ptr = talloc(ctx, type);
-if (ptr) memset(ptr, 0, sizeof(type));
-.fi
-.if n \{\
-.RE
-.\}
-.SS "void *talloc_zero_size(const void *\fIctx\fR, size_t \fIsize\fR)"
-.PP
-The talloc_zero_size() function is useful when you don\*(Aqt have a known type\&.
-.SS "void *talloc_memdup(const void *\fIctx\fR, const void *\fIp\fR, size_t size);"
-.PP
-The talloc_memdup() function is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-ptr = talloc_size(ctx, size);
-if (ptr) memcpy(ptr, p, size);
-.fi
-.if n \{\
-.RE
-.\}
-.SS "char *talloc_strdup(const void *\fIctx\fR, const char *\fIp\fR);"
-.PP
-The talloc_strdup() function is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-ptr = talloc_size(ctx, strlen(p)+1);
-if (ptr) memcpy(ptr, p, strlen(p)+1);
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-This function sets the name of the new pointer to the passed string\&. This is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-talloc_set_name_const(ptr, ptr)
-.fi
-.if n \{\
-.RE
-.\}
-.SS "char *talloc_strndup(const void *\fIt\fR, const char *\fIp\fR, size_t \fIn\fR);"
-.PP
-The talloc_strndup() function is the talloc equivalent of the C library function strndup(3)\&.
-.PP
-This function sets the name of the new pointer to the passed string\&. This is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-talloc_set_name_const(ptr, ptr)
-.fi
-.if n \{\
-.RE
-.\}
-.SS "char *talloc_vasprintf(const void *\fIt\fR, const char *\fIfmt\fR, va_list \fIap\fR);"
-.PP
-The talloc_vasprintf() function is the talloc equivalent of the C library function vasprintf(3)\&.
-.PP
-This function sets the name of the new pointer to the new string\&. This is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-talloc_set_name_const(ptr, ptr)
-.fi
-.if n \{\
-.RE
-.\}
-.SS "char *talloc_asprintf(const void *\fIt\fR, const char *\fIfmt\fR, \&.\&.\&.);"
-.PP
-The talloc_asprintf() function is the talloc equivalent of the C library function asprintf(3)\&.
-.PP
-This function sets the name of the new pointer to the passed string\&. This is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-talloc_set_name_const(ptr, ptr)
-.fi
-.if n \{\
-.RE
-.\}
-.SS "char *talloc_asprintf_append(char *s, const char *fmt, \&.\&.\&.);"
-.PP
-The talloc_asprintf_append() function appends the given formatted string to the given string\&.
-.PP
-This function sets the name of the new pointer to the new string\&. This is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-talloc_set_name_const(ptr, ptr)
-.fi
-.if n \{\
-.RE
-.\}
-.SS "(type *)talloc_array(const void *ctx, type, unsigned int count);"
-.PP
-The talloc_array() macro is equivalent to:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-(type *)talloc_size(ctx, sizeof(type) * count);
-.fi
-.if n \{\
-.RE
-.\}
-.PP
-except that it provides integer overflow protection for the multiply, returning NULL if the multiply overflows\&.
-.SS "void *talloc_array_size(const void *ctx, size_t size, unsigned int count);"
-.PP
-The talloc_array_size() function is useful when the type is not known\&. It operates in the same way as talloc_array(), but takes a size instead of a type\&.
-.SS "(typeof(ptr)) talloc_array_ptrtype(const void *ctx, ptr, unsigned int count);"
-.PP
-The talloc_ptrtype() macro should be used when you have a pointer to an array and want to allocate memory of an array to point at with this pointer\&. When compiling with gcc >= 3 it is typesafe\&. Note this is a wrapper of talloc_array_size() and talloc_get_name() will return the current location in the source file\&. and not the type\&.
-.SS "void *talloc_realloc_fn(const void *ctx, void *ptr, size_t size)"
-.PP
-This is a non\-macro version of talloc_realloc(), which is useful as libraries sometimes want a realloc function pointer\&. A realloc(3) implementation encapsulates the functionality of malloc(3), free(3) and realloc(3) in one call, which is why it is useful to be able to pass around a single function pointer\&.
-.SS "void *talloc_autofree_context(void);"
-.PP
-This is a handy utility function that returns a talloc context which will be automatically freed on program exit\&. This can be used to reduce the noise in memory leak reports\&.
-.SS "void *talloc_check_name(const void *ptr, const char *name);"
-.PP
-This function checks if a pointer has the specified
-\fIname\fR\&. If it does then the pointer is returned\&. It it doesn\*(Aqt then NULL is returned\&.
-.SS "(type *)talloc_get_type(const void *ptr, type);"
-.PP
-This macro allows you to do type checking on talloc pointers\&. It is particularly useful for void* private pointers\&. It is equivalent to this:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-(type *)talloc_check_name(ptr, #type)
-.fi
-.if n \{\
-.RE
-.\}
-.SS "talloc_set_type(const void *ptr, type);"
-.PP
-This macro allows you to force the name of a pointer to be a particular
-\fItype\fR\&. This can be used in conjunction with talloc_get_type() to do type checking on void* pointers\&.
-.PP
-It is equivalent to this:
-.sp
-.if n \{\
-.RS 4
-.\}
-.nf
-talloc_set_name_const(ptr, #type)
-.fi
-.if n \{\
-.RE
-.\}
-.SS "talloc_set_log_fn(void (*log_fn)(const char *message));"
-.PP
-This function sets a logging function that talloc will use for warnings and errors\&. By default talloc will not print any warnings or errors\&.
-.SS "talloc_set_log_stderr(void);"
-.PP
-This sets the talloc log function to write log messages to stderr
-.SH "PERFORMANCE"
-.PP
-All the additional features of talloc(3) over malloc(3) do come at a price\&. We have a simple performance test in Samba4 that measures talloc() versus malloc() performance, and it seems that talloc() is about 10% slower than malloc() on my x86 Debian Linux box\&. For Samba, the great reduction in code complexity that we get by using talloc makes this worthwhile, especially as the total overhead of talloc/malloc in Samba is already quite small\&.
-.SH "SEE ALSO"
-.PP
-malloc(3), strndup(3), vasprintf(3), asprintf(3),
-\m[blue]\fB\%http://talloc.samba.org/\fR\m[]
-.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\&.
-.SH "COPYRIGHT/LICENSE"
-.PP
-Copyright (C) Andrew Tridgell 2004
-.PP
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
-.PP
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
-.PP
-You should have received a copy of the GNU General Public License along with this program; if not, see http://www\&.gnu\&.org/licenses/\&.
diff --git a/net/samba47/files/man/tdbbackup.8 b/net/samba47/files/man/tdbbackup.8
deleted file mode 100644
index 92f510aecccf..000000000000
--- a/net/samba47/files/man/tdbbackup.8
+++ /dev/null
@@ -1,129 +0,0 @@
-'\" t
-.\" Title: tdbbackup
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 2015-04-25
-.\" Manual: System Administration tools
-.\" Source: Samba 3.6
-.\" Language: English
-.\"
-.TH "TDBBACKUP" "8" "2015\-04\-25" "Samba 3\&.6" "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"
-tdbbackup \- tool for backing up and for validating the integrity of samba \&.tdb files
-.SH "SYNOPSIS"
-.HP \w'\fBtdbbackup\fR\ 'u
-\fBtdbbackup\fR [\-s\ suffix] [\-v] [\-h] [\-l]
-.SH "DESCRIPTION"
-.PP
-This tool is part of the
-\fBsamba\fR(1)
-suite\&.
-.PP
-\fBtdbbackup\fR
-is a tool that may be used to backup samba \&.tdb files\&. This tool may also be used to verify the integrity of the \&.tdb files prior to samba startup or during normal operation\&. If it finds file damage and it finds a prior backup the backup file will be restored\&.
-.SH "OPTIONS"
-.PP
-\-h
-.RS 4
-Get help information\&.
-.RE
-.PP
-\-s suffix
-.RS 4
-The
-\fB\-s\fR
-option allows the administrator to specify a file backup extension\&. This way it is possible to keep a history of tdb backup files by using a new suffix for each backup\&.
-.RE
-.PP
-\-v
-.RS 4
-The
-\fB\-v\fR
-will check the database for damages (corrupt data) which if detected causes the backup to be restored\&.
-.RE
-.PP
-\-l
-.RS 4
-This options disables any locking, by passing TDB_NOLOCK to tdb_open_ex()\&. Only use this for database files which are not used by any other process! And also only if it is otherwise not possible to open the database, e\&.g\&. databases which were created with mutex locking\&.
-.RE
-.SH "COMMANDS"
-.PP
-\fIGENERAL INFORMATION\fR
-.PP
-The
-\fBtdbbackup\fR
-utility can safely be run at any time\&. It was designed so that it can be used at any time to validate the integrity of tdb files, even during Samba operation\&. Typical usage for the command will be:
-.PP
-tdbbackup [\-s suffix] *\&.tdb
-.PP
-Before restarting samba the following command may be run to validate \&.tdb files:
-.PP
-tdbbackup \-v [\-s suffix] *\&.tdb
-.PP
-Samba \&.tdb files are stored in various locations, be sure to run backup all \&.tdb file on the system\&. Important files includes:
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBsecrets\&.tdb\fR
-\- usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fBpassdb\&.tdb\fR
-\- usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba\&.
-.RE
-.sp
-.RS 4
-.ie n \{\
-\h'-04'\(bu\h'+03'\c
-.\}
-.el \{\
-.sp -1
-.IP \(bu 2.3
-.\}
-
-\fB*\&.tdb\fR
-located in the /usr/local/samba/var directory or on some systems in the /var/cache or /var/lib/samba directories\&.
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 3 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 tdbbackup man page was written by John H Terpstra\&.
diff --git a/net/samba47/files/man/tdbdump.8 b/net/samba47/files/man/tdbdump.8
deleted file mode 100644
index 86d9e2c67556..000000000000
--- a/net/samba47/files/man/tdbdump.8
+++ /dev/null
@@ -1,72 +0,0 @@
-'\" t
-.\" Title: tdbdump
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 2015-04-25
-.\" Manual: System Administration tools
-.\" Source: Samba 3.6
-.\" Language: English
-.\"
-.TH "TDBDUMP" "8" "2015\-04\-25" "Samba 3\&.6" "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"
-tdbdump \- tool for printing the contents of a TDB file
-.SH "SYNOPSIS"
-.HP \w'\fBtdbdump\fR\ 'u
-\fBtdbdump\fR [\-k\ \fIkeyname\fR] [\-e] [\-h] {filename}
-.SH "DESCRIPTION"
-.PP
-This tool is part of the
-\fBsamba\fR(1)
-suite\&.
-.PP
-\fBtdbdump\fR
-is a very simple utility that \*(Aqdumps\*(Aq the contents of a TDB (Trivial DataBase) file to standard output in a human\-readable format\&.
-.PP
-This tool can be used when debugging problems with TDB files\&. It is intended for those who are somewhat familiar with Samba internals\&.
-.SH "OPTIONS"
-.PP
-\-h
-.RS 4
-Get help information\&.
-.RE
-.PP
-\-k \fIkeyname\fR
-.RS 4
-The
-\fB\-k\fR
-option restricts dumping to a single key, if found\&.
-.RE
-.PP
-\-e
-.RS 4
-The
-\fB\-e\fR
-tries to dump out from a corrupt database\&. Naturally, such a dump is unreliable, at best\&.
-.RE
-.SH "VERSION"
-.PP
-This man page is correct for version 3 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 tdbdump man page was written by Jelmer Vernooij\&.
diff --git a/net/samba47/files/man/tdbrestore.8 b/net/samba47/files/man/tdbrestore.8
deleted file mode 100644
index 28632ac094c5..000000000000
--- a/net/samba47/files/man/tdbrestore.8
+++ /dev/null
@@ -1,54 +0,0 @@
-'\" t
-.\" Title: tdbrestore
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 2015-04-25
-.\" Manual: System Administration tools
-.\" Source: Samba 3.6
-.\" Language: English
-.\"
-.TH "TDBRESTORE" "8" "2015\-04\-25" "Samba 3\&.6" "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"
-tdbrestore \- tool for creating a TDB file out of a tdbdump output
-.SH "SYNOPSIS"
-.HP \w'\fBtdbrestore\fR\ 'u
-\fBtdbrestore\fR {tdbfilename}
-.SH "DESCRIPTION"
-.PP
-This tool is part of the
-\fBsamba\fR(1)
-suite\&.
-.PP
-\fBtdbrestore\fR
-is a very simple utility that \*(Aqrestores\*(Aq the contents of dump file into TDB (Trivial DataBase) file\&. The dump file is obtained from the tdbdump command\&.
-.PP
-This tool wait on the standard input for the content of the dump and will write the tdb in the tdbfilename parameter\&.
-.PP
-This tool can be used for unpacking the content of tdb as backup mean\&.
-.SH "VERSION"
-.PP
-This man page is correct for version 3 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\&. This tool was initially written by Volker Lendecke based on an idea by Simon McVittie\&.
-.PP
-The tdbrestore man page was written by Matthieu Patou\&.
diff --git a/net/samba47/files/man/tdbtool.8 b/net/samba47/files/man/tdbtool.8
deleted file mode 100644
index 04ed76594c19..000000000000
--- a/net/samba47/files/man/tdbtool.8
+++ /dev/null
@@ -1,170 +0,0 @@
-'\" t
-.\" Title: tdbtool
-.\" Author: [see the "AUTHOR" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\" Date: 2015-04-25
-.\" Manual: System Administration tools
-.\" Source: Samba 4.0
-.\" Language: English
-.\"
-.TH "TDBTOOL" "8" "2015\-04\-25" "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"
-tdbtool \- manipulate the contents TDB files
-.SH "SYNOPSIS"
-.HP \w'\fBtdbtool\fR\ 'u
-\fBtdbtool\fR
-.HP \w'\fBtdbtool\fR\ 'u
-\fBtdbtool\fR [\-l] \fITDBFILE\fR [\fICOMMANDS\fR...]
-.SH "DESCRIPTION"
-.PP
-This tool is part of the
-\fBsamba\fR(1)
-suite\&.
-.PP
-\fBtdbtool\fR
-a tool for displaying and altering the contents of Samba TDB (Trivial DataBase) files\&. Each of the commands listed below can be entered interactively or provided on the command line\&.
-.SH "OPTIONS"
-.PP
-\-l
-.RS 4
-This options disables any locking, by passing TDB_NOLOCK to tdb_open_ex()\&. Only use this for database files which are not used by any other process! And also only if it is otherwise not possible to open the database, e\&.g\&. databases which were created with mutex locking\&.
-.RE
-.SH "COMMANDS"
-.PP
-\fBcreate\fR \fITDBFILE\fR
-.RS 4
-Create a new database named
-\fITDBFILE\fR\&.
-.RE
-.PP
-\fBopen\fR \fITDBFILE\fR
-.RS 4
-Open an existing database named
-\fITDBFILE\fR\&.
-.RE
-.PP
-\fBerase\fR
-.RS 4
-Erase the current database\&.
-.RE
-.PP
-\fBdump\fR
-.RS 4
-Dump the current database as strings\&.
-.RE
-.PP
-\fBcdump\fR
-.RS 4
-Dump the current database as connection records\&.
-.RE
-.PP
-\fBkeys\fR
-.RS 4
-Dump the current database keys as strings\&.
-.RE
-.PP
-\fBhexkeys\fR
-.RS 4
-Dump the current database keys as hex values\&.
-.RE
-.PP
-\fBinfo\fR
-.RS 4
-Print summary information about the current database\&.
-.RE
-.PP
-\fBinsert\fR \fIKEY\fR \fIDATA\fR
-.RS 4
-Insert a record into the current database\&.
-.RE
-.PP
-\fBmove\fR \fIKEY\fR \fITDBFILE\fR
-.RS 4
-Move a record from the current database into
-\fITDBFILE\fR\&.
-.RE
-.PP
-\fBstore\fR \fIKEY\fR \fIDATA\fR
-.RS 4
-Store (replace) a record in the current database\&.
-.RE
-.PP
-\fBshow\fR \fIKEY\fR
-.RS 4
-Show a record by key\&.
-.RE
-.PP
-\fBdelete\fR \fIKEY\fR
-.RS 4
-Delete a record by key\&.
-.RE
-.PP
-\fBlist\fR
-.RS 4
-Print the current database hash table and free list\&.
-.RE
-.PP
-\fBfree\fR
-.RS 4
-Print the current database and free list\&.
-.RE
-.PP
-\fB!\fR \fICOMMAND\fR
-.RS 4
-Execute the given system command\&.
-.RE
-.PP
-\fBfirst\fR
-.RS 4
-Print the first record in the current database\&.
-.RE
-.PP
-\fBnext\fR
-.RS 4
-Print the next record in the current database\&.
-.RE
-.PP
-\fBcheck\fR
-.RS 4
-Check the integrity of the current database\&.
-.RE
-.PP
-\fBrepack\fR
-.RS 4
-Repack a database using a temporary file to remove fragmentation\&.
-.RE
-.PP
-\fBquit\fR
-.RS 4
-Exit
-\fBtdbtool\fR\&.
-.RE
-.SH "CAVEATS"
-.PP
-The contents of the Samba TDB files are private to the implementation and should not be altered with
-\fBtdbtool\fR\&.
-.SH "VERSION"
-.PP
-This man page is correct for version 3\&.6 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\&.
diff --git a/net/samba47/files/patch-buildtools__scripts__abi_gen.sh b/net/samba47/files/patch-buildtools__scripts__abi_gen.sh
deleted file mode 100644
index 454b5e2be3fc..000000000000
--- a/net/samba47/files/patch-buildtools__scripts__abi_gen.sh
+++ /dev/null
@@ -1,21 +0,0 @@
---- buildtools/scripts/abi_gen.sh.orig 2017-07-04 14:05:25 UTC
-+++ buildtools/scripts/abi_gen.sh
-@@ -9,13 +9,14 @@ 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: "
-- echo p $s
-+nm "$SHAREDLIB" | cut -d" " -f2- | awk '/^[BDGTRVWS]/ && !/@|__bss_start|_edata|_init|_fini|_end/ { print $2 }' | sort | while read s; do
-+ echo "echo $s:\\ "
-+ echo whatis $s
- 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 | sed -e 's/:type =/:/g'
- rm -f $GDBSCRIPT
diff --git a/net/samba47/files/patch-buildtools__wafsamba__samba_autoconf.py b/net/samba47/files/patch-buildtools__wafsamba__samba_autoconf.py
deleted file mode 100644
index c92d308462be..000000000000
--- a/net/samba47/files/patch-buildtools__wafsamba__samba_autoconf.py
+++ /dev/null
@@ -1,52 +0,0 @@
---- buildtools/wafsamba/samba_autoconf.py.orig 2016-10-07 04:45:35 UTC
-+++ buildtools/wafsamba/samba_autoconf.py
-@@ -548,7 +548,7 @@ def library_flags(self, libs):
-
-
- @conf
--def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False):
-+def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False, msg=None):
- '''check if a set of libraries exist as system libraries
-
- returns the sublist of libs that do exist as a syslib or []
-@@ -568,11 +568,29 @@ int foo()
- ret.append(lib)
- continue
-
-+ if msg is None:
-+ msg = 'Checking for library %s' % lib
-+
- (ccflags, ldflags, cpppath) = library_flags(conf, lib)
-+
- if shlib:
-- res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, ccflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
-+ res = conf.check(features='c cshlib',
-+ fragment=fragment,
-+ lib=lib,
-+ uselib_store=lib,
-+ ccflags=ccflags,
-+ ldflags=ldflags,
-+ uselib=lib.upper(),
-+ mandatory=False,
-+ msg=msg)
- else:
-- res = conf.check(lib=lib, uselib_store=lib, ccflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
-+ res = conf.check(lib=lib,
-+ uselib_store=lib,
-+ ccflags=ccflags,
-+ ldflags=ldflags,
-+ uselib=lib.upper(),
-+ mandatory=False,
-+ msg=msg)
-
- if not res:
- if mandatory:
-@@ -873,7 +891,7 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(c
- conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
-
- if not sys.platform.startswith("openbsd") and conf.env.undefined_ignore_ldflags == []:
-- if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup']):
-+ if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'] + conf.env.WERROR_CFLAGS):
- conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup']
-
- @conf
diff --git a/net/samba47/files/patch-buildtools__wafsamba__samba_install.py b/net/samba47/files/patch-buildtools__wafsamba__samba_install.py
deleted file mode 100644
index 5c6cf0414153..000000000000
--- a/net/samba47/files/patch-buildtools__wafsamba__samba_install.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- buildtools/wafsamba/samba_install.py.orig 2017-07-04 10:05:25 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/samba47/files/patch-buildtools__wafsamba__samba_python.py b/net/samba47/files/patch-buildtools__wafsamba__samba_python.py
deleted file mode 100644
index 429ec5e778f9..000000000000
--- a/net/samba47/files/patch-buildtools__wafsamba__samba_python.py
+++ /dev/null
@@ -1,40 +0,0 @@
---- buildtools/wafsamba/samba_python.py.orig 2018-01-13 09:07:51 UTC
-+++ buildtools/wafsamba/samba_python.py
-@@ -76,17 +76,35 @@ def SAMBA_CHECK_PYTHON_HEADERS(conf, man
-
- def _check_python_headers(conf, mandatory):
- try:
-+ from python import _get_python_variables
- Configure.ConfigurationError
- conf.check_python_headers(mandatory=mandatory)
-+ conf.env['PYTHON_SO_ABI'] = _get_python_variables(
-+ conf.env['PYTHON'],
-+ ["get_config_var('SOABI') or ''"],
-+ ['from distutils.sysconfig import get_config_var']
-+ )[0]
- except Configure.ConfigurationError:
- if mandatory:
- raise
-
- if conf.env['PYTHON_VERSION'] > '3':
-- abi_pattern = os.path.splitext(conf.env['pyext_PATTERN'])[0]
-- conf.env['PYTHON_SO_ABI_FLAG'] = abi_pattern % ''
-+ '''Be caucious here - conf parameter is PYTHON_SO_ABI_FLAG,
-+ while environment variable is PYTHON3_SO_ABI_FLAG'''
-+ override_PYTHON_SO_ABI_FLAG = os.getenv('PYTHON3_SO_ABI_FLAG', None)
-+ if override_PYTHON_SO_ABI_FLAG is not None:
-+ conf.env['PYTHON_SO_ABI_FLAG'] = override_PYTHON_SO_ABI_FLAG
-+ conf.env['pyext_PATTERN'] = '%%s%s.%s' % (conf.env['PYTHON_SO_ABI_FLAG'], conf.env['SHLIBEXT'])
-+ if not conf.env['PYTHON_SO_ABI_FLAG']:
-+ if conf.env['PYTHON_SO_ABI']:
-+ conf.env['PYTHON_SO_ABI_FLAG'] = '.'+conf.env['PYTHON_SO_ABI']
-+ conf.env['pyext_PATTERN'] = '%%s%s.%s' % (conf.env['PYTHON_SO_ABI_FLAG'], conf.env['SHLIBEXT'])
-+ else:
-+ abi_pattern = os.path.splitext(conf.env['pyext_PATTERN'])[0]
-+ conf.env['PYTHON_SO_ABI_FLAG'] = abi_pattern % ''
- else:
- conf.env['PYTHON_SO_ABI_FLAG'] = ''
-+
- conf.env['PYTHON_LIBNAME_SO_ABI_FLAG'] = (
- conf.env['PYTHON_SO_ABI_FLAG'].replace('_', '-'))
-
diff --git a/net/samba47/files/patch-buildtools__wafsamba__wafsamba.py b/net/samba47/files/patch-buildtools__wafsamba__wafsamba.py
deleted file mode 100644
index 574abc74b1dd..000000000000
--- a/net/samba47/files/patch-buildtools__wafsamba__wafsamba.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./buildtools/wafsamba/wafsamba.py.orig 2015-07-21 09:47:48 UTC
-+++ ./buildtools/wafsamba/wafsamba.py
-@@ -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/samba47/files/patch-buildtools__wafsamba__wscript b/net/samba47/files/patch-buildtools__wafsamba__wscript
deleted file mode 100644
index 890289f51e24..000000000000
--- a/net/samba47/files/patch-buildtools__wafsamba__wscript
+++ /dev/null
@@ -1,22 +0,0 @@
---- buildtools/wafsamba/wscript.orig 2017-04-28 11:57:26 UTC
-+++ buildtools/wafsamba/wscript
-@@ -74,12 +74,17 @@ def set_options(opt):
- help=("private library directory [PREFIX/lib/%s]" % Utils.g_module.APPNAME),
- action="store", dest='PRIVATELIBDIR', default=None)
-
-+ opt.add_option('--with-openldap',
-+ help='additional directory to search for OpenLDAP libs',
-+ action='store', dest='ldap_open', default=None,
-+ match = ['Checking for header ldap.h', 'Checking for header lber.h', 'Checking for library lber', 'Checking for library ldap'])
-+
- opt.add_option('--with-libiconv',
- help='additional directory to search for libiconv',
-- action='store', dest='iconv_open', default='/usr/local',
-+ action='store', dest='iconv_open', default=None,
- match = ['Checking for library iconv', 'Checking for iconv_open', 'Checking for header iconv.h'])
- opt.add_option('--without-gettext',
-- help=("Disable use of gettext"),
-+ help=("disable use of gettext"),
- action="store_true", dest='disable_gettext', default=False)
-
- gr = opt.option_group('developer options')
diff --git a/net/samba47/files/patch-ctdb__wscript b/net/samba47/files/patch-ctdb__wscript
deleted file mode 100644
index 3660e9473c9e..000000000000
--- a/net/samba47/files/patch-ctdb__wscript
+++ /dev/null
@@ -1,62 +0,0 @@
---- ctdb/wscript.orig 2018-08-24 11:58:20 UTC
-+++ ctdb/wscript
-@@ -90,6 +90,9 @@ def set_options(opt):
- opt.add_option('--enable-ceph-reclock',
- help=("Enable Ceph CTDB recovery lock helper (default=no)"),
- action="store_true", dest='ctdb_ceph_reclock', default=False)
-+ opt.add_option('--disable-ctdb-tests',
-+ help=("Disable CTDB tests (default=no)"),
-+ action="store_true", dest='ctdb_no_tests', default=False)
-
- opt.add_option('--with-logdir',
- help=("Path to log directory"),
-@@ -231,7 +234,7 @@ def configure(conf):
- conf.env['LIBPATH_CEPH-COMMON'] = conf.env['LIBPATH_RADOS'] + '/ceph'
-
- if (conf.CHECK_HEADERS('rados/librados.h', False, False, 'rados') and
-- conf.CHECK_LIB('rados', shlib=True)):
-+ conf.CHECK_LIB('rados', shlib=True)):
- conf.CHECK_LIB('ceph-common', shlib=True)
- Logs.info('Building with Ceph librados recovery lock support')
- conf.define('HAVE_LIBRADOS', 1)
-@@ -268,9 +271,15 @@ def configure(conf):
- conf.env.CTDB_VARDIR,
- conf.env.CTDB_RUNDIR))
-
-- conf.env.CTDB_TEST_DATADIR = os.path.join(conf.env.EXEC_PREFIX,
-+ if Options.options.ctdb_no_tests:
-+ conf.env.ctdb_tests = False
-+ else:
-+ conf.env.ctdb_tests = True
-+
-+ if conf.env.ctdb_tests:
-+ conf.env.CTDB_TEST_DATADIR = os.path.join(conf.env.EXEC_PREFIX,
- 'share/ctdb/tests')
-- conf.env.CTDB_TEST_LIBEXECDIR = os.path.join(conf.env.LIBEXECDIR, 'ctdb/tests')
-+ conf.env.CTDB_TEST_LIBEXECDIR = os.path.join(conf.env.LIBEXECDIR, 'ctdb/tests')
-
- # Allow unified compilation and separate compilation of utilities
- # to find includes
-@@ -605,9 +614,9 @@ def build(bld):
- if bld.env.HAVE_LIBRADOS:
- bld.SAMBA_BINARY('ctdb_mutex_ceph_rados_helper',
- source='utils/ceph/ctdb_mutex_ceph_rados_helper.c',
-- deps='talloc tevent rados ceph-common',
-- includes='include',
-- install_path='${CTDB_HELPER_BINDIR}')
-+ deps='talloc tevent rados ceph-common',
-+ includes='include',
-+ install_path='${CTDB_HELPER_BINDIR}')
-
- sed_expr1 = 's|/usr/local/var/lib/ctdb|%s|g' % (bld.env.CTDB_VARDIR)
- sed_expr2 = 's|/usr/local/etc/ctdb|%s|g' % (bld.env.CTDB_ETCDIR)
-@@ -750,6 +759,9 @@ def build(bld):
- bld.install_dir(bld.env.CTDB_RUNDIR)
- bld.install_dir(bld.env.CTDB_VARDIR)
-
-+ if not bld.env.ctdb_tests:
-+ return
-+
- # Unit tests
- ctdb_unit_tests = [
- 'db_hash_test',
diff --git a/net/samba47/files/patch-dbwrap b/net/samba47/files/patch-dbwrap
deleted file mode 100644
index 619cf53681f5..000000000000
--- a/net/samba47/files/patch-dbwrap
+++ /dev/null
@@ -1,96 +0,0 @@
---- lib/dbwrap/dbwrap.c.orig 2018-01-17 10:08:39 UTC
-+++ lib/dbwrap/dbwrap.c
-@@ -28,6 +28,9 @@
- #include "lib/util/util_tdb.h"
- #include "lib/util/tevent_ntstatus.h"
-
-+#undef DBGC_CLASS
-+#define DBGC_CLASS DBGC_LOCKING
-+
- /*
- * Fall back using fetch if no genuine exists operation is provided
- */
---- lib/dbwrap/dbwrap_local_open.c.orig 2018-01-14 21:41:58.000000000 +0100
-+++ lib/dbwrap/dbwrap_local_open.c 2018-03-29 23:49:51.888588000 +0200
-@@ -24,6 +24,9 @@
- #include "tdb.h"
- #include "lib/param/param.h"
-
-+#undef DBGC_CLASS
-+#define DBGC_CLASS DBGC_LOCKING
-+
- struct db_context *dbwrap_local_open(TALLOC_CTX *mem_ctx,
- struct loadparm_context *lp_ctx,
- const char *name,
---- lib/dbwrap/dbwrap_rbt.c.orig 2018-01-17 09:08:39.000000000 +0100
-+++ lib/dbwrap/dbwrap_rbt.c 2018-03-29 23:50:13.427755000 +0200
-@@ -24,6 +24,9 @@
- #include "../lib/util/rbtree.h"
- #include "../lib/util/dlinklist.h"
-
-+#undef DBGC_CLASS
-+#define DBGC_CLASS DBGC_LOCKING
-+
- #define DBWRAP_RBT_ALIGN(_size_) (((_size_)+15)&~15)
-
- struct db_rbt_ctx {
---- lib/dbwrap/dbwrap_tdb.c.orig 2018-01-17 09:08:39.000000000 +0100
-+++ lib/dbwrap/dbwrap_tdb.c 2018-03-29 23:50:40.789642000 +0200
-@@ -27,6 +27,9 @@
- #include "lib/param/param.h"
- #include "libcli/util/error.h"
-
-+#undef DBGC_CLASS
-+#define DBGC_CLASS DBGC_LOCKING
-+
- struct db_tdb_ctx {
- struct tdb_wrap *wtdb;
-
---- lib/dbwrap/dbwrap_util.c.orig 2018-01-17 09:08:39.000000000 +0100
-+++ lib/dbwrap/dbwrap_util.c 2018-03-29 23:51:35.907061000 +0200
-@@ -26,6 +26,9 @@
- #include "dbwrap.h"
- #include "lib/util/util_tdb.h"
-
-+#undef DBGC_CLASS
-+#define DBGC_CLASS DBGC_LOCKING
-+
- struct dbwrap_fetch_int32_state {
- NTSTATUS status;
- int32_t result;
---- source3/lib/dbwrap/dbwrap_ctdb.c.orig 2018-01-17 09:08:39.000000000 +0100
-+++ source3/lib/dbwrap/dbwrap_ctdb.c 2018-03-29 23:57:41.784931000 +0200
-@@ -38,6 +38,9 @@
- #include "lib/cluster_support.h"
- #include "lib/util/tevent_ntstatus.h"
-
-+#undef DBGC_CLASS
-+#define DBGC_CLASS DBGC_LOCKING
-+
- struct db_ctdb_transaction_handle {
- struct db_ctdb_ctx *ctx;
- /*
---- source3/lib/dbwrap/dbwrap_open.c.orig 2018-01-17 09:08:39.000000000 +0100
-+++ source3/lib/dbwrap/dbwrap_open.c 2018-03-29 23:57:54.680614000 +0200
-@@ -31,6 +31,9 @@
- #include "ctdbd_conn.h"
- #include "messages.h"
-
-+#undef DBGC_CLASS
-+#define DBGC_CLASS DBGC_LOCKING
-+
- bool db_is_local(const char *name)
- {
- const char *sockname = lp_ctdbd_socket();
---- source3/lib/dbwrap/dbwrap_watch.c.orig 2018-01-17 09:08:39.000000000 +0100
-+++ source3/lib/dbwrap/dbwrap_watch.c 2018-03-29 23:58:09.746298000 +0200
-@@ -28,6 +28,9 @@
- #include "server_id_watch.h"
- #include "lib/dbwrap/dbwrap_private.h"
-
-+#undef DBGC_CLASS
-+#define DBGC_CLASS DBGC_LOCKING
-+
- static ssize_t dbwrap_record_watchers_key(struct db_context *db,
- struct db_record *rec,
- uint8_t *wkey, size_t wkey_len)
diff --git a/net/samba47/files/patch-dynconfig__wscript b/net/samba47/files/patch-dynconfig__wscript
deleted file mode 100644
index 97a756e2ddb6..000000000000
--- a/net/samba47/files/patch-dynconfig__wscript
+++ /dev/null
@@ -1,32 +0,0 @@
---- dynconfig/wscript.orig 2017-07-04 10:05:25 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',
-@@ -237,8 +239,8 @@ dynconfig = {
- 'DELAY': True,
- },
- 'CONFIGFILE' : {
-- 'STD-PATH': '${CONFIGDIR}/smb.conf',
-- 'FHS-PATH': '${CONFIGDIR}/smb.conf',
-+ 'STD-PATH': '${CONFIGDIR}/smb4.conf',
-+ 'FHS-PATH': '${CONFIGDIR}/smb4.conf',
- 'DELAY': True,
- },
- 'LMHOSTSFILE' : {
-@@ -297,9 +299,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/samba47/files/patch-examples__pdb__wscript_build b/net/samba47/files/patch-examples__pdb__wscript_build
deleted file mode 100644
index 4d467f2481ca..000000000000
--- a/net/samba47/files/patch-examples__pdb__wscript_build
+++ /dev/null
@@ -1,11 +0,0 @@
---- examples/pdb/wscript_build.orig 2017-11-14 06:05:12 UTC
-+++ examples/pdb/wscript_build
-@@ -3,7 +3,7 @@
- bld.SAMBA3_MODULE('pdb_test',
- subsystem='pdb',
- source='test.c',
-- deps='samba-util',
-+ deps='samba-util samba-debug',
- init_function='',
- internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_test'),
- enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_test'))
diff --git a/net/samba47/files/patch-glusterfs b/net/samba47/files/patch-glusterfs
deleted file mode 100644
index 6de8af880100..000000000000
--- a/net/samba47/files/patch-glusterfs
+++ /dev/null
@@ -1,31 +0,0 @@
---- lib/replace/system/filesys.h.orig 2017-12-16 01:37:41 UTC
-+++ lib/replace/system/filesys.h
-@@ -213,8 +213,10 @@
- this allows us to use a uniform error handling for our xattr
- wrappers
- */
--#ifndef ENOATTR
-+#if !defined(ENOATTR) && defined(ENODATA)
- #define ENOATTR ENODATA
-+#elif defined(ENOATTR) && !defined(ENODATA)
-+#define ENODATA ENOATTR
- #endif
-
-
---- source3/modules/vfs_glusterfs.c.orig 2017-12-23 08:02:15 UTC
-+++ source3/modules/vfs_glusterfs.c
-@@ -36,12 +36,13 @@
- */
-
- #include "includes.h"
-+#include "system/filesys.h"
-+#include "smbd/globals.h"
- #include "smbd/smbd.h"
- #include <stdio.h>
- #include <glusterfs/api/glfs.h>
- #include "lib/util/dlinklist.h"
- #include "lib/util/tevent_unix.h"
--#include "smbd/globals.h"
- #include "lib/util/sys_rw.h"
- #include "smbprofile.h"
- #include "modules/posixacl_xattr.h"
diff --git a/net/samba47/files/patch-lib__crypto__wscript_configure b/net/samba47/files/patch-lib__crypto__wscript_configure
deleted file mode 100644
index 0a342a488bce..000000000000
--- a/net/samba47/files/patch-lib__crypto__wscript_configure
+++ /dev/null
@@ -1,15 +0,0 @@
---- lib/crypto/wscript_configure.orig 2017-09-17 19:15:34 UTC
-+++ lib/crypto/wscript_configure
-@@ -4,10 +4,10 @@ import Utils
-
- 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/samba47/files/patch-lib__replace__wscript b/net/samba47/files/patch-lib__replace__wscript
deleted file mode 100644
index d6d32b6c3dca..000000000000
--- a/net/samba47/files/patch-lib__replace__wscript
+++ /dev/null
@@ -1,11 +0,0 @@
---- lib/replace/wscript.orig 2017-08-24 11:27:53 UTC
-+++ lib/replace/wscript
-@@ -81,7 +81,7 @@ def configure(conf):
- conf.CHECK_HEADERS('sys/atomic.h')
- conf.CHECK_HEADERS('libgen.h')
-
-- if conf.CHECK_CFLAGS('-Wno-format-truncation'):
-+ if conf.CHECK_CFLAGS(['-Wno-format-truncation'] + conf.env.WERROR_CFLAGS):
- conf.define('HAVE_WNO_FORMAT_TRUNCATION', '1')
-
- # Check for process set name support
diff --git a/net/samba47/files/patch-lib__util__debug.c b/net/samba47/files/patch-lib__util__debug.c
deleted file mode 100644
index d6b53ed5a711..000000000000
--- a/net/samba47/files/patch-lib__util__debug.c
+++ /dev/null
@@ -1,68 +0,0 @@
---- lib/util/debug.c.orig 2017-09-17 19:15:34 UTC
-+++ lib/util/debug.c
-@@ -750,12 +750,21 @@ static void debug_dump_status(int level)
- }
- }
-
-+static void debug_set_all_levels(int level)
-+{
-+ int i;
-+ /* Array is debug_num_classes long */
-+ for (i = DBGC_ALL; i < debug_num_classes; i++) {
-+ DEBUGLEVEL_CLASS[i] = level;
-+ }
-+}
-+
- static bool debug_parse_param(char *param)
- {
- char *class_name;
- char *class_level;
- char *saveptr = NULL;
-- int ndx;
-+ int ndx, level;
-
- class_name = strtok_r(param, ":", &saveptr);
- if (class_name == NULL) {
-@@ -772,7 +781,13 @@ static bool debug_parse_param(char *para
- return false;
- }
-
-- DEBUGLEVEL_CLASS[ndx] = atoi(class_level);
-+ level = atoi(class_level);
-+
-+ if(ndx == DBGC_ALL) {
-+ debug_set_all_levels(level);
-+ } else {
-+ DEBUGLEVEL_CLASS[ndx] = level;
-+ }
-
- return true;
- }
-@@ -788,7 +803,7 @@ bool debug_parse_levels(const char *para
- size_t str_len = strlen(params_str);
- char str[str_len+1];
- char *tok, *saveptr;
-- int i;
-+ int level = 0;
-
- /* Just in case */
- debug_init();
-@@ -804,16 +819,11 @@ bool debug_parse_levels(const char *para
- * v.s. "all:10", this is the traditional way to set DEBUGLEVEL
- */
- if (isdigit(tok[0])) {
-- DEBUGLEVEL_CLASS[DBGC_ALL] = atoi(tok);
-+ level = atoi(tok);
- tok = strtok_r(NULL, LIST_SEP, &saveptr);
-- } else {
-- DEBUGLEVEL_CLASS[DBGC_ALL] = 0;
- }
-
-- /* Array is debug_num_classes long */
-- for (i = DBGC_ALL+1; i < debug_num_classes; i++) {
-- DEBUGLEVEL_CLASS[i] = DEBUGLEVEL_CLASS[DBGC_ALL];
-- }
-+ debug_set_all_levels(level);
-
- while (tok != NULL) {
- bool ok;
diff --git a/net/samba47/files/patch-lib__util__wscript_build b/net/samba47/files/patch-lib__util__wscript_build
deleted file mode 100644
index b2c8425264ee..000000000000
--- a/net/samba47/files/patch-lib__util__wscript_build
+++ /dev/null
@@ -1,11 +0,0 @@
---- lib/util/wscript_build.orig 2017-07-04 10:05:25 UTC
-+++ lib/util/wscript_build
-@@ -133,7 +133,7 @@ else:
-
- 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/samba47/files/patch-librpc__idl__xattr.idl b/net/samba47/files/patch-librpc__idl__xattr.idl
deleted file mode 100644
index c84276ae1b49..000000000000
--- a/net/samba47/files/patch-librpc__idl__xattr.idl
+++ /dev/null
@@ -1,13 +0,0 @@
-Signed-off-by: Alexander Zagrebin <alex@zagrebin.ru>
-
---- librpc/idl/xattr.idl.orig 2017-12-17 05:40:37 UTC
-+++ librpc/idl/xattr.idl 2017-12-17
-@@ -168,7 +168,7 @@ interface xattr
- can discard if this doesn't match the underlying ACL hash.
- */
-
-- const char *XATTR_NTACL_NAME = "security.NTACL";
-+ const char *XATTR_NTACL_NAME = "user.NTACL";
-
- const int XATTR_SD_HASH_SIZE = 64;
- const int XATTR_SD_HASH_TYPE_NONE = 0x0;
diff --git a/net/samba47/files/patch-nsswitch__wscript_build b/net/samba47/files/patch-nsswitch__wscript_build
deleted file mode 100644
index d24620b91dd6..000000000000
--- a/net/samba47/files/patch-nsswitch__wscript_build
+++ /dev/null
@@ -1,17 +0,0 @@
---- nsswitch/wscript_build.orig 2017-07-04 10:05:25 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/samba47/files/patch-source3__lib__util.c b/net/samba47/files/patch-source3__lib__util.c
deleted file mode 100644
index ede8b1665fb0..000000000000
--- a/net/samba47/files/patch-source3__lib__util.c
+++ /dev/null
@@ -1,16 +0,0 @@
-Signed-off-by: Alexander Zagrebin <alex@zagrebin.ru>
-
---- source3/lib/util.c.orig 2017-12-17 05:35:49 UTC
-+++ source3/lib/util.c 2017-12-17
-@@ -2036,7 +2036,10 @@ bool any_nt_status_not_ok(NTSTATUS err1,
-
- int timeval_to_msec(struct timeval t)
- {
-- return t.tv_sec * 1000 + (t.tv_usec+999) / 1000;
-+ unsigned long result;
-+
-+ result = t.tv_sec * 1000 + (t.tv_usec+999) / 1000;
-+ return result > INT_MAX ? INT_MAX : result;
- }
-
- /*******************************************************************
diff --git a/net/samba47/files/patch-source3__librpc__crypto__gse.c b/net/samba47/files/patch-source3__librpc__crypto__gse.c
deleted file mode 100644
index 3e29bdf0a8d9..000000000000
--- a/net/samba47/files/patch-source3__librpc__crypto__gse.c
+++ /dev/null
@@ -1,16 +0,0 @@
---- source3/librpc/crypto/gse.c.orig 2017-07-04 10:05:25 UTC
-+++ source3/librpc/crypto/gse.c
-@@ -610,11 +610,12 @@ static NTSTATUS gse_get_server_auth_toke
- struct gse_context *gse_ctx =
- talloc_get_type_abort(gensec_security->private_data,
- struct gse_context);
-- OM_uint32 gss_maj, gss_min;
-+ OM_uint32 gss_min;
- gss_buffer_desc in_data;
- gss_buffer_desc out_data;
- DATA_BLOB blob = data_blob_null;
- NTSTATUS status;
-+ OM_uint32 gss_maj = -1;
- OM_uint32 time_rec = 0;
- struct timeval tv;
-
diff --git a/net/samba47/files/patch-source3__modules__vfs_streams_xattr.c b/net/samba47/files/patch-source3__modules__vfs_streams_xattr.c
deleted file mode 100644
index 78f8d6607991..000000000000
--- a/net/samba47/files/patch-source3__modules__vfs_streams_xattr.c
+++ /dev/null
@@ -1,505 +0,0 @@
---- source3/modules/vfs_streams_xattr.c.orig 2018-08-11 23:00:01 UTC
-+++ source3/modules/vfs_streams_xattr.c
-@@ -1,10 +1,10 @@
- /*
- * Store streams in xattrs
- *
-- * Copyright (C) Volker Lendecke, 2008
-+ * Copyright (C) Volker Lendecke, 2008
-+ * Copyright (C) Timur I. Bakeyev, 2017
- *
- * Partly based on James Peach's Darwin module, which is
-- *
- * Copyright (C) James Peach 2006-2007
- *
- * This program is free software; you can redistribute it and/or modify
-@@ -79,25 +79,79 @@ static SMB_INO_T stream_inode(const SMB_
- }
-
- static ssize_t get_xattr_size(connection_struct *conn,
-- const struct smb_filename *smb_fname,
-- const char *xattr_name)
-+ const struct smb_filename *smb_fname,
-+ const char *xattr_name)
- {
-- NTSTATUS status;
-- struct ea_struct ea;
- ssize_t result;
-
-- status = get_ea_value(talloc_tos(), conn, NULL, smb_fname,
-- xattr_name, &ea);
-+ result = SMB_VFS_GETXATTR(conn, smb_fname, xattr_name, NULL, 0);
-+ // ? -1
-+ return result;
-+}
-
-- if (!NT_STATUS_IS_OK(status)) {
-- return -1;
-+static NTSTATUS get_xattr_value(TALLOC_CTX *mem_ctx,
-+ connection_struct *conn,
-+ const struct smb_filename *smb_fname,
-+ const char *ea_name,
-+ struct ea_struct *pea)
-+{
-+ ssize_t attr_size;
-+
-+ attr_size = get_xattr_size(conn, smb_fname, ea_name);
-+
-+ if (attr_size == -1) {
-+ return map_nt_error_from_unix(errno);
- }
-
-- result = ea.value.length-1;
-- TALLOC_FREE(ea.value.data);
-- return result;
-+ pea->value = data_blob_talloc(mem_ctx, NULL, attr_size);
-+ /* We may have xattr of a 0 size */
-+ if(pea->value.data == NULL && attr_size) {
-+ DEBUG(5,
-+ ("get_xattr_value: for EA '%s' failed to allocate %lu bytes\n",
-+ ea_name, (unsigned long)attr_size)
-+ );
-+ return NT_STATUS_NO_MEMORY;
-+ }
-+
-+ attr_size = SMB_VFS_GETXATTR(conn, smb_fname, ea_name, pea->value.data, pea->value.length);
-+
-+ if (attr_size == -1) {
-+ return map_nt_error_from_unix(errno);
-+ }
-+
-+ if(pea->value.length != attr_size) {
-+ DEBUG(5,
-+ ("get_xattr_value: for EA '%s' requested %lu, read %lu bytes\n",
-+ ea_name, (unsigned long)pea->value.length, (unsigned long)attr_size)
-+ );
-+ return NT_STATUS_UNSUCCESSFUL;
-+ }
-+
-+ DEBUG(10,("get_xattr_value: EA '%s' is of length %lu\n", ea_name, (unsigned long)attr_size));
-+ /*
-+ * This can dump huge amount of data multiple times. For example
-+ * for 1Mb ADS and chunk size 64Kb the same 1Mb dump will be
-+ * logged 16 times!
-+ */
-+ dump_data(50, (uint8_t *)pea->value.data, pea->value.length);
-+
-+ pea->flags = 0;
-+ // ? user.
-+ if (strnequal(ea_name, "user.", 5)) {
-+ pea->name = talloc_strdup(mem_ctx, &ea_name[5]);
-+ } else {
-+ pea->name = talloc_strdup(mem_ctx, ea_name);
-+ }
-+
-+ if (pea->name == NULL) {
-+ data_blob_free(&pea->value);
-+ return NT_STATUS_NO_MEMORY;
-+ }
-+
-+ return NT_STATUS_OK;
- }
-
-+
- /**
- * Given a stream name, populate xattr_name with the xattr name to use for
- * accessing the stream.
-@@ -114,6 +168,7 @@ static NTSTATUS streams_xattr_get_name(v
- SMB_VFS_HANDLE_GET_DATA(handle, config, struct streams_xattr_config,
- return NT_STATUS_UNSUCCESSFUL);
-
-+ // stream_name is passed as ':stream', so skip leading ':'
- sname = talloc_strdup(ctx, stream_name + 1);
- if (sname == NULL) {
- return NT_STATUS_NO_MEMORY;
-@@ -125,7 +180,7 @@ static NTSTATUS streams_xattr_get_name(v
- * characters from their on-the-wire Unicode Private Range
- * encoding to their native ASCII representation.
- *
-- * As as result the name of xattrs storing the streams (via
-+ * As a result the name of xattrs storing the streams (via
- * vfs_streams_xattr) may contain a colon, so we have to use
- * strrchr_m() instead of strchr_m() for matching the stream
- * type suffix.
-@@ -157,7 +212,7 @@ static NTSTATUS streams_xattr_get_name(v
- return NT_STATUS_NO_MEMORY;
- }
-
-- DEBUG(10, ("xattr_name: %s, stream_name: %s\n", *xattr_name,
-+ DEBUG(10, ("xattr_name: '%s', stream_name: '%s'\n", *xattr_name,
- stream_name));
-
- talloc_free(sname);
-@@ -265,8 +320,8 @@ static int streams_xattr_fstat(vfs_handl
- return -1;
- }
-
-- sbuf->st_ex_size = get_xattr_size(handle->conn,
-- smb_fname_base, io->xattr_name);
-+ sbuf->st_ex_size = get_xattr_size(handle->conn, smb_fname_base,
-+ io->xattr_name);
- if (sbuf->st_ex_size == -1) {
- TALLOC_FREE(smb_fname_base);
- SET_STAT_INVALID(*sbuf);
-@@ -453,10 +508,10 @@ static int streams_xattr_open(vfs_handle
- pipe_fds[1] = -1;
- fakefd = pipe_fds[0];
-
-- status = get_ea_value(talloc_tos(), handle->conn, NULL,
-- smb_fname, xattr_name, &ea);
-+ status = get_xattr_value(talloc_tos(), handle->conn,
-+ smb_fname, xattr_name, &ea);
-
-- DEBUG(10, ("get_ea_value returned %s\n", nt_errstr(status)));
-+ DEBUG(10, ("get_xattr_value returned %s\n", nt_errstr(status)));
-
- if (!NT_STATUS_IS_OK(status)
- && !NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {
-@@ -625,8 +680,8 @@ static int streams_xattr_rename(vfs_hand
- }
-
- /* read the old stream */
-- status = get_ea_value(talloc_tos(), handle->conn, NULL,
-- smb_fname_src, src_xattr_name, &ea);
-+ status = get_xattr_value(talloc_tos(), handle->conn,
-+ smb_fname_src, src_xattr_name, &ea);
- if (!NT_STATUS_IS_OK(status)) {
- errno = ENOENT;
- goto fail;
-@@ -713,14 +768,13 @@ static NTSTATUS walk_xattr_streams(vfs_h
- continue;
- }
-
-- status = get_ea_value(names,
-+ status = get_xattr_value(names,
- handle->conn,
-- NULL,
- smb_fname,
- names[i],
- &ea);
- if (!NT_STATUS_IS_OK(status)) {
-- DEBUG(10, ("Could not get ea %s for file %s: %s\n",
-+ DEBUG(10, ("Could not get EA %s for file %s: %s\n",
- names[i],
- smb_fname->base_name,
- nt_errstr(status)));
-@@ -782,16 +836,17 @@ struct streaminfo_state {
- NTSTATUS status;
- };
-
--static bool collect_one_stream(struct ea_struct *ea, void *private_data)
-+static bool collect_one_stream(struct ea_struct *pea, void *private_data)
- {
- struct streaminfo_state *state =
- (struct streaminfo_state *)private_data;
-
-+ // ? -1
- if (!add_one_stream(state->mem_ctx,
- &state->num_streams, &state->streams,
-- ea->name, ea->value.length-1,
-+ pea->name, pea->value.length,
- smb_roundup(state->handle->conn,
-- ea->value.length-1))) {
-+ pea->value.length))) {
- state->status = NT_STATUS_NO_MEMORY;
- return false;
- }
-@@ -911,14 +966,17 @@ static ssize_t streams_xattr_pwrite(vfs_
- files_struct *fsp, const void *data,
- size_t n, off_t offset)
- {
-- struct stream_io *sio =
-+ struct stream_io *sio =
- (struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
-+ struct smb_filename *smb_fname_base = NULL;
-+ TALLOC_CTX *frame = NULL;
-+
- struct ea_struct ea;
- NTSTATUS status;
-- struct smb_filename *smb_fname_base = NULL;
- int ret;
-
-- DEBUG(10, ("streams_xattr_pwrite called for %d bytes\n", (int)n));
-+ DEBUG(10, ("streams_xattr_pwrite: offset=%lu, size=%lu\n",
-+ (unsigned long)offset, (unsigned long)n));
-
- if (sio == NULL) {
- return SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, offset);
-@@ -928,6 +986,8 @@ static ssize_t streams_xattr_pwrite(vfs_
- return -1;
- }
-
-+ frame = talloc_stackframe();
-+
- /* Create an smb_filename with stream_name == NULL. */
- smb_fname_base = synthetic_smb_fname(talloc_tos(),
- sio->base,
-@@ -935,39 +995,55 @@ static ssize_t streams_xattr_pwrite(vfs_
- NULL,
- fsp->fsp_name->flags);
- if (smb_fname_base == NULL) {
-+ TALLOC_FREE(frame);
- errno = ENOMEM;
- return -1;
- }
-
-- status = get_ea_value(talloc_tos(), handle->conn, NULL,
-- smb_fname_base, sio->xattr_name, &ea);
-- if (!NT_STATUS_IS_OK(status)) {
-- return -1;
-- }
--
-- if ((offset + n) > ea.value.length-1) {
-- uint8_t *tmp;
-+ status = get_xattr_value(talloc_tos(), handle->conn,
-+ smb_fname_base, sio->xattr_name, &ea);
-
-- tmp = talloc_realloc(talloc_tos(), ea.value.data, uint8_t,
-- offset + n + 1);
-+ if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {
-+ /*
-+ * This can happen if we sit behind vfs_fruit:
-+ * fruit_ftruncate calls UNLINK on an attribute
-+ * truncating the "file" to zero length. A later
-+ * pwrite faces a non-existing attribute, we need to
-+ * cope with that here.
-+ *
-+ * This might be not the last word on this.
-+ */
-
-- if (tmp == NULL) {
-- TALLOC_FREE(ea.value.data);
-- errno = ENOMEM;
-- return -1;
-- }
-- ea.value.data = tmp;
-- ea.value.length = offset + n + 1;
-- ea.value.data[offset+n] = 0;
-- }
-+ ea = (struct ea_struct) {0};
-+ ea.name = talloc_strdup(talloc_tos(), sio->xattr_name);
-+ if (ea.name == NULL) {
-+ TALLOC_FREE(frame);
-+ errno = ENOMEM;
-+ return -1;
-+ }
-+ status = NT_STATUS_OK;
-+ }
-
-- memcpy(ea.value.data + offset, data, n);
-+ if (!NT_STATUS_IS_OK(status)) {
-+ TALLOC_FREE(frame);
-+ return -1;
-+ }
-+ // ? -1
-+ if ((offset + n) > ea.value.length) {
-+ if(!data_blob_realloc(talloc_tos(), &ea.value, offset + n)) {
-+ TALLOC_FREE(frame);
-+ errno = ENOMEM;
-+ return -1;
-+ }
-+ }
-+ memcpy(ea.value.data + offset, data, n);
-
- ret = SMB_VFS_SETXATTR(fsp->conn,
- fsp->fsp_name,
- sio->xattr_name,
- ea.value.data, ea.value.length, 0);
-- TALLOC_FREE(ea.value.data);
-+
-+ TALLOC_FREE(frame);
-
- if (ret == -1) {
- return -1;
-@@ -980,15 +1056,17 @@ static ssize_t streams_xattr_pread(vfs_h
- files_struct *fsp, void *data,
- size_t n, off_t offset)
- {
-- struct stream_io *sio =
-+ struct stream_io *sio =
- (struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
-+ struct smb_filename *smb_fname_base = NULL;
-+ TALLOC_CTX *frame = NULL;
-+
- struct ea_struct ea;
- NTSTATUS status;
-- size_t length, overlap;
-- struct smb_filename *smb_fname_base = NULL;
-+ size_t overlap;
-
-- DEBUG(10, ("streams_xattr_pread: offset=%d, size=%d\n",
-- (int)offset, (int)n));
-+ DEBUG(10, ("streams_xattr_pread: offset=%lu, size=%lu\n",
-+ (unsigned long)offset, (unsigned long)n));
-
- if (sio == NULL) {
- return SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset);
-@@ -998,6 +1076,8 @@ static ssize_t streams_xattr_pread(vfs_h
- return -1;
- }
-
-+ frame = talloc_stackframe();
-+
- /* Create an smb_filename with stream_name == NULL. */
- smb_fname_base = synthetic_smb_fname(talloc_tos(),
- sio->base,
-@@ -1005,31 +1085,35 @@ static ssize_t streams_xattr_pread(vfs_h
- NULL,
- fsp->fsp_name->flags);
- if (smb_fname_base == NULL) {
-+ TALLOC_FREE(frame);
- errno = ENOMEM;
- return -1;
- }
-
-- status = get_ea_value(talloc_tos(), handle->conn, NULL,
-- smb_fname_base, sio->xattr_name, &ea);
-+ status = get_xattr_value(talloc_tos(), handle->conn,
-+ smb_fname_base, sio->xattr_name, &ea);
- if (!NT_STATUS_IS_OK(status)) {
-+ TALLOC_FREE(frame);
- return -1;
- }
-+ // ? -1
-+ //length = ea.value.length-1;
-
-- length = ea.value.length-1;
-+ DEBUG(10, ("streams_xattr_pread: get_xattr_value() returned %lu bytes\n",
-+ (unsigned long)ea.value.length));
-
-- DEBUG(10, ("streams_xattr_pread: get_ea_value returned %d bytes\n",
-- (int)length));
-+ /* Attempt to read past EOF. */
-+ if (ea.value.length <= offset) {
-+ TALLOC_FREE(frame);
-+ return 0;
-+ }
-
-- /* Attempt to read past EOF. */
-- if (length <= offset) {
-- return 0;
-- }
-+ overlap = (offset + n) > ea.value.length ? (ea.value.length - offset) : n;
-+ memcpy(data, ea.value.data + offset, overlap);
-
-- overlap = (offset + n) > length ? (length - offset) : n;
-- memcpy(data, ea.value.data + offset, overlap);
-+ TALLOC_FREE(frame);
-
-- TALLOC_FREE(ea.value.data);
-- return overlap;
-+ return overlap;
- }
-
- struct streams_xattr_pread_state {
-@@ -1196,16 +1280,18 @@ static int streams_xattr_ftruncate(struc
- struct files_struct *fsp,
- off_t offset)
- {
-- int ret;
-- uint8_t *tmp;
-- struct ea_struct ea;
-- NTSTATUS status;
-- struct stream_io *sio =
-+ struct stream_io *sio =
- (struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
- struct smb_filename *smb_fname_base = NULL;
-+ TALLOC_CTX *frame = NULL;
-
-- DEBUG(10, ("streams_xattr_ftruncate called for file %s offset %.0f\n",
-- fsp_str_dbg(fsp), (double)offset));
-+ struct ea_struct ea;
-+ NTSTATUS status;
-+ size_t orig_length;
-+ int ret;
-+
-+ DEBUG(10, ("streams_xattr_ftruncate: called for file '%s' with offset %lu\n",
-+ fsp_str_dbg(fsp), (unsigned long)offset));
-
- if (sio == NULL) {
- return SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset);
-@@ -1215,6 +1301,8 @@ static int streams_xattr_ftruncate(struc
- return -1;
- }
-
-+ frame = talloc_stackframe();
-+
- /* Create an smb_filename with stream_name == NULL. */
- smb_fname_base = synthetic_smb_fname(talloc_tos(),
- sio->base,
-@@ -1222,40 +1310,46 @@ static int streams_xattr_ftruncate(struc
- NULL,
- fsp->fsp_name->flags);
- if (smb_fname_base == NULL) {
-+ TALLOC_FREE(frame);
- errno = ENOMEM;
- return -1;
- }
-
-- status = get_ea_value(talloc_tos(), handle->conn, NULL,
-- smb_fname_base, sio->xattr_name, &ea);
-+ status = get_xattr_value(talloc_tos(), handle->conn,
-+ smb_fname_base, sio->xattr_name, &ea);
- if (!NT_STATUS_IS_OK(status)) {
-+ TALLOC_FREE(frame);
- return -1;
- }
-+ orig_length = ea.value.length;
-
-- tmp = talloc_realloc(talloc_tos(), ea.value.data, uint8_t,
-- offset + 1);
-+ /* Requested size matches the original size */
-+ if(orig_length == offset) {
-+ TALLOC_FREE(frame);
-+ return 0;
-+ }
-
-- if (tmp == NULL) {
-- TALLOC_FREE(ea.value.data);
-+ /* That can both shrink and expand */
-+ /* XXX: If offset == 0 the result of talloc_realloc is NULL, but still valid */
-+ if(offset && !data_blob_realloc(talloc_tos(), &ea.value, offset)) {
-+ TALLOC_FREE(frame);
- errno = ENOMEM;
- return -1;
- }
-
-- /* Did we expand ? */
-- if (ea.value.length < offset + 1) {
-- memset(&tmp[ea.value.length], '\0',
-- offset + 1 - ea.value.length);
-+ /* If we expanded, fill up extra space with zeros */
-+ if (orig_length < offset) {
-+ memset(ea.value.data + orig_length, 0,
-+ offset - orig_length);
- }
-
-- ea.value.data = tmp;
-- ea.value.length = offset + 1;
-- ea.value.data[offset] = 0;
--
-+ /* XXX: We should use ea.value.length here, but when offset == 0
-+ it's not reset to 0 in data_blob_realloc() */
- ret = SMB_VFS_SETXATTR(fsp->conn,
- fsp->fsp_name,
- sio->xattr_name,
-- ea.value.data, ea.value.length, 0);
-- TALLOC_FREE(ea.value.data);
-+ ea.value.data, offset, 0);
-+ TALLOC_FREE(frame);
-
- if (ret == -1) {
- return -1;
-@@ -1273,9 +1367,9 @@ static int streams_xattr_fallocate(struc
- struct stream_io *sio =
- (struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
-
-- DEBUG(10, ("streams_xattr_fallocate called for file %s offset %.0f"
-- "len = %.0f\n",
-- fsp_str_dbg(fsp), (double)offset, (double)len));
-+ DEBUG(10, ("streams_xattr_fallocate: called for file '%s' with offset %lu"
-+ "len = %lu\n",
-+ fsp_str_dbg(fsp), (unsigned long)offset, (unsigned long)len));
-
- if (sio == NULL) {
- return SMB_VFS_NEXT_FALLOCATE(handle, fsp, mode, offset, len);
diff --git a/net/samba47/files/patch-source3__modules__wscript_build b/net/samba47/files/patch-source3__modules__wscript_build
deleted file mode 100644
index 9c0ed05ba148..000000000000
--- a/net/samba47/files/patch-source3__modules__wscript_build
+++ /dev/null
@@ -1,15 +0,0 @@
---- source3/modules/wscript_build.orig 2018-02-08 00:37:51 UTC
-+++ source3/modules/wscript_build
-@@ -516,3 +516,12 @@ bld.SAMBA3_MODULE('vfs_error_inject',
- init_function='',
- internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_error_inject'),
- enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_error_inject'))
-+
-+bld.SAMBA3_MODULE('vfs_freebsd',
-+ subsystem='vfs',
-+ source='vfs_freebsd.c',
-+ deps='samba-util',
-+ init_function='',
-+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_freebsd'),
-+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_freebsd'))
-+
diff --git a/net/samba47/files/patch-source3__smbd__quotas.c b/net/samba47/files/patch-source3__smbd__quotas.c
deleted file mode 100644
index 53e3de3290a5..000000000000
--- a/net/samba47/files/patch-source3__smbd__quotas.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- source3/smbd/quotas.c.orig 2017-07-04 10:05:26 UTC
-+++ source3/smbd/quotas.c
-@@ -125,6 +125,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));
-@@ -133,7 +134,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/samba47/files/patch-source3__utils__net.c b/net/samba47/files/patch-source3__utils__net.c
deleted file mode 100644
index 509aa4be8c01..000000000000
--- a/net/samba47/files/patch-source3__utils__net.c
+++ /dev/null
@@ -1,18 +0,0 @@
---- source3/utils/net.c.orig 2017-07-04 10:05:26 UTC
-+++ source3/utils/net.c
-@@ -1087,8 +1087,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/samba47/files/patch-source3__utils__net_time.c b/net/samba47/files/patch-source3__utils__net_time.c
deleted file mode 100644
index c970f2c98b2c..000000000000
--- a/net/samba47/files/patch-source3__utils__net_time.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- source3/utils/net_time.c.orig 2017-07-04 10:05:26 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/samba47/files/patch-source3__winbindd__wscript_build b/net/samba47/files/patch-source3__winbindd__wscript_build
deleted file mode 100644
index bf9c405fddf0..000000000000
--- a/net/samba47/files/patch-source3__winbindd__wscript_build
+++ /dev/null
@@ -1,20 +0,0 @@
---- source3/winbindd/wscript_build.orig 2017-11-14 04:44:42 UTC
-+++ source3/winbindd/wscript_build
-@@ -2,7 +2,7 @@
-
- bld.SAMBA3_LIBRARY('idmap',
- source='idmap.c idmap_util.c',
-- deps='samba-util pdb',
-+ deps='pdb samba-modules secrets3',
- allow_undefined_symbols=True,
- private_library=True)
-
-@@ -116,7 +116,7 @@ bld.SAMBA3_MODULE('idmap_autorid',
-
- bld.SAMBA3_LIBRARY('nss_info',
- source='nss_info.c',
-- deps='samba-util smbconf',
-+ deps='samba-util samba-modules smbconf',
- private_library=True)
-
- bld.SAMBA3_MODULE('nss_info_template',
diff --git a/net/samba47/files/patch-source3__wscript b/net/samba47/files/patch-source3__wscript
deleted file mode 100644
index ab905dc7b6f7..000000000000
--- a/net/samba47/files/patch-source3__wscript
+++ /dev/null
@@ -1,47 +0,0 @@
---- source3/wscript.orig 2018-04-17 09:35:02.000000000 +0200
-+++ source3/wscript 2018-07-11 22:55:06.353523000 +0200
-@@ -47,6 +47,7 @@ def set_options(opt):
- opt.SAMBA3_ADD_OPTION('sendfile-support')
- opt.SAMBA3_ADD_OPTION('utmp')
- 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')
-@@ -872,6 +873,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'):
-@@ -1669,7 +1681,7 @@ main() {
- if not conf.env['FLEX']:
- conf.fatal("Spotlight support requested but flex missing")
- conf.CHECK_COMMAND('%s --version' % conf.env['FLEX'], msg='Using flex version', define=None, on_target=False)
-- versions = ['1.0', '0.16', '0.14']
-+ versions = ['2.0', '1.0', '0.16', '0.14']
- for version in versions:
- testlib = 'tracker-sparql-' + version
- if conf.CHECK_CFG(package=testlib,
-@@ -1762,9 +1774,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/samba47/files/patch-source3__wscript_build b/net/samba47/files/patch-source3__wscript_build
deleted file mode 100644
index e81cd49bb223..000000000000
--- a/net/samba47/files/patch-source3__wscript_build
+++ /dev/null
@@ -1,48 +0,0 @@
---- source3/wscript_build.orig 2018-08-11 19:50:02 UTC
-+++ source3/wscript_build
-@@ -143,7 +143,6 @@ ldapsam_pdb_match = ['!priv2ld', '!smbldap_search_doma
- '!get_attr_list']
- private_pdb_match.append('!pdb_nds_*')
- private_pdb_match.append('!pdb_ldapsam_init*')
--private_pdb_match.append('!pdb_*_init')
- private_pdb_match = private_pdb_match + ldapsam_pdb_match
-
- bld.SAMBA3_LIBRARY('samba-passdb',
-@@ -240,11 +239,9 @@ bld.SAMBA3_SUBSYSTEM('SMBREGISTRY',
- talloc
- replace
- util_reg
-- samba-util
-- samba-security
- errors3
- dbwrap
-- samba3-util
-+ samba3util
- ''')
-
- # Do not link against this use 'smbconf'
-@@ -510,7 +507,7 @@ bld.SAMBA3_LIBRARY('secrets3',
-
- bld.SAMBA3_LIBRARY('smbldap',
- source='lib/smbldap.c',
-- deps='ldap lber samba-util smbconf',
-+ deps='ldap lber samba3util smbd_shim samba-debug smbconf',
- enabled=bld.CONFIG_SET("HAVE_LDAP"),
- private_library=False,
- abi_directory='lib/ABI',
-@@ -734,6 +731,7 @@ bld.SAMBA3_LIBRARY('smbd_base',
- smbd_conn
- param_service
- AVAHI
-+ dns_sd
- PRINTBASE
- PROFILE
- LOCKING
-@@ -1122,6 +1120,7 @@ bld.SAMBA3_BINARY('client/smbclient',
- msrpc3
- RPC_NDR_SRVSVC
- cli_smb_common
-+ dns_sd
- archive
- ''')
-
diff --git a/net/samba47/files/patch-source4__lib__http__http.c b/net/samba47/files/patch-source4__lib__http__http.c
deleted file mode 100644
index 969a648a3d37..000000000000
--- a/net/samba47/files/patch-source4__lib__http__http.c
+++ /dev/null
@@ -1,69 +0,0 @@
---- source4/lib/http/http.c.orig 2017-07-04 10:05:26 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/samba47/files/patch-third__party_aesni-intel_wscript b/net/samba47/files/patch-third__party_aesni-intel_wscript
deleted file mode 100644
index 64886d1affb0..000000000000
--- a/net/samba47/files/patch-third__party_aesni-intel_wscript
+++ /dev/null
@@ -1,33 +0,0 @@
---- third_party/aesni-intel/wscript.orig 2017-09-17 19:15:34 UTC
-+++ third_party/aesni-intel/wscript
-@@ -4,14 +4,19 @@ import Utils
-
- def configure(conf):
- if Options.options.accel_aes.lower() == "intelaesni":
-- if conf.CHECK_CFLAGS('-Wp,-E,-lang-asm', ''):
-- if conf.env['SYSTEM_UNAME_MACHINE'] == 'x86_64':
-+ asm_flags = ('-Wp,-E,-lang-asm', '-xassembler-with-cpp')
-+ for f in asm_flags:
-+ if conf.CHECK_CFLAGS(f, ''):
-+ conf.DEFINE('AESNI_INTEL_CFLAGS', f)
-+ break
-+ if conf.CONFIG_SET('AESNI_INTEL_CFLAGS'):
-+ if conf.env['SYSTEM_UNAME_MACHINE'] in ('x86_64', 'amd64'):
- print("Compiling with Intel AES instructions")
- conf.DEFINE('HAVE_AESNI_INTEL', 1)
- else:
- raise Utils.WafError('--accel-aes=intelaesni selected and non x86_64 CPU')
- else:
-- raise Utils.WafError('--accel-aes=intelaesni selected and compiler rejects -Wp,-E,-lang-asm')
-+ raise Utils.WafError('--aes-accel=intelaesni selected and compiler rejects ' + str(asm_flags))
- if not conf.CHECK_LDFLAGS('-Wl,-z,noexecstack'):
- raise Utils.WafError('--accel-aes=intelaesni selected and linker rejects -z noexecstack')
-
-@@ -21,6 +26,6 @@ def build(bld):
-
- bld.SAMBA_LIBRARY('aesni-intel',
- source='aesni-intel_asm.c',
-- cflags='-Wp,-E,-lang-asm',
-+ cflags=bld.CONFIG_GET('AESNI_INTEL_CFLAGS'),
- ldflags='-Wl,-z,noexecstack',
- private_library=True)
diff --git a/net/samba47/files/patch-third_party__waf__wafadmin__Logs.py b/net/samba47/files/patch-third_party__waf__wafadmin__Logs.py
deleted file mode 100644
index 2fc72af791df..000000000000
--- a/net/samba47/files/patch-third_party__waf__wafadmin__Logs.py
+++ /dev/null
@@ -1,21 +0,0 @@
---- third_party/waf/wafadmin/Logs.py.orig 2017-07-04 10:05:26 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/samba47/files/patch-third_party__waf__wafadmin__Tools__cc.py b/net/samba47/files/patch-third_party__waf__wafadmin__Tools__cc.py
deleted file mode 100644
index 5a2b2a634df2..000000000000
--- a/net/samba47/files/patch-third_party__waf__wafadmin__Tools__cc.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- third_party/waf/wafadmin/Tools/cc.py.orig 2017-07-04 10:05:26 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/samba47/files/patch-vfs_freebsd.c b/net/samba47/files/patch-vfs_freebsd.c
deleted file mode 100644
index 7ab75212d8fe..000000000000
--- a/net/samba47/files/patch-vfs_freebsd.c
+++ /dev/null
@@ -1,1785 +0,0 @@
---- /dev/null 2018-03-05 02:00:00 UTC
-+++ source3/modules/vfs_freebsd.c 2018-03-05 02:04:19.982828000 +0100
-@@ -0,0 +1,1782 @@
-+/*
-+ * This module implements VFS calls specific to FreeBSD
-+ *
-+ * Copyright (C) Timur I. Bakeyev, 2018
-+ *
-+ * This program is free software; you can redistribute it and/or modify
-+ * it under the terms of the GNU General Public License as published by
-+ * the Free Software Foundation; either version 3 of the License, or
-+ * (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
-+ */
-+
-+#include "includes.h"
-+
-+//#include "../source3/include/includes.h"
-+#include "lib/util/tevent_unix.h"
-+#include "lib/util/tevent_ntstatus.h"
-+#include "system/filesys.h"
-+
-+#include <sys/sysctl.h>
-+
-+
-+#ifndef EXTATTR_MAXNAMELEN
-+#define EXTATTR_MAXNAMELEN UINT8_MAX
-+#endif
-+
-+#define EXTATTR_NAMESPACE(NS) EXTATTR_NAMESPACE_ ## NS, \
-+ EXTATTR_NAMESPACE_ ## NS ## _STRING ".", \
-+ .data.len = (sizeof(EXTATTR_NAMESPACE_ ## NS ## _STRING ".") - 1)
-+
-+#define EXTATTR_EMPTY 0x00
-+#define EXTATTR_USER 0x01
-+#define EXTATTR_SYSTEM 0x02
-+#define EXTATTR_SECURITY 0x03
-+#define EXTATTR_TRUSTED 0x04
-+
-+
-+static bool is_secure = true;
-+static bool is_legacy = false;
-+
-+typedef struct {
-+ int namespace;
-+ char name[EXTATTR_MAXNAMELEN+1];
-+ union {
-+ uint16_t len;
-+ uint16_t flags;
-+ } data;
-+} extattr_attr;
-+
-+
-+/* XXX: This order doesn't match namespace ids order! */
-+static extattr_attr extattr[] = {
-+ { EXTATTR_NAMESPACE(EMPTY) },
-+ { EXTATTR_NAMESPACE(SYSTEM) },
-+ { EXTATTR_NAMESPACE(USER) },
-+};
-+
-+typedef struct {
-+ enum {
-+ EXTATTR_FILE, EXTATTR_LINK, EXTATTR_FDES
-+ } method;
-+ union {
-+ const char *path;
-+ int filedes;
-+ } param;
-+} extattr_arg;
-+
-+
-+
-+static bool freebsd_in_jail(void) {
-+ int val = 0;
-+ size_t val_len = sizeof(val);
-+
-+ if((sysctlbyname("security.jail.jailed", &val, &val_len, NULL, 0) != -1) && val == 1) {
-+ return true;
-+ }
-+ return false;
-+}
-+
-+static uint16_t freebsd_map_attrname(const char *name)
-+{
-+ if(name == NULL || name[0] == '\0') {
-+ return EXTATTR_EMPTY;
-+ }
-+
-+ switch(name[0]) {
-+ case 'u':
-+ if(strncmp(name, "user.", 5) == 0)
-+ return EXTATTR_USER;
-+ break;
-+ case 't':
-+ if(strncmp(name, "trusted.", 8) == 0)
-+ return EXTATTR_TRUSTED;
-+ break;
-+ case 's':
-+ /* name[1] could be any character, including '\0' */
-+ switch(name[1]) {
-+ case 'e':
-+ if(strncmp(name, "security.", 9) == 0)
-+ return EXTATTR_SECURITY;
-+ break;
-+ case 'y':
-+ if(strncmp(name, "system.", 7) == 0)
-+ return EXTATTR_SYSTEM;
-+ break;
-+ }
-+ break;
-+ }
-+ return EXTATTR_USER;
-+}
-+
-+/* security, system, trusted or user */
-+static extattr_attr* freebsd_map_xattr(const char *name, extattr_attr *attr)
-+{
-+ int attrnamespace = EXTATTR_NAMESPACE_EMPTY;
-+ const char *attrname = name;
-+
-+ if(name == NULL || name[0] == '\0') {
-+ return NULL;
-+ }
-+
-+ if(attr == NULL) {
-+ return NULL;
-+ }
-+
-+ uint16_t flags = freebsd_map_attrname(name);
-+
-+ switch(flags) {
-+ case EXTATTR_USER:
-+ attrnamespace = EXTATTR_NAMESPACE_USER;
-+ if(is_legacy)
-+ attrname = name + 5;
-+ break;
-+ case EXTATTR_SECURITY:
-+ case EXTATTR_TRUSTED:
-+ attrnamespace = (is_secure) ?
-+ EXTATTR_NAMESPACE_SYSTEM :
-+ EXTATTR_NAMESPACE_USER;
-+ break;
-+ case EXTATTR_SYSTEM:
-+ attrnamespace = (is_secure) ?
-+ EXTATTR_NAMESPACE_SYSTEM :
-+ EXTATTR_NAMESPACE_USER;
-+ if (is_legacy)
-+ attrname = name + 7;
-+ break;
-+ default:
-+ /* Default to "user" namespace if nothing else was specified */
-+ attrnamespace = EXTATTR_NAMESPACE_USER;
-+ flags = EXTATTR_USER;
-+ }
-+
-+ attr->namespace = attrnamespace;
-+ attr->data.flags = flags;
-+ strlcpy(attr->name, attrname, EXTATTR_MAXNAMELEN+1);
-+
-+ return attr;
-+}
-+
-+static ssize_t extattr_size(extattr_arg arg, extattr_attr *attr)
-+{
-+ ssize_t result;
-+
-+ switch(arg.method) {
-+#if defined(HAVE_EXTATTR_GET_FILE)
-+ case EXTATTR_FILE:
-+ result = extattr_get_file(arg.param.path, attr->namespace, attr->name, NULL, 0);
-+ break;
-+#endif
-+#if defined(HAVE_EXTATTR_GET_LINK)
-+ case EXTATTR_LINK:
-+ result = extattr_get_link(arg.param.path, attr->namespace, attr->name, NULL, 0);
-+ break;
-+#endif
-+#if defined(HAVE_EXTATTR_GET_FD)
-+ case EXTATTR_FDES:
-+ result = extattr_get_fd(arg.param.filedes, attr->namespace, attr->name, NULL, 0);
-+ break;
-+#endif
-+ default:
-+ errno = ENOSYS;
-+ return -1;
-+ }
-+
-+ if(result < 0) {
-+ errno = EINVAL;
-+ return -1;
-+ }
-+
-+ return result;
-+}
-+
-+
-+/*
-+ * The list of names is returned as an unordered array of NULL-terminated
-+ * character strings (attribute names are separated by NULL characters),
-+ * like this:
-+ * user.name1\0system.name1\0user.name2\0
-+ *
-+ * Filesystems like ext2, ext3 and XFS which implement POSIX ACLs using
-+ * extended attributes, might return a list like this:
-+ * system.posix_acl_access\0system.posix_acl_default\0
-+ */
-+/*
-+ * The extattr_list_file() returns a list of attributes present in the
-+ * requested namespace. Each list entry consists of a single byte containing
-+ * the length of the attribute name, followed by the attribute name. The
-+ * attribute name is not terminated by ASCII 0 (nul).
-+*/
-+
-+static ssize_t freebsd_extattr_list(extattr_arg arg, char *list, size_t size)
-+{
-+ ssize_t list_size, total_size = 0;
-+ char *p, *q, *list_end;
-+ int len;
-+ /*
-+ Ignore all but user namespace when we are not root or in jail
-+ See: https://bugzilla.samba.org/show_bug.cgi?id=10247
-+ */
-+ bool as_root = (geteuid() == 0);
-+
-+ int ns = (is_secure && as_root) ? 1 : 2;
-+
-+ /* Iterate through extattr(2) namespaces */
-+ for(; ns < ARRAY_SIZE(extattr); ns++) {
-+ switch(arg.method) {
-+#if defined(HAVE_EXTATTR_LIST_FILE)
-+ case EXTATTR_FILE:
-+ list_size = extattr_list_file(arg.param.path, extattr[ns].namespace, list, size);
-+ break;
-+#endif
-+#if defined(HAVE_EXTATTR_LIST_LINK)
-+ case EXTATTR_LINK:
-+ list_size = extattr_list_link(arg.param.path, extattr[ns].namespace, list, size);
-+ break;
-+#endif
-+#if defined(HAVE_EXTATTR_LIST_FD)
-+ case EXTATTR_FDES:
-+ list_size = extattr_list_fd(arg.param.filedes, extattr[ns].namespace, list, size);
-+ break;
-+#endif
-+ default:
-+ errno = ENOSYS;
-+ return -1;
-+ }
-+ /* Some error happend. Errno should be set by the previous call */
-+ if(list_size < 0)
-+ return -1;
-+ /* No attributes in this namespace */
-+ if(list_size == 0)
-+ continue;
-+ /*
-+ Call with an empty buffer may be used to calculate
-+ necessary buffer size.
-+ */
-+ if(list == NULL) {
-+ /*
-+ XXX: Unfortunately, we can't say, how many attributes were
-+ returned, so here is the potential problem with the emulation.
-+ */
-+ if(is_legacy) {
-+ /*
-+ Take the worse case of one char attribute names -
-+ two bytes per name plus one more for sanity.
-+ */
-+ total_size += list_size + (list_size/2 + 1)*extattr[ns].data.len;
-+ }
-+ else {
-+ total_size += list_size;
-+ }
-+ continue;
-+ }
-+
-+ if(is_legacy) {
-+ /* Count necessary offset to fit namespace prefixes */
-+ int extra_len = 0;
-+ uint16_t flags;
-+ list_end = list + list_size;
-+ for(list_size = 0, p = q = list; p < list_end; p += len) {
-+ len = p[0] + 1;
-+ (void)strlcpy(q, p + 1, len);
-+ flags = freebsd_map_attrname(q);
-+ /* Skip secure attributes for non-root user */
-+ if(!is_secure && !as_root && flags > EXTATTR_USER) {
-+ continue;
-+ }
-+ if(flags <= EXTATTR_USER) {
-+ /* Don't count trailing '\0' */
-+ extra_len += extattr[ns].data.len;
-+ }
-+ list_size += len;
-+ q += len;
-+ }
-+ total_size += list_size + extra_len;
-+ /* Buffer is too small to fit the results */
-+ if(total_size > size) {
-+ errno = ERANGE;
-+ return -1;
-+ }
-+ /* Shift results backwards, so we can prepend prefixes */
-+ list_end = list + extra_len;
-+ p = (char*)memmove(list_end, list, list_size);
-+ /*
-+ We enter the loop with `p` pointing to the shifted list and
-+ `extra_len` having the total margin between `list` and `p`
-+ */
-+ for(list_end += list_size; p < list_end; p += len) {
-+ len = strlen(p) + 1;
-+ flags = freebsd_map_attrname(p);
-+ if(flags <= EXTATTR_USER) {
-+ /* Add namespace prefix */
-+ (void)strncpy(list, extattr[ns].name, extattr[ns].data.len);
-+ list += extattr[ns].data.len;
-+ }
-+ /* Append attribute name */
-+ (void)strlcpy(list, p, len);
-+ list += len;
-+ }
-+ }
-+ else {
-+ /* Convert UCSD strings into nul-terminated strings */
-+ for(list_end = list + list_size; list < list_end; list += len) {
-+ len = list[0] + 1;
-+ (void)strlcpy(list, list + 1, len);
-+ }
-+ total_size += list_size;
-+ }
-+ }
-+ return total_size;
-+}
-+
-+/*
-+static ssize_t freebsd_getxattr_size(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ const char *name)
-+{
-+ extattr_arg arg = { EXTATTR_FILE, smb_fname->base_name };
-+ extattr_attr attr;
-+
-+ if(!freebsd_map_xattr(name, &attr)) {
-+ errno = EINVAL;
-+ return -1;
-+ }
-+
-+ if(!is_secure && geteuid() != 0 && attr.data.flags > EXTATTR_USER) {
-+ errno = ENOATTR;
-+ return -1;
-+ }
-+
-+ return extattr_size(arg, &attr);
-+}
-+*/
-+
-+/* VFS entries */
-+static ssize_t freebsd_getxattr(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ const char *name,
-+ void *value,
-+ size_t size)
-+{
-+#if defined(HAVE_EXTATTR_GET_FILE)
-+ extattr_arg arg = { EXTATTR_FILE, .param.path = smb_fname->base_name };
-+ extattr_attr attr;
-+ ssize_t res;
-+
-+ if(!freebsd_map_xattr(name, &attr)) {
-+ errno = EINVAL;
-+ return -1;
-+ }
-+
-+ /* Filter out 'secure' entries */
-+ if(!is_secure && geteuid() != 0 && attr.data.flags > EXTATTR_USER) {
-+ errno = ENOATTR;
-+ return -1;
-+ }
-+
-+ /*
-+ * The BSD implementation has a nasty habit of silently truncating
-+ * the returned value to the size of the buffer, so we have to check
-+ * that the buffer is large enough to fit the returned value.
-+ */
-+ if((res=extattr_size(arg, &attr)) < 0) {
-+ return -1;
-+ }
-+
-+ if (size == 0) {
-+ return res;
-+ }
-+ else if (res > size) {
-+ errno = ERANGE;
-+ return -1;
-+ }
-+
-+ if((res=extattr_get_file(smb_fname->base_name, attr.namespace, attr.name, value, size)) >= 0) {
-+ return res;
-+ }
-+ return -1;
-+#else
-+ errno = ENOSYS;
-+ return -1;
-+#endif
-+}
-+
-+
-+static ssize_t freebsd_fgetxattr(vfs_handle_struct *handle,
-+ struct files_struct *fsp, const char *name,
-+ void *value, size_t size)
-+{
-+#if defined(HAVE_EXTATTR_GET_FD)
-+ extattr_arg arg = { EXTATTR_FDES, .param.filedes = fsp->fh->fd };
-+ extattr_attr attr;
-+ ssize_t res;
-+
-+ if(!freebsd_map_xattr(name, &attr)) {
-+ errno = EINVAL;
-+ return -1;
-+ }
-+
-+ /* Filter out 'secure' entries */
-+ if(!is_secure && geteuid() != 0 && attr.data.flags > EXTATTR_USER) {
-+ errno = ENOATTR;
-+ return -1;
-+ }
-+
-+ /*
-+ * The BSD implementation has a nasty habit of silently truncating
-+ * the returned value to the size of the buffer, so we have to check
-+ * that the buffer is large enough to fit the returned value.
-+ */
-+ if((res=extattr_size(arg, &attr)) < 0) {
-+ return -1;
-+ }
-+
-+ if (size == 0) {
-+ return res;
-+ }
-+ else if (res > size) {
-+ errno = ERANGE;
-+ return -1;
-+ }
-+
-+ if((res=extattr_get_fd(fsp->fh->fd, attr.namespace, attr.name, value, size)) >= 0) {
-+ return res;
-+ }
-+ return -1;
-+#else
-+ errno = ENOSYS;
-+ return -1;
-+#endif
-+}
-+
-+
-+static ssize_t freebsd_listxattr(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ char *list,
-+ size_t size)
-+{
-+#if defined(HAVE_EXTATTR_LIST_FILE)
-+ extattr_arg arg = { EXTATTR_FILE, .param.path = smb_fname->base_name };
-+
-+ return freebsd_extattr_list(arg, list, size);
-+#else
-+ errno = ENOSYS;
-+ return -1;
-+#endif
-+}
-+
-+
-+static ssize_t freebsd_flistxattr(vfs_handle_struct *handle,
-+ struct files_struct *fsp, char *list,
-+ size_t size)
-+{
-+#if defined(HAVE_EXTATTR_LIST_FD)
-+ extattr_arg arg = { EXTATTR_FDES, .param.filedes = fsp->fh->fd };
-+
-+ return freebsd_extattr_list(arg, list, size);
-+#else
-+ errno = ENOSYS;
-+ return -1;
-+#endif
-+}
-+
-+static int freebsd_removexattr(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ const char *name)
-+{
-+#if defined(HAVE_EXTATTR_DELETE_FILE)
-+ extattr_attr attr;
-+
-+ if(!freebsd_map_xattr(name, &attr)) {
-+ errno = EINVAL;
-+ return -1;
-+ }
-+
-+ /* Filter out 'secure' entries */
-+ if(!is_secure && geteuid() != 0 && attr.data.flags > EXTATTR_USER) {
-+ errno = ENOATTR;
-+ return -1;
-+ }
-+
-+ return extattr_delete_file(smb_fname->base_name, attr.namespace, attr.name);
-+#else
-+ errno = ENOSYS;
-+ return -1;
-+#endif
-+}
-+
-+
-+static int freebsd_fremovexattr(vfs_handle_struct *handle,
-+ struct files_struct *fsp, const char *name)
-+{
-+#if defined(HAVE_EXTATTR_DELETE_FD)
-+ extattr_attr attr;
-+
-+ if(!freebsd_map_xattr(name, &attr)) {
-+ errno = EINVAL;
-+ return -1;
-+ }
-+
-+ /* Filter out 'secure' entries */
-+ if(!is_secure && geteuid() != 0 && attr.data.flags > EXTATTR_USER) {
-+ errno = ENOATTR;
-+ return -1;
-+ }
-+
-+ return extattr_delete_fd(fsp->fh->fd, attr.namespace, attr.name);
-+#else
-+ errno = ENOSYS;
-+ return -1;
-+#endif
-+}
-+
-+
-+static int freebsd_setxattr(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ const char *name,
-+ const void *value,
-+ size_t size,
-+ int flags)
-+{
-+#if defined(HAVE_EXTATTR_SET_FILE)
-+ extattr_attr attr;
-+ ssize_t res;
-+
-+ if(!freebsd_map_xattr(name, &attr)) {
-+ errno = EINVAL;
-+ return -1;
-+ }
-+
-+ /* Filter out 'secure' entries */
-+ if(!is_secure && geteuid() != 0 && attr.data.flags > EXTATTR_USER) {
-+ errno = ENOATTR;
-+ return -1;
-+ }
-+
-+ if (flags) {
-+ extattr_arg arg = { EXTATTR_FILE, .param.path = smb_fname->base_name };
-+ /* Check attribute existence */
-+ res = extattr_size(arg, &attr);
-+ if (res < 0) {
-+ /* REPLACE attribute, that doesn't exist */
-+ if ((flags & XATTR_REPLACE) && errno == ENOATTR) {
-+ errno = ENOATTR;
-+ return -1;
-+ }
-+ /* Ignore other errors */
-+ }
-+ else {
-+ /* CREATE attribute, that already exists */
-+ if (flags & XATTR_CREATE) {
-+ errno = EEXIST;
-+ return -1;
-+ }
-+ }
-+ }
-+ res = extattr_set_file(smb_fname->base_name, attr.namespace, attr.name, value, size);
-+
-+ return (res >= 0) ? 0 : -1;
-+#else
-+ errno = ENOSYS;
-+ return -1;
-+#endif
-+}
-+
-+
-+static int freebsd_fsetxattr(vfs_handle_struct *handle, struct files_struct *fsp,
-+ const char *name, const void *value, size_t size,
-+ int flags)
-+{
-+#if defined(HAVE_EXTATTR_SET_FD)
-+ extattr_attr attr;
-+ ssize_t res;
-+
-+ if(!freebsd_map_xattr(name, &attr)) {
-+ errno = EINVAL;
-+ return -1;
-+ }
-+
-+ /* Filter out 'secure' entries */
-+ if(!is_secure && geteuid() != 0 && attr.data.flags > EXTATTR_USER) {
-+ errno = ENOATTR;
-+ return -1;
-+ }
-+
-+ if (flags) {
-+ extattr_arg arg = { EXTATTR_FDES, .param.filedes = fsp->fh->fd };
-+ /* Check attribute existence */
-+ res = extattr_size(arg, &attr);
-+ if (res < 0) {
-+ /* REPLACE attribute, that doesn't exist */
-+ if ((flags & XATTR_REPLACE) && errno == ENOATTR) {
-+ errno = ENOATTR;
-+ return -1;
-+ }
-+ /* Ignore other errors */
-+ }
-+ else {
-+ /* CREATE attribute, that already exists */
-+ if (flags & XATTR_CREATE) {
-+ errno = EEXIST;
-+ return -1;
-+ }
-+ }
-+ }
-+
-+ res = extattr_set_fd(fsp->fh->fd, attr.namespace, attr.name, value, size);
-+
-+ return (res >= 0) ? 0 : -1;
-+#else
-+ errno = ENOSYS;
-+ return -1;
-+#endif
-+}
-+
-+
-+
-+
-+static int freebsd_connect(vfs_handle_struct *handle, const char *service,
-+ const char *user)
-+{
-+ return SMB_VFS_NEXT_CONNECT(handle, service, user);
-+}
-+
-+static void freebsd_disconnect(vfs_handle_struct *handle)
-+{
-+ SMB_VFS_NEXT_DISCONNECT(handle);
-+}
-+
-+static uint64_t freebsd_disk_free(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ uint64_t *bsize,
-+ uint64_t *dfree,
-+ uint64_t *dsize)
-+{
-+ return SMB_VFS_NEXT_DISK_FREE(handle, smb_fname, bsize, dfree, dsize);
-+}
-+
-+static int freebsd_get_quota(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ enum SMB_QUOTA_TYPE qtype,
-+ unid_t id,
-+ SMB_DISK_QUOTA *dq)
-+{
-+ return SMB_VFS_NEXT_GET_QUOTA(handle, smb_fname, qtype, id, dq);
-+}
-+
-+static int freebsd_set_quota(vfs_handle_struct *handle, enum SMB_QUOTA_TYPE qtype,
-+ unid_t id, SMB_DISK_QUOTA *dq)
-+{
-+ return SMB_VFS_NEXT_SET_QUOTA(handle, qtype, id, dq);
-+}
-+
-+static int freebsd_get_shadow_copy_data(vfs_handle_struct *handle,
-+ files_struct *fsp,
-+ struct shadow_copy_data *shadow_copy_data,
-+ bool labels)
-+{
-+ return SMB_VFS_NEXT_GET_SHADOW_COPY_DATA(handle, fsp, shadow_copy_data,
-+ labels);
-+}
-+
-+static int freebsd_statvfs(struct vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ struct vfs_statvfs_struct *statbuf)
-+{
-+ return SMB_VFS_NEXT_STATVFS(handle, smb_fname, statbuf);
-+}
-+
-+static uint32_t freebsd_fs_capabilities(struct vfs_handle_struct *handle,
-+ enum timestamp_set_resolution *p_ts_res)
-+{
-+ return SMB_VFS_NEXT_FS_CAPABILITIES(handle, p_ts_res);
-+}
-+
-+static NTSTATUS freebsd_get_dfs_referrals(struct vfs_handle_struct *handle,
-+ struct dfs_GetDFSReferral *r)
-+{
-+ return SMB_VFS_NEXT_GET_DFS_REFERRALS(handle, r);
-+}
-+
-+static DIR *freebsd_opendir(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ const char *mask,
-+ uint32_t attr)
-+{
-+ return SMB_VFS_NEXT_OPENDIR(handle, smb_fname, mask, attr);
-+}
-+
-+static NTSTATUS freebsd_snap_check_path(struct vfs_handle_struct *handle,
-+ TALLOC_CTX *mem_ctx,
-+ const char *service_path,
-+ char **base_volume)
-+{
-+ return SMB_VFS_NEXT_SNAP_CHECK_PATH(handle, mem_ctx, service_path,
-+ base_volume);
-+}
-+
-+static NTSTATUS freebsd_snap_create(struct vfs_handle_struct *handle,
-+ TALLOC_CTX *mem_ctx,
-+ const char *base_volume,
-+ time_t *tstamp,
-+ bool rw,
-+ char **base_path,
-+ char **snap_path)
-+{
-+ return SMB_VFS_NEXT_SNAP_CREATE(handle, mem_ctx, base_volume, tstamp,
-+ rw, base_path, snap_path);
-+}
-+
-+static NTSTATUS freebsd_snap_delete(struct vfs_handle_struct *handle,
-+ TALLOC_CTX *mem_ctx,
-+ char *base_path,
-+ char *snap_path)
-+{
-+ return SMB_VFS_NEXT_SNAP_DELETE(handle, mem_ctx, base_path, snap_path);
-+}
-+
-+static DIR *freebsd_fdopendir(vfs_handle_struct *handle, files_struct *fsp,
-+ const char *mask, uint32_t attr)
-+{
-+ return SMB_VFS_NEXT_FDOPENDIR(handle, fsp, mask, attr);
-+}
-+
-+static struct dirent *freebsd_readdir(vfs_handle_struct *handle,
-+ DIR *dirp, SMB_STRUCT_STAT *sbuf)
-+{
-+ return SMB_VFS_NEXT_READDIR(handle, dirp, sbuf);
-+}
-+
-+static void freebsd_seekdir(vfs_handle_struct *handle, DIR *dirp, long offset)
-+{
-+ SMB_VFS_NEXT_SEEKDIR(handle, dirp, offset);
-+}
-+
-+static long freebsd_telldir(vfs_handle_struct *handle, DIR *dirp)
-+{
-+ return SMB_VFS_NEXT_TELLDIR(handle, dirp);
-+}
-+
-+static void freebsd_rewind_dir(vfs_handle_struct *handle, DIR *dirp)
-+{
-+ SMB_VFS_NEXT_REWINDDIR(handle, dirp);
-+}
-+
-+static int freebsd_mkdir(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ mode_t mode)
-+{
-+ return SMB_VFS_NEXT_MKDIR(handle, smb_fname, mode);
-+}
-+
-+static int freebsd_rmdir(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname)
-+{
-+ return SMB_VFS_NEXT_RMDIR(handle, smb_fname);
-+}
-+
-+static int freebsd_closedir(vfs_handle_struct *handle, DIR *dir)
-+{
-+ return SMB_VFS_NEXT_CLOSEDIR(handle, dir);
-+}
-+
-+static int freebsd_open(vfs_handle_struct *handle, struct smb_filename *smb_fname,
-+ files_struct *fsp, int flags, mode_t mode)
-+{
-+ return SMB_VFS_NEXT_OPEN(handle, smb_fname, fsp, flags, mode);
-+}
-+
-+static NTSTATUS freebsd_create_file(struct vfs_handle_struct *handle,
-+ struct smb_request *req,
-+ uint16_t root_dir_fid,
-+ struct smb_filename *smb_fname,
-+ uint32_t access_mask,
-+ uint32_t share_access,
-+ uint32_t create_disposition,
-+ uint32_t create_options,
-+ uint32_t file_attributes,
-+ uint32_t oplock_request,
-+ struct smb2_lease *lease,
-+ uint64_t allocation_size,
-+ uint32_t private_flags,
-+ struct security_descriptor *sd,
-+ struct ea_list *ea_list,
-+ files_struct ** result, int *pinfo,
-+ const struct smb2_create_blobs *in_context_blobs,
-+ struct smb2_create_blobs *out_context_blobs)
-+{
-+ return SMB_VFS_NEXT_CREATE_FILE(handle,
-+ req,
-+ root_dir_fid,
-+ smb_fname,
-+ access_mask,
-+ share_access,
-+ create_disposition,
-+ create_options,
-+ file_attributes,
-+ oplock_request,
-+ lease,
-+ allocation_size,
-+ private_flags,
-+ sd, ea_list, result, pinfo,
-+ in_context_blobs, out_context_blobs);
-+}
-+
-+static int freebsd_close_fn(vfs_handle_struct *handle, files_struct *fsp)
-+{
-+ return SMB_VFS_NEXT_CLOSE(handle, fsp);
-+}
-+
-+static ssize_t freebsd_vfs_read(vfs_handle_struct *handle, files_struct *fsp,
-+ void *data, size_t n)
-+{
-+ return SMB_VFS_NEXT_READ(handle, fsp, data, n);
-+}
-+
-+static ssize_t freebsd_pread(vfs_handle_struct *handle, files_struct *fsp,
-+ void *data, size_t n, off_t offset)
-+{
-+ return SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset);
-+}
-+
-+struct freebsd_pread_state {
-+ ssize_t ret;
-+ struct vfs_aio_state vfs_aio_state;
-+};
-+
-+static void freebsd_pread_done(struct tevent_req *subreq);
-+
-+static struct tevent_req *freebsd_pread_send(struct vfs_handle_struct *handle,
-+ TALLOC_CTX *mem_ctx,
-+ struct tevent_context *ev,
-+ struct files_struct *fsp,
-+ void *data, size_t n, off_t offset)
-+{
-+ struct tevent_req *req, *subreq;
-+ struct freebsd_pread_state *state;
-+
-+ req = tevent_req_create(mem_ctx, &state, struct freebsd_pread_state);
-+ if (req == NULL) {
-+ return NULL;
-+ }
-+ subreq = SMB_VFS_NEXT_PREAD_SEND(state, ev, handle, fsp, data,
-+ n, offset);
-+ if (tevent_req_nomem(subreq, req)) {
-+ return tevent_req_post(req, ev);
-+ }
-+ tevent_req_set_callback(subreq, freebsd_pread_done, req);
-+ return req;
-+}
-+
-+static void freebsd_pread_done(struct tevent_req *subreq)
-+{
-+ struct tevent_req *req =
-+ tevent_req_callback_data(subreq, struct tevent_req);
-+ struct freebsd_pread_state *state =
-+ tevent_req_data(req, struct freebsd_pread_state);
-+
-+ state->ret = SMB_VFS_PREAD_RECV(subreq, &state->vfs_aio_state);
-+ TALLOC_FREE(subreq);
-+ tevent_req_done(req);
-+}
-+
-+static ssize_t freebsd_pread_recv(struct tevent_req *req,
-+ struct vfs_aio_state *vfs_aio_state)
-+{
-+ struct freebsd_pread_state *state =
-+ tevent_req_data(req, struct freebsd_pread_state);
-+
-+ if (tevent_req_is_unix_error(req, &vfs_aio_state->error)) {
-+ return -1;
-+ }
-+ *vfs_aio_state = state->vfs_aio_state;
-+ return state->ret;
-+}
-+
-+static ssize_t freebsd_write(vfs_handle_struct *handle, files_struct *fsp,
-+ const void *data, size_t n)
-+{
-+ return SMB_VFS_NEXT_WRITE(handle, fsp, data, n);
-+}
-+
-+static ssize_t freebsd_pwrite(vfs_handle_struct *handle, files_struct *fsp,
-+ const void *data, size_t n, off_t offset)
-+{
-+ return SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, offset);
-+}
-+
-+struct freebsd_pwrite_state {
-+ ssize_t ret;
-+ struct vfs_aio_state vfs_aio_state;
-+};
-+
-+static void freebsd_pwrite_done(struct tevent_req *subreq);
-+
-+static struct tevent_req *freebsd_pwrite_send(struct vfs_handle_struct *handle,
-+ TALLOC_CTX *mem_ctx,
-+ struct tevent_context *ev,
-+ struct files_struct *fsp,
-+ const void *data,
-+ size_t n, off_t offset)
-+{
-+ struct tevent_req *req, *subreq;
-+ struct freebsd_pwrite_state *state;
-+
-+ req = tevent_req_create(mem_ctx, &state, struct freebsd_pwrite_state);
-+ if (req == NULL) {
-+ return NULL;
-+ }
-+ subreq = SMB_VFS_NEXT_PWRITE_SEND(state, ev, handle, fsp, data,
-+ n, offset);
-+ if (tevent_req_nomem(subreq, req)) {
-+ return tevent_req_post(req, ev);
-+ }
-+ tevent_req_set_callback(subreq, freebsd_pwrite_done, req);
-+ return req;
-+}
-+
-+static void freebsd_pwrite_done(struct tevent_req *subreq)
-+{
-+ struct tevent_req *req =
-+ tevent_req_callback_data(subreq, struct tevent_req);
-+ struct freebsd_pwrite_state *state =
-+ tevent_req_data(req, struct freebsd_pwrite_state);
-+
-+ state->ret = SMB_VFS_PWRITE_RECV(subreq, &state->vfs_aio_state);
-+ TALLOC_FREE(subreq);
-+ tevent_req_done(req);
-+}
-+
-+static ssize_t freebsd_pwrite_recv(struct tevent_req *req,
-+ struct vfs_aio_state *vfs_aio_state)
-+{
-+ struct freebsd_pwrite_state *state =
-+ tevent_req_data(req, struct freebsd_pwrite_state);
-+
-+ if (tevent_req_is_unix_error(req, &vfs_aio_state->error)) {
-+ return -1;
-+ }
-+ *vfs_aio_state = state->vfs_aio_state;
-+ return state->ret;
-+}
-+
-+static off_t freebsd_lseek(vfs_handle_struct *handle, files_struct *fsp,
-+ off_t offset, int whence)
-+{
-+ return SMB_VFS_NEXT_LSEEK(handle, fsp, offset, whence);
-+}
-+
-+static ssize_t freebsd_sendfile(vfs_handle_struct *handle, int tofd,
-+ files_struct *fromfsp, const DATA_BLOB *hdr,
-+ off_t offset, size_t n)
-+{
-+ return SMB_VFS_NEXT_SENDFILE(handle, tofd, fromfsp, hdr, offset, n);
-+}
-+
-+static ssize_t freebsd_recvfile(vfs_handle_struct *handle, int fromfd,
-+ files_struct *tofsp, off_t offset, size_t n)
-+{
-+ return SMB_VFS_NEXT_RECVFILE(handle, fromfd, tofsp, offset, n);
-+}
-+
-+static int freebsd_rename(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname_src,
-+ const struct smb_filename *smb_fname_dst)
-+{
-+ return SMB_VFS_NEXT_RENAME(handle, smb_fname_src, smb_fname_dst);
-+}
-+
-+static int freebsd_fsync(vfs_handle_struct *handle, files_struct *fsp)
-+{
-+ return SMB_VFS_NEXT_FSYNC(handle, fsp);
-+}
-+
-+struct freebsd_fsync_state {
-+ int ret;
-+ struct vfs_aio_state vfs_aio_state;
-+};
-+
-+static void freebsd_fsync_done(struct tevent_req *subreq);
-+
-+static struct tevent_req *freebsd_fsync_send(struct vfs_handle_struct *handle,
-+ TALLOC_CTX *mem_ctx,
-+ struct tevent_context *ev,
-+ struct files_struct *fsp)
-+{
-+ struct tevent_req *req, *subreq;
-+ struct freebsd_fsync_state *state;
-+
-+ req = tevent_req_create(mem_ctx, &state, struct freebsd_fsync_state);
-+ if (req == NULL) {
-+ return NULL;
-+ }
-+ subreq = SMB_VFS_NEXT_FSYNC_SEND(state, ev, handle, fsp);
-+ if (tevent_req_nomem(subreq, req)) {
-+ return tevent_req_post(req, ev);
-+ }
-+ tevent_req_set_callback(subreq, freebsd_fsync_done, req);
-+ return req;
-+}
-+
-+static void freebsd_fsync_done(struct tevent_req *subreq)
-+{
-+ struct tevent_req *req =
-+ tevent_req_callback_data(subreq, struct tevent_req);
-+ struct freebsd_fsync_state *state =
-+ tevent_req_data(req, struct freebsd_fsync_state);
-+
-+ state->ret = SMB_VFS_FSYNC_RECV(subreq, &state->vfs_aio_state);
-+ TALLOC_FREE(subreq);
-+ tevent_req_done(req);
-+}
-+
-+static int freebsd_fsync_recv(struct tevent_req *req,
-+ struct vfs_aio_state *vfs_aio_state)
-+{
-+ struct freebsd_fsync_state *state =
-+ tevent_req_data(req, struct freebsd_fsync_state);
-+
-+ if (tevent_req_is_unix_error(req, &vfs_aio_state->error)) {
-+ return -1;
-+ }
-+ *vfs_aio_state = state->vfs_aio_state;
-+ return state->ret;
-+}
-+
-+static int freebsd_stat(vfs_handle_struct *handle, struct smb_filename *smb_fname)
-+{
-+ return SMB_VFS_NEXT_STAT(handle, smb_fname);
-+}
-+
-+static int freebsd_fstat(vfs_handle_struct *handle, files_struct *fsp,
-+ SMB_STRUCT_STAT *sbuf)
-+{
-+ return SMB_VFS_NEXT_FSTAT(handle, fsp, sbuf);
-+}
-+
-+static int freebsd_lstat(vfs_handle_struct *handle,
-+ struct smb_filename *smb_fname)
-+{
-+ return SMB_VFS_NEXT_LSTAT(handle, smb_fname);
-+}
-+
-+static uint64_t freebsd_get_alloc_size(struct vfs_handle_struct *handle,
-+ struct files_struct *fsp,
-+ const SMB_STRUCT_STAT *sbuf)
-+{
-+ return SMB_VFS_NEXT_GET_ALLOC_SIZE(handle, fsp, sbuf);
-+}
-+
-+static int freebsd_unlink(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname)
-+{
-+ return SMB_VFS_NEXT_UNLINK(handle, smb_fname);
-+}
-+
-+static int freebsd_chmod(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ mode_t mode)
-+{
-+ return SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode);
-+}
-+
-+static int freebsd_fchmod(vfs_handle_struct *handle, files_struct *fsp,
-+ mode_t mode)
-+{
-+ return SMB_VFS_NEXT_FCHMOD(handle, fsp, mode);
-+}
-+
-+static int freebsd_chown(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ uid_t uid,
-+ gid_t gid)
-+{
-+ return SMB_VFS_NEXT_CHOWN(handle, smb_fname, uid, gid);
-+}
-+
-+static int freebsd_fchown(vfs_handle_struct *handle, files_struct *fsp,
-+ uid_t uid, gid_t gid)
-+{
-+ return SMB_VFS_NEXT_FCHOWN(handle, fsp, uid, gid);
-+}
-+
-+static int freebsd_lchown(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ uid_t uid,
-+ gid_t gid)
-+{
-+ return SMB_VFS_NEXT_LCHOWN(handle, smb_fname, uid, gid);
-+}
-+
-+static int freebsd_chdir(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname)
-+{
-+ return SMB_VFS_NEXT_CHDIR(handle, smb_fname);
-+}
-+
-+static struct smb_filename *freebsd_getwd(vfs_handle_struct *handle,
-+ TALLOC_CTX *ctx)
-+{
-+ return SMB_VFS_NEXT_GETWD(handle, ctx);
-+}
-+
-+static int freebsd_ntimes(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ struct smb_file_time *ft)
-+{
-+ return SMB_VFS_NEXT_NTIMES(handle, smb_fname, ft);
-+}
-+
-+static int freebsd_ftruncate(vfs_handle_struct *handle, files_struct *fsp,
-+ off_t offset)
-+{
-+ return SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset);
-+}
-+
-+static int freebsd_fallocate(vfs_handle_struct *handle, files_struct *fsp,
-+ uint32_t mode, off_t offset, off_t len)
-+{
-+ return SMB_VFS_NEXT_FALLOCATE(handle, fsp, mode, offset, len);
-+}
-+
-+static bool freebsd_lock(vfs_handle_struct *handle, files_struct *fsp, int op,
-+ off_t offset, off_t count, int type)
-+{
-+ return SMB_VFS_NEXT_LOCK(handle, fsp, op, offset, count, type);
-+}
-+
-+static int freebsd_kernel_flock(struct vfs_handle_struct *handle,
-+ struct files_struct *fsp, uint32_t share_mode,
-+ uint32_t access_mask)
-+{
-+ return SMB_VFS_NEXT_KERNEL_FLOCK(handle, fsp, share_mode, access_mask);
-+}
-+
-+static int freebsd_linux_setlease(struct vfs_handle_struct *handle,
-+ struct files_struct *fsp, int leasetype)
-+{
-+ return SMB_VFS_NEXT_LINUX_SETLEASE(handle, fsp, leasetype);
-+}
-+
-+static bool freebsd_getlock(vfs_handle_struct *handle, files_struct *fsp,
-+ off_t *poffset, off_t *pcount, int *ptype,
-+ pid_t *ppid)
-+{
-+ return SMB_VFS_NEXT_GETLOCK(handle, fsp, poffset, pcount, ptype, ppid);
-+}
-+
-+static int freebsd_symlink(vfs_handle_struct *handle,
-+ const char *link_contents,
-+ const struct smb_filename *new_smb_fname)
-+{
-+ return SMB_VFS_NEXT_SYMLINK(handle, link_contents, new_smb_fname);
-+}
-+
-+static int freebsd_vfs_readlink(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ char *buf,
-+ size_t bufsiz)
-+{
-+ return SMB_VFS_NEXT_READLINK(handle, smb_fname, buf, bufsiz);
-+}
-+
-+static int freebsd_link(vfs_handle_struct *handle,
-+ const struct smb_filename *old_smb_fname,
-+ const struct smb_filename *new_smb_fname)
-+{
-+ return SMB_VFS_NEXT_LINK(handle, old_smb_fname, new_smb_fname);
-+}
-+
-+static int freebsd_mknod(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ mode_t mode,
-+ SMB_DEV_T dev)
-+{
-+ return SMB_VFS_NEXT_MKNOD(handle, smb_fname, mode, dev);
-+}
-+
-+static struct smb_filename *freebsd_realpath(vfs_handle_struct *handle,
-+ TALLOC_CTX *ctx,
-+ const struct smb_filename *smb_fname)
-+{
-+ return SMB_VFS_NEXT_REALPATH(handle, ctx, smb_fname);
-+}
-+
-+static int freebsd_chflags(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ uint flags)
-+{
-+ return SMB_VFS_NEXT_CHFLAGS(handle, smb_fname, flags);
-+}
-+
-+static struct file_id freebsd_file_id_create(vfs_handle_struct *handle,
-+ const SMB_STRUCT_STAT *sbuf)
-+{
-+ return SMB_VFS_NEXT_FILE_ID_CREATE(handle, sbuf);
-+}
-+
-+struct freebsd_offload_read_state {
-+ struct vfs_handle_struct *handle;
-+ DATA_BLOB token;
-+};
-+
-+static void freebsd_offload_read_done(struct tevent_req *subreq);
-+
-+static struct tevent_req *freebsd_offload_read_send(
-+ TALLOC_CTX *mem_ctx,
-+ struct tevent_context *ev,
-+ struct vfs_handle_struct *handle,
-+ struct files_struct *fsp,
-+ uint32_t fsctl,
-+ uint32_t ttl,
-+ off_t offset,
-+ size_t to_copy)
-+{
-+ struct tevent_req *req = NULL;
-+ struct freebsd_offload_read_state *state = NULL;
-+ struct tevent_req *subreq = NULL;
-+
-+ req = tevent_req_create(mem_ctx, &state, struct freebsd_offload_read_state);
-+ if (req == NULL) {
-+ return NULL;
-+ }
-+ *state = (struct freebsd_offload_read_state) {
-+ .handle = handle,
-+ };
-+
-+ subreq = SMB_VFS_NEXT_OFFLOAD_READ_SEND(mem_ctx, ev, handle, fsp,
-+ fsctl, ttl, offset, to_copy);
-+ if (tevent_req_nomem(subreq, req)) {
-+ return tevent_req_post(req, ev);
-+ }
-+ tevent_req_set_callback(subreq, freebsd_offload_read_done, req);
-+ return req;
-+}
-+
-+static void freebsd_offload_read_done(struct tevent_req *subreq)
-+{
-+ struct tevent_req *req = tevent_req_callback_data(
-+ subreq, struct tevent_req);
-+ struct freebsd_offload_read_state *state = tevent_req_data(
-+ req, struct freebsd_offload_read_state);
-+ NTSTATUS status;
-+
-+ status = SMB_VFS_NEXT_OFFLOAD_READ_RECV(subreq,
-+ state->handle,
-+ state,
-+ &state->token);
-+ TALLOC_FREE(subreq);
-+ if (tevent_req_nterror(req, status)) {
-+ return;
-+ }
-+
-+ tevent_req_done(req);
-+ return;
-+}
-+
-+static NTSTATUS freebsd_offload_read_recv(struct tevent_req *req,
-+ struct vfs_handle_struct *handle,
-+ TALLOC_CTX *mem_ctx,
-+ DATA_BLOB *_token)
-+{
-+ struct freebsd_offload_read_state *state = tevent_req_data(
-+ req, struct freebsd_offload_read_state);
-+ DATA_BLOB token;
-+ NTSTATUS status;
-+
-+ if (tevent_req_is_nterror(req, &status)) {
-+ tevent_req_received(req);
-+ return status;
-+ }
-+
-+ token = data_blob_talloc(mem_ctx,
-+ state->token.data,
-+ state->token.length);
-+
-+ tevent_req_received(req);
-+
-+ if (token.data == NULL) {
-+ return NT_STATUS_NO_MEMORY;
-+ }
-+
-+ *_token = token;
-+ return NT_STATUS_OK;
-+}
-+
-+struct freebsd_offload_write_state {
-+ struct vfs_handle_struct *handle;
-+ off_t copied;
-+};
-+static void freebsd_offload_write_done(struct tevent_req *subreq);
-+
-+static struct tevent_req *freebsd_offload_write_send(struct vfs_handle_struct *handle,
-+ TALLOC_CTX *mem_ctx,
-+ struct tevent_context *ev,
-+ uint32_t fsctl,
-+ DATA_BLOB *token,
-+ off_t transfer_offset,
-+ struct files_struct *dest_fsp,
-+ off_t dest_off,
-+ off_t num)
-+{
-+ struct tevent_req *req;
-+ struct tevent_req *subreq;
-+ struct freebsd_offload_write_state *state;
-+
-+ req = tevent_req_create(mem_ctx, &state, struct freebsd_offload_write_state);
-+ if (req == NULL) {
-+ return NULL;
-+ }
-+
-+ state->handle = handle;
-+ subreq = SMB_VFS_NEXT_OFFLOAD_WRITE_SEND(handle, state, ev,
-+ fsctl, token, transfer_offset,
-+ dest_fsp, dest_off, num);
-+ if (tevent_req_nomem(subreq, req)) {
-+ return tevent_req_post(req, ev);
-+ }
-+
-+ tevent_req_set_callback(subreq, freebsd_offload_write_done, req);
-+ return req;
-+}
-+
-+static void freebsd_offload_write_done(struct tevent_req *subreq)
-+{
-+ struct tevent_req *req = tevent_req_callback_data(
-+ subreq, struct tevent_req);
-+ struct freebsd_offload_write_state *state
-+ = tevent_req_data(req, struct freebsd_offload_write_state);
-+ NTSTATUS status;
-+
-+ status = SMB_VFS_NEXT_OFFLOAD_WRITE_RECV(state->handle,
-+ subreq,
-+ &state->copied);
-+ TALLOC_FREE(subreq);
-+ if (tevent_req_nterror(req, status)) {
-+ return;
-+ }
-+ tevent_req_done(req);
-+}
-+
-+static NTSTATUS freebsd_offload_write_recv(struct vfs_handle_struct *handle,
-+ struct tevent_req *req,
-+ off_t *copied)
-+{
-+ struct freebsd_offload_write_state *state
-+ = tevent_req_data(req, struct freebsd_offload_write_state);
-+ NTSTATUS status;
-+
-+ *copied = state->copied;
-+ if (tevent_req_is_nterror(req, &status)) {
-+ tevent_req_received(req);
-+ return status;
-+ }
-+
-+ tevent_req_received(req);
-+ return NT_STATUS_OK;
-+}
-+
-+static NTSTATUS freebsd_get_compression(struct vfs_handle_struct *handle,
-+ TALLOC_CTX *mem_ctx,
-+ struct files_struct *fsp,
-+ struct smb_filename *smb_fname,
-+ uint16_t *_compression_fmt)
-+{
-+ return SMB_VFS_NEXT_GET_COMPRESSION(handle, mem_ctx, fsp, smb_fname,
-+ _compression_fmt);
-+}
-+
-+static NTSTATUS freebsd_set_compression(struct vfs_handle_struct *handle,
-+ TALLOC_CTX *mem_ctx,
-+ struct files_struct *fsp,
-+ uint16_t compression_fmt)
-+{
-+ return SMB_VFS_NEXT_SET_COMPRESSION(handle, mem_ctx, fsp,
-+ compression_fmt);
-+}
-+
-+static NTSTATUS freebsd_streaminfo(struct vfs_handle_struct *handle,
-+ struct files_struct *fsp,
-+ const struct smb_filename *smb_fname,
-+ TALLOC_CTX *mem_ctx,
-+ unsigned int *num_streams,
-+ struct stream_struct **streams)
-+{
-+ return SMB_VFS_NEXT_STREAMINFO(handle,
-+ fsp,
-+ smb_fname,
-+ mem_ctx,
-+ num_streams,
-+ streams);
-+}
-+
-+static int freebsd_get_real_filename(struct vfs_handle_struct *handle,
-+ const char *path,
-+ const char *name,
-+ TALLOC_CTX *mem_ctx, char **found_name)
-+{
-+ return SMB_VFS_NEXT_GET_REAL_FILENAME(handle,
-+ path, name, mem_ctx, found_name);
-+}
-+
-+static const char *freebsd_connectpath(struct vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname)
-+{
-+ return SMB_VFS_NEXT_CONNECTPATH(handle, smb_fname);
-+}
-+
-+static NTSTATUS freebsd_brl_lock_windows(struct vfs_handle_struct *handle,
-+ struct byte_range_lock *br_lck,
-+ struct lock_struct *plock,
-+ bool blocking_lock)
-+{
-+ return SMB_VFS_NEXT_BRL_LOCK_WINDOWS(handle,
-+ br_lck, plock, blocking_lock);
-+}
-+
-+static bool freebsd_brl_unlock_windows(struct vfs_handle_struct *handle,
-+ struct messaging_context *msg_ctx,
-+ struct byte_range_lock *br_lck,
-+ const struct lock_struct *plock)
-+{
-+ return SMB_VFS_NEXT_BRL_UNLOCK_WINDOWS(handle, msg_ctx, br_lck, plock);
-+}
-+
-+static bool freebsd_brl_cancel_windows(struct vfs_handle_struct *handle,
-+ struct byte_range_lock *br_lck,
-+ struct lock_struct *plock)
-+{
-+ return SMB_VFS_NEXT_BRL_CANCEL_WINDOWS(handle, br_lck, plock);
-+}
-+
-+static bool freebsd_strict_lock_check(struct vfs_handle_struct *handle,
-+ struct files_struct *fsp,
-+ struct lock_struct *plock)
-+{
-+ return SMB_VFS_NEXT_STRICT_LOCK_CHECK(handle, fsp, plock);
-+}
-+
-+static NTSTATUS freebsd_translate_name(struct vfs_handle_struct *handle,
-+ const char *mapped_name,
-+ enum vfs_translate_direction direction,
-+ TALLOC_CTX *mem_ctx, char **pmapped_name)
-+{
-+ return SMB_VFS_NEXT_TRANSLATE_NAME(handle, mapped_name, direction,
-+ mem_ctx, pmapped_name);
-+}
-+
-+static NTSTATUS freebsd_fsctl(struct vfs_handle_struct *handle,
-+ struct files_struct *fsp,
-+ TALLOC_CTX *ctx,
-+ uint32_t function,
-+ uint16_t req_flags, /* Needed for UNICODE ... */
-+ const uint8_t *_in_data,
-+ uint32_t in_len,
-+ uint8_t ** _out_data,
-+ uint32_t max_out_len, uint32_t *out_len)
-+{
-+ return SMB_VFS_NEXT_FSCTL(handle,
-+ fsp,
-+ ctx,
-+ function,
-+ req_flags,
-+ _in_data,
-+ in_len, _out_data, max_out_len, out_len);
-+}
-+
-+static NTSTATUS freebsd_readdir_attr(struct vfs_handle_struct *handle,
-+ const struct smb_filename *fname,
-+ TALLOC_CTX *mem_ctx,
-+ struct readdir_attr_data **pattr_data)
-+{
-+ return SMB_VFS_NEXT_READDIR_ATTR(handle, fname, mem_ctx, pattr_data);
-+}
-+
-+static NTSTATUS freebsd_get_dos_attributes(struct vfs_handle_struct *handle,
-+ struct smb_filename *smb_fname,
-+ uint32_t *dosmode)
-+{
-+ return SMB_VFS_NEXT_GET_DOS_ATTRIBUTES(handle,
-+ smb_fname,
-+ dosmode);
-+}
-+
-+static NTSTATUS freebsd_fget_dos_attributes(struct vfs_handle_struct *handle,
-+ struct files_struct *fsp,
-+ uint32_t *dosmode)
-+{
-+ return SMB_VFS_NEXT_FGET_DOS_ATTRIBUTES(handle,
-+ fsp,
-+ dosmode);
-+}
-+
-+static NTSTATUS freebsd_set_dos_attributes(struct vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ uint32_t dosmode)
-+{
-+ return SMB_VFS_NEXT_SET_DOS_ATTRIBUTES(handle,
-+ smb_fname,
-+ dosmode);
-+}
-+
-+static NTSTATUS freebsd_fset_dos_attributes(struct vfs_handle_struct *handle,
-+ struct files_struct *fsp,
-+ uint32_t dosmode)
-+{
-+ return SMB_VFS_NEXT_FSET_DOS_ATTRIBUTES(handle,
-+ fsp,
-+ dosmode);
-+}
-+
-+static NTSTATUS freebsd_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
-+ uint32_t security_info,
-+ TALLOC_CTX *mem_ctx,
-+ struct security_descriptor **ppdesc)
-+{
-+ return SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp, security_info, mem_ctx,
-+ ppdesc);
-+}
-+
-+static NTSTATUS freebsd_get_nt_acl(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ uint32_t security_info,
-+ TALLOC_CTX *mem_ctx,
-+ struct security_descriptor **ppdesc)
-+{
-+ return SMB_VFS_NEXT_GET_NT_ACL(handle,
-+ smb_fname,
-+ security_info,
-+ mem_ctx,
-+ ppdesc);
-+}
-+
-+static NTSTATUS freebsd_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
-+ uint32_t security_info_sent,
-+ const struct security_descriptor *psd)
-+{
-+ return SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd);
-+}
-+
-+static int freebsd_chmod_acl(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ mode_t mode)
-+{
-+ return SMB_VFS_NEXT_CHMOD_ACL(handle, smb_fname, mode);
-+}
-+
-+static int freebsd_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp,
-+ mode_t mode)
-+{
-+ return SMB_VFS_NEXT_FCHMOD_ACL(handle, fsp, mode);
-+}
-+
-+static SMB_ACL_T freebsd_sys_acl_get_file(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ SMB_ACL_TYPE_T type,
-+ TALLOC_CTX *mem_ctx)
-+{
-+ return SMB_VFS_NEXT_SYS_ACL_GET_FILE(handle, smb_fname, type, mem_ctx);
-+}
-+
-+static SMB_ACL_T freebsd_sys_acl_get_fd(vfs_handle_struct *handle,
-+ files_struct *fsp, TALLOC_CTX *mem_ctx)
-+{
-+ return SMB_VFS_NEXT_SYS_ACL_GET_FD(handle, fsp, mem_ctx);
-+}
-+
-+static int freebsd_sys_acl_blob_get_file(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ TALLOC_CTX *mem_ctx,
-+ char **blob_description,
-+ DATA_BLOB *blob)
-+{
-+ return SMB_VFS_NEXT_SYS_ACL_BLOB_GET_FILE(handle, smb_fname, mem_ctx,
-+ blob_description, blob);
-+}
-+
-+static int freebsd_sys_acl_blob_get_fd(vfs_handle_struct *handle,
-+ files_struct *fsp, TALLOC_CTX *mem_ctx,
-+ char **blob_description, DATA_BLOB *blob)
-+{
-+ return SMB_VFS_NEXT_SYS_ACL_BLOB_GET_FD(handle, fsp, mem_ctx,
-+ blob_description, blob);
-+}
-+
-+static int freebsd_sys_acl_set_file(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname,
-+ SMB_ACL_TYPE_T acltype,
-+ SMB_ACL_T theacl)
-+{
-+ return SMB_VFS_NEXT_SYS_ACL_SET_FILE(handle, smb_fname,
-+ acltype, theacl);
-+}
-+
-+static int freebsd_sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
-+ SMB_ACL_T theacl)
-+{
-+ return SMB_VFS_NEXT_SYS_ACL_SET_FD(handle, fsp, theacl);
-+}
-+
-+static int freebsd_sys_acl_delete_def_file(vfs_handle_struct *handle,
-+ const struct smb_filename *smb_fname)
-+{
-+ return SMB_VFS_NEXT_SYS_ACL_DELETE_DEF_FILE(handle, smb_fname);
-+}
-+
-+
-+static bool freebsd_aio_force(struct vfs_handle_struct *handle,
-+ struct files_struct *fsp)
-+{
-+ return SMB_VFS_NEXT_AIO_FORCE(handle, fsp);
-+}
-+
-+/* VFS operations structure */
-+
-+struct vfs_fn_pointers freebsd_fns = {
-+ /* Disk operations */
-+
-+ .connect_fn = freebsd_connect,
-+ .disconnect_fn = freebsd_disconnect,
-+ .disk_free_fn = freebsd_disk_free,
-+ .get_quota_fn = freebsd_get_quota,
-+ .set_quota_fn = freebsd_set_quota,
-+ .get_shadow_copy_data_fn = freebsd_get_shadow_copy_data,
-+ .statvfs_fn = freebsd_statvfs,
-+ .fs_capabilities_fn = freebsd_fs_capabilities,
-+ .get_dfs_referrals_fn = freebsd_get_dfs_referrals,
-+ .snap_check_path_fn = freebsd_snap_check_path,
-+ .snap_create_fn = freebsd_snap_create,
-+ .snap_delete_fn = freebsd_snap_delete,
-+
-+ /* Directory operations */
-+
-+ .opendir_fn = freebsd_opendir,
-+ .fdopendir_fn = freebsd_fdopendir,
-+ .readdir_fn = freebsd_readdir,
-+ .seekdir_fn = freebsd_seekdir,
-+ .telldir_fn = freebsd_telldir,
-+ .rewind_dir_fn = freebsd_rewind_dir,
-+ .mkdir_fn = freebsd_mkdir,
-+ .rmdir_fn = freebsd_rmdir,
-+ .closedir_fn = freebsd_closedir,
-+
-+ /* File operations */
-+
-+ .open_fn = freebsd_open,
-+ .create_file_fn = freebsd_create_file,
-+ .close_fn = freebsd_close_fn,
-+ .read_fn = freebsd_vfs_read,
-+ .pread_fn = freebsd_pread,
-+ .pread_send_fn = freebsd_pread_send,
-+ .pread_recv_fn = freebsd_pread_recv,
-+ .write_fn = freebsd_write,
-+ .pwrite_fn = freebsd_pwrite,
-+ .pwrite_send_fn = freebsd_pwrite_send,
-+ .pwrite_recv_fn = freebsd_pwrite_recv,
-+ .lseek_fn = freebsd_lseek,
-+ .sendfile_fn = freebsd_sendfile,
-+ .recvfile_fn = freebsd_recvfile,
-+ .rename_fn = freebsd_rename,
-+ .fsync_fn = freebsd_fsync,
-+ .fsync_send_fn = freebsd_fsync_send,
-+ .fsync_recv_fn = freebsd_fsync_recv,
-+ .stat_fn = freebsd_stat,
-+ .fstat_fn = freebsd_fstat,
-+ .lstat_fn = freebsd_lstat,
-+ .get_alloc_size_fn = freebsd_get_alloc_size,
-+ .unlink_fn = freebsd_unlink,
-+ .chmod_fn = freebsd_chmod,
-+ .fchmod_fn = freebsd_fchmod,
-+ .chown_fn = freebsd_chown,
-+ .fchown_fn = freebsd_fchown,
-+ .lchown_fn = freebsd_lchown,
-+ .chdir_fn = freebsd_chdir,
-+ .getwd_fn = freebsd_getwd,
-+ .ntimes_fn = freebsd_ntimes,
-+ .ftruncate_fn = freebsd_ftruncate,
-+ .fallocate_fn = freebsd_fallocate,
-+ .lock_fn = freebsd_lock,
-+ .kernel_flock_fn = freebsd_kernel_flock,
-+ .linux_setlease_fn = freebsd_linux_setlease,
-+ .getlock_fn = freebsd_getlock,
-+ .symlink_fn = freebsd_symlink,
-+ .readlink_fn = freebsd_vfs_readlink,
-+ .link_fn = freebsd_link,
-+ .mknod_fn = freebsd_mknod,
-+ .realpath_fn = freebsd_realpath,
-+ .chflags_fn = freebsd_chflags,
-+ .file_id_create_fn = freebsd_file_id_create,
-+ .offload_read_send_fn = freebsd_offload_read_send,
-+ .offload_read_recv_fn = freebsd_offload_read_recv,
-+ .offload_write_send_fn = freebsd_offload_write_send,
-+ .offload_write_recv_fn = freebsd_offload_write_recv,
-+ .get_compression_fn = freebsd_get_compression,
-+ .set_compression_fn = freebsd_set_compression,
-+
-+ .streaminfo_fn = freebsd_streaminfo,
-+ .get_real_filename_fn = freebsd_get_real_filename,
-+ .connectpath_fn = freebsd_connectpath,
-+ .brl_lock_windows_fn = freebsd_brl_lock_windows,
-+ .brl_unlock_windows_fn = freebsd_brl_unlock_windows,
-+ .brl_cancel_windows_fn = freebsd_brl_cancel_windows,
-+ .strict_lock_check_fn = freebsd_strict_lock_check,
-+ .translate_name_fn = freebsd_translate_name,
-+ .fsctl_fn = freebsd_fsctl,
-+ .readdir_attr_fn = freebsd_readdir_attr,
-+
-+ /* DOS attributes. */
-+ .get_dos_attributes_fn = freebsd_get_dos_attributes,
-+ .fget_dos_attributes_fn = freebsd_fget_dos_attributes,
-+ .set_dos_attributes_fn = freebsd_set_dos_attributes,
-+ .fset_dos_attributes_fn = freebsd_fset_dos_attributes,
-+
-+ /* NT ACL operations. */
-+
-+ .fget_nt_acl_fn = freebsd_fget_nt_acl,
-+ .get_nt_acl_fn = freebsd_get_nt_acl,
-+ .fset_nt_acl_fn = freebsd_fset_nt_acl,
-+
-+ /* POSIX ACL operations. */
-+
-+ .chmod_acl_fn = freebsd_chmod_acl,
-+ .fchmod_acl_fn = freebsd_fchmod_acl,
-+
-+ .sys_acl_get_file_fn = freebsd_sys_acl_get_file,
-+ .sys_acl_get_fd_fn = freebsd_sys_acl_get_fd,
-+ .sys_acl_blob_get_file_fn = freebsd_sys_acl_blob_get_file,
-+ .sys_acl_blob_get_fd_fn = freebsd_sys_acl_blob_get_fd,
-+ .sys_acl_set_file_fn = freebsd_sys_acl_set_file,
-+ .sys_acl_set_fd_fn = freebsd_sys_acl_set_fd,
-+ .sys_acl_delete_def_file_fn = freebsd_sys_acl_delete_def_file,
-+
-+ /* EA operations. */
-+ .getxattr_fn = freebsd_getxattr,
-+ .fgetxattr_fn = freebsd_fgetxattr,
-+ .listxattr_fn = freebsd_listxattr,
-+ .flistxattr_fn = freebsd_flistxattr,
-+ .removexattr_fn = freebsd_removexattr,
-+ .fremovexattr_fn = freebsd_fremovexattr,
-+ .setxattr_fn = freebsd_setxattr,
-+ .fsetxattr_fn = freebsd_fsetxattr,
-+
-+ /* aio operations */
-+ .aio_force_fn = freebsd_aio_force,
-+};
-+
-+static_decl_vfs;
-+NTSTATUS vfs_freebsd_init(TALLOC_CTX *ctx)
-+{
-+
-+ if(freebsd_in_jail())
-+ is_secure = false;
-+
-+ return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "freebsd",
-+ &freebsd_fns);
-+}
diff --git a/net/samba47/files/pkg-message.in b/net/samba47/files/pkg-message.in
deleted file mode 100644
index 22dcc3886939..000000000000
--- a/net/samba47/files/pkg-message.in
+++ /dev/null
@@ -1,24 +0,0 @@
-[
-{ type: install
- message: <<EOM
-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/
-EOM
-}
-]
diff --git a/net/samba47/files/samba_server.in b/net/samba47/files/samba_server.in
deleted file mode 100644
index 629b550f0f37..000000000000
--- a/net/samba47/files/samba_server.in
+++ /dev/null
@@ -1,199 +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 configtest"
-
-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"
-configtest_cmd="samba_server_checkconfig"
-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
- 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"
diff --git a/net/samba47/pkg-descr b/net/samba47/pkg-descr
deleted file mode 100644
index a0ffcef6af6e..000000000000
--- a/net/samba47/pkg-descr
+++ /dev/null
@@ -1,8 +0,0 @@
-Samba4 is an attempt to implement an Active Directory compatible Domain
-Controller.
-
-In short, you can join a WinNT, Win2000, WinXP or Win2003 member server
-to a Samba4 domain, and it will behave much as it does in AD, including
-Kerberos domain logins where applicable.
-
-WWW: https://www.samba.org/
diff --git a/net/samba47/pkg-plist b/net/samba47/pkg-plist
deleted file mode 100644
index e0f93d45fddc..000000000000
--- a/net/samba47/pkg-plist
+++ /dev/null
@@ -1,1240 +0,0 @@
-bin/cifsdd
-bin/dbwrap_tool
-bin/eventlogadm
-bin/findsmb
-bin/gentest
-bin/locktest
-bin/masktest
-bin/mvxattr
-bin/ndrdump
-bin/net
-bin/nmblookup
-bin/ntlm_auth
-bin/oLschema2ldif
-bin/pdbedit
-bin/pidl
-bin/profiles
-bin/regdiff
-bin/regpatch
-bin/regshell
-bin/regtree
-bin/rpcclient
-bin/samba-regedit
-%%AD_DC%%bin/samba-tool
-bin/sharesec
-bin/smbcacls
-bin/smbclient
-bin/smbcontrol
-bin/smbcquotas
-bin/smbget
-bin/smbpasswd
-bin/smbspool
-bin/smbstatus
-bin/smbtar
-%%SAMBA4_PYTHON2%%bin/smbtorture
-bin/smbtree
-bin/testparm
-bin/wbinfo
-sbin/nmbd
-sbin/smbd
-sbin/winbindd
-%%AD_DC%%sbin/samba
-%%AD_DC%%sbin/samba_dnsupdate
-%%AD_DC%%sbin/samba_kcc
-%%AD_DC%%sbin/samba_spnupdate
-%%AD_DC%%sbin/samba_upgradedns
-include/samba4/charset.h
-include/samba4/core/doserr.h
-include/samba4/core/error.h
-include/samba4/core/hresult.h
-include/samba4/core/ntstatus_gen.h
-include/samba4/core/ntstatus.h
-include/samba4/core/werror_gen.h
-include/samba4/core/werror.h
-include/samba4/credentials.h
-include/samba4/dcerpc.h
-%%AD_DC%%include/samba4/dcerpc_server.h
-%%LDAP%%include/samba4/smb_ldap.h
-%%LDAP%%include/samba4/smbldap.h
-include/samba4/domain_credentials.h
-include/samba4/gen_ndr/atsvc.h
-include/samba4/gen_ndr/auth.h
-include/samba4/gen_ndr/dcerpc.h
-include/samba4/gen_ndr/drsblobs.h
-include/samba4/gen_ndr/drsuapi.h
-include/samba4/gen_ndr/krb5pac.h
-include/samba4/gen_ndr/lsa.h
-include/samba4/gen_ndr/misc.h
-include/samba4/gen_ndr/nbt.h
-include/samba4/gen_ndr/ndr_atsvc.h
-include/samba4/gen_ndr/ndr_dcerpc.h
-include/samba4/gen_ndr/ndr_drsblobs.h
-include/samba4/gen_ndr/ndr_drsuapi.h
-include/samba4/gen_ndr/ndr_krb5pac.h
-include/samba4/gen_ndr/ndr_misc.h
-include/samba4/gen_ndr/ndr_nbt.h
-include/samba4/gen_ndr/ndr_samr_c.h
-include/samba4/gen_ndr/ndr_samr.h
-include/samba4/gen_ndr/ndr_svcctl_c.h
-include/samba4/gen_ndr/ndr_svcctl.h
-include/samba4/gen_ndr/netlogon.h
-include/samba4/gen_ndr/samr.h
-include/samba4/gen_ndr/security.h
-include/samba4/gen_ndr/server_id.h
-include/samba4/gen_ndr/svcctl.h
-include/samba4/ldb_wrap.h
-include/samba4/libsmbclient.h
-include/samba4/lookup_sid.h
-include/samba4/machine_sid.h
-include/samba4/ndr.h
-include/samba4/ndr/ndr_dcerpc.h
-include/samba4/ndr/ndr_drsblobs.h
-include/samba4/ndr/ndr_drsuapi.h
-include/samba4/ndr/ndr_krb5pac.h
-include/samba4/ndr/ndr_nbt.h
-include/samba4/ndr/ndr_svcctl.h
-include/samba4/netapi.h
-include/samba4/param.h
-include/samba4/passdb.h
-%%SAMBA4_PYTHON2%%include/samba4/policy.h
-include/samba4/rpc_common.h
-include/samba4/samba/session.h
-include/samba4/samba/version.h
-include/samba4/share.h
-include/samba4/smb2_lease_struct.h
-include/samba4/smbconf.h
-include/samba4/tdr.h
-include/samba4/tsocket_internal.h
-include/samba4/tsocket.h
-include/samba4/util_ldb.h
-include/samba4/util/attr.h
-include/samba4/util/blocking.h
-include/samba4/util/byteorder.h
-include/samba4/util/data_blob.h
-include/samba4/util/debug.h
-include/samba4/util/fault.h
-include/samba4/util/genrand.h
-include/samba4/util/idtree_random.h
-include/samba4/util/idtree.h
-include/samba4/util/memory.h
-include/samba4/util/safe_string.h
-include/samba4/util/signal.h
-include/samba4/util/string_wrappers.h
-include/samba4/util/substitute.h
-include/samba4/util/talloc_stack.h
-include/samba4/util/tevent_ntstatus.h
-include/samba4/util/tevent_unix.h
-include/samba4/util/tevent_werror.h
-include/samba4/util/tfork.h
-include/samba4/util/time.h
-include/samba4/wbclient.h
-@dir include/samba4/util
-@dir include/samba4/samba
-@dir include/samba4/ndr
-@dir include/samba4/gen_ndr
-@dir include/samba4/core
-@dir include/samba4
-lib/samba4/libdcerpc-binding.so
-lib/samba4/libdcerpc-binding.so.0
-lib/samba4/libdcerpc-samr.so
-lib/samba4/libdcerpc-samr.so.0
-%%AD_DC%%lib/samba4/libdcerpc-server.so
-%%AD_DC%%lib/samba4/libdcerpc-server.so.0
-lib/samba4/libdcerpc.so
-lib/samba4/libdcerpc.so.0
-lib/samba4/libndr-krb5pac.so
-lib/samba4/libndr-krb5pac.so.0
-lib/samba4/libndr-nbt.so
-lib/samba4/libndr-nbt.so.0
-lib/samba4/libndr-standard.so
-lib/samba4/libndr-standard.so.0
-lib/samba4/libndr.so
-lib/samba4/libndr.so.0
-lib/samba4/libnetapi.so
-lib/samba4/libnetapi.so.0
-lib/samba4/libsamba-credentials.so
-lib/samba4/libsamba-credentials.so.0
-lib/samba4/libsamba-errors.so
-lib/samba4/libsamba-errors.so.1
-lib/samba4/libsamba-hostconfig.so
-lib/samba4/libsamba-hostconfig.so.0
-lib/samba4/libsamba-passdb.so
-lib/samba4/libsamba-passdb.so.0
-%%SAMBA4_PYTHON2%%lib/samba4/libsamba-policy.so
-%%SAMBA4_PYTHON2%%lib/samba4/libsamba-policy.so.0
-lib/samba4/libsamba-util.so
-lib/samba4/libsamba-util.so.0
-lib/samba4/libsamdb.so
-lib/samba4/libsamdb.so.0
-lib/samba4/libsmbclient.so
-lib/samba4/libsmbclient.so.0
-lib/samba4/libsmbconf.so
-lib/samba4/libsmbconf.so.0
-%%LDAP%%lib/samba4/libsmbldap.so
-%%LDAP%%lib/samba4/libsmbldap.so.2
-lib/samba4/libtevent-util.so
-lib/samba4/libtevent-util.so.0
-lib/samba4/libwbclient.so
-lib/samba4/libwbclient.so.0
-lib/samba4/winbind_krb5_locator.so
-lib/nss_winbind.so.1
-lib/nss_wins.so.1
-lib/pam_winbind.so
-%%CUPS%%libexec/samba/smbspool_krb5_wrapper
-%%AD_DC%%lib/samba4/private/libdlz-bind9-for-torture-samba4.so
-%%AD_DC%%lib/samba4/private/libposix-eadb-samba4.so
-%%AD_DC%%lib/samba4/private/libprocess-model-samba4.so
-%%AD_DC%%lib/samba4/private/libservice-samba4.so
-lib/samba4/private/libCHARSET3-samba4.so
-%%AD_DC%%lib/samba4/private/libHDB-SAMBA4-samba4.so
-lib/samba4/private/libLIBWBCLIENT-OLD-samba4.so
-lib/samba4/private/libMESSAGING-samba4.so
-lib/samba4/private/libMESSAGING-SEND-samba4.so
-lib/samba4/private/libaddns-samba4.so
-lib/samba4/private/libads-samba4.so
-lib/samba4/private/libasn1-samba4.so.8
-lib/samba4/private/libasn1util-samba4.so
-lib/samba4/private/libauth-samba4.so
-lib/samba4/private/libauth-unix-token-samba4.so
-lib/samba4/private/libauth4-samba4.so
-lib/samba4/private/libauthkrb5-samba4.so
-lib/samba4/private/libcli-cldap-samba4.so
-lib/samba4/private/libcli-ldap-common-samba4.so
-lib/samba4/private/libcli-ldap-samba4.so
-lib/samba4/private/libcli-nbt-samba4.so
-lib/samba4/private/libcli-smb-common-samba4.so
-lib/samba4/private/libcli-spoolss-samba4.so
-lib/samba4/private/libcliauth-samba4.so
-lib/samba4/private/libcluster-samba4.so
-lib/samba4/private/libcmdline-credentials-samba4.so
-lib/samba4/private/libcom_err-samba4.so.0
-lib/samba4/private/libcommon-auth-samba4.so
-%%AD_DC%%lib/samba4/private/libdb-glue-samba4.so
-lib/samba4/private/libdbwrap-samba4.so
-lib/samba4/private/libdcerpc-samba-samba4.so
-lib/samba4/private/libdcerpc-samba4.so
-%%AD_DC%%lib/samba4/private/libdfs-server-ad-samba4.so
-%%AD_DC%%lib/samba4/private/libdnsserver-common-samba4.so
-lib/samba4/private/libdsdb-garbage-collect-tombstones-samba4.so
-lib/samba4/private/libdsdb-module-samba4.so
-lib/samba4/private/libevents-samba4.so
-lib/samba4/private/libflag-mapping-samba4.so
-lib/samba4/private/libgenrand-samba4.so
-lib/samba4/private/libgensec-samba4.so
-lib/samba4/private/libgpo-samba4.so
-lib/samba4/private/libgse-samba4.so
-lib/samba4/private/libgssapi-samba4.so.2
-lib/samba4/private/libhcrypto-samba4.so.5
-lib/samba4/private/libhdb-samba4.so.11
-lib/samba4/private/libheimbase-samba4.so.1
-lib/samba4/private/libheimntlm-samba4.so.1
-lib/samba4/private/libhttp-samba4.so
-lib/samba4/private/libhx509-samba4.so.5
-lib/samba4/private/libidmap-samba4.so
-lib/samba4/private/libinterfaces-samba4.so
-lib/samba4/private/libiov-buf-samba4.so
-lib/samba4/private/libkdc-samba4.so.2
-lib/samba4/private/libkrb5-samba4.so.26
-lib/samba4/private/libkrb5samba-samba4.so
-lib/samba4/private/libldbsamba-samba4.so
-lib/samba4/private/liblibcli-lsa3-samba4.so
-lib/samba4/private/liblibcli-netlogon3-samba4.so
-lib/samba4/private/liblibsmb-samba4.so
-lib/samba4/private/libmessages-dgm-samba4.so
-lib/samba4/private/libmessages-util-samba4.so
-lib/samba4/private/libmsghdr-samba4.so
-lib/samba4/private/libmsrpc3-samba4.so
-lib/samba4/private/libndr-samba-samba4.so
-lib/samba4/private/libndr-samba4.so
-lib/samba4/private/libnet-keytab-samba4.so
-lib/samba4/private/libnetif-samba4.so
-lib/samba4/private/libnon-posix-acls-samba4.so
-lib/samba4/private/libnpa-tstream-samba4.so
-lib/samba4/private/libnss-info-samba4.so
-%%AD_DC%%lib/samba4/private/libpac-samba4.so
-lib/samba4/private/libpopt-samba3-samba4.so
-lib/samba4/private/libprinting-migrate-samba4.so
-lib/samba4/private/libregistry-samba4.so
-lib/samba4/private/libreplace-samba4.so
-lib/samba4/private/libroken-samba4.so.19
-lib/samba4/private/libsamba-cluster-support-samba4.so
-lib/samba4/private/libsamba-debug-samba4.so
-lib/samba4/private/libsamba-modules-samba4.so
-%%SAMBA4_PYTHON2%%lib/samba4/private/libsamba-net-samba4.so
-%%SAMBA4_PYTHON2%%lib/samba4/private/libsamba-python-samba4.so
-lib/samba4/private/libsamba-security-samba4.so
-lib/samba4/private/libsamba-sockets-samba4.so
-lib/samba4/private/libsamba3-util-samba4.so
-lib/samba4/private/libsamdb-common-samba4.so
-lib/samba4/private/libsecrets3-samba4.so
-lib/samba4/private/libserver-id-db-samba4.so
-lib/samba4/private/libserver-role-samba4.so
-lib/samba4/private/libshares-samba4.so
-lib/samba4/private/libsmb-transport-samba4.so
-lib/samba4/private/libsmbclient-raw-samba4.so
-lib/samba4/private/libsmbd-base-samba4.so
-lib/samba4/private/libsmbd-conn-samba4.so
-lib/samba4/private/libsmbd-shim-samba4.so
-%%LDAP%%lib/samba4/private/libsmbldaphelper-samba4.so
-lib/samba4/private/libsmbpasswdparser-samba4.so
-lib/samba4/private/libsocket-blocking-samba4.so
-lib/samba4/private/libsys-rw-samba4.so
-lib/samba4/private/libtalloc-report-samba4.so
-lib/samba4/private/libtdb-wrap-samba4.so
-lib/samba4/private/libtime-basic-samba4.so
-lib/samba4/private/libtorture-samba4.so
-lib/samba4/private/libtrusts-util-samba4.so
-lib/samba4/private/libutil-cmdline-samba4.so
-lib/samba4/private/libutil-reg-samba4.so
-lib/samba4/private/libutil-setid-samba4.so
-lib/samba4/private/libutil-tdb-samba4.so
-lib/samba4/private/libwinbind-client-samba4.so
-lib/samba4/private/libwind-samba4.so.0
-lib/samba4/private/libxattr-tdb-samba4.so
-%%AD_DC%%lib/shared-modules/bind9/dlz_bind9_10.so
-%%AD_DC%%lib/shared-modules/bind9/dlz_bind9_11.so
-%%AD_DC%%lib/shared-modules/bind9/dlz_bind9_9.so
-%%AD_DC%%lib/shared-modules/bind9/dlz_bind9.so
-%%AD_DC%%lib/shared-modules/gensec/krb5.so
-%%AD_DC%%lib/shared-modules/ldb/acl.so
-%%AD_DC%%lib/shared-modules/ldb/aclread.so
-%%AD_DC%%lib/shared-modules/ldb/anr.so
-%%AD_DC%%lib/shared-modules/ldb/descriptor.so
-%%AD_DC%%lib/shared-modules/ldb/dirsync.so
-%%AD_DC%%lib/shared-modules/ldb/dns_notify.so
-%%AD_DC%%lib/shared-modules/ldb/dsdb_notification.so
-%%AD_DC%%lib/shared-modules/ldb/extended_dn_in.so
-%%AD_DC%%lib/shared-modules/ldb/extended_dn_out.so
-%%AD_DC%%lib/shared-modules/ldb/extended_dn_store.so
-%%AD_DC%%lib/shared-modules/ldb/ildap.so
-%%AD_DC%%lib/shared-modules/ldb/instancetype.so
-%%AD_DC%%lib/shared-modules/ldb/lazy_commit.so
-%%AD_DC%%lib/shared-modules/ldb/ldbsamba_extensions.so
-%%AD_DC%%lib/shared-modules/ldb/linked_attributes.so
-%%AD_DC%%lib/shared-modules/ldb/local_password.so
-%%AD_DC%%lib/shared-modules/ldb/new_partition.so
-%%AD_DC%%lib/shared-modules/ldb/objectclass_attrs.so
-%%AD_DC%%lib/shared-modules/ldb/objectclass.so
-%%AD_DC%%lib/shared-modules/ldb/objectguid.so
-%%AD_DC%%lib/shared-modules/ldb/operational.so
-%%AD_DC%%lib/shared-modules/ldb/partition.so
-%%AD_DC%%lib/shared-modules/ldb/password_hash.so
-%%AD_DC%%lib/shared-modules/ldb/ranged_results.so
-%%AD_DC%%lib/shared-modules/ldb/repl_meta_data.so
-%%AD_DC%%lib/shared-modules/ldb/resolve_oids.so
-%%AD_DC%%lib/shared-modules/ldb/rootdse.so
-%%AD_DC%%lib/shared-modules/ldb/samba_dsdb.so
-%%AD_DC%%lib/shared-modules/ldb/samba_secrets.so
-%%AD_DC%%lib/shared-modules/ldb/samba3sam.so
-%%AD_DC%%lib/shared-modules/ldb/samba3sid.so
-%%AD_DC%%lib/shared-modules/ldb/samldb.so
-%%AD_DC%%lib/shared-modules/ldb/schema_data.so
-%%AD_DC%%lib/shared-modules/ldb/schema_load.so
-%%AD_DC%%lib/shared-modules/ldb/secrets_tdb_sync.so
-%%AD_DC%%lib/shared-modules/ldb/show_deleted.so
-%%AD_DC%%lib/shared-modules/ldb/simple_dn.so
-%%AD_DC%%lib/shared-modules/ldb/simple_ldap_map.so
-%%AD_DC%%lib/shared-modules/ldb/subtree_delete.so
-%%AD_DC%%lib/shared-modules/ldb/subtree_rename.so
-%%AD_DC%%lib/shared-modules/ldb/tombstone_reanimate.so
-%%AD_DC%%lib/shared-modules/ldb/update_keytab.so
-%%AD_DC%%lib/shared-modules/ldb/vlv.so
-%%AD_DC%%lib/shared-modules/ldb/wins_ldb.so
-%%AD_DC%%lib/shared-modules/process_model/standard.so
-%%AD_DC%%lib/shared-modules/service/cldap.so
-%%AD_DC%%lib/shared-modules/service/dcerpc.so
-%%AD_DC%%lib/shared-modules/service/dns_update.so
-%%AD_DC%%lib/shared-modules/service/dns.so
-%%AD_DC%%lib/shared-modules/service/drepl.so
-%%AD_DC%%lib/shared-modules/service/kcc.so
-%%AD_DC%%lib/shared-modules/service/kdc.so
-%%AD_DC%%lib/shared-modules/service/ldap.so
-%%AD_DC%%lib/shared-modules/service/nbtd.so
-%%AD_DC%%lib/shared-modules/service/ntp_signd.so
-%%AD_DC%%lib/shared-modules/service/s3fs.so
-%%AD_DC%%lib/shared-modules/service/web.so
-%%AD_DC%%lib/shared-modules/service/winbindd.so
-%%AD_DC%%lib/shared-modules/service/wrepl.so
-%%AD_DC%%lib/shared-modules/vfs/posix_eadb.so
-lib/shared-modules/auth/script.so
-lib/shared-modules/vfs/acl_tdb.so
-lib/shared-modules/vfs/acl_xattr.so
-lib/shared-modules/vfs/aio_fork.so
-lib/shared-modules/vfs/aio_pthread.so
-lib/shared-modules/vfs/audit.so
-lib/shared-modules/vfs/cap.so
-lib/shared-modules/vfs/catia.so
-lib/shared-modules/vfs/commit.so
-lib/shared-modules/vfs/crossrename.so
-lib/shared-modules/vfs/default_quota.so
-lib/shared-modules/vfs/dirsort.so
-lib/shared-modules/vfs/expand_msdfs.so
-lib/shared-modules/vfs/extd_audit.so
-lib/shared-modules/vfs/fake_perms.so
-lib/shared-modules/vfs/fruit.so
-lib/shared-modules/vfs/full_audit.so
-lib/shared-modules/vfs/linux_xfs_sgid.so
-lib/shared-modules/vfs/media_harmony.so
-lib/shared-modules/vfs/netatalk.so
-lib/shared-modules/vfs/offline.so
-lib/shared-modules/vfs/preopen.so
-lib/shared-modules/vfs/readahead.so
-lib/shared-modules/vfs/readonly.so
-lib/shared-modules/vfs/recycle.so
-lib/shared-modules/vfs/shadow_copy.so
-lib/shared-modules/vfs/shadow_copy2.so
-lib/shared-modules/vfs/shell_snap.so
-lib/shared-modules/vfs/streams_depot.so
-lib/shared-modules/vfs/streams_xattr.so
-lib/shared-modules/vfs/syncops.so
-lib/shared-modules/vfs/time_audit.so
-lib/shared-modules/vfs/unityed_media.so
-lib/shared-modules/vfs/worm.so
-lib/shared-modules/vfs/xattr_tdb.so
-lib/shared-modules/vfs/zfsacl.so
-@dir lib/shared-modules/vfs
-%%AD_DC%%@dir lib/shared-modules/service
-%%AD_DC%%@dir lib/shared-modules/process_model
-@dir lib/shared-modules/perfcount
-@dir lib/shared-modules/pdb
-@dir lib/shared-modules/nss_info
-@dir lib/shared-modules/ldb
-@dir lib/shared-modules/idmap
-@dir lib/shared-modules/gpext
-@dir lib/shared-modules/gensec
-@dir lib/shared-modules/bind9
-@dir lib/shared-modules/auth
-@dir lib/shared-modules
-@dir lib/samba4/private
-@dir lib/samba4
-%%PKGCONFIGDIR%%/dcerpc.pc
-%%PKGCONFIGDIR%%/dcerpc_samr.pc
-%%AD_DC%%%%PKGCONFIGDIR%%/dcerpc_server.pc
-%%PKGCONFIGDIR%%/ndr.pc
-%%PKGCONFIGDIR%%/ndr_krb5pac.pc
-%%PKGCONFIGDIR%%/ndr_nbt.pc
-%%PKGCONFIGDIR%%/ndr_standard.pc
-%%PKGCONFIGDIR%%/netapi.pc
-%%PKGCONFIGDIR%%/samba-credentials.pc
-%%PKGCONFIGDIR%%/samba-hostconfig.pc
-%%SAMBA4_PYTHON2%%%%PKGCONFIGDIR%%/samba-policy.pc
-%%PKGCONFIGDIR%%/samba-util.pc
-%%PKGCONFIGDIR%%/samdb.pc
-%%PKGCONFIGDIR%%/smbclient.pc
-%%PKGCONFIGDIR%%/wbclient.pc
-@comment Python2 block
-%%SAMBA4_PYTHON2%%%%AD_DC%%%%PYTHON_SITELIBDIR%%/samba/dckeytab.so
-%%SAMBA4_PYTHON2%%%%AD_DC%%%%PYTHON_SITELIBDIR%%/samba/posix_eadb.so
-%%SAMBA4_PYTHON2%%%%AD_DC%%%%PYTHON_SITELIBDIR%%/samba/xattr_native.so
-%%SAMBA4_PYTHON2%%%%AD_DC%%%%PYTHON_SITELIBDIR%%/samba/xattr_tdb.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/_glue.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/_ldb.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/auth.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/common.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/compat.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/credentials.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/crypto.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dbchecker.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/atsvc.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/auth.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/base.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/dcerpc.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/dfs.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/dns.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/dnsp.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/dnsserver.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/drsblobs.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/drsuapi.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/echo.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/epmapper.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/idmap.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/initshutdown.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/irpc.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/krb5pac.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/lsa.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/messaging.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/mgmt.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/misc.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/nbt.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/netlogon.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/ntlmssp.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/samr.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/security.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/server_id.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/smb_acl.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/srvsvc.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/svcctl.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/unixinfo.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/winbind.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/winreg.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/wkssvc.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dcerpc/xattr.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/descriptor.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dnsserver.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/drs_utils.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dsdb_dns.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/dsdb.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/gensec.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/getopt.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/hostconfig.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/idmap.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/join.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/kcc/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/kcc/debug.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/kcc/graph_utils.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/kcc/graph.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/kcc/kcc_utils.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/kcc/ldif_import_export.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/messaging.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/ms_display_specifiers.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/ms_schema.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/ndr.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/net.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netbios.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/common.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/dbcheck.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/delegation.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/dns.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/domain.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/drs.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/dsacl.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/fsmo.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/gpo.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/group.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/ldapcmp.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/main.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/nettime.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/ntacl.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/processes.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/rodc.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/sites.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/spn.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/testparm.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/netcmd/user.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/ntacls.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/ntstatus.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/param.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/policy.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/provision/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/provision/backend.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/provision/common.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/provision/kerberos_implementation.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/provision/kerberos.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/provision/sambadns.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/registry.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/remove_dc.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/samba3/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/samba3/libsmb_samba_internal.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/samba3/param.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/samba3/passdb.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/samba3/smbd.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/samdb.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/schema.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/sd_utils.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/security.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/sites.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/smb.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/subnets.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/subunit/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/subunit/run.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tdb_util.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_base.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_ncalrpc.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_netlogon_bad_creds.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_netlogon.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_pass_change.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log_samlogon.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/auth_log.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/auth.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/ndrdump.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/blackbox/samba_dnsupdate.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/common.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/core.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/credentials.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/array.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/bare.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/dnsserver.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/integer.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/misc.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/raw_protocol.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/raw_testcase.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/registry.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/rpc_talloc.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/rpcecho.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/sam.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/srvsvc.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/string.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/testrpc.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dcerpc/unix.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_base.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_forwarder_helpers/server.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_forwarder.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_tkey.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dns_wildcard.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dns.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/docs.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dsdb_schema_attributes.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/dsdb.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/gensec.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/get_opt.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/glue.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/hostconfig.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/join.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/kcc/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/kcc/graph_utils.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/kcc/graph.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/kcc/kcc_utils.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/kcc/ldif_import_export.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/libsmb_samba_internal.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/lsa_string.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/messaging.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/net_join_no_spnego.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/net_join.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/netcmd.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/netlogonsvc.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/ntacls.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/ntlmauth.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/pam_winbind.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/param.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/password_hash_fl2003.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/password_hash_fl2008.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/password_hash_gpgme.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/password_hash_ldap.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/password_hash.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/policy.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/posixacl.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/provision.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/py_credentials.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/registry.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/base.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/dnscmd.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/fsmo.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/gpo.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/group.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/join.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/ntacl.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/processes.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/rodc.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/sites.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/timecmd.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user_check_password_script.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user_virtualCryptSHA.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user_wdigest.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba_tool/user.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba3.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samba3sam.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/samdb.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/security.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/source.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/strings.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/subunitrun.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/unicodenames.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/upgrade.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/upgradeprovision.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/upgradeprovisionneeddc.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/tests/xattr.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/werror.so
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/upgrade.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/upgradehelpers.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/web_server/__init__.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/xattr.py
-%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/samba/third_party/__init__.py
-%%SAMBA4_PYTHON2%%@unexec find %D/%%PYTHON_SITELIBDIR%%/samba -name '*.py[co]' -delete >/dev/null 2>&1
-%%SAMBA4_PYTHON2%%@dir %%PYTHON_SITELIBDIR%%/samba/web_server
-%%SAMBA4_PYTHON2%%@dir %%PYTHON_SITELIBDIR%%/samba/tests/samba_tool
-%%SAMBA4_PYTHON2%%@dir %%PYTHON_SITELIBDIR%%/samba/tests/dcerpc
-%%SAMBA4_PYTHON2%%@dir %%PYTHON_SITELIBDIR%%/samba/tests/blackbox
-%%SAMBA4_PYTHON2%%@dir %%PYTHON_SITELIBDIR%%/samba/tests
-%%SAMBA4_PYTHON2%%@dir %%PYTHON_SITELIBDIR%%/samba/samba3
-%%SAMBA4_PYTHON2%%@dir %%PYTHON_SITELIBDIR%%/samba/provision
-%%SAMBA4_PYTHON2%%@dir %%PYTHON_SITELIBDIR%%/samba/netcmd
-%%SAMBA4_PYTHON2%%@dir %%PYTHON_SITELIBDIR%%/samba/dcerpc
-%%SAMBA4_PYTHON2%%@dir %%PYTHON_SITELIBDIR%%/samba
-@comment Python3 block
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/_glue.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/_ldb.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/auth.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/common.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/compat.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/credentials.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/crypto.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dbchecker.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/atsvc.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/auth.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/base.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/dcerpc.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/dfs.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/dns.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/dnsp.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/dnsserver.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/drsblobs.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/drsuapi.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/echo.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/epmapper.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/idmap.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/initshutdown.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/irpc.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/krb5pac.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/lsa.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/messaging.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/mgmt.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/misc.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/nbt.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/netlogon.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/ntlmssp.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/samr.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/security.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/server_id.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/smb_acl.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/srvsvc.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/svcctl.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/unixinfo.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/winbind.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/winreg.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/wkssvc.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc/xattr.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/descriptor.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dnsserver.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/drs_utils.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/gensec.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/getopt.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/hostconfig.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/idmap.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/join.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/kcc/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/kcc/debug.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/kcc/graph_utils.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/kcc/graph.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/kcc/kcc_utils.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/kcc/ldif_import_export.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/ms_display_specifiers.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/ms_schema.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/ndr.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/net.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/common.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/dbcheck.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/delegation.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/dns.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/domain.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/drs.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/dsacl.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/fsmo.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/gpo.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/group.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/ldapcmp.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/main.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/nettime.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/ntacl.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/processes.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/rodc.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/sites.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/spn.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/testparm.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd/user.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/ntacls.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/param.cpython-36m.so
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/provision/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/provision/backend.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/provision/common.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/provision/kerberos_implementation.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/provision/kerberos.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/provision/sambadns.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/remove_dc.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/samba3/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/samdb.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/schema.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/sd_utils.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/sites.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/subnets.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/subunit/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/subunit/run.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tdb_util.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/auth_log_base.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/auth_log_ncalrpc.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/auth_log_netlogon_bad_creds.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/auth_log_netlogon.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/auth_log_pass_change.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/auth_log_samlogon.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/auth_log.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/auth.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/blackbox/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/blackbox/ndrdump.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/blackbox/samba_dnsupdate.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/common.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/core.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/credentials.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/array.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/bare.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/dnsserver.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/integer.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/misc.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/raw_protocol.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/raw_testcase.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/registry.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/rpc_talloc.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/rpcecho.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/sam.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/srvsvc.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/string.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/testrpc.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc/unix.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dns_base.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dns_forwarder_helpers/server.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dns_forwarder.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dns_tkey.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dns_wildcard.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dns.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/docs.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dsdb_schema_attributes.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dsdb.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/gensec.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/get_opt.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/glue.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/hostconfig.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/join.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/kcc/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/kcc/graph_utils.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/kcc/graph.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/kcc/kcc_utils.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/kcc/ldif_import_export.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/libsmb_samba_internal.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/lsa_string.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/messaging.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/net_join_no_spnego.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/net_join.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/netcmd.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/netlogonsvc.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/ntacls.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/ntlmauth.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/pam_winbind.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/param.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/password_hash_fl2003.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/password_hash_fl2008.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/password_hash_gpgme.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/password_hash_ldap.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/password_hash.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/policy.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/posixacl.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/provision.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/py_credentials.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/registry.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/base.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/dnscmd.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/fsmo.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/gpo.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/group.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/join.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/ntacl.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/processes.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/rodc.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/sites.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/timecmd.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/user_check_password_script.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/user_virtualCryptSHA.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/user_wdigest.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool/user.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba3.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba3sam.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samdb.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/security.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/source.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/strings.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/subunitrun.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/unicodenames.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/upgrade.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/upgradeprovision.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/upgradeprovisionneeddc.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/xattr.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/upgrade.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/upgradehelpers.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/web_server/__init__.py
-%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/samba/xattr.py
-%%SAMBA4_PYTHON3%%@unexec find %D/%%PYTHON_SITELIBDIR%%/samba -name '*.py[co]' -delete >/dev/null 2>&1
-%%SAMBA4_PYTHON3%%@dir %%SAMBA4_PYTHON3_SITELIBDIR%%/samba/web_server
-%%SAMBA4_PYTHON3%%@dir %%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/samba_tool
-%%SAMBA4_PYTHON3%%@dir %%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/dcerpc
-%%SAMBA4_PYTHON3%%@dir %%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests/blackbox
-%%SAMBA4_PYTHON3%%@dir %%SAMBA4_PYTHON3_SITELIBDIR%%/samba/tests
-%%SAMBA4_PYTHON3%%@dir %%SAMBA4_PYTHON3_SITELIBDIR%%/samba/samba3
-%%SAMBA4_PYTHON3%%@dir %%SAMBA4_PYTHON3_SITELIBDIR%%/samba/provision
-%%SAMBA4_PYTHON3%%@dir %%SAMBA4_PYTHON3_SITELIBDIR%%/samba/netcmd
-%%SAMBA4_PYTHON3%%@dir %%SAMBA4_PYTHON3_SITELIBDIR%%/samba/dcerpc
-%%SAMBA4_PYTHON3%%@dir %%SAMBA4_PYTHON3_SITELIBDIR%%/samba
-@comment Pidl block
-%%DATADIR%%/perl5/Parse/Pidl.pm
-%%DATADIR%%/perl5/Parse/Pidl/CUtil.pm
-%%DATADIR%%/perl5/Parse/Pidl/Compat.pm
-%%DATADIR%%/perl5/Parse/Pidl/Dump.pm
-%%DATADIR%%/perl5/Parse/Pidl/Expr.pm
-%%DATADIR%%/perl5/Parse/Pidl/IDL.pm
-%%DATADIR%%/perl5/Parse/Pidl/NDR.pm
-%%DATADIR%%/perl5/Parse/Pidl/ODL.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba3/ClientNDR.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba3/ServerNDR.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/COM/Header.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/COM/Proxy.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/COM/Stub.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/Header.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/NDR/Client.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/NDR/Parser.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/NDR/Server.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/Python.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/TDR.pm
-%%DATADIR%%/perl5/Parse/Pidl/Samba4/Template.pm
-%%DATADIR%%/perl5/Parse/Pidl/Typelist.pm
-%%DATADIR%%/perl5/Parse/Pidl/Util.pm
-%%DATADIR%%/perl5/Parse/Pidl/Wireshark/Conformance.pm
-%%DATADIR%%/perl5/Parse/Pidl/Wireshark/NDR.pm
-@dir %%DATADIR%%/perl5/Parse/Pidl/Wireshark
-@dir %%DATADIR%%/perl5/Parse/Pidl/Samba4/NDR
-@dir %%DATADIR%%/perl5/Parse/Pidl/Samba4/COM
-@dir %%DATADIR%%/perl5/Parse/Pidl/Samba4
-@dir %%DATADIR%%/perl5/Parse/Pidl/Samba3
-@dir %%DATADIR%%/perl5/Parse/Pidl
-@dir %%DATADIR%%/perl5/Parse
-@dir %%DATADIR%%/perl5
-%%AD_DC%%%%DATADIR%%/setup/ad-schema/licence.txt
-%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_Attributes.txt
-%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_Classes.txt
-%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_R2_Attributes.txt
-%%AD_DC%%%%DATADIR%%/setup/ad-schema/MS-AD_Schema_2K8_R2_Classes.txt
-%%AD_DC%%%%DATADIR%%/setup/aggregate_schema.ldif
-%%AD_DC%%%%DATADIR%%/setup/cn=samba.ldif
-%%AD_DC%%%%DATADIR%%/setup/DB_CONFIG
-%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k0.txt
-%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k3.txt
-%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k3R2.txt
-%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k8.txt
-%%AD_DC%%%%DATADIR%%/setup/display-specifiers/DisplaySpecifiers-Win2k8R2.txt
-%%AD_DC%%%%DATADIR%%/setup/dns_update_list
-%%AD_DC%%%%DATADIR%%/setup/fedora-ds-init.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-dna.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-index.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-linked-attributes.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-pam.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-partitions.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-refint-add.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-refint-delete.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-samba.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads-sasl.ldif
-%%AD_DC%%%%DATADIR%%/setup/fedorads.inf
-%%AD_DC%%%%DATADIR%%/setup/idmap_init.ldif
-%%AD_DC%%%%DATADIR%%/setup/krb5.conf
-%%AD_DC%%%%DATADIR%%/setup/memberof.conf
-%%AD_DC%%%%DATADIR%%/setup/mmr_serverids.conf
-%%AD_DC%%%%DATADIR%%/setup/mmr_syncrepl.conf
-%%AD_DC%%%%DATADIR%%/setup/modules.conf
-%%AD_DC%%%%DATADIR%%/setup/named.conf
-%%AD_DC%%%%DATADIR%%/setup/named.conf.dlz
-%%AD_DC%%%%DATADIR%%/setup/named.conf.update
-%%AD_DC%%%%DATADIR%%/setup/named.txt
-%%AD_DC%%%%DATADIR%%/setup/olc_mmr.conf
-%%AD_DC%%%%DATADIR%%/setup/olc_seed.ldif
-%%AD_DC%%%%DATADIR%%/setup/olc_serverid.conf
-%%AD_DC%%%%DATADIR%%/setup/olc_syncrepl_seed.conf
-%%AD_DC%%%%DATADIR%%/setup/olc_syncrepl.conf
-%%AD_DC%%%%DATADIR%%/setup/prefixMap.txt
-%%AD_DC%%%%DATADIR%%/setup/provision_basedn_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_basedn_options.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_basedn_references.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_basedn.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_computers_add.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_computers_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_configuration_basedn.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_configuration_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_configuration_references.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_configuration.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_dns_accounts_add.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_dns_add_samba.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_dnszones_add.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_dnszones_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_dnszones_partitions.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_group_policy.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_init.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_partitions.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_privilege.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_rootdse_add.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_rootdse_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_schema_basedn_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_schema_basedn.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_self_join_config.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_self_join_modify_config.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_self_join_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_self_join.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_users_add.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_users_modify.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_users.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision_well_known_sec_princ.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision.ldif
-%%AD_DC%%%%DATADIR%%/setup/provision.reg
-%%AD_DC%%%%DATADIR%%/setup/provision.zone
-%%AD_DC%%%%DATADIR%%/setup/refint.conf
-%%AD_DC%%%%DATADIR%%/setup/schema_samba4.ldif
-%%AD_DC%%%%DATADIR%%/setup/schema-map-fedora-ds-1.0
-%%AD_DC%%%%DATADIR%%/setup/schema-map-openldap-2.3
-%%AD_DC%%%%DATADIR%%/setup/secrets_dns.ldif
-%%AD_DC%%%%DATADIR%%/setup/secrets_init.ldif
-%%AD_DC%%%%DATADIR%%/setup/secrets_sasl_ldap.ldif
-%%AD_DC%%%%DATADIR%%/setup/secrets_simple_ldap.ldif
-%%AD_DC%%%%DATADIR%%/setup/secrets.ldif
-%%AD_DC%%%%DATADIR%%/setup/share.ldif
-%%AD_DC%%%%DATADIR%%/setup/slapd.conf
-%%AD_DC%%%%DATADIR%%/setup/spn_update_list
-%%AD_DC%%%%DATADIR%%/setup/ypServ30.ldif
-%%AD_DC%%@dir %%DATADIR%%/setup/display-specifiers
-%%AD_DC%%@dir %%DATADIR%%/setup/ad-schema
-%%AD_DC%%@dir %%DATADIR%%/setup
-%%AD_DC%%@dir %%DATADIR%%
-@comment Man pages
-man/man1/dbwrap_tool.1.gz
-man/man1/findsmb.1.gz
-man/man1/gentest.1.gz
-man/man1/locktest.1.gz
-man/man1/log2pcap.1.gz
-man/man1/masktest.1.gz
-man/man1/mvxattr.1.gz
-man/man1/ndrdump.1.gz
-man/man1/nmblookup.1.gz
-man/man1/ntlm_auth.1.gz
-man/man1/oLschema2ldif.1.gz
-man/man1/pidl.1.gz
-man/man1/profiles.1.gz
-man/man1/regdiff.1.gz
-man/man1/regpatch.1.gz
-man/man1/regshell.1.gz
-man/man1/regtree.1.gz
-man/man1/rpcclient.1.gz
-man/man1/sharesec.1.gz
-man/man1/smbcacls.1.gz
-man/man1/smbclient.1.gz
-man/man1/smbcontrol.1.gz
-man/man1/smbcquotas.1.gz
-man/man1/smbget.1.gz
-man/man1/smbstatus.1.gz
-man/man1/smbtar.1.gz
-%%SAMBA4_PYTHON2%%man/man1/smbtorture.1.gz
-man/man1/smbtree.1.gz
-man/man1/testparm.1.gz
-man/man1/vfstest.1.gz
-man/man1/wbinfo.1.gz
-man/man3/Parse::Pidl::Dump.3.gz
-man/man3/Parse::Pidl::NDR.3.gz
-man/man3/Parse::Pidl::Util.3.gz
-man/man3/Parse::Pidl::Wireshark::Conformance.3.gz
-man/man3/Parse::Pidl::Wireshark::NDR.3.gz
-man/man5/lmhosts.5.gz
-man/man5/pam_winbind.conf.5.gz
-man/man5/smb.conf.5.gz
-man/man5/smb4.conf.5.gz
-man/man5/smbgetrc.5.gz
-man/man5/smbpasswd.5.gz
-man/man7/libsmbclient.7.gz
-man/man7/samba.7.gz
-man/man7/winbind_krb5_locator.7.gz
-man/man8/cifsdd.8.gz
-man/man8/eventlogadm.8.gz
-man/man8/idmap_ad.8.gz
-man/man8/idmap_autorid.8.gz
-man/man8/idmap_hash.8.gz
-man/man8/idmap_ldap.8.gz
-man/man8/idmap_nss.8.gz
-man/man8/idmap_rfc2307.8.gz
-man/man8/idmap_rid.8.gz
-man/man8/idmap_script.8.gz
-man/man8/idmap_tdb.8.gz
-man/man8/idmap_tdb2.8.gz
-man/man8/net.8.gz
-man/man8/nmbd.8.gz
-man/man8/pam_winbind.8.gz
-man/man8/pdbedit.8.gz
-man/man8/samba-regedit.8.gz
-man/man8/samba-tool.8.gz
-man/man8/samba.8.gz
-man/man8/smbd.8.gz
-man/man8/smbpasswd.8.gz
-man/man8/smbspool_krb5_wrapper.8.gz
-man/man8/smbspool.8.gz
-man/man8/vfs_acl_tdb.8.gz
-man/man8/vfs_acl_xattr.8.gz
-man/man8/vfs_aio_fork.8.gz
-man/man8/vfs_aio_pthread.8.gz
-man/man8/vfs_audit.8.gz
-man/man8/vfs_cacheprime.8.gz
-man/man8/vfs_cap.8.gz
-man/man8/vfs_catia.8.gz
-man/man8/vfs_commit.8.gz
-man/man8/vfs_crossrename.8.gz
-man/man8/vfs_default_quota.8.gz
-man/man8/vfs_dirsort.8.gz
-man/man8/vfs_extd_audit.8.gz
-man/man8/vfs_fake_perms.8.gz
-man/man8/vfs_fileid.8.gz
-man/man8/vfs_fruit.8.gz
-man/man8/vfs_full_audit.8.gz
-man/man8/vfs_glusterfs.8.gz
-man/man8/vfs_linux_xfs_sgid.8.gz
-man/man8/vfs_media_harmony.8.gz
-man/man8/vfs_netatalk.8.gz
-man/man8/vfs_offline.8.gz
-man/man8/vfs_prealloc.8.gz
-man/man8/vfs_preopen.8.gz
-man/man8/vfs_readahead.8.gz
-man/man8/vfs_readonly.8.gz
-man/man8/vfs_recycle.8.gz
-man/man8/vfs_shadow_copy.8.gz
-man/man8/vfs_shadow_copy2.8.gz
-man/man8/vfs_shell_snap.8.gz
-man/man8/vfs_snapper.8.gz
-man/man8/vfs_streams_depot.8.gz
-man/man8/vfs_streams_xattr.8.gz
-man/man8/vfs_syncops.8.gz
-man/man8/vfs_time_audit.8.gz
-man/man8/vfs_tsmsm.8.gz
-man/man8/vfs_unityed_media.8.gz
-man/man8/vfs_worm.8.gz
-man/man8/vfs_xattr_tdb.8.gz
-man/man8/vfs_zfsacl.8.gz
-man/man8/winbindd.8.gz
-@dir %%SAMBA4_RUNDIR%%
-@dir %%SAMBA4_LOGDIR%%
-@dir %%SAMBA4_LOCKDIR%%
-@dir %%SAMBA4_PRIVATEDIR%%
-@dir %%SAMBA4_BINDDNSDIR%%
-@comment Cluster
-%%CLUSTER%%bin/ctdb
-%%CLUSTER%%bin/ctdb_diagnostics
-%%CLUSTER%%bin/ltdbtool
-%%CLUSTER%%bin/onnode
-%%CLUSTER%%bin/ping_pong
-%%CLUSTER%%sbin/ctdbd
-%%CLUSTER%%sbin/ctdbd_wrapper
-%%CLUSTER%%etc/ctdb/ctdb-crash-cleanup.sh
-%%CLUSTER%%etc/ctdb/debug-hung-script.sh
-%%CLUSTER%%etc/ctdb/debug_locks.sh
-%%CLUSTER%%etc/ctdb/events.d/00.ctdb
-%%CLUSTER%%etc/ctdb/events.d/01.reclock
-%%CLUSTER%%etc/ctdb/events.d/05.system
-%%CLUSTER%%etc/ctdb/events.d/06.nfs
-%%CLUSTER%%etc/ctdb/events.d/10.external
-%%CLUSTER%%etc/ctdb/events.d/10.interface
-%%CLUSTER%%etc/ctdb/events.d/11.natgw
-%%CLUSTER%%etc/ctdb/events.d/11.routing
-%%CLUSTER%%etc/ctdb/events.d/13.per_ip_routing
-%%CLUSTER%%etc/ctdb/events.d/20.multipathd
-%%CLUSTER%%etc/ctdb/events.d/31.clamd
-%%CLUSTER%%etc/ctdb/events.d/40.vsftpd
-%%CLUSTER%%etc/ctdb/events.d/41.httpd
-%%CLUSTER%%etc/ctdb/events.d/49.winbind
-%%CLUSTER%%etc/ctdb/events.d/50.samba
-%%CLUSTER%%etc/ctdb/events.d/60.nfs
-%%CLUSTER%%etc/ctdb/events.d/70.iscsi
-%%CLUSTER%%etc/ctdb/events.d/91.lvs
-%%CLUSTER%%etc/ctdb/events.d/99.timeout
-%%CLUSTER%%etc/ctdb/events.d/README
-%%CLUSTER%%etc/ctdb/functions
-%%CLUSTER%%etc/ctdb/gcore_trace.sh
-%%CLUSTER%%etc/ctdb/nfs-checks.d/00.portmapper.check
-%%CLUSTER%%etc/ctdb/nfs-checks.d/10.status.check
-%%CLUSTER%%etc/ctdb/nfs-checks.d/20.nfs.check
-%%CLUSTER%%etc/ctdb/nfs-checks.d/30.nlockmgr.check
-%%CLUSTER%%etc/ctdb/nfs-checks.d/40.mountd.check
-%%CLUSTER%%etc/ctdb/nfs-checks.d/50.rquotad.check
-%%CLUSTER%%etc/ctdb/nfs-checks.d/README
-%%CLUSTER%%etc/ctdb/nfs-linux-kernel-callout
-%%CLUSTER%%etc/ctdb/notify.d/README
-%%CLUSTER%%etc/ctdb/notify.sh
-%%CLUSTER%%etc/ctdb/statd-callout
-%%CLUSTER%%etc/sudoers.d/ctdb
-%%CLUSTER%%libexec/ctdb/ctdb_event
-%%CLUSTER%%libexec/ctdb/ctdb_eventd
-%%CLUSTER%%libexec/ctdb/ctdb_killtcp
-%%CLUSTER%%libexec/ctdb/ctdb_lock_helper
-%%CLUSTER%%libexec/ctdb/ctdb_lvs
-%%CLUSTER%%libexec/ctdb/ctdb_mutex_fcntl_helper
-%%CLUSTER%%libexec/ctdb/ctdb_natgw
-%%CLUSTER%%libexec/ctdb/ctdb_recovery_helper
-%%CLUSTER%%libexec/ctdb/ctdb_takeover_helper
-%%CLUSTER%%libexec/ctdb/smnotify
-%%CLUSTER%%man/man1/ctdb.1.gz
-%%CLUSTER%%man/man1/ctdb_diagnostics.1.gz
-%%CLUSTER%%man/man1/ctdbd.1.gz
-%%CLUSTER%%man/man1/ctdbd_wrapper.1.gz
-%%CLUSTER%%man/man1/ltdbtool.1.gz
-%%CLUSTER%%man/man1/onnode.1.gz
-%%CLUSTER%%man/man1/ping_pong.1.gz
-%%CLUSTER%%man/man5/ctdbd.conf.5.gz
-%%CLUSTER%%man/man7/ctdb-statistics.7.gz
-%%CLUSTER%%man/man7/ctdb-tunables.7.gz
-%%CLUSTER%%man/man7/ctdb.7.gz
-%%CLUSTER%%@dir /var/lib/ctdb
-%%CLUSTER%%@dir /var/lib
-%%CLUSTER%%@dir /var/run/ctdb
-@comment Use bundled libraries
-%%SAMBA4_BUNDLED_LDB%%bin/ldbadd
-%%SAMBA4_BUNDLED_LDB%%bin/ldbdel
-%%SAMBA4_BUNDLED_LDB%%bin/ldbedit
-%%SAMBA4_BUNDLED_LDB%%bin/ldbmodify
-%%SAMBA4_BUNDLED_LDB%%bin/ldbrename
-%%SAMBA4_BUNDLED_LDB%%bin/ldbsearch
-%%SAMBA4_BUNDLED_TDB%%bin/tdbbackup
-%%SAMBA4_BUNDLED_TDB%%bin/tdbdump
-%%SAMBA4_BUNDLED_TDB%%bin/tdbrestore
-%%SAMBA4_BUNDLED_TDB%%bin/tdbtool
-%%SAMBA4_BUNDLED_LDB%%%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/_ldb_text.py
-%%SAMBA4_BUNDLED_TDB%%%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/_tdb_text.py
-%%SAMBA4_BUNDLED_TEVENT%%%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/_tevent.so
-%%SAMBA4_BUNDLED_LDB%%%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/ldb.so
-%%SAMBA4_BUNDLED_TALLOC%%%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/talloc.so
-%%SAMBA4_BUNDLED_TDB%%%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/tdb.so
-%%SAMBA4_BUNDLED_TEVENT%%%%SAMBA4_PYTHON2%%%%PYTHON_SITELIBDIR%%/tevent.py
-%%SAMBA4_BUNDLED_LDB%%%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/_ldb_text.py
-%%SAMBA4_BUNDLED_TDB%%%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/_tdb_text.py
-%%SAMBA4_BUNDLED_TEVENT%%%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/_tevent.cpython-36m.so
-%%SAMBA4_BUNDLED_LDB%%%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/ldb.cpython-36m.so
-%%SAMBA4_BUNDLED_TALLOC%%%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/talloc.cpython-36m.so
-%%SAMBA4_BUNDLED_TDB%%%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/tdb.cpython-36m.so
-%%SAMBA4_BUNDLED_TEVENT%%%%SAMBA4_PYTHON3%%%%SAMBA4_PYTHON3_SITELIBDIR%%/tevent.py
-%%SAMBA4_BUNDLED_CMOCKA%%lib/samba4/private/libcmocka-samba4.so
-%%SAMBA4_BUNDLED_LDB%%lib/samba4/private/libldb-cmdline-samba4.so
-%%SAMBA4_BUNDLED_LDB%%lib/samba4/private/libldb.so.1
-%%SAMBA4_BUNDLED_LDB%%%%SAMBA4_PYTHON3%%lib/samba4/private/libpyldb-util.cpython-36m.so.1
-%%SAMBA4_BUNDLED_LDB%%%%SAMBA4_PYTHON2%%lib/samba4/private/libpyldb-util.so.1
-%%SAMBA4_BUNDLED_TALLOC%%%%SAMBA4_PYTHON3%%lib/samba4/private/libpytalloc-util.cpython-36m.so.2
-%%SAMBA4_BUNDLED_TALLOC%%%%SAMBA4_PYTHON2%%lib/samba4/private/libpytalloc-util.so.2
-%%SAMBA4_BUNDLED_TALLOC%%lib/samba4/private/libtalloc.so.2
-%%SAMBA4_BUNDLED_TDB%%lib/samba4/private/libtdb.so.1
-%%SAMBA4_BUNDLED_TEVENT%%lib/samba4/private/libtevent.so.0
-%%SAMBA4_BUNDLED_LDB%%lib/shared-modules/ldb/asq.so
-%%SAMBA4_BUNDLED_LDB%%lib/shared-modules/ldb/paged_results.so
-%%SAMBA4_BUNDLED_LDB%%lib/shared-modules/ldb/paged_searches.so
-%%SAMBA4_BUNDLED_LDB%%lib/shared-modules/ldb/rdn_name.so
-%%SAMBA4_BUNDLED_LDB%%lib/shared-modules/ldb/sample.so
-%%SAMBA4_BUNDLED_LDB%%lib/shared-modules/ldb/server_sort.so
-%%SAMBA4_BUNDLED_LDB%%lib/shared-modules/ldb/skel.so
-%%SAMBA4_BUNDLED_LDB%%lib/shared-modules/ldb/tdb.so
-%%SAMBA4_BUNDLED_LDB%%man/man1/ldbadd.1.gz
-%%SAMBA4_BUNDLED_LDB%%man/man1/ldbdel.1.gz
-%%SAMBA4_BUNDLED_LDB%%man/man1/ldbedit.1.gz
-%%SAMBA4_BUNDLED_LDB%%man/man1/ldbmodify.1.gz
-%%SAMBA4_BUNDLED_LDB%%man/man1/ldbrename.1.gz
-%%SAMBA4_BUNDLED_LDB%%man/man1/ldbsearch.1.gz
-%%SAMBA4_BUNDLED_LDB%%man/man3/ldb.3.gz
-%%SAMBA4_BUNDLED_TALLOC%%man/man3/talloc.3.gz
-%%SAMBA4_BUNDLED_TDB%%man/man8/tdbbackup.8.gz
-%%SAMBA4_BUNDLED_TDB%%man/man8/tdbdump.8.gz
-%%SAMBA4_BUNDLED_TDB%%man/man8/tdbrestore.8.gz
-%%SAMBA4_BUNDLED_TDB%%man/man8/tdbtool.8.gz