# $Id: Portfile 28664 2007-09-06 12:22:19Z mww@macports.org $ PortSystem 1.0 name samba3 version 3.0.25c categories net platforms darwin maintainers nomaintainer@macports.org description SMB/CIFS implementation long_description Samba is an software suite that provides seamless file and \ print services to SMB/CIFS clients homepage http://www.samba.org/ master_sites 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} checksums md5 87950694270b86cbc1b2074cb53dd1aa depends_build port:cups-headers depends_lib port:libiconv port:openssl port:popt worksrcdir ${worksrcdir}/source configure.cflags-append "-fno-common" configure.cppflags-append "-DHAVE_STRUCT_TIMESPEC" configure.args --with-mandir=${prefix}/share/man \ --with-libdir=${prefix}/lib/${name} \ --with-privatedir=${prefix}/var/db/smb \ --with-configdir=${prefix}/etc/samba3/ \ --with-swatdir=${prefix}/share/${name}/swat \ --with-readline=${prefix} \ --with-krb5=/usr \ --without-included-popt \ --without-readline \ --enable-cups post-patch { reinplace "s|-bundle|-dynamiclib|g" ${worksrcpath}/configure ### BAND-AID: libs in subdirectories of ${prefix}/lib/samba3 will ### still have unresolved symbols since the makefile doesn't contain ### any information about install location at link time... reinplace "s|@\$\(SHLD\) \$\(LDSHFLAGS\)|@\$\(SHLD\) \$\(LDSHFLAGS\) -install_name @libdir@/`basename \$@`|g" \ ${worksrcpath}/Makefile.in } platform darwin 8 { configure.compiler gcc-4.0 } post-destroot { xinstall -m 755 -d ${destroot}${prefix}/etc/samba3/ \ ${destroot}${prefix}/var/db/smb/ xinstall -m 644 ${worksrcpath}/../examples/smb.conf.default \ ${destroot}${prefix}/etc/samba3/smb.conf.sample system "touch ${destroot}${prefix}/etc/samba3/lmhosts.sample" system "touch ${destroot}${prefix}/var/db/smb/secrets.tdb.sample" }