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
RevLine 
[20349]1# $Id: Portfile 25758 2007-05-31 15:19:47Z markd@macports.org $
[10220]2
3PortSystem 1.0
4
5name                    samba3
[25758]6version                 3.0.25a
[10220]7categories              net
8platforms               darwin
[22478]9maintainers             nomaintainer@macports.org
[10220]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/ \
[21876]19                                ftp://ru.samba.org/pub/samba/stable/
[10220]20distname                samba-${version}
[25758]21checksums               md5 cbd33bb5d904ccd8a294a4019743745d
[15120]22depends_build   port:cups-headers
23depends_lib             port:libiconv \
[13725]24                                port:openssl \
25                                port:popt
[10220]26
27worksrcdir              ${worksrcdir}/source
28
[25758]29configure.env   CFLAGS="-I${prefix}/include -fno-common" \
[14656]30                                CPPFLAGS="-I${prefix}/include -DHAVE_STRUCT_TIMESPEC" \
[10543]31                                LDFLAGS=-L${prefix}/lib
[13725]32configure.args  --with-mandir=${prefix}/share/man \
33                                --with-libdir=${prefix}/lib/${name} \
[10220]34                                --with-privatedir=${prefix}/var/db/smb \
[12172]35                                --with-configdir=${prefix}/etc/samba3/ \
[13725]36                                --with-swatdir=${prefix}/share/${name}/swat \
37                                --with-readline=${prefix} \
[12515]38                                --with-krb5=/usr \
[13725]39                                --without-included-popt \
[14656]40                                --without-readline \
[12172]41                                --enable-cups
[11003]42
[25758]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
[13725]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
[10220]55}
56
57post-destroot {
[12172]58        xinstall -m 755 -d ${destroot}${prefix}/etc/samba3/ \
[10220]59                ${destroot}${prefix}/var/db/smb/
[25758]60        xinstall -m 644 ${worksrcpath}/../examples/smb.conf.default \
[12172]61                ${destroot}${prefix}/etc/samba3/smb.conf.sample
62        system "touch ${destroot}${prefix}/etc/samba3/lmhosts.sample"
[10220]63        system "touch ${destroot}${prefix}/var/db/smb/secrets.tdb.sample"
64}
[15120]65
Note: See TracBrowser for help on using the repository browser.