pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

samba4: version 4.15 with the patch to fix it for BSDs



Module Name:	pkgsrc-wip
Committed By:	Dr. Thomas Orgis <thomas.orgis%uni-hamburg.de@localhost>
Pushed By:	thor
Date:		Fri Jan 28 19:03:51 2022 +0100
Changeset:	22326182fc70cbadc191cb0f5c87887f865c4ad6

Modified Files:
	Makefile
Added Files:
	samba4/DESCR
	samba4/MESSAGE.rcd
	samba4/Makefile
	samba4/PLIST
	samba4/PLIST.Linux
	samba4/PLIST.SunOS
	samba4/buildlink3.mk
	samba4/distinfo
	samba4/files/adduser.sh
	samba4/files/deluser.sh
	samba4/files/nmbd.sh
	samba4/files/samba.sh
	samba4/files/smbd.sh
	samba4/files/smf/manifest.xml
	samba4/files/winbindd.sh
	samba4/hacks.mk
	samba4/options.mk
	samba4/patches/patch-buildtools_wafsamba_samba__conftests.py
	samba4/patches/patch-buildtools_wafsamba_samba__install.py
	samba4/patches/patch-buildtools_wafsamba_samba__pidl.py
	samba4/patches/patch-buildtools_wafsamba_samba__utils.py
	samba4/patches/patch-buildtools_wafsamba_wscript
	samba4/patches/patch-dynconfig_wscript
	samba4/patches/patch-lib_param_loadparm.h
	samba4/patches/patch-lib_pthreadpool_pthreadpool.c
	samba4/patches/patch-lib_replace_system_passwd.h
	samba4/patches/patch-lib_replace_wscript
	samba4/patches/patch-lib_tdb_common_mutex.c
	samba4/patches/patch-lib_tevent_tevent.c
	samba4/patches/patch-lib_tevent_tevent__threads.c
	samba4/patches/patch-lib_tevent_wscript
	samba4/patches/patch-lib_util_charset_charset__macosxfs.c
	samba4/patches/patch-lib_util_smb__threads.h
	samba4/patches/patch-lib_util_tfork.c
	samba4/patches/patch-libcli_dns_wscript__build
	samba4/patches/patch-nsswitch_stress-nss-libwbclient.c
	samba4/patches/patch-nsswitch_winbind__nss__netbsd.c
	samba4/patches/patch-nsswitch_wscript__build
	samba4/patches/patch-source3_libsmb_pylibsmb.c
	samba4/patches/patch-source3_smbd_open.c
	samba4/patches/patch-source3_smbd_process.c
	samba4/patches/patch-source3_utils_net__offlinejoin.c
	samba4/patches/patch-source4_dsdb_samdb_ldb__modules_wscript__build__server
	samba4/patches/patch-source4_heimdal__build_roken.h
	samba4/patches/patch-source4_heimdal_include_heim__threads.h
	samba4/patches/patch-source4_scripting_wsript_build
	samba4/patches/patch-source4_utils_oLschema2ldif_wscript__build

Log Message:
samba4: version 4.15 with the patch to fix it for BSDs

I added a patch that hopefully fixes the /proc/fd re-open
behavour to be able to update samba4 to 4.15. Please test.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=22326182fc70cbadc191cb0f5c87887f865c4ad6

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |    1 +
 samba4/DESCR                                       |   18 +
 samba4/MESSAGE.rcd                                 |   13 +
 samba4/Makefile                                    |  233 +++++
 samba4/PLIST                                       | 1062 ++++++++++++++++++++
 samba4/PLIST.Linux                                 |   13 +
 samba4/PLIST.SunOS                                 |    3 +
 samba4/buildlink3.mk                               |   27 +
 samba4/distinfo                                    |   35 +
 samba4/files/adduser.sh                            |  161 +++
 samba4/files/deluser.sh                            |   68 ++
 samba4/files/nmbd.sh                               |   31 +
 samba4/files/samba.sh                              |   27 +
 samba4/files/smbd.sh                               |   43 +
 samba4/files/smf/manifest.xml                      |   51 +
 samba4/files/winbindd.sh                           |   27 +
 samba4/hacks.mk                                    |    3 +
 samba4/options.mk                                  |  125 +++
 .../patch-buildtools_wafsamba_samba__conftests.py  |   19 +
 .../patch-buildtools_wafsamba_samba__install.py    |   15 +
 .../patch-buildtools_wafsamba_samba__pidl.py       |   16 +
 .../patch-buildtools_wafsamba_samba__utils.py      |   18 +
 samba4/patches/patch-buildtools_wafsamba_wscript   |   17 +
 samba4/patches/patch-dynconfig_wscript             |   16 +
 samba4/patches/patch-lib_param_loadparm.h          |   16 +
 samba4/patches/patch-lib_pthreadpool_pthreadpool.c |   23 +
 samba4/patches/patch-lib_replace_system_passwd.h   |   16 +
 samba4/patches/patch-lib_replace_wscript           |   17 +
 samba4/patches/patch-lib_tdb_common_mutex.c        |   63 ++
 samba4/patches/patch-lib_tevent_tevent.c           |   15 +
 samba4/patches/patch-lib_tevent_tevent__threads.c  |   23 +
 samba4/patches/patch-lib_tevent_wscript            |   15 +
 .../patch-lib_util_charset_charset__macosxfs.c     |   15 +
 samba4/patches/patch-lib_util_smb__threads.h       |   15 +
 samba4/patches/patch-lib_util_tfork.c              |   15 +
 samba4/patches/patch-libcli_dns_wscript__build     |   22 +
 .../patch-nsswitch_stress-nss-libwbclient.c        |   15 +
 .../patches/patch-nsswitch_winbind__nss__netbsd.c  |   34 +
 samba4/patches/patch-nsswitch_wscript__build       |   16 +
 samba4/patches/patch-source3_libsmb_pylibsmb.c     |   15 +
 samba4/patches/patch-source3_smbd_open.c           |   19 +
 samba4/patches/patch-source3_smbd_process.c        |   23 +
 .../patches/patch-source3_utils_net__offlinejoin.c |   19 +
 ..._dsdb_samdb_ldb__modules_wscript__build__server |   22 +
 .../patches/patch-source4_heimdal__build_roken.h   |   15 +
 .../patch-source4_heimdal_include_heim__threads.h  |   16 +
 .../patches/patch-source4_scripting_wsript_build   |   24 +
 ...atch-source4_utils_oLschema2ldif_wscript__build |   12 +
 48 files changed, 2527 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 57c28c6774..a703af4648 100644
--- a/Makefile
+++ b/Makefile
@@ -5151,6 +5151,7 @@ SUBDIR+=	sailor
 SUBDIR+=	sais
 SUBDIR+=	sais-demo-data
 SUBDIR+=	salmon
+SUBDIR+=	samba
 SUBDIR+=	samhain
 SUBDIR+=	samtools
 SUBDIR+=	sara
