Ticket #42728: Portfile-gnutls.4.diff

File Portfile-gnutls.4.diff, 2.6 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
     9revision        1
    910set branch      [join [lrange [split ${version} .] 0 1] .]
    1011categories      devel security
    1112# yes, some of the libs are GPL only
     
    2324
    2425master_sites    ftp://ftp.gnutls.org/gcrypt/gnutls/v${branch}/
    2526
    26 checksums       md5     e225247ec82513354a6bdc3be6246377 \
    27                 rmd160  cebd6a17fe9b7ebc8f0f9abb6218c195456ee468 \
    28                 sha256  8cd8cc7d4dcd4f73e85a6ebfa9463860b671d65f23d57354a6dfe86b7e83a036
     27checksums       rmd160  9e61797428035cdaf6e3ac86103ead5cf7f02de7 \
     28                sha256  04a53b2bbb936b02cdc62f68144f9706e256cc85cc530b81266a24d80b824357
    2929
    3030use_xz          yes
    3131
     
    3636                port:libidn \
    3737                port:libtasn1 \
    3838                port:p11-kit \
    39                 port:nettle
     39                port:nettle \
     40                port:curl-ca-bundle
    4041
    4142post-patch {
    4243    # Remove comments which confuse at least Leopard's assembler.
    4344    eval reinplace {/^#/d} [glob ${worksrcpath}/lib/accelerated/x86/macosx/*.s]
    4445}
    4546
     47# use autoreconf to update glibtool to correctly handle -std
    4648use_autoreconf  yes
    4749autoreconf.args -fvi
    4850
    4951configure.args  --disable-guile \
    5052                --disable-silent-rules \
    51                 --with-p11-kit           
     53                --disable-libdane \
     54                --enable-local-libopts \
     55                --with-p11-kit \
     56                --with-system-priority-file="${prefix}/etc/gnutls/default-priorities" \
     57                --with-default-trust-store-file="${prefix}/share/curl/curl-ca-bundle.crt"
     58
     59variant dane description {Build libdane using unbound libraries} {
     60    depends_lib-append      port:unbound
     61    configure.args-append   --with-unbound-root-key-file="${prefix}/etc/unbound/root.key"
     62    configure.args-delete   --disable-libdane
     63}
     64
     65# unbound does not currently install/update ${prefix}/etc/unbound/root.key
     66# so user may have to do it manually for DANE support (#43881)
     67
     68if {[variant_isset dane] && ![file exists ${prefix}/etc/unbound/root.key]} {
     69    notes "
     70***
     71*** WARNING:
     72***
     73*** The DNSSEC root key file in ${prefix}/etc/unbound/root.key was not found.
     74*** This file is needed for the verification of DNSSEC responses.
     75*** Use the command: sudo unbound-anchor -a \"${prefix}/etc/unbound/root.key\"
     76*** to generate or update it.
     77***
     78"
     79}
    5280
    5381if {[variant_isset universal]} {
    5482    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}