samba3 stable port information

Package: samba3
Version: 3.6.0
Revision: 1
Description: SMB and CIFS client and server for UNIX
DescDetail: <<
The Samba software suite is a collection of programs that implements
the Server Message Block (commonly abbreviated as SMB) protocol for
UNIX systems. This protocol is sometimes also referred to as the Common
Internet File System (CIFS). For a more thorough description, see
http://www.ubiqx.org/cifs/. Samba also implements the NetBIOS protocol
in nmbd.
<<
DescUsage: <<
No attempt to start the smbd server automatically has been made as it
could interfere with OS X's own smbd server. This might be implemented
later but for now is left as an exercise for the user.
<<
Homepage: http://www.samba.org/
License: GPL3
Maintainer: Daniel Johnson

Source: http://www.samba.org/samba/ftp/stable/samba-%v.tar.gz
Source-MD5: e297e0ea7923c7de8d7c1d8fd0ec0a05

PatchFile: %n.patch
PatchFile-MD5: dff232a769c8f3a0bb074da8b973f32f

Depends: <<
%N-shlibs (= %v-%r),
libiconv,
libncurses5-shlibs,
libtalloc2-shlibs,
libtdb1-shlibs,
openldap24-shlibs,
popt-shlibs,
readline5-shlibs
<<
BuildDepends: <<
cups-dev,
fink (>= 0.28),
gettext-tools,
libiconv-dev,
libncurses5,
libtalloc2,
libtdb1,
openldap24-dev,
pkgconfig,
popt,
readline5
<<
UseMaxBuildJobs: true

ConfigureParams: <<
--disable-fam \
--enable-dnssd \
--disable-avahi \
--with-fhs \
--with-included-iniparser
<<

CompileScript: <<
#!/bin/bash -ev
cd source3
%{default_script}
<<

InstallScript: <<
cd source3 && make install DESTDIR=%d
<<

DocFiles: COPYING MAINTAINERS.txt README WHATSNEW.txt docs/htmldocs/*

SplitOff: <<
Package: %N-shlibs

Depends: <<
libiconv,
libtalloc2-shlibs,
libtdb1-shlibs,
openldap24-shlibs
<<

Files: lib/lib*.0 lib/samba lib/security
Shlibs: <<
%p/lib/libnetapi.dylib.0 0.0.0 %n (>= 3.6.0-1)
%p/lib/libsmbclient.dylib.0 0.0.0 %n (>= 3.6.0-1)
%p/lib/libsmbsharemodes.dylib.0 0.0.0 %n (>= 3.6.0-1)
<<

DocFiles: COPYING MAINTAINERS.txt README WHATSNEW.txt
<<

SplitOff2: <<
Package: %N-dev

Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: true

Files: include lib/lib*.dylib

DocFiles: COPYING MAINTAINERS.txt README WHATSNEW.txt
<<

samba3 stable port .patch

diff -ru samba-3.6.0.orig/source3/Makefile.in samba-3.6.0/source3/Makefile.in
--- samba-3.6.0.orig/source3/Makefile.in 2011-08-09 07:17:47.000000000 -0400
+++ samba-3.6.0/source3/Makefile.in 2011-08-11 11:15:53.000000000 -0400
@@ -48,7 +48,7 @@
EXEEXT=@EXEEXT@
AR=@AR@
LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
-LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
+LDSHFLAGS_MODULES=$(PICFLAG) -bundle @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@

WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
@@ -2679,7 +2679,7 @@
-o $@ @SONAMEFLAG@`basename $@`
# Linker command to link samba internal plugin modules:
SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
- -o $@ @SONAMEFLAG@`basename $@`
+ -o $@ #`basename $@`

bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
@echo "Linking $@"
@@ -3115,7 +3115,7 @@

bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDB)
@echo "Linking shared library $@"
- @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
+ @$(SHLD) $(LDSHFLAGS_MODULES) -o $@ $(PAM_SMBPASS_OBJ) $(LIBCLI_LDAP_NDR_OBJ) -lpam $(DYNEXP) \
$(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
$(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(LIBWBCLIENT_LIBS)

diff -ru samba-3.6.0.orig/source3/client/dnsbrowse.c samba-3.6.0/source3/client/dnsbrowse.c
--- samba-3.6.0.orig/source3/client/dnsbrowse.c 2011-08-09 07:17:47.000000000 -0400
+++ samba-3.6.0/source3/client/dnsbrowse.c 2011-08-10 22:30:19.000000000 -0400
@@ -91,7 +91,7 @@
}
}

- TALLOC_FREE(fdset);
+ TALLOC_FREE(ctx);
DNSServiceRefDeallocate(mdns_conn_sdref);
}

diff -ru samba-3.6.0.orig/source3/configure samba-3.6.0/source3/configure
--- samba-3.6.0.orig/source3/configure 2011-08-09 07:35:40.000000000 -0400
+++ samba-3.6.0/source3/configure 2011-08-10 21:52:16.000000000 -0400
@@ -19396,7 +19396,9 @@
$as_echo "#define DARWINOS 1" >>confdefs.h

BLDSHARED="true"
- LDSHFLAGS="-dynamiclib -flat_namespace -undefined suppress"
+ LDSHFLAGS="-dynamiclib"
+ SONAMEFLAG="-install_name ${libdir}/"
+ LDSHFLAGS_Z_NODEFS="-undefined dynamic_lookup"
CFLAGS="$CFLAGS -fno-common"
SHLD="\${CC}"
SHLIBEXT="dylib"
diff -ru samba-3.6.0.orig/source3/include/config.h.in samba-3.6.0/source3/include/config.h.in
--- samba-3.6.0.orig/source3/include/config.h.in 2011-08-09 07:35:39.000000000 -0400
+++ samba-3.6.0/source3/include/config.h.in 2011-08-10 21:53:15.000000000 -0400
@@ -1927,7 +1927,7 @@
#undef HAVE_SS_FAMILY

/* Define to 1 if you have the header file. */
-#undef HAVE_STANDARDS_H
+/* #undef HAVE_STANDARDS_H */

/* Whether stat64() is available */
#undef HAVE_STAT64

samba3 _unstable_ port .patch