New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #12039: Portfile.diff

File Portfile.diff, 2.0 KB (added by markd@…, 5 years ago)
  • Portfile

    old new  
    33PortSystem 1.0 
    44 
    55name                    samba3 
    6 version                 3.0.20b 
     6version                 3.0.25a 
    77categories              net 
    88platforms               darwin 
    99maintainers             nomaintainer@macports.org 
     
    1818                                ftp://us4.samba.org/pub/samba/stable/ \ 
    1919                                ftp://ru.samba.org/pub/samba/stable/ 
    2020distname                samba-${version} 
    21 checksums               md5 39c0cae08fe0224cb003aa0af97d3050 
     21checksums               md5 cbd33bb5d904ccd8a294a4019743745d 
    2222depends_build   port:cups-headers 
    2323depends_lib             port:libiconv \ 
    2424                                port:openssl \ 
     
    2626 
    2727worksrcdir              ${worksrcdir}/source 
    2828 
    29 patchfiles              patch-configure patch-libsmb_clikrb5.c 
    30  
    31 configure.env   CFLAGS=-I${prefix}/include \ 
     29configure.env   CFLAGS="-I${prefix}/include -fno-common" \ 
    3230                                CPPFLAGS="-I${prefix}/include -DHAVE_STRUCT_TIMESPEC" \ 
    3331                                LDFLAGS=-L${prefix}/lib 
    3432configure.args  --with-mandir=${prefix}/share/man \ 
     
    4240                                --without-readline \ 
    4341                                --enable-cups 
    4442 
     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 
    4553platform darwin 8 { 
    46         patchfiles-append               patch-darwin8-lib-system.c 
    4754        configure.env-append    CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 
    4855} 
    4956 
    5057post-destroot { 
    5158        xinstall -m 755 -d ${destroot}${prefix}/etc/samba3/ \ 
    5259                ${destroot}${prefix}/var/db/smb/ 
    53         xinstall -m 644 ${worksrcpath}/../packaging/Fedora/smb.conf \ 
     60        xinstall -m 644 ${worksrcpath}/../examples/smb.conf.default \ 
    5461                ${destroot}${prefix}/etc/samba3/smb.conf.sample 
    5562        system "touch ${destroot}${prefix}/etc/samba3/lmhosts.sample" 
    5663        system "touch ${destroot}${prefix}/var/db/smb/secrets.tdb.sample"