Ticket #42728: Portfile-gnutls.2.diff

File Portfile-gnutls.2.diff, 2.2 KB (added by Schamschula (Marius Schamschula), 10 years ago)
  • Portfile

    old new  
    55PortGroup  muniversal 1.0
    66
    77name            gnutls
    8 version         3.3.3
     8version         3.3.4
    99set branch      [join [lrange [split ${version} .] 0 1] .]
    1010categories      devel security
    1111# yes, some of the libs are GPL only
     
    2323
    2424master_sites    ftp://ftp.gnutls.org/gcrypt/gnutls/v${branch}/
    2525
    26 checksums       md5     e225247ec82513354a6bdc3be6246377 \
    27                 rmd160  cebd6a17fe9b7ebc8f0f9abb6218c195456ee468 \
    28                 sha256  8cd8cc7d4dcd4f73e85a6ebfa9463860b671d65f23d57354a6dfe86b7e83a036
     26checksums       rmd160  9e61797428035cdaf6e3ac86103ead5cf7f02de7 \
     27                sha256  04a53b2bbb936b02cdc62f68144f9706e256cc85cc530b81266a24d80b824357
    2928
    3029use_xz          yes
    3130
     
    4342    eval reinplace {/^#/d} [glob ${worksrcpath}/lib/accelerated/x86/macosx/*.s]
    4443}
    4544
     45# use autoreconf to update glibtool to correctly handle -std
    4646use_autoreconf  yes
    4747autoreconf.args -fvi
    4848
    4949configure.args  --disable-guile \
    5050                --disable-silent-rules \
    51                 --with-p11-kit           
     51                --disable-libdane \
     52                --enable-local-libopts \
     53                --with-p11-kit \
     54                --with-system-priority-file="${prefix}/etc/gnutls/default-priorities"
     55
     56variant dane description {Build libdane using unbound libraries} {
     57    depends_lib-append      port:unbound
     58    configure.args-append   --with-unbound-root-key-file="${prefix}/etc/unbound/root.key"
     59    configure.args-delete   --disable-libdane
     60}
     61
     62# unbound does not currently install/update ${prefix}/etc/unbound/root.key
     63# so user may have to do it manually for DANE support (#43881)
     64
     65if {[variant_isset dane] && ![file exists ${prefix}/etc/unbound/root.key]} {
     66    notes "
     67***
     68*** WARNING:
     69***
     70*** The DNSSEC root key file in ${prefix}/etc/unbound/root.key was not found.
     71*** This file is needed for the verification of DNSSEC responses.
     72*** Use the command: sudo unbound-anchor -a \"${prefix}/etc/unbound/root.key\"
     73*** to generate or update it.
     74***
     75"
     76}
    5277
    5378if {[variant_isset universal]} {
    5479    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}