# $Id: Portfile 82553 2011-08-15 19:22:39Z jmr@macports.org $

PortSystem              1.0

name                    vantages
version                 0.8.8b
revision                1
categories              net
platforms               darwin
maintainers             nomaintainer
license                 BSD

description             A suite of services and tools to make adoption of DNSSEC easier.
long_description        Vantages is a suite of services designed to make the adoption of \
                        DNSSEC easier for administrators of both authoritative name servers \
                        (i.e. zone administrators) and recursive resolvers. Though the suite \
                        comes with a set of useful command line tools (dnsfunnel, dnskey-grab, \
                        etc.), its main functionality is a single daemon (vantaged) that \
                        performs the various tasks needed to smoothly operate either a DNSSEC \
                        zone, or a validating recursive resolver. Vantages' single daemon acts \
                        as a one-stop-shopping solution for the needs of DNSSEC operators. \
                        This is in contrast to other DNSSEC tool suites that require users to \
                        become familiar with numerous daemons and tools and must configure and \
                        run them all separately. With Vantages, operators just install the \
                        daemon and use its web dashboards to configure the services that are needed.

homepage                http://vantage-points.org/
master_sites            ${homepage}src/
checksums               sha1    3db7f1cb42cd6cbf6758bddc1e836611637a7798 \
                        rmd160  4e5720a929c8d7cea95fee107a7b38fd00838699
extract.suffix          .tgz

patchfiles              patch-makefile_fixes.diff \
                        patch-bad_paths.diff

# /usr/bin/ranlib: library member: libshttpd.a(compat_unix.c) is not an object file (not allowed in a library with multiple architectures)
universal_variant       no

depends_lib             port:curl-ca-bundle \
                        port:expat \
                        port:gnupg \
                        port:gpgme \
                        port:libgpg-error \
                        port:libtool \
                        port:libpcap \
                        port:openssl \
                        port:p5.12-term-readkey \
                        port:sqlite3

use_autoreconf          yes

configure.universal_args-delete --disable-dependency-tracking

if {[variant_exists universal] && [variant_isset universal]} {
    set archflags ${configure.universal_cflags}
} else {
    set archflags ${configure.cc_archflags}
}

build.args              CC="${configure.cc} ${archflags}"

livecheck.type  regex
livecheck.url   ${homepage}download.html
livecheck.regex "${name}-(\[0-9.a-d\]+)${extract.suffix}"
