1 | # $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name samba3 |
---|
6 | version 3.0.25a |
---|
7 | categories net |
---|
8 | platforms darwin |
---|
9 | maintainers nomaintainer@macports.org |
---|
10 | description SMB/CIFS implementation |
---|
11 | long_description Samba is an software suite that provides seamless file and \ |
---|
12 | print services to SMB/CIFS clients |
---|
13 | |
---|
14 | homepage http://www.samba.org/ |
---|
15 | master_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/ |
---|
20 | distname samba-${version} |
---|
21 | checksums md5 cbd33bb5d904ccd8a294a4019743745d |
---|
22 | depends_build port:cups-headers |
---|
23 | depends_lib port:libiconv \ |
---|
24 | port:openssl \ |
---|
25 | port:popt |
---|
26 | |
---|
27 | worksrcdir ${worksrcdir}/source |
---|
28 | |
---|
29 | configure.env CFLAGS="-I${prefix}/include -fno-common" \ |
---|
30 | CPPFLAGS="-I${prefix}/include -DHAVE_STRUCT_TIMESPEC" \ |
---|
31 | LDFLAGS=-L${prefix}/lib |
---|
32 | configure.args --with-mandir=${prefix}/share/man \ |
---|
33 | --with-libdir=${prefix}/lib/${name} \ |
---|
34 | --with-privatedir=${prefix}/var/db/smb \ |
---|
35 | --with-configdir=${prefix}/etc/samba3/ \ |
---|
36 | --with-swatdir=${prefix}/share/${name}/swat \ |
---|
37 | --with-readline=${prefix} \ |
---|
38 | --with-krb5=/usr \ |
---|
39 | --without-included-popt \ |
---|
40 | --without-readline \ |
---|
41 | --enable-cups |
---|
42 | |
---|
43 | post-patch { |
---|
44 | reinplace "s|-bundle|-dynamiclib|g" ${worksrcpath}/configure |
---|
45 | |
---|
46 | ### BAND-AID: libs in subdirectories of ${prefix}/lib/samba3 will |
---|
47 | ### still have unresolved symbols since the makefile doesn't contain |
---|
48 | ### any information about install location at link time... |
---|
49 | reinplace "s|@\$\(SHLD\) \$\(LDSHFLAGS\)|@\$\(SHLD\) \$\(LDSHFLAGS\) -install_name @libdir@/`basename \$@`|g" \ |
---|
50 | ${worksrcpath}/Makefile.in |
---|
51 | } |
---|
52 | |
---|
53 | platform darwin 8 { |
---|
54 | configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 |
---|
55 | } |
---|
56 | |
---|
57 | post-destroot { |
---|
58 | xinstall -m 755 -d ${destroot}${prefix}/etc/samba3/ \ |
---|
59 | ${destroot}${prefix}/var/db/smb/ |
---|
60 | xinstall -m 644 ${worksrcpath}/../examples/smb.conf.default \ |
---|
61 | ${destroot}${prefix}/etc/samba3/smb.conf.sample |
---|
62 | system "touch ${destroot}${prefix}/etc/samba3/lmhosts.sample" |
---|
63 | system "touch ${destroot}${prefix}/var/db/smb/secrets.tdb.sample" |
---|
64 | } |
---|
65 | |
---|