source: trunk/dports/security/dirmngr/Portfile @ 32369

Last change on this file since 32369 was 32369, checked in by boeyms@…, 12 years ago

Portfile cleanups per 'port lint'.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 32369 2007-12-28 05:55:15Z boeyms@macports.org $
2
3PortSystem  1.0
4
5name        dirmngr
6version     1.0.1
7categories  security mail
8maintainers boeyms openmaintainer
9description X.509 certificate directory manager for GnuPG
10long_description    \
11    Dirmngr is a server for managing and downloading certificate \
12    revocation lists (CRLs) for X.509 certificates and for downloading \
13    the certificates themselves. Dirmngr also handles OCSP requests as \
14    an alternative to CRLs. Dirmngr is either invoked internaly by \
15    gpgsm (from gnupg 1.9) or when running as a system daemon through \
16    the dirmngr-client tool.
17homepage    http://www.gnupg.org
18platforms   darwin
19master_sites    gnupg
20
21use_bzip2   yes
22checksums   md5 3b969ee763fa9160319abe3f24b5959d \
23            sha1 39eb62907e5c4ddc29da00b1291c24e5267f113e \
24            rmd160 eca2e5622ffe7af7ddece1b76977e5f696465385
25
26post-patch {
27    reinplace "s|/var|${prefix}/var|" \
28        ${worksrcpath}/src/dirmngr.c \
29        ${worksrcpath}/src/dirmngr-client.c
30}
31
32# Need to define LDAP_DEPRECATED as dirmngr uses ldap_init(),
33# ldap_simple_bind_s() and ldap_search_st(), which are deprecated at least as of
34# OpenLDAP 2.3.35.
35configure.cppflags  -DLDAP_DEPRECATED
36
37depends_lib port:libiconv       \
38            port:gettext        \
39            port:libassuan      \
40            port:libksba        \
41            port:libgcrypt      \
42            port:libgpg-error   \
43            port:pth            \
44            port:openldap
45
46test.run    yes
47test.dir    ${worksrcpath}/tests
48test.target     check
49
50platform darwin {
51    configure.env-append    MACOSX_DEPLOYMENT_TARGET=10.3
52    build.env-append        MACOSX_DEPLOYMENT_TARGET=10.3
53#   Get around the fact that Darwin linker complains about multiply defined
54#   symbols since DirMngr doesn't currently test for presence strcasecmp
55    configure.cflags-append -DHAVE_STRCASECMP=1
56#   Do something to fix the fact that, for some reason, -llber is required
57    configure.env-append    LDAPLIBS="-lldap -llber"
58}
59
60platform darwin 7 {
61    configure.ldflags-append    -framework IOKit
62}
63
64livecheck.check regex
65livecheck.url   http://mirrors.rootmode.com/ftp.gnupg.org/gnupg/?O=D
66livecheck.regex gnupg-(\\d+\\.\\d+\\.\\d+)
Note: See TracBrowser for help on using the repository browser.