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

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

replace configure.env as far as possible

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 28544 2007-09-03 12:13:16Z mww@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.cflags-append "-I${prefix}/include -fno-common"
30configure.cppflags-append "-DHAVE_STRUCT_TIMESPEC"
31configure.args  --with-mandir=${prefix}/share/man \
32                                --with-libdir=${prefix}/lib/${name} \
33                                --with-privatedir=${prefix}/var/db/smb \
34                                --with-configdir=${prefix}/etc/samba3/ \
35                                --with-swatdir=${prefix}/share/${name}/swat \
36                                --with-readline=${prefix} \
37                                --with-krb5=/usr \
38                                --without-included-popt \
39                                --without-readline \
40                                --enable-cups
41
42post-patch {
43        reinplace "s|-bundle|-dynamiclib|g" ${worksrcpath}/configure
44
45### BAND-AID: libs in subdirectories of ${prefix}/lib/samba3 will
46###   still have unresolved symbols since the makefile doesn't contain
47###   any information about install location at link time...
48        reinplace "s|@\$\(SHLD\) \$\(LDSHFLAGS\)|@\$\(SHLD\) \$\(LDSHFLAGS\) -install_name @libdir@/`basename \$@`|g" \
49                ${worksrcpath}/Makefile.in
50}
51
52platform darwin 8 {
53        configure.compiler      gcc-4.0
54}
55
56post-destroot {
57        xinstall -m 755 -d ${destroot}${prefix}/etc/samba3/ \
58                ${destroot}${prefix}/var/db/smb/
59        xinstall -m 644 ${worksrcpath}/../examples/smb.conf.default \
60                ${destroot}${prefix}/etc/samba3/smb.conf.sample
61        system "touch ${destroot}${prefix}/etc/samba3/lmhosts.sample"
62        system "touch ${destroot}${prefix}/var/db/smb/secrets.tdb.sample"
63}
64
Note: See TracBrowser for help on using the repository browser.