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
RevLine 
[20349]1# $Id: Portfile 28664 2007-09-06 12:22:19Z mww@macports.org $
[10220]2
3PortSystem 1.0
4
5name                    samba3
[28664]6version                 3.0.25c
[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}
[28664]21checksums               md5 87950694270b86cbc1b2074cb53dd1aa
22depends_build           port:cups-headers
23depends_lib             port:libiconv port:openssl port:popt
[10220]24
25worksrcdir              ${worksrcdir}/source
26
[28664]27configure.cflags-append "-fno-common"
[28544]28configure.cppflags-append "-DHAVE_STRUCT_TIMESPEC"
[13725]29configure.args  --with-mandir=${prefix}/share/man \
30                                --with-libdir=${prefix}/lib/${name} \
[10220]31                                --with-privatedir=${prefix}/var/db/smb \
[12172]32                                --with-configdir=${prefix}/etc/samba3/ \
[13725]33                                --with-swatdir=${prefix}/share/${name}/swat \
34                                --with-readline=${prefix} \
[12515]35                                --with-krb5=/usr \
[13725]36                                --without-included-popt \
[14656]37                                --without-readline \
[12172]38                                --enable-cups
[11003]39
[25758]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
[13725]50platform darwin 8 {
[28544]51        configure.compiler      gcc-4.0
[10220]52}
53
54post-destroot {
[12172]55        xinstall -m 755 -d ${destroot}${prefix}/etc/samba3/ \
[10220]56                ${destroot}${prefix}/var/db/smb/
[25758]57        xinstall -m 644 ${worksrcpath}/../examples/smb.conf.default \
[12172]58                ${destroot}${prefix}/etc/samba3/smb.conf.sample
59        system "touch ${destroot}${prefix}/etc/samba3/lmhosts.sample"
[10220]60        system "touch ${destroot}${prefix}/var/db/smb/secrets.tdb.sample"
61}
[15120]62
Note: See TracBrowser for help on using the repository browser.