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

github.setup        rahra onioncat 0.4.7 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
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.

homepage            https://www.onioncat.org/

checksums           rmd160  b05ead64d72ff5bb21fd1306b8b997927da4466a \
                    sha256  13e1762c8c542bf03ee46d68c836636f537a4365e42fc9c697f0afec91d6eaea \
                    size    149942

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

patchfiles          patch-src-ocatresolv.h.diff \
                    patch-fix-DESTDIR.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}