summaryrefslogtreecommitdiff
path: root/net/samba4
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2019-06-28 17:13:50 +0000
committerjperkin <jperkin@pkgsrc.org>2019-06-28 17:13:50 +0000
commit2e69dbcf978f84b6d4cefe590702dfdc43d51f7f (patch)
tree7d9fb5b0ce01fa97de51ad92242fd1ca50d8b0c7 /net/samba4
parentb40c5d635175609c77e1221ce30f742fab4c5637 (diff)
downloadpkgsrc-2e69dbcf978f84b6d4cefe590702dfdc43d51f7f.tar.gz
samba4: Build fixes for SunOS.
Diffstat (limited to 'net/samba4')
-rw-r--r--net/samba4/Makefile4
-rw-r--r--net/samba4/distinfo3
-rw-r--r--net/samba4/patches/patch-libcli_dns_wscript__build22
3 files changed, 26 insertions, 3 deletions
diff --git a/net/samba4/Makefile b/net/samba4/Makefile
index a03c0932d77..15eacf2f2dd 100644
--- a/net/samba4/Makefile
+++ b/net/samba4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2019/06/22 16:11:49 jmcneill Exp $
+# $NetBSD: Makefile,v 1.72 2019/06/28 17:13:50 jperkin Exp $
DISTNAME= samba-4.10.5
PKGREVISION= 1
@@ -115,7 +115,7 @@ 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
+LDFLAGS.SunOS+= -lsocket -lnsl -lsendfile
.include "options.mk"
diff --git a/net/samba4/distinfo b/net/samba4/distinfo
index b905084c886..27b5f5cb733 100644
--- a/net/samba4/distinfo
+++ b/net/samba4/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.31 2019/06/22 13:27:12 jmcneill Exp $
+$NetBSD: distinfo,v 1.32 2019/06/28 17:13:50 jperkin Exp $
SHA1 (samba-4.10.5.tar.gz) = 9444a1a0cafd2c734eab39d76908c5344421df99
RMD160 (samba-4.10.5.tar.gz) = c6ebda08f6dba92446383b18d0f3cce3a2199312
@@ -14,6 +14,7 @@ SHA1 (patch-dynconfig_wscript) = 1858e5fcca913f21aa3e7868d9760b9c40c9f5c4
SHA1 (patch-lib_param_loadparm.h) = 0216b69d33d1e17260a446e11bee764116c52b18
SHA1 (patch-lib_replace_wscript) = 2a754e7310850b376d5881b82a8467041284fce9
SHA1 (patch-lib_tevent_wscript) = fbbe2024096b57d651d90064f53489a974db9d7a
+SHA1 (patch-libcli_dns_wscript__build) = 40e6f864e2fb1b6abb198f1a51bb2c95bc8c6fb2
SHA1 (patch-nsswitch_winbind__nss__netbsd.c) = 71d8acd0aa4c297d75555fba650461c778495caa
SHA1 (patch-nsswitch_wscript__build) = e8a6251e031ffa13d6347fade8891f7afd65d3eb
SHA1 (patch-source4_dsdb_samdb_ldb__modules_wscript__build__server) = c322cf56995192039fa22548d6d6e50641c4c796
diff --git a/net/samba4/patches/patch-libcli_dns_wscript__build b/net/samba4/patches/patch-libcli_dns_wscript__build
new file mode 100644
index 00000000000..a598f0a00ca
--- /dev/null
+++ b/net/samba4/patches/patch-libcli_dns_wscript__build
@@ -0,0 +1,22 @@
+$NetBSD: patch-libcli_dns_wscript__build,v 1.1 2019/06/28 17:13:51 jperkin Exp $
+
+Don't build resolvconftest on SunOS (lacks fmemopen).
+
+--- libcli/dns/wscript_build.orig 2019-05-07 08:38:21.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',
+ install=False)