# -*- 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 cmake 1.1 PortGroup github 1.0 PortGroup openssl 1.0 name softether5 github.setup SoftEtherVPN SoftEtherVPN 5.02.5184 revision 0 categories net security maintainers {@barracuda156 gmail.com:vital.had} openmaintainer license Apache-2 description Cross-platform multi-protocol VPN software long_description {*}${description} homepage https://softether.org fetch.type git post-fetch { system -W ${worksrcpath} "git submodule update --init --recursive" } depends_lib-append port:libiconv \ port:libsodium \ port:ncurses \ port:readline depends_build-append port:pkgconfig compiler.c_standard 2011 # https://github.com/metalefty/SoftEtherVPN/commit/a461121b.patch patchfiles-append 0001-enable-enterprise.patch set dbdir ${prefix}/var/db/${name} set logdir ${prefix}/var/log/${name} set piddir ${prefix}/var/run/${name} set docdir ${prefix}/share/doc/${name} configure.args-append -DSE_DBDIR=${dbdir} \ -DSE_LOGDIR=${logdir} \ -DSE_PIDDIR=${piddir} post-destroot { xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} AUTHORS.TXT DISCLAIMER.md LICENSE README.md ${destroot}${docdir} } post-activate { foreach dir [list ${dbdir} ${logdir} ${piddir}] { if {![file exists ${dir}]} { xinstall -d ${dir} } } }