# -*- 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           github 1.0
PortGroup           legacysupport 1.1

# https://github.com/rahra/onioncat/issues/48
legacysupport.newest_darwin_requires_legacy 10

github.setup        rahra onioncat 4.11.0 v
revision            0
categories          net
maintainers         {l2dy @l2dy} openmaintainer
license             GPL-3

description         VPN-adapter that provides VPN-tunnels using Tor or I2P
long_description    OnionCat is a VPN-adapter which allows to connect two or \
                    more computers or networks through VPN-tunnels. It is \
                    designed to use the anonymization networks Tor or I2P \
                    as its transport, hence, it provides location-based \
                    anonymity while still creating tunnel end points \
                    with private unique IP addresses.
installs_libs       no
homepage            https://www.onioncat.org

checksums           rmd160  c0669200def466583bf1fa94f4b2a100ce16d462 \
                    sha256  75ff9eed332e97a9efb7999bbe48867d00e06ac20601cc72b87897d5b1859f99 \
                    size    882592
github.tarball_from archive

depends_run         port:tuntaposx \
                    path:bin/tor:tor

patchfiles          patch-src-ocatresolv.h.diff

use_autoreconf      yes

configure.args      --disable-silent-rules

livecheck.type      regex
livecheck.url       https://www.cypherpunk.at/ocat/download/Source/current/?sort=date&order=desc
livecheck.regex     ${name}-(\\d+\\.\\d+\\.\\d+)${extract.suffix}