diff --git a/samba4/DESCR b/samba4/DESCR
new file mode 100644
index 0000000000..046a26360c
--- /dev/null
+++ b/samba4/DESCR
@@ -0,0 +1,18 @@
+Samba is the standard Windows interoperability suite of programs
+for Linux and Unix.
+
+Samba is Free Software licensed under the GNU General Public License,
+the Samba project is a member of the Software Freedom Conservancy.
+
+Since 1992, Samba has provided secure, stable and fast file and
+print services for all clients using the SMB/CIFS protocol, such
+as all versions of DOS and Windows, OS/2, Linux and many others.
+
+Samba is an important component to seamlessly integrate Linux/Unix
+Servers and Desktops into Active Directory environments. It can
+function both as a domain controller or as a regular domain member.
+
+This package intends to provide the current stable version of samba
+within the 4.x series.  (As will all packages, it may of course
+sometimes contain an older stable release due to not being updated
+yet.)
diff --git a/samba4/MESSAGE.rcd b/samba4/MESSAGE.rcd
new file mode 100644
index 0000000000..9b345a6ab5
--- /dev/null
+++ b/samba4/MESSAGE.rcd
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE.rcd,v 1.1 2015/05/26 15:17:56 jperkin Exp $
+
+For ActiveDirectory/Domain Controller, use:
+
+	${RCD_SCRIPTS_DIR}/samba start
+
+For traditional simple CIFS file sharing, use:
+
+	${RCD_SCRIPTS_DIR}/nmbd start
+	${RCD_SCRIPTS_DIR}/winbindd start
+	${RCD_SCRIPTS_DIR}/smbd start
+===========================================================================
diff --git a/samba4/Makefile b/samba4/Makefile
new file mode 100644
index 0000000000..aef3adeecd
--- /dev/null
+++ b/samba4/Makefile
@@ -0,0 +1,233 @@
+# $NetBSD: Makefile,v 1.135 2022/01/10 14:11:16 taca Exp $
+
+# WARNING: DO NOT UPDATE WITHOUT RESOLVING THIS ISSUE:
+#
+# Samba 4.14 is incompatible with procfs in NetBSD 9.2 and other
+# BSDs!
+#
+# Please do not update without testing on NetBSD 9.2!
+#
+DISTNAME=	samba-4.15.4
+CATEGORIES=	net
+MASTER_SITES=	https://download.samba.org/pub/samba/stable/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://www.samba.org/
+COMMENT=	SMB/CIFS protocol server suite
+LICENSE=	gnu-gpl-v3
+
+CONFLICTS+=	ja-samba-[0-9]* winbind-[0-9]*
+
+PYTHON_VERSIONS_INCOMPATIBLE=	27
+
+GCC_REQD+=	4.4
+BUILD_DEPENDS+=	libxslt-[0-9]*:../../textproc/libxslt
+BUILD_DEPENDS+=	docbook-xml-[0-9]*:../../textproc/docbook-xml
+BUILD_DEPENDS+=	docbook-xsl>=1.79.2:../../textproc/docbook-xsl
+DEPENDS+=	p5-Parse-Yapp>=1.05:../../devel/p5-Parse-Yapp
+DEPENDS+=	${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns
+DEPENDS+=	${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
+DEPENDS+=	${PYPKGPREFIX}-iso8601-[0-9]*:../../time/py-iso8601
+DEPENDS+=	${PYPKGPREFIX}-markdown-[0-9]*:../../textproc/py-markdown
+
+BUILD_DEFS+=		VARBASE
+
+.include "../../mk/bsd.prefs.mk"
+
+SMB_LIB?=		${PREFIX}/lib
+
+PKG_SYSCONFSUBDIR=	samba
+SMB_SHAREDSTATE?=	${PREFIX}/com
+SMB_LOCALSTATE?=	${VARBASE}
+SMB_INFO?=		${PREFIX}/info
+SMB_MAN?=		${PREFIX}/${PKGMANDIR}
+SMB_STATE?=		${VARBASE}/db/samba4
+SMB_PRIVATE?=		${SMB_STATE}/private
+SMB_PID?=		${VARBASE}/run
+SMB_CACHE?=		${VARBASE}/run
+SMB_LOCK?=		${VARBASE}/run
+SMB_LOGFILEBASE?=	${VARBASE}/log
+SMB_SOCKETS?=		${VARBASE}/run
+SMB_MODULES?=		${SMB_LIB}/samba
+SMB_PRIVATELIB?=	${SMB_LIB}/samba/private
+SMB_PRIVSOCKETS?=	${VARBASE}/run
+SMB_CONFIG?=		${PKG_SYSCONFDIR}
+SMB_DATAROOT?=		${PREFIX}/share/samba
+SMB_LOCALE?=		${PREFIX}/share/locale
+SMB_DOC?=		${PREFIX}/share/doc/samba
+SMB_PAMMODULES?=	${SMB_LIB}/samba/security
+
+FILES_SUBST+=		SMB_CONFIG=${SMB_CONFIG}
+FILES_SUBST+=		SMB_PID=${SMB_PID}
+
+# mktemp is useful for the replacement adduser script, but don't require
+# a full dependency since it's not actually needed by samba.
+USE_TOOLS+=		gmake mktemp perl:run pkg-config flex
+
+.if ${OPSYS} == "NetBSD"
+USE_GNU_ICONV=		yes	# FIXME: something doesn't work on NetBSD
+BROKEN_GETTEXT_DETECTION= yes
+.endif
+
+# Debugging
+#CONFIGURE_ARGS+=	-vvv
+#CONFIGURE_ARGS+=	--enable-developer
+#CONFIGURE_ARGS+=	--fatal-errors
+
+HAS_CONFIGURE=		yes
+CONFIG_SHELL=		${PYTHONBIN}
+CONFIGURE_SCRIPT=	${WRKSRC}/buildtools/bin/waf
+CONFIGURE_ARGS+=	configure
+CONFIGURE_ARGS+=	--prefix=${PREFIX}
+CONFIGURE_ARGS+=	--infodir=${SMB_INFO}
+CONFIGURE_ARGS+=	--mandir=${SMB_MAN}
+CONFIGURE_ARGS+=	--datarootdir=${SMB_DATAROOT}
+CONFIGURE_ARGS+=	--libdir=${SAMBA_LIB}
+CONFIGURE_ARGS+=	--localedir=${SMB_LOCALE}
+CONFIGURE_ARGS+=	--docdir=${SMB_DOC}
+CONFIGURE_ARGS+=	--with-statedir=${SMB_STATE}
+CONFIGURE_ARGS+=	--with-privatedir=${SMB_PRIVATE}
+CONFIGURE_ARGS+=	--with-piddir=${SMB_PID}
+CONFIGURE_ARGS+=	--with-cachedir=${SMB_CACHE}
+CONFIGURE_ARGS+=	--with-lockdir=${SMB_LOCK}
+CONFIGURE_ARGS+=	--with-logfilebase=${SMB_LOGFILEBASE}
+CONFIGURE_ARGS+=	--with-sockets-dir=${SMB_SOCKETS}
+CONFIGURE_ARGS+=	--with-modulesdir=${SMB_MODULES}
+CONFIGURE_ARGS+=	--with-privatelibdir=${SMB_PRIVATELIB}
+CONFIGURE_ARGS+=	--with-privileged-socket-dir=${SMB_PRIVSOCKETS}
+CONFIGURE_ARGS+=	--with-configdir=${SMB_CONFIG}
+CONFIGURE_ARGS+=	--with-libiconv=${BUILDLINK_PREFIX.iconv}
+#CONFIGURE_ARGS+=	--bundled-libraries=com_err
+CONFIGURE_ARGS+=	--abi-check-disable
+CONFIGURE_ARGS+=	--disable-symbol-versions
+.if defined(MAKE_JOBS) && !empty(MAKE_JOBS) && !(defined(MAKE_JOBS_SAFE) && !empty(MAKE_JOBS_SAFE:M[nN][oO]))
+CONFIGURE_ARGS+=	--jobs=${MAKE_JOBS}
+.else
+CONFIGURE_ARGS+=	--jobs=1
+.endif
+CONFIGURE_ARGS+=	--without-gpgme
+
+# Depends on ncurses, explicitly disable for now.
+CONFIGURE_ARGS+=	--without-regedit
+
+PY_PATCHPLIST=		yes
+MAKE_FLAGS+=		WAF_BINARY=${PYTHONBIN}\ ${WRKSRC}/buildtools/bin/waf
+
+# for winbind option build.
+.if "${OPSYS}" != "Darwin" && "${OPSYS}" != "SunOS"
+LDFLAGS+=		-Wl,--allow-shlib-undefined
+.endif
+LDFLAGS+=		${BUILDLINK_LDADD.gettext}
+LDFLAGS+=		${COMPILER_RPATH_FLAG}${SMB_PRIVATELIB}
+
+CFLAGS.SunOS+=		-DHAVE_SOLARIS_GETGRENT_R
+# workaround https://bugzilla.samba.org/show_bug.cgi?id=12502 for now
+CFLAGS.SunOS+=		-DMSG_NOSIGNAL=0
+LDFLAGS.SunOS+=		-lsocket -lnsl -lsendfile
+
+.include "options.mk"
+
+.if ${SHLIB_TYPE} == "dylib"
+PLIST_SUBST+=	SOEXT=dylib
+.else
+PLIST_SUBST+=	SOEXT=so
+.endif
+
+.if !defined(PWD_MKDB)
+PWD_MKDB!=	${TYPE} pwd_mkdb 2>&1 | \
+		${AWK} '/not found/ { print "pwd_mkdb"; exit } { print $$3 }'
+MAKEFLAGS+=	PWD_MKDB=${PWD_MKDB:Q}
+.endif
+FILES_SUBST+=	MKTEMP=${MKTEMP:Q}
+FILES_SUBST+=	PWD_MKDB=${PWD_MKDB:Q}
+
+INSTALLATION_DIRS+=	${DOCDIR} ${EGDIR}
+
+DOCDIR=		share/doc/${PKGBASE}
+EGDIR=		share/examples/${PKGBASE}
+CONF_FILES=	${PREFIX}/${EGDIR}/smb.conf.default ${SMB_CONFIG}/smb.conf
+OWN_DIRS_PERMS=	${SMB_PRIVATE} ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
+RCD_SCRIPTS+=	samba nmbd smbd ${WINBINDD_RCD_SCRIPT}
+
+SUBST_CLASSES+=		docbook
+SUBST_MESSAGE.docbook=	Fixing docbook URLs.
+SUBST_FILES.docbook+=	buildtools/wafsamba/wafsamba.py
+SUBST_FILES.docbook+=	ctdb/doc/*.xml
+SUBST_FILES.docbook+=	docs-xml/build/DTD/samba-doc
+SUBST_FILES.docbook+=	docs-xml/xslt/*.xsl
+SUBST_FILES.docbook+=	lib/ldb/docs/builddocs.sh
+SUBST_FILES.docbook+=	librpc/tools/*.xml
+SUBST_FILES.docbook+=	*/*/man/*.xml
+SUBST_FILES.docbook+=	*/*/*/man/*.xml
+SUBST_STAGE.docbook=	pre-configure
+SUBST_SED.docbook=	-e 's,http://www.oasis-open.org/docbook/xml,${PREFIX}/share/xml/docbook,g'
+SUBST_SED.docbook+=	-e 's,http://docbook.sourceforge.net/release/xsl/current,${PREFIX}/share/xsl/docbook,g'
+
+SUBST_CLASSES+=		paths
+SUBST_MESSAGE.paths=	Fixing paths.
+SUBST_FILES.paths=	${WRKDIR}/adduser.sh ${WRKDIR}/deluser.sh
+SUBST_STAGE.paths=	pre-configure
+SUBST_SED.paths+=	-e 's,@PERL@,${PERL5},g'
+SUBST_VARS.paths=	AWK CAT MKTEMP RM PWD_MKDB SH PERL PKG_SYSCONFBASE
+
+SUBST_CLASSES+=		logpath
+SUBST_MESSAGE.logpath=	Fixing log path.
+SUBST_FILES.logpath=	examples/smb.conf.default
+SUBST_STAGE.logpath=	pre-configure
+SUBST_SED.logpath+=	-e 's,/usr/local/samba/var/log.%m,${SMB_LOGFILEBASE}/log.%m,g'
+
+SMF_INSTANCES=	smbd nmbd
+
+CTF_FILES_SKIP+=	lib/libdcerpc-samr.so.*	# empty
+
+post-extract:
+	${CP} ${FILESDIR}/adduser.sh ${FILESDIR}/deluser.sh ${WRKDIR}
+
+post-install:
+	${RUN} cd ${WRKSRC}/docs-xml/registry; for f in *.reg; do \
+		${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/${DOCDIR}/$${f}; \
+	done
+	${INSTALL_SCRIPT} ${WRKDIR}/adduser.sh \
+		${DESTDIR}${PREFIX}/${EGDIR}/adduser.sh
+	${INSTALL_SCRIPT} ${WRKDIR}/deluser.sh \
+		${DESTDIR}${PREFIX}/${EGDIR}/deluser.sh
+	${INSTALL_DATA} ${WRKSRC}/examples/LDAP/samba.schema \
+		${DESTDIR}${PREFIX}/${EGDIR}
+	${INSTALL_DATA} ${WRKSRC}/examples/smb.conf.default \
+		${DESTDIR}${PREFIX}/${EGDIR}
+
+REPLACE_PERL+=		librpc/tables.pl
+REPLACE_PERL+=		pidl/pidl
+REPLACE_PERL+=		pidl/tests/*.pl
+REPLACE_PERL+=		script/*.pl
+REPLACE_PERL+=		source3/script/*.pl
+REPLACE_PERL+=		source4/build/pasn1/pasn1.pl
+REPLACE_PERL+=		source4/script/*.pl
+REPLACE_PERL+=		source4/scripting/bin/nsupdate-gss
+REPLACE_PERL+=		third_party/nss_wrapper/nss_wrapper.pl
+REPLACE_PYTHON+=	buildtools/bin/waf
+REPLACE_PYTHON+=	source4/setup/wscript_build
+REPLACE_PYTHON+=	source4/scripting/bin/*
+
+.if "${OPSYS}" == "Linux"
+.include "../../devel/libuuid/buildlink3.mk"
+.endif
+.include "../../archivers/libarchive/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+BUILDLINK_API_DEPENDS.ldb+=	ldb>=2.4.2
+.include "../../wip/ldb/buildlink3.mk"
+.include "../../databases/lmdb/buildlink3.mk"
+.include "../../devel/cmocka/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/popt/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+BUILDLINK_API_DEPENDS.talloc+=	talloc>=2.3.1
+.include "../../devel/talloc/buildlink3.mk"
+.include "../../devel/tevent/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../textproc/jansson/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/samba4/PLIST b/samba4/PLIST
new file mode 100644
index 0000000000..2730f336ca
--- /dev/null
+++ b/samba4/PLIST
@@ -0,0 +1,1062 @@
+@comment $NetBSD$
+bin/cifsdd
+bin/dbwrap_tool
+bin/dumpmscat
+bin/gentest
+bin/locktest
+bin/masktest
+bin/mdsearch
+bin/mvxattr
+bin/ndrdump
+bin/net
+bin/nmblookup
+bin/ntlm_auth
+bin/oLschema2ldif
+bin/pdbedit
+bin/profiles
+bin/regdiff
+bin/regpatch
+bin/regshell
+bin/regtree
+bin/rpcclient
+${PLIST.ads}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
+include/charset.h
+include/core/doserr.h
+include/core/error.h
+include/core/hresult.h
+include/core/ntstatus.h
+include/core/ntstatus_gen.h
+include/core/werror.h
+include/core/werror_gen.h
+include/credentials.h
+include/dcerpc.h
+${PLIST.ads}include/dcerpc_server.h
+include/dcesrv_core.h
+include/domain_credentials.h
+include/gen_ndr/atsvc.h
+include/gen_ndr/auth.h
+include/gen_ndr/dcerpc.h
+include/gen_ndr/drsblobs.h
+include/gen_ndr/drsuapi.h
+include/gen_ndr/krb5pac.h
+include/gen_ndr/lsa.h
+include/gen_ndr/misc.h
+include/gen_ndr/nbt.h
+include/gen_ndr/ndr_atsvc.h
+include/gen_ndr/ndr_dcerpc.h
+include/gen_ndr/ndr_drsblobs.h
+include/gen_ndr/ndr_drsuapi.h
+include/gen_ndr/ndr_krb5pac.h
+include/gen_ndr/ndr_misc.h
+include/gen_ndr/ndr_nbt.h
+include/gen_ndr/ndr_samr.h
+include/gen_ndr/ndr_samr_c.h
+include/gen_ndr/ndr_svcctl.h
+include/gen_ndr/ndr_svcctl_c.h
+include/gen_ndr/netlogon.h
+include/gen_ndr/samr.h
+include/gen_ndr/security.h
+include/gen_ndr/server_id.h
+include/gen_ndr/svcctl.h
+include/ldb_wrap.h
+include/libsmbclient.h
+include/lookup_sid.h
+include/machine_sid.h
+include/ndr.h
+include/ndr/ndr_dcerpc.h
+include/ndr/ndr_drsblobs.h
+include/ndr/ndr_drsuapi.h
+include/ndr/ndr_krb5pac.h
+include/ndr/ndr_nbt.h
+include/ndr/ndr_svcctl.h
+include/netapi.h
+include/param.h
+include/passdb.h
+include/policy.h
+include/rpc_common.h
+include/samba/session.h
+include/samba/version.h
+include/share.h
+include/smb2_lease_struct.h
+${PLIST.ldap}include/smb_ldap.h
+include/smbconf.h
+${PLIST.ldap}include/smbldap.h
+include/tdr.h
+include/tsocket.h
+include/tsocket_internal.h
+include/util/attr.h
+include/util/blocking.h
+include/util/data_blob.h
+include/util/debug.h
+include/util/discard.h
+include/util/fault.h
+include/util/genrand.h
+include/util/idtree.h
+include/util/idtree_random.h
+include/util/signal.h
+include/util/substitute.h
+include/util/tevent_ntstatus.h
+include/util/tevent_unix.h
+include/util/tevent_werror.h
+include/util/tfork.h
+include/util/time.h
+include/util_ldb.h
+include/wbclient.h
+lib/libdcerpc-binding.so
+lib/libdcerpc-binding.so.0
+lib/libdcerpc-binding.so.0.0.1
+lib/libdcerpc-samr.so
+lib/libdcerpc-samr.so.0
+lib/libdcerpc-samr.so.0.0.1
+lib/libdcerpc-server-core.so
+lib/libdcerpc-server-core.so.0
+lib/libdcerpc-server-core.so.0.0.1
+${PLIST.ads}lib/libdcerpc-server.so
+${PLIST.ads}lib/libdcerpc-server.so.0
+${PLIST.ads}lib/libdcerpc-server.so.0.0.1
+lib/libdcerpc.so
+lib/libdcerpc.so.0
+lib/libdcerpc.so.0.0.1
+lib/libndr-krb5pac.so
+lib/libndr-krb5pac.so.0
+lib/libndr-krb5pac.so.0.0.1
+lib/libndr-nbt.so
+lib/libndr-nbt.so.0
+lib/libndr-nbt.so.0.0.1
+lib/libndr-standard.so
+lib/libndr-standard.so.0
+lib/libndr-standard.so.0.0.1
+lib/libndr.so
+lib/libndr.so.2
+lib/libndr.so.2.0.0
+lib/libnetapi.so
+lib/libnetapi.so.1
+lib/libnetapi.so.1.0.0
+lib/libnss_winbind.so
+lib/libnss_winbind.so.2
+lib/libnss_wins.so
+lib/libnss_wins.so.2
+lib/libsamba-credentials.so
+lib/libsamba-credentials.so.1
+lib/libsamba-credentials.so.1.0.0
+lib/libsamba-errors.so
+lib/libsamba-errors.so.1
+lib/libsamba-hostconfig.so
+lib/libsamba-hostconfig.so.0
+lib/libsamba-hostconfig.so.0.0.1
+lib/libsamba-passdb.so
+lib/libsamba-passdb.so.0
+lib/libsamba-passdb.so.0.28.0
+lib/libsamba-policy.so
+lib/libsamba-policy.so.0
+lib/libsamba-policy.so.0.0.1
+lib/libsamba-util.so
+lib/libsamba-util.so.0
+lib/libsamba-util.so.0.0.1
+lib/libsamdb.so
+lib/libsamdb.so.0
+lib/libsamdb.so.0.0.1
+lib/libsmbclient.so
+lib/libsmbclient.so.0
+lib/libsmbclient.so.0.7.0
+lib/libsmbconf.so
+lib/libsmbconf.so.0
+${PLIST.ldap}lib/libsmbldap.so
+${PLIST.ldap}lib/libsmbldap.so.2
+${PLIST.ldap}lib/libsmbldap.so.2.1.0
+lib/libtevent-util.so
+lib/libtevent-util.so.0
+lib/libtevent-util.so.0.0.1
+lib/libwbclient.so
+lib/libwbclient.so.0
+lib/libwbclient.so.0.15
+lib/pkgconfig/dcerpc.pc
+lib/pkgconfig/dcerpc_samr.pc
+${PLIST.ads}lib/pkgconfig/dcerpc_server.pc
+lib/pkgconfig/ndr.pc
+lib/pkgconfig/ndr_krb5pac.pc
+lib/pkgconfig/ndr_nbt.pc
+lib/pkgconfig/ndr_standard.pc
+lib/pkgconfig/netapi.pc
+lib/pkgconfig/samba-credentials.pc
+lib/pkgconfig/samba-hostconfig.pc
+lib/pkgconfig/samba-policy.pc
+lib/pkgconfig/samba-util.pc
+lib/pkgconfig/samdb.pc
+lib/pkgconfig/smbclient.pc
+lib/pkgconfig/wbclient.pc
+${PYSITELIB}/samba/__init__.py
+${PYSITELIB}/samba/_glue.so
+${PYSITELIB}/samba/_ldb.so
+${PYSITELIB}/samba/auth.so
+${PYSITELIB}/samba/auth_util.py
+${PYSITELIB}/samba/colour.py
+${PYSITELIB}/samba/common.py
+${PYSITELIB}/samba/credentials.so
+${PYSITELIB}/samba/crypto.so
+${PYSITELIB}/samba/dbchecker.py
+${PYSITELIB}/samba/dcerpc/__init__.py
+${PYSITELIB}/samba/dcerpc/atsvc.so
+${PYSITELIB}/samba/dcerpc/auth.so
+${PYSITELIB}/samba/dcerpc/base.so
+${PYSITELIB}/samba/dcerpc/dcerpc.so
+${PYSITELIB}/samba/dcerpc/dfs.so
+${PYSITELIB}/samba/dcerpc/dns.so
+${PYSITELIB}/samba/dcerpc/dnsp.so
+${PYSITELIB}/samba/dcerpc/dnsserver.so
+${PYSITELIB}/samba/dcerpc/drsblobs.so
+${PYSITELIB}/samba/dcerpc/drsuapi.so
+${PYSITELIB}/samba/dcerpc/echo.so
+${PYSITELIB}/samba/dcerpc/epmapper.so
+${PYSITELIB}/samba/dcerpc/idmap.so
+${PYSITELIB}/samba/dcerpc/initshutdown.so
+${PYSITELIB}/samba/dcerpc/irpc.so
+${PYSITELIB}/samba/dcerpc/krb5ccache.so
+${PYSITELIB}/samba/dcerpc/krb5pac.so
+${PYSITELIB}/samba/dcerpc/lsa.so
+${PYSITELIB}/samba/dcerpc/mdssvc.so
+${PYSITELIB}/samba/dcerpc/messaging.so
+${PYSITELIB}/samba/dcerpc/mgmt.so
+${PYSITELIB}/samba/dcerpc/misc.so
+${PYSITELIB}/samba/dcerpc/nbt.so
+${PYSITELIB}/samba/dcerpc/netlogon.so
+${PYSITELIB}/samba/dcerpc/ntlmssp.so
+${PYSITELIB}/samba/dcerpc/preg.so
+${PYSITELIB}/samba/dcerpc/samr.so
+${PYSITELIB}/samba/dcerpc/security.so
+${PYSITELIB}/samba/dcerpc/server_id.so
+${PYSITELIB}/samba/dcerpc/smb_acl.so
+${PYSITELIB}/samba/dcerpc/spoolss.so
+${PYSITELIB}/samba/dcerpc/srvsvc.so
+${PYSITELIB}/samba/dcerpc/svcctl.so
+${PYSITELIB}/samba/dcerpc/unixinfo.so
+${PYSITELIB}/samba/dcerpc/winbind.so
+${PYSITELIB}/samba/dcerpc/windows_event_ids.so
+${PYSITELIB}/samba/dcerpc/winreg.so
+${PYSITELIB}/samba/dcerpc/winspool.so
+${PYSITELIB}/samba/dcerpc/witness.so
+${PYSITELIB}/samba/dcerpc/wkssvc.so
+${PYSITELIB}/samba/dcerpc/xattr.so
+${PLIST.ads}${PYSITELIB}/samba/dckeytab.so
+${PYSITELIB}/samba/descriptor.py
+${PYSITELIB}/samba/dnsresolver.py
+${PYSITELIB}/samba/dnsserver.py
+${PYSITELIB}/samba/domain_update.py
+${PYSITELIB}/samba/drs_utils.py
+${PYSITELIB}/samba/dsdb.so
+${PYSITELIB}/samba/dsdb_dns.so
+${PYSITELIB}/samba/emulate/__init__.py
+${PYSITELIB}/samba/emulate/traffic.py
+${PYSITELIB}/samba/emulate/traffic_packets.py
+${PYSITELIB}/samba/forest_update.py
+${PYSITELIB}/samba/gensec.so
+${PYSITELIB}/samba/getopt.py
+${PYSITELIB}/samba/gp_ext_loader.py
+${PYSITELIB}/samba/gp_gnome_settings_ext.py
+${PYSITELIB}/samba/gp_msgs_ext.py
+${PYSITELIB}/samba/gp_parse/__init__.py
+${PYSITELIB}/samba/gp_parse/gp_aas.py
+${PYSITELIB}/samba/gp_parse/gp_csv.py
+${PYSITELIB}/samba/gp_parse/gp_inf.py
+${PYSITELIB}/samba/gp_parse/gp_ini.py
+${PYSITELIB}/samba/gp_parse/gp_pol.py
+${PYSITELIB}/samba/gp_scripts_ext.py
+${PYSITELIB}/samba/gp_sec_ext.py
+${PYSITELIB}/samba/gp_smb_conf_ext.py
+${PYSITELIB}/samba/gp_sudoers_ext.py
+${PYSITELIB}/samba/gpclass.py
+${PYSITELIB}/samba/gpo.so
+${PYSITELIB}/samba/graph.py
+${PYSITELIB}/samba/hostconfig.py
+${PYSITELIB}/samba/idmap.py
+${PYSITELIB}/samba/join.py
+${PYSITELIB}/samba/kcc/__init__.py
+${PYSITELIB}/samba/kcc/debug.py
+${PYSITELIB}/samba/kcc/graph.py
+${PYSITELIB}/samba/kcc/graph_utils.py
+${PYSITELIB}/samba/kcc/kcc_utils.py
+${PYSITELIB}/samba/kcc/ldif_import_export.py
+${PYSITELIB}/samba/logger.py
+${PYSITELIB}/samba/mdb_util.py
+${PYSITELIB}/samba/messaging.so
+${PYSITELIB}/samba/ms_display_specifiers.py
+${PYSITELIB}/samba/ms_forest_updates_markdown.py
+${PYSITELIB}/samba/ms_schema.py
+${PYSITELIB}/samba/ms_schema_markdown.py
+${PYSITELIB}/samba/ndr.py
+${PYSITELIB}/samba/net.so
+${PYSITELIB}/samba/net_s3.so
+${PYSITELIB}/samba/netbios.so
+${PYSITELIB}/samba/netcmd/__init__.py
+${PYSITELIB}/samba/netcmd/common.py
+${PYSITELIB}/samba/netcmd/computer.py
+${PYSITELIB}/samba/netcmd/contact.py
+${PYSITELIB}/samba/netcmd/dbcheck.py
+${PYSITELIB}/samba/netcmd/delegation.py
+${PYSITELIB}/samba/netcmd/dns.py
+${PYSITELIB}/samba/netcmd/domain.py
+${PYSITELIB}/samba/netcmd/domain_backup.py
+${PYSITELIB}/samba/netcmd/drs.py
+${PYSITELIB}/samba/netcmd/dsacl.py
+${PYSITELIB}/samba/netcmd/forest.py
+${PYSITELIB}/samba/netcmd/fsmo.py
+${PYSITELIB}/samba/netcmd/gpo.py
+${PYSITELIB}/samba/netcmd/group.py
+${PYSITELIB}/samba/netcmd/ldapcmp.py
+${PYSITELIB}/samba/netcmd/main.py
+${PYSITELIB}/samba/netcmd/nettime.py
+${PYSITELIB}/samba/netcmd/ntacl.py
+${PYSITELIB}/samba/netcmd/ou.py
+${PYSITELIB}/samba/netcmd/processes.py
+${PYSITELIB}/samba/netcmd/pso.py
+${PYSITELIB}/samba/netcmd/rodc.py
+${PYSITELIB}/samba/netcmd/schema.py
+${PYSITELIB}/samba/netcmd/sites.py
+${PYSITELIB}/samba/netcmd/spn.py
+${PYSITELIB}/samba/netcmd/testparm.py
+${PYSITELIB}/samba/netcmd/user.py
+${PYSITELIB}/samba/netcmd/visualize.py
+${PYSITELIB}/samba/ntacls.py
+${PYSITELIB}/samba/ntstatus.so
+${PYSITELIB}/samba/param.so
+${PYSITELIB}/samba/policy.so
+${PYSITELIB}/samba/posix_eadb.so
+${PYSITELIB}/samba/provision/__init__.py
+${PYSITELIB}/samba/provision/backend.py
+${PYSITELIB}/samba/provision/common.py
+${PYSITELIB}/samba/provision/kerberos.py
+${PYSITELIB}/samba/provision/kerberos_implementation.py
+${PYSITELIB}/samba/provision/sambadns.py
+${PYSITELIB}/samba/registry.so
+${PYSITELIB}/samba/remove_dc.py
+${PYSITELIB}/samba/samba3/__init__.py
+${PYSITELIB}/samba/samba3/libsmb_samba_cwrapper.so
+${PYSITELIB}/samba/samba3/libsmb_samba_internal.py
+${PYSITELIB}/samba/samba3/mdscli.so
+${PYSITELIB}/samba/samba3/param.so
+${PYSITELIB}/samba/samba3/passdb.so
+${PYSITELIB}/samba/samba3/smbd.so
+${PYSITELIB}/samba/samdb.py
+${PYSITELIB}/samba/schema.py
+${PYSITELIB}/samba/sd_utils.py
+${PYSITELIB}/samba/security.so
+${PYSITELIB}/samba/sites.py
+${PYSITELIB}/samba/subnets.py
+${PYSITELIB}/samba/subunit/__init__.py
+${PYSITELIB}/samba/subunit/run.py
+${PYSITELIB}/samba/tdb_util.py
+${PYSITELIB}/samba/tests/__init__.py
+${PYSITELIB}/samba/tests/audit_log_base.py
+${PYSITELIB}/samba/tests/audit_log_dsdb.py
+${PYSITELIB}/samba/tests/audit_log_pass_change.py
+${PYSITELIB}/samba/tests/auth.py
+${PYSITELIB}/samba/tests/auth_log.py
+${PYSITELIB}/samba/tests/auth_log_base.py
+${PYSITELIB}/samba/tests/auth_log_ncalrpc.py
+${PYSITELIB}/samba/tests/auth_log_netlogon.py
+${PYSITELIB}/samba/tests/auth_log_netlogon_bad_creds.py
+${PYSITELIB}/samba/tests/auth_log_pass_change.py
+${PYSITELIB}/samba/tests/auth_log_samlogon.py
+${PYSITELIB}/samba/tests/auth_log_winbind.py
+${PYSITELIB}/samba/tests/blackbox/__init__.py
+${PYSITELIB}/samba/tests/blackbox/bug13653.py
+${PYSITELIB}/samba/tests/blackbox/check_output.py
+${PYSITELIB}/samba/tests/blackbox/downgradedatabase.py
+${PYSITELIB}/samba/tests/blackbox/mdsearch.py
+${PYSITELIB}/samba/tests/blackbox/ndrdump.py
+${PYSITELIB}/samba/tests/blackbox/netads_json.py
+${PYSITELIB}/samba/tests/blackbox/samba_dnsupdate.py
+${PYSITELIB}/samba/tests/blackbox/smbcacls.py
+${PYSITELIB}/samba/tests/blackbox/smbcacls_basic.py
+${PYSITELIB}/samba/tests/blackbox/smbcacls_dfs_propagate_inherit.py
+${PYSITELIB}/samba/tests/blackbox/smbcacls_propagate_inhertance.py
+${PYSITELIB}/samba/tests/blackbox/smbcontrol.py
+${PYSITELIB}/samba/tests/blackbox/smbcontrol_process.py
+${PYSITELIB}/samba/tests/blackbox/traffic_learner.py
+${PYSITELIB}/samba/tests/blackbox/traffic_replay.py
+${PYSITELIB}/samba/tests/blackbox/traffic_summary.py
+${PYSITELIB}/samba/tests/common.py
+${PYSITELIB}/samba/tests/complex_expressions.py
+${PYSITELIB}/samba/tests/core.py
+${PYSITELIB}/samba/tests/cred_opt.py
+${PYSITELIB}/samba/tests/credentials.py
+${PYSITELIB}/samba/tests/dcerpc/__init__.py
+${PYSITELIB}/samba/tests/dcerpc/array.py
+${PYSITELIB}/samba/tests/dcerpc/bare.py
+${PYSITELIB}/samba/tests/dcerpc/binding.py
+${PYSITELIB}/samba/tests/dcerpc/createtrustrelax.py
+${PYSITELIB}/samba/tests/dcerpc/dnsserver.py
+${PYSITELIB}/samba/tests/dcerpc/integer.py
+${PYSITELIB}/samba/tests/dcerpc/lsa.py
+${PYSITELIB}/samba/tests/dcerpc/mdssvc.py
+${PYSITELIB}/samba/tests/dcerpc/misc.py
+${PYSITELIB}/samba/tests/dcerpc/raw_protocol.py
+${PYSITELIB}/samba/tests/dcerpc/raw_testcase.py
+${PYSITELIB}/samba/tests/dcerpc/registry.py
+${PYSITELIB}/samba/tests/dcerpc/rpc_talloc.py
+${PYSITELIB}/samba/tests/dcerpc/rpcecho.py
+${PYSITELIB}/samba/tests/dcerpc/sam.py
+${PYSITELIB}/samba/tests/dcerpc/samr_change_password.py
+${PYSITELIB}/samba/tests/dcerpc/srvsvc.py
+${PYSITELIB}/samba/tests/dcerpc/string_tests.py
+${PYSITELIB}/samba/tests/dcerpc/testrpc.py
+${PYSITELIB}/samba/tests/dcerpc/unix.py
+${PYSITELIB}/samba/tests/dckeytab.py
+${PYSITELIB}/samba/tests/dns.py
+${PYSITELIB}/samba/tests/dns_aging.py
+${PYSITELIB}/samba/tests/dns_base.py
+${PYSITELIB}/samba/tests/dns_forwarder.py
+${PYSITELIB}/samba/tests/dns_forwarder_helpers/server.py
+${PYSITELIB}/samba/tests/dns_invalid.py
+${PYSITELIB}/samba/tests/dns_packet.py
+${PYSITELIB}/samba/tests/dns_tkey.py
+${PYSITELIB}/samba/tests/dns_wildcard.py
+${PYSITELIB}/samba/tests/docs.py
+${PYSITELIB}/samba/tests/domain_backup.py
+${PYSITELIB}/samba/tests/domain_backup_offline.py
+${PYSITELIB}/samba/tests/dsdb.py
+${PYSITELIB}/samba/tests/dsdb_api.py
+${PYSITELIB}/samba/tests/dsdb_dns.py
+${PYSITELIB}/samba/tests/dsdb_lock.py
+${PYSITELIB}/samba/tests/dsdb_schema_attributes.py
+${PYSITELIB}/samba/tests/emulate/__init__.py
+${PYSITELIB}/samba/tests/emulate/traffic.py
+${PYSITELIB}/samba/tests/emulate/traffic_packet.py
+${PYSITELIB}/samba/tests/encrypted_secrets.py
+${PYSITELIB}/samba/tests/gensec.py
+${PYSITELIB}/samba/tests/get_opt.py
+${PYSITELIB}/samba/tests/getdcname.py
+${PYSITELIB}/samba/tests/glue.py
+${PYSITELIB}/samba/tests/gpo.py
+${PYSITELIB}/samba/tests/gpo_member.py
+${PYSITELIB}/samba/tests/graph.py
+${PYSITELIB}/samba/tests/group_audit.py
+${PYSITELIB}/samba/tests/hostconfig.py
+${PYSITELIB}/samba/tests/imports.py
+${PYSITELIB}/samba/tests/join.py
+${PYSITELIB}/samba/tests/kcc/__init__.py
+${PYSITELIB}/samba/tests/kcc/graph.py
+${PYSITELIB}/samba/tests/kcc/graph_utils.py
+${PYSITELIB}/samba/tests/kcc/kcc_utils.py
+${PYSITELIB}/samba/tests/kcc/ldif_import_export.py
+${PYSITELIB}/samba/tests/krb5/alias_tests.py
+${PYSITELIB}/samba/tests/krb5/as_canonicalization_tests.py
+${PYSITELIB}/samba/tests/krb5/as_req_tests.py
+${PYSITELIB}/samba/tests/krb5/compatability_tests.py
+${PYSITELIB}/samba/tests/krb5/fast_tests.py
+${PYSITELIB}/samba/tests/krb5/kcrypto.py
+${PYSITELIB}/samba/tests/krb5/kdc_base_test.py
+${PYSITELIB}/samba/tests/krb5/kdc_tests.py
+${PYSITELIB}/samba/tests/krb5/kdc_tgs_tests.py
+${PYSITELIB}/samba/tests/krb5/ms_kile_client_principal_lookup_tests.py
+${PYSITELIB}/samba/tests/krb5/raw_testcase.py
+${PYSITELIB}/samba/tests/krb5/rfc4120_constants.py
+${PYSITELIB}/samba/tests/krb5/rfc4120_pyasn1.py
+${PYSITELIB}/samba/tests/krb5/rodc_tests.py
+${PYSITELIB}/samba/tests/krb5/s4u_tests.py
+${PYSITELIB}/samba/tests/krb5/salt_tests.py
+${PYSITELIB}/samba/tests/krb5/simple_tests.py
+${PYSITELIB}/samba/tests/krb5/spn_tests.py
+${PYSITELIB}/samba/tests/krb5/test_ccache.py
+${PYSITELIB}/samba/tests/krb5/test_idmap_nss.py
+${PYSITELIB}/samba/tests/krb5/test_ldap.py
+${PYSITELIB}/samba/tests/krb5/test_min_domain_uid.py
+${PYSITELIB}/samba/tests/krb5/test_rpc.py
+${PYSITELIB}/samba/tests/krb5/test_smb.py
+${PYSITELIB}/samba/tests/krb5/xrealm_tests.py
+${PYSITELIB}/samba/tests/krb5_credentials.py
+${PYSITELIB}/samba/tests/ldap_raw.py
+${PYSITELIB}/samba/tests/ldap_referrals.py
+${PYSITELIB}/samba/tests/ldap_spn.py
+${PYSITELIB}/samba/tests/ldap_upn_sam_account.py
+${PYSITELIB}/samba/tests/libsmb.py
+${PYSITELIB}/samba/tests/loadparm.py
+${PYSITELIB}/samba/tests/lsa_string.py
+${PYSITELIB}/samba/tests/messaging.py
+${PYSITELIB}/samba/tests/ndr.py
+${PYSITELIB}/samba/tests/net_join.py
+${PYSITELIB}/samba/tests/net_join_no_spnego.py
+${PYSITELIB}/samba/tests/netbios.py
+${PYSITELIB}/samba/tests/netcmd.py
+${PYSITELIB}/samba/tests/netlogonsvc.py
+${PYSITELIB}/samba/tests/ntacls.py
+${PYSITELIB}/samba/tests/ntacls_backup.py
+${PYSITELIB}/samba/tests/ntlm_auth.py
+${PYSITELIB}/samba/tests/ntlm_auth_base.py
+${PYSITELIB}/samba/tests/ntlm_auth_krb5.py
+${PYSITELIB}/samba/tests/ntlmdisabled.py
+${PYSITELIB}/samba/tests/pam_winbind.py
+${PYSITELIB}/samba/tests/pam_winbind_chauthtok.py
+${PYSITELIB}/samba/tests/pam_winbind_warn_pwd_expire.py
+${PYSITELIB}/samba/tests/param.py
+${PYSITELIB}/samba/tests/password_hash.py
+${PYSITELIB}/samba/tests/password_hash_fl2003.py
+${PYSITELIB}/samba/tests/password_hash_fl2008.py
+${PYSITELIB}/samba/tests/password_hash_gpgme.py
+${PYSITELIB}/samba/tests/password_hash_ldap.py
+${PYSITELIB}/samba/tests/password_quality.py
+${PYSITELIB}/samba/tests/password_test.py
+${PYSITELIB}/samba/tests/policy.py
+${PYSITELIB}/samba/tests/posixacl.py
+${PYSITELIB}/samba/tests/prefork_restart.py
+${PYSITELIB}/samba/tests/process_limits.py
+${PYSITELIB}/samba/tests/provision.py
+${PYSITELIB}/samba/tests/pso.py
+${PYSITELIB}/samba/tests/py_credentials.py
+${PYSITELIB}/samba/tests/registry.py
+${PYSITELIB}/samba/tests/s3_net_join.py
+${PYSITELIB}/samba/tests/s3idmapdb.py
+${PYSITELIB}/samba/tests/s3param.py
+${PYSITELIB}/samba/tests/s3passdb.py
+${PYSITELIB}/samba/tests/s3registry.py
+${PYSITELIB}/samba/tests/s3windb.py
+${PYSITELIB}/samba/tests/samba3sam.py
+${PYSITELIB}/samba/tests/samba_tool/__init__.py
+${PYSITELIB}/samba/tests/samba_tool/base.py
+${PYSITELIB}/samba/tests/samba_tool/computer.py
+${PYSITELIB}/samba/tests/samba_tool/contact.py
+${PYSITELIB}/samba/tests/samba_tool/demote.py
+${PYSITELIB}/samba/tests/samba_tool/dnscmd.py
+${PYSITELIB}/samba/tests/samba_tool/drs_clone_dc_data_lmdb_size.py
+${PYSITELIB}/samba/tests/samba_tool/dsacl.py
+${PYSITELIB}/samba/tests/samba_tool/forest.py
+${PYSITELIB}/samba/tests/samba_tool/fsmo.py
+${PYSITELIB}/samba/tests/samba_tool/gpo.py
+${PYSITELIB}/samba/tests/samba_tool/gpo_exts.py
+${PYSITELIB}/samba/tests/samba_tool/group.py
+${PYSITELIB}/samba/tests/samba_tool/help.py
+${PYSITELIB}/samba/tests/samba_tool/join.py
+${PYSITELIB}/samba/tests/samba_tool/join_lmdb_size.py
+${PYSITELIB}/samba/tests/samba_tool/ntacl.py
+${PYSITELIB}/samba/tests/samba_tool/ou.py
+${PYSITELIB}/samba/tests/samba_tool/passwordsettings.py
+${PYSITELIB}/samba/tests/samba_tool/processes.py
+${PYSITELIB}/samba/tests/samba_tool/promote_dc_lmdb_size.py
+${PYSITELIB}/samba/tests/samba_tool/provision_lmdb_size.py
+${PYSITELIB}/samba/tests/samba_tool/provision_password_check.py
+${PYSITELIB}/samba/tests/samba_tool/provision_userPassword_crypt.py
+${PYSITELIB}/samba/tests/samba_tool/rodc.py
+${PYSITELIB}/samba/tests/samba_tool/schema.py
+${PYSITELIB}/samba/tests/samba_tool/sites.py
+${PYSITELIB}/samba/tests/samba_tool/timecmd.py
+${PYSITELIB}/samba/tests/samba_tool/user.py
+${PYSITELIB}/samba/tests/samba_tool/user_check_password_script.py
+${PYSITELIB}/samba/tests/samba_tool/user_virtualCryptSHA.py
+${PYSITELIB}/samba/tests/samba_tool/user_virtualCryptSHA_base.py
+${PYSITELIB}/samba/tests/samba_tool/user_virtualCryptSHA_gpg.py
+${PYSITELIB}/samba/tests/samba_tool/user_virtualCryptSHA_userPassword.py
+${PYSITELIB}/samba/tests/samba_tool/user_wdigest.py
+${PYSITELIB}/samba/tests/samba_tool/visualize.py
+${PYSITELIB}/samba/tests/samba_tool/visualize_drs.py
+${PYSITELIB}/samba/tests/samba_upgradedns_lmdb.py
+${PYSITELIB}/samba/tests/samdb.py
+${PYSITELIB}/samba/tests/samdb_api.py
+${PYSITELIB}/samba/tests/sddl.py
+${PYSITELIB}/samba/tests/security.py
+${PYSITELIB}/samba/tests/segfault.py
+${PYSITELIB}/samba/tests/smb-notify.py
+${PYSITELIB}/samba/tests/smb.py
+${PYSITELIB}/samba/tests/smbd_base.py
+${PYSITELIB}/samba/tests/smbd_fuzztest.py
+${PYSITELIB}/samba/tests/source.py
+${PYSITELIB}/samba/tests/strings.py
+${PYSITELIB}/samba/tests/subunitrun.py
+${PYSITELIB}/samba/tests/tdb_util.py
+${PYSITELIB}/samba/tests/upgrade.py
+${PYSITELIB}/samba/tests/upgradeprovision.py
+${PYSITELIB}/samba/tests/upgradeprovisionneeddc.py
+${PYSITELIB}/samba/tests/usage.py
+${PYSITELIB}/samba/tests/xattr.py
+${PYSITELIB}/samba/trust_utils.py
+${PYSITELIB}/samba/upgrade.py
+${PYSITELIB}/samba/upgradehelpers.py
+${PYSITELIB}/samba/uptodateness.py
+${PYSITELIB}/samba/vgp_access_ext.py
+${PYSITELIB}/samba/vgp_files_ext.py
+${PYSITELIB}/samba/vgp_issue_ext.py
+${PYSITELIB}/samba/vgp_motd_ext.py
+${PYSITELIB}/samba/vgp_openssh_ext.py
+${PYSITELIB}/samba/vgp_startup_scripts_ext.py
+${PYSITELIB}/samba/vgp_sudoers_ext.py
+${PYSITELIB}/samba/vgp_symlink_ext.py
+${PYSITELIB}/samba/werror.so
+${PYSITELIB}/samba/xattr.py
+${PYSITELIB}/samba/xattr_native.so
+${PYSITELIB}/samba/xattr_tdb.so
+${PLIST.ads}lib/samba/bind9/dlz_bind9_10.so
+${PLIST.ads}lib/samba/bind9/dlz_bind9_11.so
+${PLIST.ads}lib/samba/bind9/dlz_bind9_12.so
+${PLIST.ads}lib/samba/bind9/dlz_bind9_14.so
+${PLIST.ads}lib/samba/bind9/dlz_bind9_16.so
+${PLIST.ads}lib/samba/gensec/krb5.so
+${PLIST.ads}lib/samba/idmap/ad.so
+lib/samba/idmap/autorid.so
+lib/samba/idmap/hash.so
+${PLIST.ads}lib/samba/idmap/rfc2307.so
+lib/samba/idmap/rid.so
+lib/samba/idmap/script.so
+lib/samba/idmap/tdb2.so
+lib/samba/krb5/async_dns_krb5_locator.so
+lib/samba/krb5/winbind_krb5_locator.so
+${PLIST.ads}lib/samba/ldb/acl.so
+${PLIST.ads}lib/samba/ldb/aclread.so
+${PLIST.ads}lib/samba/ldb/anr.so
+${PLIST.ads}lib/samba/ldb/audit_log.so
+${PLIST.ads}lib/samba/ldb/count_attrs.so
+${PLIST.ads}lib/samba/ldb/descriptor.so
+${PLIST.ads}lib/samba/ldb/dirsync.so
+${PLIST.ads}lib/samba/ldb/dns_notify.so
+${PLIST.ads}lib/samba/ldb/dsdb_notification.so
+${PLIST.ads}lib/samba/ldb/encrypted_secrets.so
+${PLIST.ads}lib/samba/ldb/extended_dn_in.so
+${PLIST.ads}lib/samba/ldb/extended_dn_out.so
+${PLIST.ads}lib/samba/ldb/extended_dn_store.so
+${PLIST.ads}lib/samba/ldb/group_audit_log.so
+lib/samba/ldb/ildap.so
+${PLIST.ads}lib/samba/ldb/instancetype.so
+${PLIST.ads}lib/samba/ldb/lazy_commit.so
+lib/samba/ldb/ldbsamba_extensions.so
+${PLIST.ads}lib/samba/ldb/linked_attributes.so
+${PLIST.ads}lib/samba/ldb/new_partition.so
+${PLIST.ads}lib/samba/ldb/objectclass.so
+${PLIST.ads}lib/samba/ldb/objectclass_attrs.so
+${PLIST.ads}lib/samba/ldb/objectguid.so
+${PLIST.ads}lib/samba/ldb/operational.so
+${PLIST.ads}lib/samba/ldb/paged_results.so
+${PLIST.ads}lib/samba/ldb/partition.so
+${PLIST.ads}lib/samba/ldb/password_hash.so
+${PLIST.ads}lib/samba/ldb/ranged_results.so
+${PLIST.ads}lib/samba/ldb/repl_meta_data.so
+${PLIST.ads}lib/samba/ldb/resolve_oids.so
+${PLIST.ads}lib/samba/ldb/rootdse.so
+${PLIST.ads}lib/samba/ldb/samba3sam.so
+${PLIST.ads}lib/samba/ldb/samba3sid.so
+${PLIST.ads}lib/samba/ldb/samba_dsdb.so
+${PLIST.ads}lib/samba/ldb/samba_secrets.so
+${PLIST.ads}lib/samba/ldb/samldb.so
+${PLIST.ads}lib/samba/ldb/schema_data.so
+${PLIST.ads}lib/samba/ldb/schema_load.so
+${PLIST.ads}lib/samba/ldb/secrets_tdb_sync.so
+${PLIST.ads}lib/samba/ldb/show_deleted.so
+${PLIST.ads}lib/samba/ldb/subtree_delete.so
+${PLIST.ads}lib/samba/ldb/subtree_rename.so
+${PLIST.ads}lib/samba/ldb/tombstone_reanimate.so
+${PLIST.ads}lib/samba/ldb/unique_object_sids.so
+${PLIST.ads}lib/samba/ldb/update_keytab.so
+${PLIST.ads}lib/samba/ldb/vlv.so
+${PLIST.ads}lib/samba/ldb/wins_ldb.so
+lib/samba/nss_info/hash.so
+${PLIST.ads}lib/samba/nss_info/rfc2307.so
+${PLIST.ads}lib/samba/nss_info/sfu.so
+${PLIST.ads}lib/samba/nss_info/sfu20.so
+lib/samba/private/libCHARSET3-samba4.so
+${PLIST.ads}lib/samba/private/libHDB-SAMBA4-samba4.so
+lib/samba/private/libLIBWBCLIENT-OLD-samba4.so
+lib/samba/private/libMESSAGING-SEND-samba4.so
+lib/samba/private/libMESSAGING-samba4.so
+lib/samba/private/libaddns-samba4.so
+lib/samba/private/libads-samba4.so
+lib/samba/private/libasn1-samba4.so.8
+lib/samba/private/libasn1-samba4.so.8.0.0
+lib/samba/private/libasn1util-samba4.so
+lib/samba/private/libauth-samba4.so
+lib/samba/private/libauth-unix-token-samba4.so
+lib/samba/private/libauth4-samba4.so
+lib/samba/private/libauthkrb5-samba4.so
+lib/samba/private/libcli-cldap-samba4.so
+lib/samba/private/libcli-ldap-common-samba4.so
+lib/samba/private/libcli-ldap-samba4.so
+lib/samba/private/libcli-nbt-samba4.so
+lib/samba/private/libcli-smb-common-samba4.so
+lib/samba/private/libcli-spoolss-samba4.so
+lib/samba/private/libcliauth-samba4.so
+lib/samba/private/libclidns-samba4.so
+lib/samba/private/libcluster-samba4.so
+lib/samba/private/libcmdline-contexts-samba4.so
+lib/samba/private/libcmdline-samba4.so
+lib/samba/private/libcom_err-samba4.so.0
+lib/samba/private/libcom_err-samba4.so.0.25
+lib/samba/private/libcommon-auth-samba4.so
+${PLIST.ads}lib/samba/private/libdb-glue-samba4.so
+lib/samba/private/libdbwrap-samba4.so
+lib/samba/private/libdcerpc-pkt-auth-samba4.so
+lib/samba/private/libdcerpc-samba-samba4.so
+lib/samba/private/libdcerpc-samba4.so
+${PLIST.ads}lib/samba/private/libdfs-server-ad-samba4.so
+${PLIST.ads}lib/samba/private/libdlz-bind9-for-torture-samba4.so
+lib/samba/private/libdnsserver-common-samba4.so
+${PLIST.ads}lib/samba/private/libdsdb-garbage-collect-tombstones-samba4.so
+lib/samba/private/libdsdb-module-samba4.so
+lib/samba/private/libevents-samba4.so
+lib/samba/private/libflag-mapping-samba4.so
+lib/samba/private/libgenrand-samba4.so
+lib/samba/private/libgensec-samba4.so
+lib/samba/private/libgpext-samba4.so
+lib/samba/private/libgpo-samba4.so
+lib/samba/private/libgse-samba4.so
+lib/samba/private/libgssapi-samba4.so.2
+lib/samba/private/libgssapi-samba4.so.2.0.0
+lib/samba/private/libhcrypto-samba4.so.5
+lib/samba/private/libhcrypto-samba4.so.5.0.1
+lib/samba/private/libhdb-samba4.so.11
+lib/samba/private/libhdb-samba4.so.11.0.2
+lib/samba/private/libheimbase-samba4.so.1
+lib/samba/private/libheimbase-samba4.so.1.0.0
+lib/samba/private/libheimntlm-samba4.so.1
+lib/samba/private/libheimntlm-samba4.so.1.0.1
+lib/samba/private/libhttp-samba4.so
+lib/samba/private/libhx509-samba4.so.5
+lib/samba/private/libhx509-samba4.so.5.0.0
+lib/samba/private/libidmap-samba4.so
+lib/samba/private/libinterfaces-samba4.so
+lib/samba/private/libiov-buf-samba4.so
+lib/samba/private/libkdc-samba4.so.2
+lib/samba/private/libkdc-samba4.so.2.0.0
+lib/samba/private/libkrb5-samba4.so.26
+lib/samba/private/libkrb5-samba4.so.26.0.0
+lib/samba/private/libkrb5samba-samba4.so
+lib/samba/private/libldbsamba-samba4.so
+lib/samba/private/liblibcli-lsa3-samba4.so
+lib/samba/private/liblibcli-netlogon3-samba4.so
+lib/samba/private/liblibsmb-samba4.so
+lib/samba/private/libmessages-dgm-samba4.so
+lib/samba/private/libmessages-util-samba4.so
+lib/samba/private/libmscat-samba4.so
+lib/samba/private/libmsghdr-samba4.so
+lib/samba/private/libmsrpc3-samba4.so
+lib/samba/private/libndr-samba-samba4.so
+lib/samba/private/libndr-samba4.so
+lib/samba/private/libnet-keytab-samba4.so
+lib/samba/private/libnetif-samba4.so
+lib/samba/private/libnpa-tstream-samba4.so
+lib/samba/private/libnss-info-samba4.so
+${PLIST.ads}lib/samba/private/libpac-samba4.so
+lib/samba/private/libposix-eadb-samba4.so
+lib/samba/private/libprinter-driver-samba4.so
+lib/samba/private/libprinting-migrate-samba4.so
+${PLIST.ads}lib/samba/private/libprocess-model-samba4.so
+lib/samba/private/libregistry-samba4.so
+lib/samba/private/libreplace-samba4.so
+lib/samba/private/libroken-samba4.so.19
+lib/samba/private/libroken-samba4.so.19.0.1
+lib/samba/private/libsamba-cluster-support-samba4.so
+lib/samba/private/libsamba-debug-samba4.so
+lib/samba/private/libsamba-modules-samba4.so
+lib/samba/private/libsamba-net-samba4.so
+lib/samba/private/libsamba-python-samba4.so
+lib/samba/private/libsamba-security-samba4.so
+lib/samba/private/libsamba-sockets-samba4.so
+lib/samba/private/libsamba3-util-samba4.so
+lib/samba/private/libsamdb-common-samba4.so
+${PLIST.ads}lib/samba/private/libscavenge-dns-records-samba4.so
+lib/samba/private/libsecrets3-samba4.so
+lib/samba/private/libserver-id-db-samba4.so
+lib/samba/private/libserver-role-samba4.so
+${PLIST.ads}lib/samba/private/libservice-samba4.so
+lib/samba/private/libshares-samba4.so
+lib/samba/private/libsmb-transport-samba4.so
+lib/samba/private/libsmbclient-raw-samba4.so
+lib/samba/private/libsmbd-base-samba4.so
+lib/samba/private/libsmbd-shim-samba4.so
+${PLIST.ldap}lib/samba/private/libsmbldaphelper-samba4.so
+lib/samba/private/libsmbpasswdparser-samba4.so
+lib/samba/private/libsocket-blocking-samba4.so
+lib/samba/private/libsys-rw-samba4.so
+lib/samba/private/libtalloc-report-printf-samba4.so
+lib/samba/private/libtalloc-report-samba4.so
+lib/samba/private/libtdb-wrap-samba4.so
+lib/samba/private/libtime-basic-samba4.so
+lib/samba/private/libtorture-samba4.so
+lib/samba/private/libtrusts-util-samba4.so
+lib/samba/private/libutil-reg-samba4.so
+lib/samba/private/libutil-setid-samba4.so
+lib/samba/private/libutil-tdb-samba4.so
+lib/samba/private/libwinbind-client-samba4.so
+lib/samba/private/libwind-samba4.so.0
+lib/samba/private/libwind-samba4.so.0.0.0
+lib/samba/private/libxattr-tdb-samba4.so
+${PLIST.ads}lib/samba/process_model/prefork.so
+${PLIST.ads}lib/samba/process_model/standard.so
+${PLIST.pam}lib/samba/security/pam_winbind.so
+${PLIST.ads}lib/samba/service/cldap.so
+${PLIST.ads}lib/samba/service/dcerpc.so
+${PLIST.ads}lib/samba/service/dns.so
+${PLIST.ads}lib/samba/service/dns_update.so
+${PLIST.ads}lib/samba/service/drepl.so
+${PLIST.ads}lib/samba/service/kcc.so
+${PLIST.ads}lib/samba/service/kdc.so
+${PLIST.ads}lib/samba/service/ldap.so
+${PLIST.ads}lib/samba/service/nbtd.so
+${PLIST.ads}lib/samba/service/ntp_signd.so
+${PLIST.ads}lib/samba/service/s3fs.so
+${PLIST.ads}lib/samba/service/winbindd.so
+${PLIST.ads}lib/samba/service/wrepl.so
+lib/samba/vfs/acl_tdb.so
+lib/samba/vfs/acl_xattr.so
+lib/samba/vfs/aio_fork.so
+lib/samba/vfs/aio_pthread.so
+lib/samba/vfs/audit.so
+lib/samba/vfs/cap.so
+lib/samba/vfs/catia.so
+lib/samba/vfs/commit.so
+lib/samba/vfs/crossrename.so
+lib/samba/vfs/default_quota.so
+lib/samba/vfs/dirsort.so
+lib/samba/vfs/expand_msdfs.so
+lib/samba/vfs/extd_audit.so
+lib/samba/vfs/fake_perms.so
+lib/samba/vfs/fruit.so
+lib/samba/vfs/full_audit.so
+lib/samba/vfs/linux_xfs_sgid.so
+lib/samba/vfs/media_harmony.so
+lib/samba/vfs/offline.so
+${PLIST.ads}lib/samba/vfs/posix_eadb.so
+lib/samba/vfs/preopen.so
+lib/samba/vfs/readahead.so
+lib/samba/vfs/readonly.so
+lib/samba/vfs/recycle.so
+lib/samba/vfs/shadow_copy.so
+lib/samba/vfs/shadow_copy2.so
+lib/samba/vfs/shell_snap.so
+${PLIST.snapper}lib/samba/vfs/snapper.so
+lib/samba/vfs/streams_depot.so
+lib/samba/vfs/streams_xattr.so
+lib/samba/vfs/syncops.so
+lib/samba/vfs/time_audit.so
+lib/samba/vfs/unityed_media.so
+lib/samba/vfs/virusfilter.so
+lib/samba/vfs/widelinks.so
+lib/samba/vfs/worm.so
+lib/samba/vfs/xattr_tdb.so
+libexec/samba/samba-bgqd
+${PLIST.cups}libexec/samba/smbspool_krb5_wrapper
+man/man1/dbwrap_tool.1
+man/man1/gentest.1
+man/man1/locktest.1
+man/man1/log2pcap.1
+man/man1/masktest.1
+man/man1/mdsearch.1
+man/man1/mvxattr.1
+man/man1/ndrdump.1
+man/man1/nmblookup.1
+man/man1/ntlm_auth.1
+man/man1/oLschema2ldif.1
+man/man1/profiles.1
+man/man1/regdiff.1
+man/man1/regpatch.1
+man/man1/regshell.1
+man/man1/regtree.1
+man/man1/rpcclient.1
+man/man1/sharesec.1
+man/man1/smbcacls.1
+man/man1/smbclient.1
+man/man1/smbcontrol.1
+man/man1/smbcquotas.1
+man/man1/smbget.1
+man/man1/smbstatus.1
+man/man1/smbtar.1
+man/man1/smbtorture.1
+man/man1/smbtree.1
+man/man1/testparm.1
+man/man1/vfstest.1
+man/man1/wbinfo.1
+man/man5/lmhosts.5
+${PLIST.pam}man/man5/pam_winbind.conf.5
+man/man5/smb.conf.5
+man/man5/smbgetrc.5
+man/man5/smbpasswd.5
+man/man7/libsmbclient.7
+man/man7/samba.7
+man/man7/traffic_learner.7
+man/man7/traffic_replay.7
+man/man8/cifsdd.8
+man/man8/eventlogadm.8
+man/man8/idmap_ad.8
+man/man8/idmap_autorid.8
+man/man8/idmap_hash.8
+man/man8/idmap_ldap.8
+man/man8/idmap_nss.8
+man/man8/idmap_rfc2307.8
+man/man8/idmap_rid.8
+man/man8/idmap_script.8
+man/man8/idmap_tdb.8
+man/man8/idmap_tdb2.8
+man/man8/net.8
+man/man8/nmbd.8
+${PLIST.pam}man/man8/pam_winbind.8
+man/man8/pdbedit.8
+man/man8/samba-bgqd.8
+man/man8/samba-gpupdate.8
+man/man8/samba-regedit.8
+man/man8/samba-tool.8
+man/man8/samba.8
+man/man8/samba_downgrade_db.8
+man/man8/smbd.8
+man/man8/smbpasswd.8
+man/man8/smbspool.8
+man/man8/smbspool_krb5_wrapper.8
+man/man8/vfs_acl_tdb.8
+man/man8/vfs_acl_xattr.8
+man/man8/vfs_aio_fork.8
+man/man8/vfs_aio_pthread.8
+man/man8/vfs_audit.8
+man/man8/vfs_cap.8
+man/man8/vfs_catia.8
+man/man8/vfs_commit.8
+man/man8/vfs_crossrename.8
+man/man8/vfs_default_quota.8
+man/man8/vfs_dirsort.8
+man/man8/vfs_extd_audit.8
+man/man8/vfs_fake_perms.8
+man/man8/vfs_fruit.8
+man/man8/vfs_full_audit.8
+man/man8/vfs_linux_xfs_sgid.8
+man/man8/vfs_media_harmony.8
+man/man8/vfs_offline.8
+man/man8/vfs_preopen.8
+man/man8/vfs_readahead.8
+man/man8/vfs_readonly.8
+man/man8/vfs_recycle.8
+man/man8/vfs_shadow_copy.8
+man/man8/vfs_shadow_copy2.8
+man/man8/vfs_shell_snap.8
+${PLIST.snapper}man/man8/vfs_snapper.8
+man/man8/vfs_streams_depot.8
+man/man8/vfs_streams_xattr.8
+man/man8/vfs_syncops.8
+man/man8/vfs_time_audit.8
+man/man8/vfs_unityed_media.8
+man/man8/vfs_virusfilter.8
+man/man8/vfs_widelinks.8
+man/man8/vfs_worm.8
+man/man8/vfs_xattr_tdb.8
+man/man8/winbind_krb5_locator.8
+man/man8/winbindd.8
+sbin/eventlogadm
+sbin/nmbd
+${PLIST.ads}sbin/samba
+sbin/samba-gpupdate
+${PLIST.ads}sbin/samba_dnsupdate
+${PLIST.ads}sbin/samba_downgrade_db
+${PLIST.ads}sbin/samba_kcc
+${PLIST.ads}sbin/samba_spnupdate
+${PLIST.ads}sbin/samba_upgradedns
+sbin/smbd
+${PLIST.winbind}sbin/winbindd
+share/doc/samba/NT4-Locking.reg
+share/doc/samba/NT4_PlainPassword.reg
+share/doc/samba/Win-2Kx-XPP-DeleteCachedProfiles.reg
+share/doc/samba/Win-2Kx-XPP-ForceLocalProfile.reg
+share/doc/samba/Win-NT-DeleteRoamingProfile.reg
+share/doc/samba/Win2000_PlainPassword.reg
+share/doc/samba/Win7_Samba3DomainMember.reg
+share/doc/samba/Win95_PlainPassword.reg
+share/doc/samba/Win98_PlainPassword.reg
+share/doc/samba/Win9X-CacheHandling.reg
+share/doc/samba/WinME_PlainPassword.reg
+share/doc/samba/WinXP_PlainPassword.reg
+share/doc/samba/WindowsTerminalServer.reg
+share/examples/samba/adduser.sh
+share/examples/samba/deluser.sh
+share/examples/samba/samba.schema
+share/examples/samba/smb.conf.default
+${PLIST.ads}share/samba/samba/admx/en-US/samba.adml
+${PLIST.ads}share/samba/samba/admx/samba.admx
+${PLIST.ads}share/samba/setup/ad-schema/AD_DS_Attributes__Windows_Server_2012_R2.ldf
+${PLIST.ads}share/samba/setup/ad-schema/AD_DS_Attributes__Windows_Server_2016.ldf
+${PLIST.ads}share/samba/setup/ad-schema/AD_DS_Classes__Windows_Server_2012_R2.ldf
+${PLIST.ads}share/samba/setup/ad-schema/AD_DS_Classes__Windows_Server_2016.ldf
+${PLIST.ads}share/samba/setup/ad-schema/Attributes_for_AD_DS__Windows_Server_2008_R2.ldf
+${PLIST.ads}share/samba/setup/ad-schema/Attributes_for_AD_DS__Windows_Server_2012.ldf
+${PLIST.ads}share/samba/setup/ad-schema/Classes_for_AD_DS__Windows_Server_2008_R2.ldf
+${PLIST.ads}share/samba/setup/ad-schema/Classes_for_AD_DS__Windows_Server_2012.ldf
+${PLIST.ads}share/samba/setup/ad-schema/MS-AD_Schema_2K8_Attributes.txt
+${PLIST.ads}share/samba/setup/ad-schema/MS-AD_Schema_2K8_Classes.txt
+${PLIST.ads}share/samba/setup/ad-schema/MS-AD_Schema_2K8_R2_Attributes.txt
+${PLIST.ads}share/samba/setup/ad-schema/MS-AD_Schema_2K8_R2_Classes.txt
+${PLIST.ads}share/samba/setup/ad-schema/licence.txt
+${PLIST.ads}share/samba/setup/adprep/WindowsServerDocs/Forest-Wide-Updates.md
+${PLIST.ads}share/samba/setup/adprep/WindowsServerDocs/Sch49.ldf.diff
+${PLIST.ads}share/samba/setup/adprep/WindowsServerDocs/Sch50.ldf.diff
+${PLIST.ads}share/samba/setup/adprep/WindowsServerDocs/Sch51.ldf.diff
+${PLIST.ads}share/samba/setup/adprep/WindowsServerDocs/Sch57.ldf.diff
+${PLIST.ads}share/samba/setup/adprep/WindowsServerDocs/Sch59.ldf.diff
+${PLIST.ads}share/samba/setup/adprep/WindowsServerDocs/Schema-Updates.md
+${PLIST.ads}share/samba/setup/adprep/fix-forest-rev.ldf
+${PLIST.ads}share/samba/setup/aggregate_schema.ldif
+${PLIST.ads}share/samba/setup/display-specifiers/DisplaySpecifiers-Win2k0.txt
+${PLIST.ads}share/samba/setup/display-specifiers/DisplaySpecifiers-Win2k3.txt
+${PLIST.ads}share/samba/setup/display-specifiers/DisplaySpecifiers-Win2k3R2.txt
+${PLIST.ads}share/samba/setup/display-specifiers/DisplaySpecifiers-Win2k8.txt
+${PLIST.ads}share/samba/setup/display-specifiers/DisplaySpecifiers-Win2k8R2.txt
+${PLIST.ads}share/samba/setup/dns_update_list
+${PLIST.ads}share/samba/setup/extended-rights.ldif
+${PLIST.ads}share/samba/setup/idmap_init.ldif
+${PLIST.ads}share/samba/setup/krb5.conf
+${PLIST.ads}share/samba/setup/named.conf
+${PLIST.ads}share/samba/setup/named.conf.dlz
+${PLIST.ads}share/samba/setup/named.conf.update
+${PLIST.ads}share/samba/setup/named.txt
+${PLIST.ads}share/samba/setup/prefixMap.txt
+${PLIST.ads}share/samba/setup/provision.ldif
+${PLIST.ads}share/samba/setup/provision.reg
+${PLIST.ads}share/samba/setup/provision.zone
+${PLIST.ads}share/samba/setup/provision_basedn.ldif
+${PLIST.ads}share/samba/setup/provision_basedn_modify.ldif
+${PLIST.ads}share/samba/setup/provision_basedn_options.ldif
+${PLIST.ads}share/samba/setup/provision_basedn_references.ldif
+${PLIST.ads}share/samba/setup/provision_computers_add.ldif
+${PLIST.ads}share/samba/setup/provision_computers_modify.ldif
+${PLIST.ads}share/samba/setup/provision_configuration.ldif
+${PLIST.ads}share/samba/setup/provision_configuration_basedn.ldif
+${PLIST.ads}share/samba/setup/provision_configuration_modify.ldif
+${PLIST.ads}share/samba/setup/provision_configuration_references.ldif
+${PLIST.ads}share/samba/setup/provision_dns_accounts_add.ldif
+${PLIST.ads}share/samba/setup/provision_dns_add_samba.ldif
+${PLIST.ads}share/samba/setup/provision_dnszones_add.ldif
+${PLIST.ads}share/samba/setup/provision_dnszones_modify.ldif
+${PLIST.ads}share/samba/setup/provision_dnszones_partitions.ldif
+${PLIST.ads}share/samba/setup/provision_group_policy.ldif
+${PLIST.ads}share/samba/setup/provision_init.ldif
+${PLIST.ads}share/samba/setup/provision_partitions.ldif
+${PLIST.ads}share/samba/setup/provision_privilege.ldif
+${PLIST.ads}share/samba/setup/provision_rootdse_add.ldif
+${PLIST.ads}share/samba/setup/provision_rootdse_modify.ldif
+${PLIST.ads}share/samba/setup/provision_schema_basedn.ldif
+${PLIST.ads}share/samba/setup/provision_schema_basedn_modify.ldif
+${PLIST.ads}share/samba/setup/provision_self_join.ldif
+${PLIST.ads}share/samba/setup/provision_self_join_config.ldif
+${PLIST.ads}share/samba/setup/provision_self_join_modify.ldif
+${PLIST.ads}share/samba/setup/provision_self_join_modify_config.ldif
+${PLIST.ads}share/samba/setup/provision_self_join_modify_schema.ldif
+${PLIST.ads}share/samba/setup/provision_users.ldif
+${PLIST.ads}share/samba/setup/provision_users_add.ldif
+${PLIST.ads}share/samba/setup/provision_users_modify.ldif
+${PLIST.ads}share/samba/setup/provision_well_known_sec_princ.ldif
+${PLIST.ads}share/samba/setup/schema_samba4.ldif
+${PLIST.ads}share/samba/setup/secrets.ldif
+${PLIST.ads}share/samba/setup/secrets_dns.ldif
+${PLIST.ads}share/samba/setup/secrets_init.ldif
+${PLIST.ads}share/samba/setup/share.ldif
+${PLIST.ads}share/samba/setup/spn_update_list
+${PLIST.ads}share/samba/setup/ypServ30.ldif
+@pkgdir var/run
+@pkgdir var/log
+@pkgdir var/db/samba4/private
+@pkgdir share/examples/samba/pam_smbpass
+@pkgdir etc/samba
+@pkgdir bind-dns
diff --git a/samba4/PLIST.Linux b/samba4/PLIST.Linux
new file mode 100644
index 0000000000..8cc95dc586
--- /dev/null
+++ b/samba4/PLIST.Linux
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST.Linux,v 1.5 2021/05/30 20:02:31 thor Exp $
+lib/libnss_winbind.so
+lib/libnss_winbind.so.2
+lib/libnss_wins.so
+lib/libnss_wins.so.2
+lib/samba/vfs/btrfs.so
+lib/samba/vfs/fileid.so
+lib/samba/vfs/glusterfs_fuse.so
+lib/samba/vfs/gpfs.so
+man/man8/vfs_btrfs.8
+man/man8/vfs_fileid.8
+man/man8/vfs_glusterfs_fuse.8
+man/man8/vfs_gpfs.8
diff --git a/samba4/PLIST.SunOS b/samba4/PLIST.SunOS
new file mode 100644
index 0000000000..60dcf6d072
--- /dev/null
+++ b/samba4/PLIST.SunOS
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.SunOS,v 1.1 2015/05/26 15:11:25 jperkin Exp $
+lib/samba/vfs/dirsort.so
+lib/samba/vfs/syncops.so
diff --git a/samba4/buildlink3.mk b/samba4/buildlink3.mk
new file mode 100644
index 0000000000..4a8f1bdc0e
--- /dev/null
+++ b/samba4/buildlink3.mk
@@ -0,0 +1,27 @@
+# $NetBSD: buildlink3.mk,v 1.12 2021/12/08 16:02:30 adam Exp $
+
+BUILDLINK_TREE+=	samba
+
+.if !defined(SAMBA_BUILDLINK3_MK)
+SAMBA_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.samba+=	samba>=4.9.4
+BUILDLINK_ABI_DEPENDS.samba?=	samba>=4.13.14
+BUILDLINK_PKGSRCDIR.samba?=	../../net/samba4
+
+.include "../../archivers/libarchive/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../wip/ldb/buildlink3.mk"
+.include "../../devel/cmocka/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/popt/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../devel/talloc/buildlink3.mk"
+.include "../../devel/tevent/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../textproc/jansson/buildlink3.mk"
+.endif	# SAMBA_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-samba
diff --git a/samba4/distinfo b/samba4/distinfo
new file mode 100644
index 0000000000..f407671e55
--- /dev/null
+++ b/samba4/distinfo
@@ -0,0 +1,35 @@
+$NetBSD: distinfo,v 1.71 2022/01/10 14:11:16 taca Exp $
+
+BLAKE2s (samba-4.15.4.tar.gz) = e0555b6353bbbd77a39f7c725b77c9c1c608a36d8e144a321f73f1104edbf3ac
+SHA512 (samba-4.15.4.tar.gz) = e55473dd4971816a01880870309ca44f022625cd529511bcf386c865a2e7e79118577ee4866559f607952de47dc0d310d6426bd08dd4293db95ddbbe3982383d
+Size (samba-4.15.4.tar.gz) = 19280813 bytes
+SHA1 (patch-buildtools_wafsamba_samba__conftests.py) = d927db17124d2bb5b382885e70a41f84c3929926
+SHA1 (patch-buildtools_wafsamba_samba__install.py) = d801340617da325e3bb70a90350e45cc8e383c2d
+SHA1 (patch-buildtools_wafsamba_samba__pidl.py) = e4c0ed3dacfcf5613a5b397b3c6cf88509497da7
+SHA1 (patch-buildtools_wafsamba_samba__utils.py) = 0a587421870c1974175fadbb02dde215f35938f2
+SHA1 (patch-buildtools_wafsamba_wscript) = 0ca4c3a9d2e07f9165784e495f6f6b2b21db2758
+SHA1 (patch-dynconfig_wscript) = 1858e5fcca913f21aa3e7868d9760b9c40c9f5c4
+SHA1 (patch-lib_param_loadparm.h) = 0216b69d33d1e17260a446e11bee764116c52b18
+SHA1 (patch-lib_pthreadpool_pthreadpool.c) = 4b0c3d49d578b5ab12f5bad1ebeb50efb43e756c
+SHA1 (patch-lib_replace_system_passwd.h) = 652be067b2560310ce3a4bbf37c24cb2fa8eb82d
+SHA1 (patch-lib_replace_wscript) = 4250bdfd8ee82fcdb43315f24a124b7ae8d7e36f
+SHA1 (patch-lib_tdb_common_mutex.c) = 74162bf9dfd440fc0b9782982e83776c9671a983
+SHA1 (patch-lib_tevent_tevent.c) = dc782c5b7214abf52a4c8c242018b1989bca08e3
+SHA1 (patch-lib_tevent_tevent__threads.c) = e5e82db82cff4d550451cd9290b3a351b25d4de4
+SHA1 (patch-lib_tevent_wscript) = fbbe2024096b57d651d90064f53489a974db9d7a
+SHA1 (patch-lib_util_charset_charset__macosxfs.c) = 9772fc52fff48aec2a7e279223f73bb791217c26
+SHA1 (patch-lib_util_smb__threads.h) = 817591a2b69f31ac29497a2006fe21f0b4b0aaea
+SHA1 (patch-lib_util_tfork.c) = a9acb5561c5bba76450c48904a22019c8b14cbec
+SHA1 (patch-libcli_dns_wscript__build) = 4103a144aa1bb4662fd7a62270941f1a3d01fe89
+SHA1 (patch-nsswitch_stress-nss-libwbclient.c) = c546f00184b0d22b6c150e210962cdfc6fc12df2
+SHA1 (patch-nsswitch_winbind__nss__netbsd.c) = 2773ec9269d1fe0d7ce7ed220f6a7122d187fabe
+SHA1 (patch-nsswitch_wscript__build) = e8a6251e031ffa13d6347fade8891f7afd65d3eb
+SHA1 (patch-source3_libsmb_pylibsmb.c) = 962bb35b140ec11c0035ffa7fb83c9143fa5615f
+SHA1 (patch-source3_smbd_open.c) = 002f26f77dad54617bf9c0fe4fa12f093ef3b66c
+SHA1 (patch-source3_smbd_process.c) = 3a6f9682aca6473e364d0be0f601774df4fd1296
+SHA1 (patch-source3_utils_net__offlinejoin.c) = 773a4686d5e2a7eaebf9430529708e8318d45c77
+SHA1 (patch-source4_dsdb_samdb_ldb__modules_wscript__build__server) = 47f55ec16b667a0a4d38de5ac89a117f2ac8f898
+SHA1 (patch-source4_heimdal__build_roken.h) = 4d2b5ab1f5db994263c3a451175f01ff688ad20d
+SHA1 (patch-source4_heimdal_include_heim__threads.h) = 1108fe804f235c72a93bcda0ec14454828ed030f
+SHA1 (patch-source4_scripting_wsript_build) = 816d44f48b6cbc6d999995e00eaea1d2dc477159
+SHA1 (patch-source4_utils_oLschema2ldif_wscript__build) = cbba15c2c0e1eee9d07424510a96b596f46992b4
diff --git a/samba4/files/adduser.sh b/samba4/files/adduser.sh
new file mode 100644
index 0000000000..aeabd42a5a
--- /dev/null
+++ b/samba4/files/adduser.sh
@@ -0,0 +1,161 @@
+#!@SH@
+#
+# $NetBSD: adduser.sh,v 1.1 2015/05/12 12:19:52 ryoon Exp $
+#
+# This is an adduser script for NetBSD systems whose useradd(8) doesn't
+# accept "$" in the username.  This script may be used for the
+# "add machine script" in smb.conf.
+
+awkprog="@AWK@"
+catprog="@CAT@"
+mktempprog="@MKTEMP@"
+pwdmkdbprog="@PWD_MKDB@"
+rmprog="@RM@"
+
+progname=adduser
+
+usage() {
+	echo "Usage: $progname [-c comment] [-d homedir] [-n] [-r low..high]"
+	echo "		[-s shell] -g gid name"
+	exit 1
+}
+
+isnum() {
+	case "$1" in
+	0[0-9]*|*[!0-9]*)
+		return 1
+		;;
+	esac
+	return 0
+}
+
+doit=""
+gid=""
+minuid=1000
+maxuid=60000
+comment=""
+homedir=""
+shell=/sbin/nologin
+
+while getopts c:d:g:nr:s: flag; do
+	case $flag in
+	c)	comment="${OPTARG}" ;;
+	d)	homedir="${OPTARG}" ;;
+	g)	gid="${OPTARG}" ;;
+	n)	doit=":" ;;
+	r)	minuid=${OPTARG%%..*}; maxuid=${OPTARG##*..} ;;
+	s)	shell="${OPTARG}" ;;
+	esac
+done
+shift `expr $OPTIND - 1`
+
+if [ $# -lt 1 ]; then
+	usage
+fi
+
+name="$1"
+if [ -z "$gid" ]; then
+	echo "$progname: \`-g gid' is a required option" 1>&2
+	exit 1
+fi
+if ! isnum "$gid"; then
+	echo "$progname: \`$gid' is not a valid gid" 1>&2
+	exit 1
+fi
+if ! isnum "$minuid"; then
+	echo "$progname: \`$minuid' is not a valid minimum uid" 1>&2
+	exit 1
+fi
+if ! isnum "$maxuid"; then
+	echo "$progname: \`$maxuid' is not a valid maximum uid" 1>&2
+	exit 1
+fi
+if [ $minuid -gt $maxuid ]; then
+	echo "$progname: \`$minuid..$maxuid' is not a valid range" 1>&2
+	exit 1
+fi
+case "$comment" in
+*:*)
+	echo "$progname: \`$comment' is not a valid comment" 1>&2
+	exit 1
+	;;
+esac
+case "$homedir" in
+*:*)
+	echo "$progname: \`$homedir' is not a valid home directory" 1>&2
+	exit 1
+	;;
+%*)
+	# This is an unsubstituted variable (probably %H in smbd).
+	# Silently change this to a proper default.
+	#
+	homedir="/nonexistent"
+	;;
+esac
+case "$shell" in
+*:*)
+	echo "$progname: \`$shell' is not a valid shell" 1>&2
+	exit 1
+	;;
+esac
+case "$name" in
+*:*)
+	echo "$progname: \`$name' is not a valid username" 1>&2
+	exit 1
+	;;
+esac
+
+ptmp=`$mktempprog -q /etc/ptmp`
+case "$ptmp" in
+/etc/ptmp)
+	;;
+*)
+	echo "$progname: can't create /etc/ptmp" 1>&2
+	exit 1
+	;;
+esac
+
+if [ ! -f /etc/master.passwd ]; then
+	echo "$progname: /etc/master.passwd not found" 1>&2
+	$rmprog -f $ptmp
+	exit 1
+fi
+
+$catprog /etc/master.passwd >> $ptmp
+
+uid=`									\
+	$awkprog -v minuid=$minuid -v maxuid=maxuid '			\
+		BEGIN { FS = ":" }					\
+		{ seen_uids[$3] = 1 }					\
+		END {							\
+			uid = minuid;					\
+			while (uid <= maxuid) {				\
+				if (uid in seen_uids) {			\
+					uid++;				\
+					continue;			\
+				}					\
+				print uid;				\
+				exit;					\
+			}						\
+			print -1;					\
+		}' $ptmp						\
+`
+if [ $uid -lt 0 ]; then
+	echo "$progname: no uid can be allocated in $minuid..$maxuid" 1>&2
+	$rmprog -f $ptmp
+	exit 1
+fi
+
+case "${name}" in
+*$)	: ${comment:=${name%%[$]*} samba machine account} ;;
+*)	: ${comment:=${name} samba user} ;;
+esac
+entry="${name}:*:${uid}:${gid}::0:0:${comment}:${homedir}:${shell}"
+
+echo "$entry" >> $ptmp
+
+$doit $pwdmkdbprog -p -u "${name}" $ptmp
+rc=$?
+
+$rmprog -f $ptmp
+exit $rc
diff --git a/samba4/files/deluser.sh b/samba4/files/deluser.sh
new file mode 100644
index 0000000000..3901efa74f
--- /dev/null
+++ b/samba4/files/deluser.sh
@@ -0,0 +1,68 @@
+#!@SH@
+#
+# $NetBSD: deluser.sh,v 1.1 2015/05/12 12:19:52 ryoon Exp $
+#
+# This is a deluser script for NetBSD systems whose userdel(8) doesn't
+# accept "$" in the username.
+
+awkprog="@AWK@"
+mktempprog="@MKTEMP@"
+pwdmkdbprog="@PWD_MKDB@"
+rmprog="@RM@"
+
+progname=deluser
+
+usage() {
+	echo "Usage: $progname [-n] name"
+	exit 1
+}
+
+doit=""
+
+while getopts n flag; do
+	case $flag in
+	n)	doit=":" ;;
+	esac
+done
+shift `expr $OPTIND - 1`
+
+if [ $# -lt 1 ]; then
+	usage
+fi
+
+name="$1"
+
+case "$name" in
+*:*)
+	echo "$progname: \`$name' is not a valid user name" 1>&2
+	exit 1
+esac
+
+ptmp=`$mktempprog -q /etc/ptmp`
+case "$ptmp" in
+/etc/ptmp)
+	;;
+*)
+	echo "$progname: can't create /etc/ptmp" 1>&2
+	exit 1
+	;;
+esac
+
+if [ ! -f /etc/master.passwd ]; then
+	echo "$progname: /etc/master.passwd not found" 1>&2
+	$rmprog -f $ptmp
+	exit 1
+fi
+
+$awkprog -v name="${name}" '						\
+	BEGIN { FS = ":" }						\
+	{								\
+		if ($1 != name)						\
+			print $0;					\
+	}' /etc/master.passwd > $ptmp
+
+$doit $pwdmkdbprog -p $ptmp
+rc=$?
+
+$rmprog -f $ptmp
+exit $rc
diff --git a/samba4/files/nmbd.sh b/samba4/files/nmbd.sh
new file mode 100755
index 0000000000..e57bb9c1ad
--- /dev/null
+++ b/samba4/files/nmbd.sh
@@ -0,0 +1,31 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: nmbd.sh,v 1.2 2021/06/21 10:23:48 nia Exp $
+#
+# PROVIDE: nmbd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="nmbd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+pidfile="@SMB_PID@/${name}.pid"
+required_files="@SMB_CONFIG@/smb.conf"
+extra_commands="reload"
+start_precmd="nmbd_precmd"
+command_args="-D"		# _must_ start as daemon from rc.d;
+				# add more flags through ${${name}_flags}
+
+reload_cmd=":"			# avoid dumping debug output on SIGHUP
+
+nmbd_precmd()
+{
+	if ! [ -f /proc/cpuinfo ]; then
+		echo "WARNING: Samba requires a Linux-compatible procfs!"
+		echo "WARNING: Please mount /proc before starting Samba."
+	fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/samba4/files/samba.sh b/samba4/files/samba.sh
new file mode 100644
index 0000000000..b99428113d
--- /dev/null
+++ b/samba4/files/samba.sh
@@ -0,0 +1,27 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: samba.sh,v 1.2 2021/06/21 10:23:48 nia Exp $
+#
+# PROVIDE: samba
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="samba"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+pidfile="@SMB_PID@/${name}.pid"
+required_files="@SMB_CONFIG@/smb.conf"
+extra_commands="reload"
+start_precmd="samba_precmd"
+
+samba_precmd()
+{
+	if ! [ -f /proc/cpuinfo ]; then
+		echo "WARNING: Samba requires a Linux-compatible procfs!"
+		echo "WARNING: Please mount /proc before starting Samba."
+	fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/samba4/files/smbd.sh b/samba4/files/smbd.sh
new file mode 100755
index 0000000000..b4c0b1d238
--- /dev/null
+++ b/samba4/files/smbd.sh
@@ -0,0 +1,43 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: smbd.sh,v 1.2 2021/06/21 10:23:48 nia Exp $
+#
+# PROVIDE: smbd
+
+. /etc/rc.subr
+
+name="smbd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+pidfile="@SMB_PID@/${name}.pid"
+required_files="@SMB_CONFIG@/smb.conf"
+extra_commands="reload"
+command_args="-D"		# _must_ start as daemon from rc.d;
+				# add more flags through ${${name}_flags}
+start_precmd="smbd_precmd"
+
+# load_rc_config_var() from /etc/rc.subr on the netbsd-3 branch, for
+# the benefit of platforms with older versions of /etc/rc.subr.
+#
+load_rc_config_var()
+{
+	eval $(eval '(
+		load_rc_config '$1' >/dev/null;
+		if [ -n "${'$2'}" -o "${'$2'-UNSET}" != "UNSET" ]; then
+			echo '$2'=\'\''${'$2'}\'\'';
+		fi
+	)' )
+}
+
+smbd_precmd()
+{
+	if ! [ -f /proc/cpuinfo ]; then
+		echo "WARNING: Samba requires a Linux-compatible procfs!"
+		echo "WARNING: Please mount /proc before starting Samba."
+	fi
+}
+
+
+load_rc_config $name
+load_rc_config_var nmbd nmbd
+run_rc_command "$1"
diff --git a/samba4/files/smf/manifest.xml b/samba4/files/smf/manifest.xml
new file mode 100644
index 0000000000..f10d0eebb9
--- /dev/null
+++ b/samba4/files/smf/manifest.xml
@@ -0,0 +1,51 @@
+<?xml version='1.0'?>
+<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
+<service_bundle type='manifest' name='export'>
+  <service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'>
+    <dependency name='fs-root' grouping='require_all' restart_on='none' type='service'>
+      <service_fmri value='svc:/system/filesystem/root'/>
+    </dependency>
+    <dependency name='network-service' grouping='require_all' restart_on='none' type='service'>
+      <service_fmri value='svc:/network/service'/>
+    </dependency>
+    <instance name='winbind' enabled='false'>
+      <exec_method name='start' type='method' exec='@PREFIX@/sbin/winbindd' timeout_seconds='0'/>
+      <exec_method name='stop' type='method' exec=':kill' timeout_seconds='30'/>
+      <exec_method name='refresh' type='method' exec=':kill -HUP' timeout_seconds='0'/>
+      <template>
+        <common_name>
+          <loctext xml:lang='C'>Samba AD daemon for PAM/NSS</loctext>
+        </common_name>
+        <documentation>
+          <manpage title='winbindd' section='8' manpath='@PREFIX@/@PKGMANDIR@'/>
+        </documentation>
+      </template>
+    </instance>
+    <instance name='nmbd' enabled='false'>
+      <exec_method name='start' type='method' exec='@PREFIX@/sbin/nmbd -D' timeout_seconds='0'/>
+      <exec_method name='stop' type='method' exec=':kill' timeout_seconds='30'/>
+      <exec_method name='refresh' type='method' exec=':kill -HUP' timeout_seconds='0'/>
+      <template>
+        <common_name>
+          <loctext xml:lang='C'>Samba NetBIOS name server</loctext>
+        </common_name>
+        <documentation>
+          <manpage title='nmbd' section='8' manpath='@PREFIX@/@PKGMANDIR@'/>
+        </documentation>
+      </template>
+    </instance>
+    <instance name='smbd' enabled='false'>
+      <exec_method name='start' type='method' exec='@PREFIX@/sbin/smbd -D' timeout_seconds='0'/>
+      <exec_method name='stop' type='method' exec=':kill' timeout_seconds='30'/>
+      <exec_method name='refresh' type='method' exec=':kill -HUP' timeout_seconds='0'/>
+      <template>
+        <common_name>
+          <loctext xml:lang='C'>Samba SMB/CIFS services</loctext>
+        </common_name>
+        <documentation>
+          <manpage title='smbd' section='8' manpath='@PREFIX@/@PKGMANDIR@'/>
+        </documentation>
+      </template>
+    </instance>
+  </service>
+</service_bundle>
diff --git a/samba4/files/winbindd.sh b/samba4/files/winbindd.sh
new file mode 100644
index 0000000000..d8d29f3c0c
--- /dev/null
+++ b/samba4/files/winbindd.sh
@@ -0,0 +1,27 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: winbindd.sh,v 1.2 2021/06/21 10:23:48 nia Exp $
+#
+# PROVIDE: winbindd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="winbindd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+pidfile="@SMB_PID@/${name}.pid"
+required_files="@SMB_CONFIG@/smb.conf"
+extra_commands="reload"
+start_precmd="winbindd_precmd"
+
+winbindd_precmd()
+{
+	if ! [ -f /proc/cpuinfo ]; then
+		echo "WARNING: Samba requires a Linux-compatible procfs!"
+		echo "WARNING: Please mount /proc before starting Samba."
+	fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/samba4/hacks.mk b/samba4/hacks.mk
new file mode 100644
index 0000000000..d9cbf3d774
--- /dev/null
+++ b/samba4/hacks.mk
@@ -0,0 +1,3 @@
+# $NetBSD: hacks.mk,v 1.1 2015/05/12 12:19:52 ryoon Exp $
+
+.include "../../net/samba/hacks.mk"
diff --git a/samba4/options.mk b/samba4/options.mk
new file mode 100644
index 0000000000..3b88787cad
--- /dev/null
+++ b/samba4/options.mk
@@ -0,0 +1,125 @@
+# $NetBSD: options.mk,v 1.16 2021/07/12 22:30:44 nia Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.samba4
+PKG_SUPPORTED_OPTIONS=	ads avahi fam ldap pam winbind cups # cups option is broken for me.
+PKG_SUGGESTED_OPTIONS=	avahi ldap pam winbind
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+SAMBA_ACL_OPSYS=	AIX Darwin FreeBSD HPUX IRIX Linux NetBSD OSF1 SunOS
+.if !empty(SAMBA_ACL_OPSYS:M${OPSYS})
+PKG_SUPPORTED_OPTIONS+=	acl
+.endif
+
+.if empty(MACHINE_PLATFORM:MDarwin-1[1-9].*)
+PKG_SUGGESTED_OPTIONS+=	ads
+.endif
+
+.if ${OPSYS} == "Linux"
+PKG_SUPPORTED_OPTIONS+=	snapper
+PKG_SUGGESTED_OPTIONS+=	snapper
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=		ads cups fam ldap pam snapper winbind
+
+###
+### Access Control List support.
+###
+.if !empty(PKG_OPTIONS:Macl)
+CONFIGURE_ARGS+=	--with-acl-support
+.else
+CONFIGURE_ARGS+=	--without-acl-support
+.endif
+
+###
+### Allow Samba to join as a member server of an Active Directory domain.
+###
+.if !empty(PKG_OPTIONS:Mads)
+CONFIGURE_ARGS+=	--with-ads
+PLIST.ads=		yes
+.else
+CONFIGURE_ARGS+=	--without-ads
+CONFIGURE_ARGS+=	--without-ad-dc
+.endif
+
+###
+### Native CUPS support for providing printing services.
+###
+.if !empty(PKG_OPTIONS:Mcups)
+.  include "../../print/cups-base/buildlink3.mk"
+CONFIGURE_ARGS+=	--enable-cups
+PLIST.cups=		yes
+INSTALLATION_DIRS+=	libexec/cups/backend
+.else
+CONFIGURE_ARGS+=	--disable-cups
+.endif
+
+###
+### File Alteration Monitor support.
+###
+.if !empty(PKG_OPTIONS:Mfam)
+.  include "../../mk/fam.buildlink3.mk"
+CONFIGURE_ARGS+=	--with-fam
+PLIST.fam=		yes
+.else
+CONFIGURE_ARGS+=	--without-fam
+.endif
+
+###
+### Support LDAP authentication and storage of Samba account information.
+###
+# Active Directory requires ldap
+.if !empty(PKG_OPTIONS:Mldap) || !empty(PKG_OPTIONS:Mads)
+.  include "../../databases/openldap-client/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-ldap
+PLIST.ldap=		yes
+.else
+CONFIGURE_ARGS+=	--without-ldap
+.endif
+
+###
+### Support PAM authentication and build smbpass and winbind PAM modules.
+###
+.if !empty(PKG_OPTIONS:Mpam)
+.  include "../../mk/pam.buildlink3.mk"
+
+CONFIGURE_ARGS+=	--with-pam
+CONFIGURE_ARGS+=	--with-pammodulesdir=${SMB_PAMMODULES}
+PLIST.pam=		yes
+INSTALLATION_DIRS+=	${EGDIR}/pam_smbpass
+.else
+CONFIGURE_ARGS+=	--without-pam
+.endif
+
+###
+### Support querying a PDC for domain user and group information, e.g.,
+### through NSS or PAM.
+###
+.if !empty(PKG_OPTIONS:Mwinbind)
+CONFIGURE_ARGS+=	--with-winbind
+PLIST.winbind=		yes
+WINBINDD_RCD_SCRIPT=	winbindd
+.else
+CONFIGURE_ARGS+=	--without-winbind
+.endif
+
+###
+### Avahi DNS Service Discovery.
+###
+.if !empty(PKG_OPTIONS:Mavahi)
+.include "../../net/avahi/buildlink3.mk"
+CONFIGURE_ARGS+=	--enable-avahi
+.else
+CONFIGURE_ARGS+=	--disable-avahi
+.endif
+
+.if ${OPSYS} == "Linux"
+.  if !empty(PKG_OPTIONS:Msnapper)
+.include "../../sysutils/dbus/buildlink3.mk"
+PLIST.snapper=	yes
+.  else
+CONFIGURE_ARGS+=	--with-shared-modules='!vfs_snapper'
+.  endif
+.endif
diff --git a/samba4/patches/patch-buildtools_wafsamba_samba__conftests.py b/samba4/patches/patch-buildtools_wafsamba_samba__conftests.py
new file mode 100644
index 0000000000..d01cbbda77
--- /dev/null
+++ b/samba4/patches/patch-buildtools_wafsamba_samba__conftests.py
@@ -0,0 +1,19 @@
+$NetBSD: patch-buildtools_wafsamba_samba__conftests.py,v 1.2 2019/11/10 17:01:58 adam Exp $
+
+Ensure defines are strings to avoid assertion failure, some
+returned values are unicode.
+
+--- buildtools/wafsamba/samba_conftests.py.orig	2019-07-09 10:08:41.000000000 +0000
++++ buildtools/wafsamba/samba_conftests.py
+@@ -97,9 +97,9 @@ def CHECK_LARGEFILE(conf, define='HAVE_L
+                 if flag[:2] == "-D":
+                     flag_split = flag[2:].split('=')
+                     if len(flag_split) == 1:
+-                        conf.DEFINE(flag_split[0], '1')
++                        conf.DEFINE(str(flag_split[0]), '1')
+                     else:
+-                        conf.DEFINE(flag_split[0], flag_split[1])
++                        conf.DEFINE(str(flag_split[0]), str(flag_split[1]))
+ 
+     if conf.CHECK_CODE('if (sizeof(off_t) < 8) return 1',
+                        define,
diff --git a/samba4/patches/patch-buildtools_wafsamba_samba__install.py b/samba4/patches/patch-buildtools_wafsamba_samba__install.py
new file mode 100644
index 0000000000..23f00383e2
--- /dev/null
+++ b/samba4/patches/patch-buildtools_wafsamba_samba__install.py
@@ -0,0 +1,15 @@
+$NetBSD: patch-buildtools_wafsamba_samba__install.py,v 1.2 2019/03/20 19:09:10 adam Exp $
+
+Apply correct install_name on Darwin.
+
+--- buildtools/wafsamba/samba_install.py.orig	2019-01-14 22:24:44.000000000 +0000
++++ buildtools/wafsamba/samba_install.py
+@@ -151,6 +151,8 @@ def install_library(self):
+             bld.symlink_as(os.path.join(install_path, install_link), os.path.basename(install_name))
+         if dev_link:
+             bld.symlink_as(os.path.join(install_path, dev_link), os.path.basename(install_name))
++        if getattr(self, 'samba_type', None) != 'PYTHON' and self.env.MACOSX_DEPLOYMENT_TARGET:
++            self.env.append_value('LINKFLAGS', ['-install_name', os.path.join(install_path, install_name)])
+     finally:
+         bld.all_envs['default'] = default_env
+ 
diff --git a/samba4/patches/patch-buildtools_wafsamba_samba__pidl.py b/samba4/patches/patch-buildtools_wafsamba_samba__pidl.py
new file mode 100644
index 0000000000..1bb02f36ad
--- /dev/null
+++ b/samba4/patches/patch-buildtools_wafsamba_samba__pidl.py
@@ -0,0 +1,16 @@
+$NetBSD: patch-buildtools_wafsamba_samba__pidl.py,v 1.3 2020/04/02 11:21:42 adam Exp $
+
+Do not set CPP, as it fails when using cwrappers.
+If not provided, it will default to $CC -E (see pidl/idl.yp).
+
+--- buildtools/wafsamba/samba_pidl.py.orig	2020-01-31 10:25:36.000000000 +0000
++++ buildtools/wafsamba/samba_pidl.py
+@@ -80,7 +80,7 @@ def SAMBA_PIDL(bld, pname, source,
+         else:
+             cc = 'CC="%s"' % bld.CONFIG_GET("CC")
+ 
+-    t = bld(rule='cd ${PIDL_LAUNCH_DIR} && %s%s %s ${PERL} ${PIDL} --quiet ${OPTIONS} --outputdir ${OUTPUTDIR} -- "${IDLSRC}"' % (pidl_dev, cpp, cc),
++    t = bld(rule='cd ${PIDL_LAUNCH_DIR} && %s %s ${PERL} ${PIDL} --quiet ${OPTIONS} --outputdir ${OUTPUTDIR} -- "${IDLSRC}"' % (pidl_dev, cc),
+             ext_out    = '.c',
+             before     = 'c',
+             update_outputs = True,
diff --git a/samba4/patches/patch-buildtools_wafsamba_samba__utils.py b/samba4/patches/patch-buildtools_wafsamba_samba__utils.py
new file mode 100644
index 0000000000..a21b2d7c26
--- /dev/null
+++ b/samba4/patches/patch-buildtools_wafsamba_samba__utils.py
@@ -0,0 +1,18 @@
+$NetBSD: patch-buildtools_wafsamba_samba__utils.py,v 1.1 2019/06/22 13:27:12 jmcneill Exp $
+
+Fixes a build failure when the letter 'j' appears in MAKEFLAGS.
+
+--- buildtools/wafsamba/samba_utils.py.orig	2019-03-21 10:12:32.000000000 +0000
++++ buildtools/wafsamba/samba_utils.py
+@@ -519,10 +519,7 @@ def CHECK_MAKEFLAGS(options):
+             setattr(options, opt[0:loc], opt[loc+1:])
+         elif opt[0] != '-':
+             for v in opt:
+-                if re.search(r'j[0-9]*$', v):
+-                    jobs_set = True
+-                    jobs = opt.strip('j')
+-                elif v == 'k':
++                if v == 'k':
+                     options.keep = True
+         elif re.search(r'-j[0-9]*$', opt):
+             jobs_set = True
diff --git a/samba4/patches/patch-buildtools_wafsamba_wscript b/samba4/patches/patch-buildtools_wafsamba_wscript
new file mode 100644
index 0000000000..104a2c0bf7
--- /dev/null
+++ b/samba4/patches/patch-buildtools_wafsamba_wscript
@@ -0,0 +1,17 @@
+$NetBSD: patch-buildtools_wafsamba_wscript,v 1.3 2019/11/10 17:01:58 adam Exp $
+
+Define _POSIX_PTHREAD_SEMANTICS on SunOS to pick up re-entrant functions.
+
+--- buildtools/wafsamba/wscript.orig	2019-07-09 10:08:41.000000000 +0000
++++ buildtools/wafsamba/wscript
+@@ -458,6 +458,10 @@ def configure(conf):
+     if conf.CHECK_CFLAGS(['-D__STDC_WANT_LIB_EXT1__=1']):
+         conf.ADD_CFLAGS('-D__STDC_WANT_LIB_EXT1__=1')
+ 
++    # Use POSIX getpwnam_r and friends.
++    if conf.env['SYSTEM_UNAME_SYSNAME'] == 'SunOS':
++        conf.DEFINE('_POSIX_PTHREAD_SEMANTICS', 1, add_to_cflags=True)
++
+     # on Tru64 certain features are only available with _OSF_SOURCE set to 1
+     # and _XOPEN_SOURCE set to 600
+     if conf.env['SYSTEM_UNAME_SYSNAME'] == 'OSF1':
diff --git a/samba4/patches/patch-dynconfig_wscript b/samba4/patches/patch-dynconfig_wscript
new file mode 100644
index 0000000000..a6fae1ef0e
--- /dev/null
+++ b/samba4/patches/patch-dynconfig_wscript
@@ -0,0 +1,16 @@
+$NetBSD: patch-dynconfig_wscript,v 1.3 2019/03/20 19:09:10 adam Exp $
+
+Do not check installation prefix.
+
+--- dynconfig/wscript.orig	2019-01-15 10:07:00.000000000 +0000
++++ dynconfig/wscript
+@@ -307,9 +307,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 Errors.WafError("ERROR: invalid --prefix=%s value" % (conf.env.PREFIX))
+ 
+     explicit_set ={}
+ 
diff --git a/samba4/patches/patch-lib_param_loadparm.h b/samba4/patches/patch-lib_param_loadparm.h
new file mode 100644
index 0000000000..3bd4a573c0
--- /dev/null
+++ b/samba4/patches/patch-lib_param_loadparm.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_param_loadparm.h,v 1.2 2017/04/08 08:56:27 ryoon Exp $
+
+* Fix NetBSD build.
+
+--- lib/param/loadparm.h.orig	2017-01-11 07:55:14.000000000 +0000
++++ lib/param/loadparm.h
+@@ -31,6 +31,9 @@
+ #define _LOADPARM_H
+ 
+ #include <talloc.h>
++#if defined(__NetBSD__)
++#include <sys/time.h>
++#endif
+ 
+ struct parmlist_entry {
+ 	struct parmlist_entry *prev, *next;
diff --git a/samba4/patches/patch-lib_pthreadpool_pthreadpool.c b/samba4/patches/patch-lib_pthreadpool_pthreadpool.c
new file mode 100644
index 0000000000..e8061c3914
--- /dev/null
+++ b/samba4/patches/patch-lib_pthreadpool_pthreadpool.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-lib_pthreadpool_pthreadpool.c,v 1.2 2021/04/29 15:21:16 taca Exp $
+
+On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
+mutex data structure
+
+--- lib/pthreadpool/pthreadpool.c.orig	2019-01-15 10:07:00.000000000 +0000
++++ lib/pthreadpool/pthreadpool.c
+@@ -153,6 +153,7 @@ int pthreadpool_init(unsigned max_thread
+ 
+ 	pool->head = pool->num_jobs = 0;
+ 
++	memset(&pool->mutex, 0, sizeof(pthread_mutex_t));
+ 	ret = pthread_mutex_init(&pool->mutex, NULL);
+ 	if (ret != 0) {
+ 		free(pool->jobs);
+@@ -168,6 +169,7 @@ int pthreadpool_init(unsigned max_thread
+ 		return ret;
+ 	}
+ 
++	memset(&pool->fork_mutex, 0, sizeof(pthread_mutex_t));	
+ 	ret = pthread_mutex_init(&pool->fork_mutex, NULL);
+ 	if (ret != 0) {
+ 		pthread_cond_destroy(&pool->condvar);
diff --git a/samba4/patches/patch-lib_replace_system_passwd.h b/samba4/patches/patch-lib_replace_system_passwd.h
new file mode 100644
index 0000000000..d09dddbff0
--- /dev/null
+++ b/samba4/patches/patch-lib_replace_system_passwd.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_replace_system_passwd.h,v 1.1 2020/07/06 14:38:06 adam Exp $
+
+Fix building.
+https://bugzilla.samba.org/show_bug.cgi?id=14415
+
+--- lib/replace/system/passwd.h.orig	2020-07-06 10:27:14.000000000 +0000
++++ lib/replace/system/passwd.h
+@@ -89,4 +89,8 @@
+ #define ULTRIX_AUTH 1
+ #endif
+ 
++#ifndef NSS_BUFLEN_PASSWD
++#define NSS_BUFLEN_PASSWD 1024
++#endif
++
+ #endif
diff --git a/samba4/patches/patch-lib_replace_wscript b/samba4/patches/patch-lib_replace_wscript
new file mode 100644
index 0000000000..b9333679c4
--- /dev/null
+++ b/samba4/patches/patch-lib_replace_wscript
@@ -0,0 +1,17 @@
+$NetBSD: patch-lib_replace_wscript,v 1.2 2019/03/20 19:09:10 adam Exp $
+
+Skip epoll tests on SunOS, implementation is Linux-specific.
+
+--- lib/replace/wscript.orig	2021-08-26 09:01:35.530309000 +0000
++++ lib/replace/wscript
+@@ -451,7 +451,9 @@ def configure(conf):
+     conf.CHECK_FUNCS('gai_strerror get_current_dir_name')
+     conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs mmap setgroups syscall setsid')
+     conf.CHECK_FUNCS('getgrent_r getgrgid_r getgrnam_r getgrouplist getpagesize')
+-    conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r epoll_create')
++    conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r')
++    if not sys.platform.startswith('sunos'):
++        conf.CHECK_FUNCS('epoll_create')
+     conf.CHECK_FUNCS('port_create')
+     conf.CHECK_FUNCS('getprogname')
+     if not conf.CHECK_FUNCS('copy_file_range'):
diff --git a/samba4/patches/patch-lib_tdb_common_mutex.c b/samba4/patches/patch-lib_tdb_common_mutex.c
new file mode 100644
index 0000000000..6e4032ea61
--- /dev/null
+++ b/samba4/patches/patch-lib_tdb_common_mutex.c
@@ -0,0 +1,63 @@
+$NetBSD: patch-lib_tdb_common_mutex.c,v 1.2 2021/04/29 15:21:16 taca Exp $
+
+On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
+mutex data structure
+
+--- lib/tdb/common/mutex.c.orig	2019-01-15 10:07:00.000000000 +0000
++++ lib/tdb/common/mutex.c
+@@ -567,6 +567,7 @@ int tdb_mutex_init(struct tdb_context *t
+ 	}
+ 	m = tdb->mutexes;
+ 
++	memset(&ma, 0, sizeof(pthread_mutexattr_t));
+ 	ret = pthread_mutexattr_init(&ma);
+ 	if (ret != 0) {
+ 		goto fail_munmap;
+@@ -587,6 +588,7 @@ int tdb_mutex_init(struct tdb_context *t
+ 	for (i=0; i<tdb->hash_size+1; i++) {
+ 		pthread_mutex_t *chain = &m->hashchains[i];
+ 
++		memset(chain, 0, sizeof(pthread_mutex_t));
+ 		ret = pthread_mutex_init(chain, &ma);
+ 		if (ret != 0) {
+ 			goto fail;
+@@ -595,6 +597,7 @@ int tdb_mutex_init(struct tdb_context *t
+ 
+ 	m->allrecord_lock = F_UNLCK;
+ 
++	memset(&m->allrecord_mutex, 0, sizeof(pthread_mutex_t));
+ 	ret = pthread_mutex_init(&m->allrecord_mutex, &ma);
+ 	if (ret != 0) {
+ 		goto fail;
+@@ -672,6 +675,7 @@ static bool tdb_mutex_locking_supported(
+ 
+ 	initialized = true;
+ 
++	memset(&ma, 0, sizeof(pthread_mutexattr_t));
+ 	ret = pthread_mutexattr_init(&ma);
+ 	if (ret != 0) {
+ 		return false;
+@@ -688,6 +692,7 @@ static bool tdb_mutex_locking_supported(
+ 	if (ret != 0) {
+ 		goto cleanup_ma;
+ 	}
++	memset(&m, 0, sizeof(pthread_mutex_t));
+ 	ret = pthread_mutex_init(&m, &ma);
+ 	if (ret != 0) {
+ 		goto cleanup_ma;
+@@ -868,6 +873,7 @@ _PUBLIC_ bool tdb_runtime_check_for_robu
+ 		goto cleanup;
+ 	}
+ 
++	memset(&ma, 0, sizeof(pthread_mutexattr_t));
+ 	ret = pthread_mutexattr_init(&ma);
+ 	if (ret != 0) {
+ 		goto cleanup;
+@@ -885,6 +891,7 @@ _PUBLIC_ bool tdb_runtime_check_for_robu
+ 	if (ret != 0) {
+ 		goto cleanup;
+ 	}
++	memset(ptr, 0, sizeof(pthread_mutex_t));
+ 	ret = pthread_mutex_init(ptr, &ma);
+ 	if (ret != 0) {
+ 		goto cleanup;
diff --git a/samba4/patches/patch-lib_tevent_tevent.c b/samba4/patches/patch-lib_tevent_tevent.c
new file mode 100644
index 0000000000..923a2e7698
--- /dev/null
+++ b/samba4/patches/patch-lib_tevent_tevent.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_tevent_tevent.c,v 1.3 2021/06/22 09:36:41 nia Exp $
+
+On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
+mutex data structure
+
+--- lib/tevent/tevent.c.orig	2020-07-09 09:33:56.000000000 +0000
++++ lib/tevent/tevent.c
+@@ -423,6 +423,7 @@ static int tevent_common_context_constru
+ 		return ret;
+ 	}
+ 
++	memset(&ev->scheduled_mutex, 0, sizeof(pthread_mutex_t));
+ 	ret = pthread_mutex_init(&ev->scheduled_mutex, NULL);
+ 	if (ret != 0) {
+ 		return ret;
diff --git a/samba4/patches/patch-lib_tevent_tevent__threads.c b/samba4/patches/patch-lib_tevent_tevent__threads.c
new file mode 100644
index 0000000000..6af3376b42
--- /dev/null
+++ b/samba4/patches/patch-lib_tevent_tevent__threads.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-lib_tevent_tevent__threads.c,v 1.2 2021/04/29 15:21:16 taca Exp $
+
+On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
+mutex data structure
+
+--- lib/tevent/tevent_threads.c.orig	2019-01-15 10:07:00.000000000 +0000
++++ lib/tevent/tevent_threads.c
+@@ -234,6 +234,7 @@ struct tevent_thread_proxy *tevent_threa
+ 		return NULL;
+ 	}
+ 
++	memset(&tp->mutex, 0, sizeof(pthread_mutex_t));
+ 	ret = pthread_mutex_init(&tp->mutex, NULL);
+ 	if (ret != 0) {
+ 		goto fail;
+@@ -439,6 +440,7 @@ struct tevent_threaded_context *tevent_t
+ 	}
+ 	tctx->event_ctx = ev;
+ 
++	memset(&tctx->event_ctx_mutex, 0, sizeof(pthread_mutex_t));
+ 	ret = pthread_mutex_init(&tctx->event_ctx_mutex, NULL);
+ 	if (ret != 0) {
+ 		TALLOC_FREE(tctx);
diff --git a/samba4/patches/patch-lib_tevent_wscript b/samba4/patches/patch-lib_tevent_wscript
new file mode 100644
index 0000000000..8bd036c26f
--- /dev/null
+++ b/samba4/patches/patch-lib_tevent_wscript
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_tevent_wscript,v 1.2 2018/11/23 07:30:02 ryoon Exp $
+
+Skip epoll tests on SunOS, implementation is Linux-specific.
+
+--- lib/tevent/wscript.orig	2018-07-12 08:23:36.000000000 +0000
++++ lib/tevent/wscript
+@@ -38,7 +38,7 @@ def configure(conf):
+                 conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytevent', 'tevent', minversion=VERSION):
+                 conf.define('USING_SYSTEM_PYTEVENT', 1)
+ 
+-    if conf.CHECK_FUNCS('epoll_create', headers='sys/epoll.h'):
++    if not sys.platform.startswith('sunos') and conf.CHECK_FUNCS('epoll_create', headers='sys/epoll.h'):
+         conf.DEFINE('HAVE_EPOLL', 1)
+ 
+     tevent_num_signals = 64
diff --git a/samba4/patches/patch-lib_util_charset_charset__macosxfs.c b/samba4/patches/patch-lib_util_charset_charset__macosxfs.c
new file mode 100644
index 0000000000..339ff50220
--- /dev/null
+++ b/samba4/patches/patch-lib_util_charset_charset__macosxfs.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_util_charset_charset__macosxfs.c,v 1.1 2021/04/14 19:11:21 adam Exp $
+
+DEBUG is undefined.
+
+--- lib/util/charset/charset_macosxfs.c.orig	2021-04-14 09:58:53.000000000 +0000
++++ lib/util/charset/charset_macosxfs.c
+@@ -137,7 +137,7 @@ static inline UniChar *set_ucbuffer_with
+ /*
+  * A simple hexdump function for debugging error conditions.
+  */
+-#define	debug_out(s)	DEBUG(0,(s))
++#define	debug_out(s) /* nothing */	
+ 
+ #ifdef DEBUG_STRINGS
+ 
diff --git a/samba4/patches/patch-lib_util_smb__threads.h b/samba4/patches/patch-lib_util_smb__threads.h
new file mode 100644
index 0000000000..36f6af6898
--- /dev/null
+++ b/samba4/patches/patch-lib_util_smb__threads.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_util_smb__threads.h,v 1.3 2021/06/22 09:36:41 nia Exp $
+
+On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
+mutex data structure
+
+--- lib/util/smb_threads.h.orig	2020-07-09 09:33:56.000000000 +0000
++++ lib/util/smb_threads.h
+@@ -66,6 +66,7 @@ static int smb_create_mutex_pthread(cons
+ 	if (!pmut) { \
+ 		return ENOMEM; \
+ 	} \
++	memset(pmut, 0, sizeof(pthread_mutex_t)); \
+ 	pthread_mutex_init(pmut, NULL); \
+ 	*pplock = (void *)pmut; \
+ 	return 0; \
diff --git a/samba4/patches/patch-lib_util_tfork.c b/samba4/patches/patch-lib_util_tfork.c
new file mode 100644
index 0000000000..397648612a
--- /dev/null
+++ b/samba4/patches/patch-lib_util_tfork.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_util_tfork.c,v 1.2 2021/04/29 15:21:16 taca Exp $
+
+On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
+mutex data structure
+
+--- lib/util/tfork.c.orig	2019-01-15 10:07:00.000000000 +0000
++++ lib/util/tfork.c
+@@ -281,6 +281,7 @@ static void tfork_global_initialize(void
+ 	ret = pthread_key_create(&tfork_global_key, tfork_global_destructor);
+ 	assert(ret == 0);
+ 
++	memset(&signal_state.mutex, 0, sizeof(pthread_mutex_t));
+ 	ret = pthread_mutex_init(&signal_state.mutex, NULL);
+ 	assert(ret == 0);
+ 
diff --git a/samba4/patches/patch-libcli_dns_wscript__build b/samba4/patches/patch-libcli_dns_wscript__build
new file mode 100644
index 0000000000..dc83c1d603
--- /dev/null
+++ b/samba4/patches/patch-libcli_dns_wscript__build
@@ -0,0 +1,22 @@
+$NetBSD: patch-libcli_dns_wscript__build,v 1.2 2019/11/10 17:01:58 adam Exp $
+
+Don't build resolvconftest on SunOS (lacks fmemopen).
+
+--- libcli/dns/wscript_build.orig	2019-07-09 10:08:41.000000000 +0000
++++ libcli/dns/wscript_build
+@@ -1,11 +1,14 @@
+ #!/usr/bin/env python
+ 
++import sys
++
+ bld.SAMBA_LIBRARY('clidns',
+         source='dns.c resolvconf.c',
+         public_deps='LIBTSOCKET tevent-util ndr-standard',
+         private_library=True)
+ 
+-bld.SAMBA_BINARY('resolvconftest',
++if not sys.platform.startswith('sunos'):
++  bld.SAMBA_BINARY('resolvconftest',
+                   source='resolvconftest.c',
+                   deps='clidns',
+                   enabled=bld.CONFIG_SET('HAVE_FMEMOPEN'),
diff --git a/samba4/patches/patch-nsswitch_stress-nss-libwbclient.c b/samba4/patches/patch-nsswitch_stress-nss-libwbclient.c
new file mode 100644
index 0000000000..827d7609a2
--- /dev/null
+++ b/samba4/patches/patch-nsswitch_stress-nss-libwbclient.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-nsswitch_stress-nss-libwbclient.c,v 1.2 2021/04/29 15:21:16 taca Exp $
+
+On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
+mutex data structure
+
+--- nsswitch/stress-nss-libwbclient.c.orig	2019-01-15 10:07:00.000000000 +0000
++++ nsswitch/stress-nss-libwbclient.c
+@@ -118,6 +118,7 @@ int main(int argc, char *argv[])
+ 
+ 	state.username = argv[1];
+ 	state.timeout = time(NULL) + RUNTIME;
++	memset(&state.lock, 0, sizeof(pthread_mutex_t));
+ 	rc = pthread_mutex_init(&state.lock, NULL);
+ 	if (rc != 0) {
+ 		fprintf(stderr,
diff --git a/samba4/patches/patch-nsswitch_winbind__nss__netbsd.c b/samba4/patches/patch-nsswitch_winbind__nss__netbsd.c
new file mode 100644
index 0000000000..49f587d59e
--- /dev/null
+++ b/samba4/patches/patch-nsswitch_winbind__nss__netbsd.c
@@ -0,0 +1,34 @@
+$NetBSD: patch-nsswitch_winbind__nss__netbsd.c,v 1.2 2020/07/21 18:42:25 christos Exp $
+
+Syntax error fix.
+Add primary group support
+
+--- nsswitch/winbind_nss_netbsd.c.orig	2020-01-31 05:25:36.000000000 -0500
++++ nsswitch/winbind_nss_netbsd.c	2020-07-21 10:24:19.651265315 -0400
+@@ -176,6 +176,7 @@
+ {
+ 	int		*result	= va_arg(ap, int *);
+ 	const char 	*uname	= va_arg(ap, const char *);
++	gid_t		 agroup	= va_arg(ap, gid_t);
+ 	gid_t		*groups	= va_arg(ap, gid_t *);
+ 	int		 maxgrp	= va_arg(ap, int);
+ 	int		*groupc	= va_arg(ap, int *);
+@@ -185,10 +186,17 @@
+ 	};
+ 	struct winbindd_response response = {
+ 		.length = 0,
+-	}
++	};
+ 	gid_t	*wblistv;
+ 	int	wblistc, i, isdup, dupc;
+ 
++	/* add the primary group */
++	if (*groupc < maxgrp)
++		groups[*groupc] = agroup;
++	else
++		*result = -1;
++	(*groupc)++;
++
+ 	strncpy(request.data.username, uname,
+ 				sizeof(request.data.username) - 1);
+ 	i = winbindd_request_response(NULL, WINBINDD_GETGROUPS,
diff --git a/samba4/patches/patch-nsswitch_wscript__build b/samba4/patches/patch-nsswitch_wscript__build
new file mode 100644
index 0000000000..8c4b3909a6
--- /dev/null
+++ b/samba4/patches/patch-nsswitch_wscript__build
@@ -0,0 +1,16 @@
+$NetBSD: patch-nsswitch_wscript__build,v 1.1 2015/05/26 15:11:26 jperkin Exp $
+
+Use common library name on SunOS.
+
+--- nsswitch/wscript_build.orig	2015-02-24 18:59:51.000000000 +0000
++++ nsswitch/wscript_build
+@@ -77,8 +77,7 @@ elif Utils.unversioned_sys_platform() ==
+ 	bld.SAMBA_LIBRARY('nss_winbind',
+ 			  source='winbind_nss_solaris.c winbind_nss_linux.c',
+ 			  deps='winbind-client',
+-			  realname='nss_winbind.so.1',
+-			  vnum='1')
++			  realname='libnss_winbind.so')
+ elif (host_os.rfind('hpux') > -1):
+ 	bld.SAMBA_LIBRARY('nss_winbind',
+ 			  source='winbind_nss_linux.c',
diff --git a/samba4/patches/patch-source3_libsmb_pylibsmb.c b/samba4/patches/patch-source3_libsmb_pylibsmb.c
new file mode 100644
index 0000000000..8cb8d761ac
--- /dev/null
+++ b/samba4/patches/patch-source3_libsmb_pylibsmb.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-source3_libsmb_pylibsmb.c,v 1.2 2021/04/29 15:21:16 taca Exp $
+
+On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
+mutex data structure
+
+--- source3/libsmb/pylibsmb.c.orig	2019-05-07 08:38:21.000000000 +0000
++++ source3/libsmb/pylibsmb.c
+@@ -285,6 +285,7 @@ static int py_tevent_cond_wait(struct py
+ {
+ 	int ret, result;
+ 
++	memset(&cond->mutex, 0, sizeof(pthread_mutex_t));
+ 	result = pthread_mutex_init(&cond->mutex, NULL);
+ 	if (result != 0) {
+ 		goto fail;
diff --git a/samba4/patches/patch-source3_smbd_open.c b/samba4/patches/patch-source3_smbd_open.c
new file mode 100644
index 0000000000..fa94f7f0a4
--- /dev/null
+++ b/samba4/patches/patch-source3_smbd_open.c
@@ -0,0 +1,19 @@
+$NetBSD$
+
+--- source3/smbd/open.c.orig	2022-01-27 18:20:00.791110968 +0000
++++ source3/smbd/open.c
+@@ -1189,11 +1189,13 @@ static NTSTATUS reopen_from_procfd(struc
+ 
+ 	fsp->fsp_flags.is_pathref = false;
+ 
++	/* O_CREAT not useful for reopening, and it upsets BSD kernels,
++	 * see https://bugzilla.samba.org/show_bug.cgi?id=14727 . */
+ 	new_fd = SMB_VFS_OPENAT(fsp->conn,
+ 				fsp->conn->cwd_fsp,
+ 				&proc_fname,
+ 				fsp,
+-				flags,
++				flags & ~O_CREAT,
+ 				mode);
+ 	if (new_fd == -1) {
+ 		status = map_nt_error_from_unix(errno);
diff --git a/samba4/patches/patch-source3_smbd_process.c b/samba4/patches/patch-source3_smbd_process.c
new file mode 100644
index 0000000000..99950d4f9c
--- /dev/null
+++ b/samba4/patches/patch-source3_smbd_process.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-source3_smbd_process.c,v 1.2 2021/04/29 15:21:16 taca Exp $
+
+On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
+mutex data structure
+
+--- source3/smbd/process.c.orig	2019-01-15 10:07:00.000000000 +0000
++++ source3/smbd/process.c
+@@ -3342,6 +3342,7 @@ bool fork_echo_handler(struct smbXsrv_co
+ 			goto fail;
+ 		}
+ 
++		memset(&a, 0, sizeof(pthread_mutexattr_t));
+ 		res = pthread_mutexattr_init(&a);
+ 		if (res != 0) {
+ 			DEBUG(1, ("pthread_mutexattr_init failed: %s\n",
+@@ -3369,6 +3370,7 @@ bool fork_echo_handler(struct smbXsrv_co
+ 			pthread_mutexattr_destroy(&a);
+ 			goto fail;
+ 		}
++		memset(xconn->smb1.echo_handler.socket_mutex, 0, sizeof(pthread_mutex_t));
+ 		res = pthread_mutex_init(xconn->smb1.echo_handler.socket_mutex,
+ 					 &a);
+ 		pthread_mutexattr_destroy(&a);
diff --git a/samba4/patches/patch-source3_utils_net__offlinejoin.c b/samba4/patches/patch-source3_utils_net__offlinejoin.c
new file mode 100644
index 0000000000..da53b539cb
--- /dev/null
+++ b/samba4/patches/patch-source3_utils_net__offlinejoin.c
@@ -0,0 +1,19 @@
+$NetBSD$
+
+Fix netapi header usage to follow othertools, preferring local paths.
+Otherwise, <netapi.h> can be easily resolved to an instance from an
+old samba install in the system.
+
+--- source3/utils/net_offlinejoin.c.orig	2022-01-28 16:10:18.562082156 +0000
++++ source3/utils/net_offlinejoin.c
+@@ -19,8 +19,8 @@
+ 
+ #include "includes.h"
+ #include "utils/net.h"
+-#include <netapi.h>
+-#include "netapi/netapi_net.h"
++#include "lib/netapi/netapi.h"
++#include "lib/netapi/netapi_net.h"
+ #include "libcli/registry/util_reg.h"
+ 
+ int net_offlinejoin_usage(struct net_context *c, int argc, const char **argv)
diff --git a/samba4/patches/patch-source4_dsdb_samdb_ldb__modules_wscript__build__server b/samba4/patches/patch-source4_dsdb_samdb_ldb__modules_wscript__build__server
new file mode 100644
index 0000000000..3ac827136c
--- /dev/null
+++ b/samba4/patches/patch-source4_dsdb_samdb_ldb__modules_wscript__build__server
@@ -0,0 +1,22 @@
+$NetBSD: patch-source4_dsdb_samdb_ldb__modules_wscript__build__server,v 1.2 2020/04/02 11:21:42 adam Exp $
+
+Some linkers do not support --wrap.
+
+--- source4/dsdb/samdb/ldb_modules/wscript_build_server.orig	2020-01-31 10:25:36.000000000 +0000
++++ source4/dsdb/samdb/ldb_modules/wscript_build_server
+@@ -54,6 +54,7 @@ bld.SAMBA_BINARY('test_audit_log_errors'
+                      -Wl,--wrap,json_add_version
+                      -Wl,--wrap,json_add_timestamp
+                  ''',
++                 enabled=bld.env['HAVE_LDWRAP'],
+                  for_selftest=True)
+ 
+ bld.SAMBA_BINARY('test_group_audit',
+@@ -87,6 +88,7 @@ bld.SAMBA_BINARY('test_group_audit_error
+                      -Wl,--wrap,json_add_version
+                      -Wl,--wrap,json_add_timestamp
+                  ''',
++                 enabled=bld.env['HAVE_LDWRAP'],
+                  for_selftest=True)
+ 
+ bld.SAMBA_MODULE('ldb_samba_dsdb',
diff --git a/samba4/patches/patch-source4_heimdal__build_roken.h b/samba4/patches/patch-source4_heimdal__build_roken.h
new file mode 100644
index 0000000000..89a5149c8c
--- /dev/null
+++ b/samba4/patches/patch-source4_heimdal__build_roken.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-source4_heimdal__build_roken.h,v 1.2 2020/04/02 11:21:42 adam Exp $
+
+Substitute SYSCONFDIR in embedded Heimdal too.
+
+--- source4/heimdal_build/roken.h.orig	2021-08-09 13:38:36.703383700 +0000
++++ source4/heimdal_build/roken.h
+@@ -7,7 +7,7 @@
+ #include "config.h"
+ 
+ /* path to sysconf - should we force this to samba LIBDIR ? */
+-#define SYSCONFDIR "/etc"
++#define SYSCONFDIR "/data/pkg/etc"
+ 
+ #define rk_PATH_DELIM '/'
+ 
diff --git a/samba4/patches/patch-source4_heimdal_include_heim__threads.h b/samba4/patches/patch-source4_heimdal_include_heim__threads.h
new file mode 100644
index 0000000000..6a3d7a3138
--- /dev/null
+++ b/samba4/patches/patch-source4_heimdal_include_heim__threads.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-source4_heimdal_include_heim__threads.h,v 1.2 2021/04/29 15:21:16 taca Exp $
+
+On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
+mutex data structure
+
+--- source4/heimdal/include/heim_threads.h.orig	2019-01-15 10:07:00.000000000 +0000
++++ source4/heimdal/include/heim_threads.h
+@@ -87,7 +87,7 @@
+ 
+ #define HEIMDAL_MUTEX pthread_mutex_t
+ #define HEIMDAL_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER
+-#define HEIMDAL_MUTEX_init(m) pthread_mutex_init(m, NULL)
++#define HEIMDAL_MUTEX_init(m) memset(m, 0, sizeof(pthread_mutex_t));pthread_mutex_init(m, NULL)
+ #define HEIMDAL_MUTEX_lock(m) pthread_mutex_lock(m)
+ #define HEIMDAL_MUTEX_unlock(m) pthread_mutex_unlock(m)
+ #define HEIMDAL_MUTEX_destroy(m) pthread_mutex_destroy(m)
diff --git a/samba4/patches/patch-source4_scripting_wsript_build b/samba4/patches/patch-source4_scripting_wsript_build
new file mode 100644
index 0000000000..22a30b638a
--- /dev/null
+++ b/samba4/patches/patch-source4_scripting_wsript_build
@@ -0,0 +1,24 @@
+$NetBSD: patch-source4_scripting_wsript_build,v 1.3 2018/11/23 07:30:02 ryoon Exp $
+
+Avoid getting strange ending # character on interpreter 
+name like: 
+#!/usr/pkg/bin/python2.7#
+
+--- source4/scripting/wscript_build.orig	2021-08-09 13:38:36.779384600 +0000
++++ source4/scripting/wscript_build
+@@ -12,13 +12,13 @@ if not bld.env.disable_python:
+ if sbin_files:
+     bld.INSTALL_FILES('${SBINDIR}',
+                       sbin_files,
+-                      chmod=MODE_755, python_fixup=True, flat=True)
++                      chmod=MODE_755, python_fixup=False, flat=True)
+     if 'XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']:
+         bld.MANPAGES(man_files, True)
+ 
+ if bld.CONFIG_SET('WITH_ADS'):
+     bld.INSTALL_FILES('${BINDIR}',
+                   'bin/samba-tool',
+-                  chmod=MODE_755, python_fixup=True, flat=True)
++                  chmod=MODE_755, python_fixup=False, flat=True)
+ 
+ bld.RECURSE('bin')
diff --git a/samba4/patches/patch-source4_utils_oLschema2ldif_wscript__build b/samba4/patches/patch-source4_utils_oLschema2ldif_wscript__build
new file mode 100644
index 0000000000..f91399029d
--- /dev/null
+++ b/samba4/patches/patch-source4_utils_oLschema2ldif_wscript__build
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- source4/utils/oLschema2ldif/wscript_build.orig	2021-08-09 13:38:37.571391800 +0000
++++ source4/utils/oLschema2ldif/wscript_build
+@@ -1,5 +1,7 @@
+ #!/usr/bin/env python
+ 
++import sys
++
+ bld.SAMBA_SUBSYSTEM('oLschema2ldif-lib',
+ 	source='lib.c',
+ 	deps='samdb',


Home | Main Index | Thread Index | Old Index