void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

commit 160aeaf76461959c2403a1ced4acf918d42d7b58
parent 849f497b3a962dc1bf02c49b11169b0d4f4238a3
Author: Dash Eclipse <dash@ezup.dev>
Date:   Mon, 20 Jul 2020 13:59:32 +0000

trojan: add logs

Diffstat:
Msrcpkgs/trojan/files/trojan/run | 2+-
Msrcpkgs/trojan/template | 7+++++--
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/trojan/files/trojan/run b/srcpkgs/trojan/files/trojan/run @@ -1,2 +1,2 @@ #!/bin/sh -exec chpst -u trojan:trojan trojan -c /etc/trojan/config.json 1>/dev/null +exec chpst -u trojan:trojan trojan -l /var/log/trojan/trojan.log -c /etc/trojan/config.json 1>/dev/null diff --git a/srcpkgs/trojan/template b/srcpkgs/trojan/template @@ -1,7 +1,7 @@ # Template file for 'trojan' pkgname=trojan version=1.16.0 -revision=2 +revision=3 wrksrc="${pkgname}-${version}" build_style="cmake" configure_args="-DENABLE_MYSQL=OFF -DENABLE_SSL_KEYLOG=OFF -DENABLE_TLS13_CIPHERSUITES=OFF -DSYSTEMD_SERVICE=OFF" @@ -14,7 +14,10 @@ distfiles="${homepage}/archive/v${version}.tar.gz" checksum=86cdb2685bb03a63b62ce06545c41189952f1ec4a0cd9147450312ed70956cbc system_accounts="trojan" -#make_dirs="/etc/${pkgname} 0750 trojan trojan" + +make_dirs=" + /etc/${pkgname} 0750 trojan trojan + /var/log/trojan 0750 nginx nginx" post_install() { vsv ${pkgname}