<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c29016496068e6c00acef09ef88f06045665de5e">https://github.com/macports/macports-ports/commit/c29016496068e6c00acef09ef88f06045665de5e</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new c290164 trojan: submission
</span>c290164 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit c29016496068e6c00acef09ef88f06045665de5e
</span>Author: i0ntempest <szf1234@me.com>
AuthorDate: Sun Apr 19 16:01:01 2020 -0400
<span style='display:block; white-space:pre;color:#404040;'> trojan: submission
</span>---
net/trojan/Portfile | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/trojan/Portfile b/net/trojan/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..16ca594
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/trojan/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,90 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup trojan-gfw trojan 1.15.1 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories net
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@i0ntempest me.com:szf1234} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description An unidentifiable mechanism that helps you bypass network restrictions.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Trojan features multiple protocols over TLS to avoid both \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ active/passive detections and ISP QoS limitations. It doesn't rely on \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ strong encryption or obfuscation\; instead it imitates the most \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ common protocol, HTTPS, so firewalls won't see anything other than \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ normal HTTPS traffic.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 b36ac226c6d1cd56c37cd1ef675e0c11fb2d5f19 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 8627a7cc6e1ebaca93a93cb19e4cc8aac853e1602f117c0470e43db916fded68 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 48139
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:boost \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/libssl.dylib:openssl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_INSTALL_SYSCONFDIR=${prefix}/etc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDEFAULT_CONFIG=${prefix}/etc/trojan/config.json \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_MYSQL=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/etc/trojan/config.json|${prefix}/etc/trojan/config.json|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/docs/trojan.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/etc/trojan/config.json ${destroot}${prefix}/etc/trojan/config.json.example
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-activate {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists ${prefix}/etc/trojan/config.json]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${prefix}/etc/trojan/config.json.example ${prefix}/etc/trojan/config.json
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+notes-append "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ The default config file is copied to ${prefix}/etc/trojan/config.json and it's content\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ will be preserved across upgrades and reinstalls. The startup item will use this config\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file by default.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.create yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.executable ${prefix}/bin/trojan --config=${prefix}/etc/trojan/config.json
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc dbvariants {dbport} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global prefix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:${dbport}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_MYSQL=OFF -DENABLE_MYSQL=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DMYSQL_INCLUDE_DIR=${prefix}/include/${dbport}/mysql/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DMYSQL_LIBRARIES=${prefix}/lib/${dbport}/mysql/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cppflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -I${prefix}/include/${dbport}/mysql
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -L${prefix}/lib/${dbport}/mysql -lmysqlclient
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant mysql57 conflicts mysql8 mariadb55 mariadb102 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description {Enable authentication with a database using MySQL 5.7} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dbvariants "mysql57"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant mysql8 conflicts mysql57 mariadb55 mariadb102 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description {Enable authentication with a database using MySQL 8} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dbvariants "mysql8"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant mariadb55 conflicts mysql57 mysql8 mariadb102 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description {Enable authentication with a database using MariaDB 5.5} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dbvariants "mariadb"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant mariadb102 conflicts mysql57 mysql8 mariadb55 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description {Enable authentication with a database using MariaDB 10.2} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dbvariants "mariadb-10.2"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>