samba-4.7 doesn't build right now, because of the usual waf madness.
Here's an update to the latest release of the 4.6 branch. An
additional patch is needed because <net/if.h> isn't properly detected if
<sys/socket.h> isn't included first.
Runtime not tested, feedback, test reports and oks welcome as usual.
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/samba/Makefile,v
retrieving revision 1.244
diff -u -p -r1.244 Makefile
--- Makefile 2 Nov 2017 23:46:37 -0000 1.244
+++ Makefile 20 Nov 2017 01:48:24 -0000
@@ -1,6 +1,6 @@
# $OpenBSD: Makefile,v 1.244 2017/11/02 23:46:37 jca Exp $
-VERSION = 4.5.14
+VERSION = 4.6.10
DISTNAME = samba-${VERSION}
COMMENT-main = SMB and CIFS client and server for UNIX
@@ -15,22 +15,17 @@ PKGNAME-tevent = tevent-${TEVENT_V}
PKGNAME-util = samba-util-${VERSION}
PKGNAME-docs = samba-docs-${VERSION}
-REVISION-main = 1
-REVISION-tevent = 2
-REVISION-ldb = 1
-REVISION-util = 0
-
PKG_ARCH-docs = *
-LDB_V = 1.1.27
-TEVENT_V = 0.9.29
+LDB_V = 1.1.29
+TEVENT_V = 0.9.34
SHARED_LIBS = asn1-samba4 0.0 \
com_err-samba4 0.0 \
dcerpc 0.0 \
- dcerpc-binding 1.0 \
+ dcerpc-binding 1.1 \
dcerpc-samr 0.0 \
- dcerpc-server 2.0 \
+ dcerpc-server 3.0 \
gssapi-samba4 0.0 \
hcrypto-samba4 0.0 \
hdb-samba4 0.0 \
@@ -38,31 +33,31 @@ SHARED_LIBS = asn1-samba4 0.0 \
heimntlm-samba4 0.0 \
hx509-samba4 0.0 \
kdc-samba4 0.0 \
- krb5-samba4 0.0 \
- ldb 0.3 \
+ krb5-samba4 0.1 \
+ ldb 0.1 \
ndr 0.2 \
ndr-krb5pac 0.1 \
ndr-nbt 0.1 \
- ndr-standard 1.0 \
+ ndr-standard 2.0 \
netapi 2.0 \
- pyldb-util 0.0 \
+ pyldb-util 0.1 \
roken-samba4 0.0 \
- samba-credentials 0.0 \
+ samba-credentials 0.1 \
samba-errors 0.0 \
- samba-hostconfig 2.0 \
- samba-passdb 0.1 \
+ samba-hostconfig 2.1 \
+ samba-passdb 1.0 \
samba-policy 0.0 \
- samba-util 1.1 \
+ samba-util 2.0 \
samdb 0.0 \
smbclient 4.1 \
- smbconf 1.0 \
+ smbconf 2.0 \
smbldap 0.0 \
- tevent 0.2 \
+ tevent 0.3 \
tevent-util 0.1 \
wbclient 3.1 \
wind-samba4 0.0 \
- replace 1.0 \
- util-setid 1.0
+ replace 2.0 \
+ util-setid 2.0
CATEGORIES = net sysutils security
@@ -105,7 +100,8 @@ MULTI_PACKAGES = -main -ldb -tevent -uti
MODULES = lang/python perl
-BUILD_DEPENDS = devel/p5-Parse-Yapp>=1.0.5 \
+BUILD_DEPENDS = devel/cmocka \
+ devel/p5-Parse-Yapp>=1.0.5 \
net/py-dnspython \
textproc/docbook-xsl \
x11/dbus
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/samba/distinfo,v
retrieving revision 1.61
diff -u -p -r1.61 distinfo
--- distinfo 23 Sep 2017 22:59:18 -0000 1.61
+++ distinfo 19 Nov 2017 23:11:33 -0000
@@ -1,2 +1,2 @@
-SHA256 (samba-4.5.14.tar.gz) = FdwE/SsZCB2vERgxj0P4jvcmCz/G5Phu58eRO7fJLtk=
-SIZE (samba-4.5.14.tar.gz) = 21016317
+SHA256 (samba-4.6.10.tar.gz) = WROlabVMa8JhvCRdcyb6v8ukKDnRWoLbSMBH3h6xliY=
+SIZE (samba-4.6.10.tar.gz) = 21157041
Index: patches/patch-buildtools_wafsamba_samba_autoconf_py
===================================================================
RCS file: /cvs/ports/net/samba/patches/patch-buildtools_wafsamba_samba_autoconf_py,v
retrieving revision 1.5
diff -u -p -r1.5 patch-buildtools_wafsamba_samba_autoconf_py
--- patches/patch-buildtools_wafsamba_samba_autoconf_py 9 Nov 2016 15:59:37 -0000 1.5
+++ patches/patch-buildtools_wafsamba_samba_autoconf_py 6 Nov 2017 17:13:44 -0000
@@ -4,9 +4,10 @@ $OpenBSD: patch-buildtools_wafsamba_samb
2. Use -Wl,-no-undefined as on other platforms.
---- buildtools/wafsamba/samba_autoconf.py.orig Mon Sep 12 18:42:31 2016
-+++ buildtools/wafsamba/samba_autoconf.py Mon Sep 12 18:42:31 2016
-@@ -805,6 +805,27 @@ def ADD_LDFLAGS(conf, flags, testflags=False):
+Index: buildtools/wafsamba/samba_autoconf.py
+--- buildtools/wafsamba/samba_autoconf.py.orig
++++ buildtools/wafsamba/samba_autoconf.py
+@@ -806,6 +806,27 @@ def ADD_LDFLAGS(conf, flags, testflags=False):
if not 'EXTRA_LDFLAGS' in conf.env:
conf.env['EXTRA_LDFLAGS'] = []
conf.env['EXTRA_LDFLAGS'].extend(TO_LIST(flags))
@@ -34,7 +35,7 @@ $OpenBSD: patch-buildtools_wafsamba_samb
return flags
-@@ -868,10 +889,9 @@ def SETUP_CONFIGURE_CACHE(conf, enable):
+@@ -869,10 +890,9 @@ def SETUP_CONFIGURE_CACHE(conf, enable):
def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf):
# we don't want any libraries or modules to rely on runtime
# resolution of symbols
Index: patches/patch-lib_replace_wscript
===================================================================
RCS file: patches/patch-lib_replace_wscript
diff -N patches/patch-lib_replace_wscript
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-lib_replace_wscript 20 Nov 2017 01:00:05 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: lib/replace/wscript
+--- lib/replace/wscript.orig
++++ lib/replace/wscript
+@@ -167,6 +167,8 @@ def configure(conf):
+ msg='Checking for IPV6_V6ONLY in linux/in6.h',
+ local_include=False)
+
++ # these headers need to be tested as a group on freebsd and openbsd
++ conf.CHECK_HEADERS(headers='sys/socket.h net/if.h', together=True)
+ conf.CHECK_CODE('''
+ struct sockaddr_storage sa_store;
+ struct addrinfo *ai = NULL;
Index: patches/patch-lib_tevent_tevent_internal_h
===================================================================
RCS file: patches/patch-lib_tevent_tevent_internal_h
diff -N patches/patch-lib_tevent_tevent_internal_h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-lib_tevent_tevent_internal_h 19 Nov 2017 21:32:47 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Index: lib/tevent/tevent_internal.h
+--- lib/tevent/tevent_internal.h.orig
++++ lib/tevent/tevent_internal.h
+@@ -27,6 +27,10 @@
+ License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ */
+
++#ifdef HAVE_PTHREAD
++#include <pthread.h>
++#endif
++
+ struct tevent_req {
+ /**
+ * @brief What to do on completion
Index: pkg/PLIST-docs
===================================================================
RCS file: /cvs/ports/net/samba/pkg/PLIST-docs,v
retrieving revision 1.24
diff -u -p -r1.24 PLIST-docs
--- pkg/PLIST-docs 12 Apr 2016 17:42:09 -0000 1.24
+++ pkg/PLIST-docs 19 Nov 2017 23:36:26 -0000
@@ -42,6 +42,13 @@ share/examples/samba/autofs/auto.smb
share/examples/samba/dce-dfs/
share/examples/samba/dce-dfs/README
share/examples/samba/dce-dfs/smb.conf
+share/examples/samba/fuse/
+share/examples/samba/fuse/README
+share/examples/samba/fuse/clifuse.c
+share/examples/samba/fuse/clifuse.h
+share/examples/samba/fuse/smb2mount.c
+share/examples/samba/fuse/wscript
+share/examples/samba/fuse/wscript_build
share/examples/samba/libsmbclient/
share/examples/samba/libsmbclient/Makefile
share/examples/samba/libsmbclient/Makefile.internal.in
Index: pkg/PLIST-main
===================================================================
RCS file: /cvs/ports/net/samba/pkg/PLIST-main,v
retrieving revision 1.38
diff -u -p -r1.38 PLIST-main
--- pkg/PLIST-main 12 Mar 2017 22:19:50 -0000 1.38
+++ pkg/PLIST-main 19 Nov 2017 23:37:15 -0000
@@ -9,6 +9,7 @@ bin/findsmb
@bin bin/gentest
@bin bin/locktest
@bin bin/masktest
+@bin bin/mvxattr
@bin bin/ndrdump
@bin bin/net
@bin bin/nmblookup
@@ -122,7 +123,6 @@ include/samba-4.0/util/tevent_ntstatus.h
include/samba-4.0/util/tevent_unix.h
include/samba-4.0/util/tevent_werror.h
include/samba-4.0/util/time.h
-include/samba-4.0/util/xfile.h
include/samba-4.0/util_ldb.h
include/samba-4.0/wbclient.h
@lib lib/libdcerpc-binding.so.${LIBdcerpc-binding_VERSION}
@@ -161,6 +161,8 @@ lib/pkgconfig/samba-util.pc
lib/pkgconfig/samdb.pc
lib/pkgconfig/smbclient.pc
lib/pkgconfig/wbclient.pc
+lib/python${MODPY_VERSION}/
+lib/python${MODPY_VERSION}/site-packages/
lib/python${MODPY_VERSION}/site-packages/samba/
lib/python${MODPY_VERSION}/site-packages/samba/__init__.py
lib/python${MODPY_VERSION}/site-packages/samba/__init__.pyc
@@ -546,6 +548,9 @@ lib/python${MODPY_VERSION}/site-packages
lib/python${MODPY_VERSION}/site-packages/samba/tests/samba_tool/base.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/samba_tool/base.pyc
lib/python${MODPY_VERSION}/site-packages/samba/tests/samba_tool/base.${MODPY_PYOEXTENSION}
+lib/python${MODPY_VERSION}/site-packages/samba/tests/samba_tool/dnscmd.${MODPY_PYOEXTENSION}
+lib/python${MODPY_VERSION}/site-packages/samba/tests/samba_tool/dnscmd.py
+lib/python${MODPY_VERSION}/site-packages/samba/tests/samba_tool/dnscmd.pyc
lib/python${MODPY_VERSION}/site-packages/samba/tests/samba_tool/fsmo.py
lib/python${MODPY_VERSION}/site-packages/samba/tests/samba_tool/fsmo.pyc
lib/python${MODPY_VERSION}/site-packages/samba/tests/samba_tool/fsmo.${MODPY_PYOEXTENSION}
@@ -803,7 +808,6 @@ lib/samba/libsmbd-conn-samba4.so
lib/samba/libsmbd-shim-samba4.so
lib/samba/libsmbldaphelper-samba4.so
lib/samba/libsmbpasswdparser-samba4.so
-lib/samba/libsmbregistry-samba4.so
lib/samba/libsocket-blocking-samba4.so
lib/samba/libsys-rw-samba4.so
lib/samba/libtalloc-report-samba4.so
@@ -877,6 +881,7 @@ lib/samba/vfs/time_audit.so
lib/samba/vfs/unityed_media.so
lib/samba/vfs/worm.so
lib/samba/vfs/xattr_tdb.so
+lib/security/
lib/security/pam_winbind.so
lib/winbind_krb5_locator.so
${P5SITE}/Parse/
@@ -919,6 +924,7 @@ libexec/samba/
@man man/man1/locktest.1
@man man/man1/log2pcap.1
@man man/man1/masktest.1
+@man man/man1/mvxattr.1
@man man/man1/ndrdump.1
@man man/man1/nmblookup.1
@man man/man1/ntlm_auth.1
@@ -1032,10 +1038,12 @@ sbin/samba_upgradedns
@bin sbin/smbd
@bin sbin/winbindd
share/doc/pkg-readmes/${FULLPKGNAME}
+@comment share/doc/samba/
share/examples/samba/
@sample ${SYSCONFDIR}/samba/
share/examples/samba/smb.conf.default
@sample ${SYSCONFDIR}/samba/smb.conf
+@comment share/perl5/
share/samba/
share/samba/setup/
share/samba/setup/DB_CONFIG
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE