# -*- 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
PortGroup           openssl 1.0

# memmem
legacysupport.newest_darwin_requires_legacy 10

github.setup        adrienverge openfortivpn 1.22.0 v
revision            0

categories          net
license             GPL-3

maintainers         {gmail.com:millerdev @millerdev} openmaintainer
description         Client for PPP+SSL VPN tunnel services.
long_description    openfortivpn is a client for PPP+SSL VPN tunnel services. \
                    It spawns a pppd process and operates the communication \
                    between the gateway and this process. It is compatible \
                    with Fortinet VPNs.

depends_build-append \
                    path:bin/pkg-config:pkgconfig

use_autoreconf      yes

checksums           rmd160  179a94554c7350ae278515f86086de6444438f40 \
                    sha256  473b31d643ecbd227f5cabd800a7bf75b44d262170957418edaa72d64df8fef4 \
                    size    171460
github.tarball_from archive

# Fixes from upstream, to be dropped in the next update:
# https://github.com/adrienverge/openfortivpn/commit/371edb5cdbdc53ca1c952cfc180318634e396015
# https://github.com/adrienverge/openfortivpn/commit/ad9dd8dc1a41af734a3dae4b6ff0e38821227959
patchfiles-append   patch-fix-configure.diff \
                    patch-vdprintf.diff
