# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem          1.0

name                pop3proxy
version             2.0.0-beta8
categories          mail
platforms           darwin
maintainers         nomaintainer
license             GPL-2+

description         application level gateway for the POP3 protocol

long_description    pop3.proxy is an application level gateway for the POP3 \
                    protocol. Unlike generic TCP proxys (like tcpproxy) it looks \
                    into the data stream watching that client and server fullfill \
                    the protocol specification. pop3.proxy is based on RFC 1939.

homepage            http://quietsche-entchen.de/cgi-bin/wiki.cgi/proxies/Pop3Proxy
master_sites        http://quietsche-entchen.de/download/

checksums           sha1    e3ad7b8a2d309ab9f68f1bc446d7e312245147eb \
                    rmd160  b8265282ceb4ddb1967f91dc3402229589b21d21

patchfiles          patch-clamav.c \
                    patch-main.c \
                    patch-makefile \
                    patch-pop3.c \
                    patch-procinfo.c

use_configure       no

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

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

destroot.destdir    prefix=${destroot}${prefix}

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} rfc1939.txt README LICENSE \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9a-z.- \]+)${extract.suffix}