From 789962e4593e32f2f306a1eda61fea158bd6dd1b Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 15 Dec 2021 17:59:32 +0100 Subject: [PATCH] www-apps/up-common-proxies: Fix some stuff and enable ~amd64. --- .../up-common-proxies/files/up-common-proxies.initd | 4 +--- .../up-common-proxies-1.1.1.ebuild | 13 ++++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/www-apps/up-common-proxies/files/up-common-proxies.initd b/www-apps/up-common-proxies/files/up-common-proxies.initd index cd3b543..26e48af 100644 --- a/www-apps/up-common-proxies/files/up-common-proxies.initd +++ b/www-apps/up-common-proxies/files/up-common-proxies.initd @@ -9,9 +9,7 @@ pidfile="/run/${name}.pid" logdir="/var/log/${name}" command_background="yes" command_user="gotify:gotify" -# directory="/var/lib/${name}" -output_log="${logdir}/${name}.log" -error_log="${logdir}/error.log" +error_log="${logdir}/${name}.log" command_args="-c /etc/${name}/config.toml" depend() { diff --git a/www-apps/up-common-proxies/up-common-proxies-1.1.1.ebuild b/www-apps/up-common-proxies/up-common-proxies-1.1.1.ebuild index 347d559..10fe692 100644 --- a/www-apps/up-common-proxies/up-common-proxies-1.1.1.ebuild +++ b/www-apps/up-common-proxies/up-common-proxies-1.1.1.ebuild @@ -65,7 +65,7 @@ S="${WORKDIR}/${PN/up-/}-${PV}" LICENSE="BSD-2 MIT" SLOT="0" -# KEYWORDS="~amd64" +KEYWORDS="~amd64" IUSE="logrotate" RDEPEND="acct-user/gotify" @@ -79,10 +79,6 @@ src_install() { dobin up-rewrite dodoc docs/{config.md,reverse_proxy.md} - diropts --owner=gotify --group=gotify --mode=750 - insinto etc/${PN} - newins example-config.toml config.toml - newinitd "${FILESDIR}/${PN}.initd" ${PN} if use logrotate; then @@ -90,5 +86,12 @@ src_install() { newins "${FILESDIR}/${PN}.logrotate" "${PN}" fi + diropts --owner=gotify --group=gotify --mode=750 + keepdir var/log/${PN} + + insopts --owner=gotify --group=gotify --mode=750 + insinto etc/${PN} + newins example-config.toml config.toml + einstalldocs }