diff options
Diffstat (limited to 'net-proxy/trojan/trojan-1.15.1.ebuild')
-rw-r--r-- | net-proxy/trojan/trojan-1.15.1.ebuild | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net-proxy/trojan/trojan-1.15.1.ebuild b/net-proxy/trojan/trojan-1.15.1.ebuild index aa4fa9f95beb..21f494f1364d 100644 --- a/net-proxy/trojan/trojan-1.15.1.ebuild +++ b/net-proxy/trojan/trojan-1.15.1.ebuild @@ -45,3 +45,17 @@ src_install() { src_test() { cmake_src_test -j1 } + +pkg_postinst() { + elog "Running Trojan with multi instances" + elog "" + + elog "Prepare /etc/trojan/\${blah}.json first" + elog "Config with Openrc" + elog " ln -s /etc/init.d/trojan{,.\${blah}}" + elog " rc-update add trojan.\${blah} default" + elog "" + elog "Config with Systemd" + elog " systemctl enable trojan.\${blah}" + elog "" +} |