Ignore:
Timestamp:
Nov 16, 2014, 5:14:29 PM (5 years ago)
Author:
ionic@…
Message:

gpg-agent: automatically decide whether to use pinentry-mac or pinentry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/gpg-agent/Portfile

    r128108 r128212  
    77name                gpg-agent
    88version             2.0.26
    9 revision            1
     9revision            2
    1010categories          security mail
    1111maintainers         ionic openmaintainer
     
    3232set launchd_dir     ${prefix}/etc/${startupitem.location}/${startupitem.uniquename}/
    3333
    34 configure.args      --enable-agent-only \
    35                     --with-pinentry-pgm=${prefix}/bin/pinentry
     34configure.args      --enable-agent-only
    3635
    3736# glib fails to find the right stdint.h  It picks clang's internal one rather
     
    4847                    port:libgcrypt      \
    4948                    port:libgpg-error   \
    50                     port:pth            \
    51                     port:pinentry
     49                    port:pth
     50
    5251
    5352patchfiles          patch-po_Makevars.diff
     
    5756
    5857platform darwin {
     58    # Automatically switch between pinentry and pinentry-mac, with pinentry-mac being
     59    # preferred.
     60    # 10.6 and below are not supported by pinentry-mac, though, and will default to
     61    # pinentry. Just like pure darwin without OS X will.
     62    set pinentry            pinentry-mac
     63    if {${os.subplatform} ne "macosx" ||
     64        ${os.major} < 11 || ([catch "registry_active pinentry"] &&
     65                             ![catch "registry_active pinentry-mac"])} {
     66        set pinentry        pinentry
     67    }
     68
     69    set pinentry_binary     ""
     70
     71    if {${pinentry} eq "pinentry"} {
     72        set pinentry_binary "${prefix}/bin/${pinentry}"
     73    } else {
     74        set pinentry_binary "${applications_dir}/${pinentry}.app/Contents/MacOS/${pinentry}"
     75    }
     76
     77    depends_lib-append      port:${pinentry}
     78    configure.args-append   --with-pinentry-pgm=${pinentry_binary}
     79
     80
    5981    patchfiles-append       patch-agent_gpg-agent.c-launchd.diff
    6082    configure.cflags-append -F/System/Library/Frameworks/CoreFoundation.framework \
Note: See TracChangeset for help on using the changeset viewer.