Files

57 lines
2.0 KiB
Tcl
Raw Permalink Normal View History

2023-08-14 17:28:37 +08:00
# -*- 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
2025-08-20 22:48:20 +10:00
github.setup SoftEtherVPN SoftEtherVPN 5.2.5188
github.tarball_from releases
2023-12-18 23:53:07 +08:00
revision 0
2023-08-14 17:28:37 +08:00
categories net security
2026-04-11 19:42:02 +04:00
maintainers {i0ntempest @i0ntempest} \
2025-08-20 22:48:20 +10:00
openmaintainer
2023-08-14 17:28:37 +08:00
license Apache-2
description Cross-platform multi-protocol VPN software
long_description {*}${description}
2025-08-20 22:48:20 +10:00
use_xz yes
homepage https://www.softether.org
2023-08-14 17:28:37 +08:00
2025-08-20 22:48:20 +10:00
checksums rmd160 6046936e5d330ebcab8e376e97c50b84eee6d384 \
sha256 e89278e7edd7e137bd521851b42c2bf9ce4e5cae2489db406588d3388646b147 \
size 12305536
2023-08-14 17:28:37 +08:00
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
2023-12-18 23:53:07 +08:00
patchfiles-append 0001-enable-enterprise.patch
2023-08-14 17:28:37 +08:00
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}
2025-08-20 22:48:20 +10:00
destroot.keepdirs ${destroot}${dbdir} \
${destroot}${logdir} \
${destroot}${piddir}
2023-08-14 17:28:37 +08:00
post-destroot {
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} AUTHORS.TXT DISCLAIMER.md LICENSE README.md ${destroot}${docdir}
foreach dir [list ${dbdir} ${logdir} ${piddir}] {
2025-08-20 22:48:20 +10:00
xinstall -d ${destroot}${dir}
2023-08-14 17:28:37 +08:00
}
}