# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup conflicts_build 1.0
description SMB/CIFS implementation
long_description Samba is an software suite that provides seamless file and \
print services to SMB/CIFS clients. \
OpenSSL based options are disabled by default \
homepage http://www.samba.org/
master_sites http://mirror.kent.ac.uk/sites/ftp.samba.org/ \
http://us1.samba.org/samba/ftp/stable/ \
ftp://ftp.bit.nl/mirror/samba/stable/ \
ftp://de.samba.org/samba.org/stable/ \
ftp://us4.samba.org/pub/samba/stable/ \
ftp://ru.samba.org/pub/samba/stable/
distname samba-${version}
worksrcdir ${worksrcdir}/source3
checksums rmd160 4df673ddac2a3fc8590820c8651e10f0dac90281 \
sha256 8f2c8a7f2bd89b0dfd228ed917815852f7c625b2bc0936304ac3ed63aaf83751
depends_lib port:popt port:zlib port:readline port:ncurses
configure.ldflags-append -lintl
configure.args --libdir=${prefix}/lib/${name} \
--with-privatedir=${prefix}/var/db/smb \
--with-configdir=${prefix}/etc/${name} \
--with-swatdir=${prefix}/share/${name}/swat \
--with-readline=${prefix} \
--without-included-popt \
patchfiles patch-Makefile.in.diff \
patch-source_pkgconfig_all_pc_in.diff \
patch-lib_system_smbd.c.diff
variant kerberos description "Enable Kerberos support" {
configure.args-delete --without-krb5
depends_lib-append port:kerberos5
variant openldap description "Enable OpenLDAP support" {
configure.args-delete --without-ldap
depends_lib-append port:openldap