Package: samba3
Version: 3.6.25
Revision: 2
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 <daniel@daniel-johnson.org>

Source: http://www.samba.org/samba/ftp/stable/samba-%v.tar.gz
Source-Checksum: SHA256(8f2c8a7f2bd89b0dfd228ed917815852f7c625b2bc0936304ac3ed63aaf83751)

PatchFile: %n.patch
PatchFile-MD5: dff232a769c8f3a0bb074da8b973f32f

Depends: <<
	%N-shlibs (>= %v-%r),
	libiconv,
	libgettext8-shlibs,
	libncurses5-shlibs,
	libtalloc2-shlibs,
	libtdb1-shlibs,
	openldap24-shlibs,
	popt-shlibs,
	readline8-shlibs
<<
BuildDepends: <<
	cups-dev,
	fink (>= 0.28),
	gettext-tools,
	libiconv-dev,
	libgettext8-dev,
	libncurses5,
	libtalloc2 (>= 2.1.0-1),
	libtdb1 (>= 1.2.13-1),
	libtevent0,
	openldap24-dev,
	pkgconfig,
	popt,
	readline8
<<
Conflicts: <<
	samba3,
	samba4
<<
Replaces: <<
	samba3,
	samba4
<<
UseMaxBuildJobs: true

ConfigureParams: <<
	--disable-fam \
	--enable-dnssd \
	--disable-avahi \
	--with-fhs \
	--with-included-iniparser samba_cv_HAVE_Werror="no"
<<

CompileScript: <<
	#!/bin/bash -ev
	cd source3
	./configure %c
	make TERMLIBS="-lreadline -lncurses -lintl"
<<

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

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

SplitOff: <<
	Package: %N-shlibs
	
	Depends: <<
		libiconv,
		libtalloc2-shlibs (>= 2.1.0-1),
		libtdb1-shlibs (>= 1.2.13-1),
		libtevent0-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)
	Conflicts: <<
		samba3-dev,
		samba4-dev
	<<
	Replaces: <<
		samba3-dev,
		samba4-dev
	<<
	BuildDependsOnly: true
	
	Files: include lib/lib*.dylib
	
	DocFiles: COPYING MAINTAINERS.txt README WHATSNEW.txt
<<