# -*- 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

PortSystem          1.0
PortGroup           makefile 1.0

name                cryptcat
version             1.2.1
revision            1
checksums           rmd160  90c66c134deb7a3188bf27c1b0a42e8ef9bf2b27 \
                    sha256  5dc9a9c2beac3d9658cc3e082c00f1127981a2f995b4ec485f281bf1800840d0 \
                    size    190464

set branch          [join [lrange [split ${version} .] 0 1] .]
categories          net security
platforms           darwin
maintainers         nomaintainer
license             BSD

description         lightweight netcat with integrated transport encryption

long_description    Cryptcat is a lightweight version of netcat with \
                    integrated transport encryption capabilities.

homepage            http://cryptcat.sourceforge.net/
master_sites        sourceforge:project/cryptcat/cryptcat-unix-${branch}/cryptcat-unix-${version}
distname            cryptcat-unix-${version}
use_tar             yes

worksrcdir          unix

patchfiles          patch-Makefile.diff \
                    patch-netcat.c.diff

build.target        darwin

destroot {
    xinstall -m 0755 ${worksrcpath}/cryptcat ${destroot}${prefix}/bin
    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} Changelog Credits README README.cryptcat \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.regex     /cryptcat-unix-(\\d+(?:\\.\\d+)*)\\.tar
