source: trunk/dports/net/samba3/Portfile @ 28664

Last change on this file since 28664 was 28664, checked in by mww@…, 13 years ago

version 3.0.25c

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 28664 2007-09-06 12:22:19Z mww@macports.org $
2
3PortSystem 1.0
4
5name                    samba3
6version                 3.0.25c
7categories              net
8platforms               darwin
9maintainers             nomaintainer@macports.org
10description             SMB/CIFS implementation
11long_description        Samba is an software suite that provides seamless file and \
12                                        print services to SMB/CIFS clients
13
14homepage                http://www.samba.org/
15master_sites    http://us1.samba.org/samba/ftp/stable/ \
16                                ftp://ftp.bit.nl/mirror/samba/stable/ \
17                                ftp://de.samba.org/samba.org/stable/ \
18                                ftp://us4.samba.org/pub/samba/stable/ \
19                                ftp://ru.samba.org/pub/samba/stable/
20distname                samba-${version}
21checksums               md5 87950694270b86cbc1b2074cb53dd1aa
22depends_build           port:cups-headers
23depends_lib             port:libiconv port:openssl port:popt
24
25worksrcdir              ${worksrcdir}/source
26
27configure.cflags-append "-fno-common"
28configure.cppflags-append "-DHAVE_STRUCT_TIMESPEC"
29configure.args  --with-mandir=${prefix}/share/man \
30                                --with-libdir=${prefix}/lib/${name} \
31                                --with-privatedir=${prefix}/var/db/smb \
32                                --with-configdir=${prefix}/etc/samba3/ \
33                                --with-swatdir=${prefix}/share/${name}/swat \
34                                --with-readline=${prefix} \
35                                --with-krb5=/usr \
36                                --without-included-popt \
37                                --without-readline \
38                                --enable-cups
39
40post-patch {
41        reinplace "s|-bundle|-dynamiclib|g" ${worksrcpath}/configure
42
43### BAND-AID: libs in subdirectories of ${prefix}/lib/samba3 will
44###   still have unresolved symbols since the makefile doesn't contain
45###   any information about install location at link time...
46        reinplace "s|@\$\(SHLD\) \$\(LDSHFLAGS\)|@\$\(SHLD\) \$\(LDSHFLAGS\) -install_name @libdir@/`basename \$@`|g" \
47                ${worksrcpath}/Makefile.in
48}
49
50platform darwin 8 {
51        configure.compiler      gcc-4.0
52}
53
54post-destroot {
55        xinstall -m 755 -d ${destroot}${prefix}/etc/samba3/ \
56                ${destroot}${prefix}/var/db/smb/
57        xinstall -m 644 ${worksrcpath}/../examples/smb.conf.default \
58                ${destroot}${prefix}/etc/samba3/smb.conf.sample
59        system "touch ${destroot}${prefix}/etc/samba3/lmhosts.sample"
60        system "touch ${destroot}${prefix}/var/db/smb/secrets.tdb.sample"
61}
62
Note: See TracBrowser for help on using the repository browser.