This patch fixes an error when building net/samba on Haiku:
-----------------------------------------------------------------------
diff --git a/net/samba/Makefile b/net/samba/Makefile
index fda19d5..0a3b724 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -74,12 +74,16 @@ CONFIGURE_ARGS+= --enable-merged-build=no
.include "../../net/samba/options.mk"
-PLIST_VARS+= macosx
+PLIST_VARS+= macosx haiku
.if ${OPSYS} == "Darwin"
PLIST.macosx= yes
.endif
+.if ${OPSYS} == "Haiku"
+PLIST.haiku= yes
+.endif
+
.if ${_OPSYS_SHLIB_TYPE} == "dylib"
PLIST_SUBST+= LIBEXT=dylib
SAMBA_LIBEXT= dylib
diff --git a/net/samba/PLIST b/net/samba/PLIST
index 7ad147c..09e1a57 100644
--- a/net/samba/PLIST
+++ b/net/samba/PLIST
@@ -70,6 +70,7 @@ lib/samba/vfs/catia.${LIBEXT}
lib/samba/vfs/crossrename.${LIBEXT}
lib/samba/vfs/default_quota.${LIBEXT}
${PLIST.macosx}lib/samba/vfs/dirsort.${LIBEXT}
+${PLIST.haiku}lib/samba/vfs/dirsort.${LIBEXT}
lib/samba/vfs/expand_msdfs.${LIBEXT}
lib/samba/vfs/extd_audit.${LIBEXT}
lib/samba/vfs/fake_perms.${LIBEXT}
@@ -88,6 +89,7 @@ lib/samba/vfs/smb_traffic_analyzer.${LIBEXT}
lib/samba/vfs/streams_depot.${LIBEXT}
lib/samba/vfs/streams_xattr.${LIBEXT}
${PLIST.macosx}lib/samba/vfs/syncops.${LIBEXT}
+${PLIST.haiku}lib/samba/vfs/syncops.${LIBEXT}
lib/samba/vfs/time_audit.${LIBEXT}
lib/samba/vfs/xattr_tdb.${LIBEXT}
${PLIST.pam}lib/security/pam_smbpass.${LIBEXT}
-----------------------------------------------------------------------------