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

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

Closes #10944 and #12039. Update to 3.0.25a.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 25758 2007-05-31 15:19:47Z markd@macports.org $
2
3PortSystem 1.0
4
5name                    samba3
6version                 3.0.25a
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 cbd33bb5d904ccd8a294a4019743745d
22depends_build   port:cups-headers
23depends_lib             port:libiconv \
24                                port:openssl \
25                                port:popt
26
27worksrcdir              ${worksrcdir}/source
28
29configure.env   CFLAGS="-I${prefix}/include -fno-common" \
30                                CPPFLAGS="-I${prefix}/include -DHAVE_STRUCT_TIMESPEC" \
31                                LDFLAGS=-L${prefix}/lib
32configure.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
43post-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
53platform 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
57post-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
Note: See TracBrowser for help on using the repository browser.