net-analyzer/smokeping: CGI config and /run init check

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2021-08-09 22:10:04 +02:00
parent 1bc15a6271
commit 7dceb3bc1a
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
3 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,13 @@
--- a/bin/smokeping_cgi 2021-08-09 21:48:18.202816587 +0200
+++ b/bin/smokeping_cgi 2021-08-09 21:48:57.489227779 +0200
@@ -17,8 +17,7 @@
use CGI::Fast;
-my $cfg = (shift @ARGV) || "$FindBin::Bin/../etc/config";
-
+my $cfg = (shift @ARGV) || "/etc/smokeping/config";
while (my $q = new CGI::Fast) {
Smokeping::cgi($cfg,$q);

View file

@ -16,7 +16,8 @@ depend() {
}
start_pre() {
export LC_ALL=C
export LC_ALL=C
checkpath -d -m 0755 -o "${command_user}" "/run/${RC_SVCNAME}"
}
reload() {

View file

@ -49,6 +49,10 @@ DEPEND="
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}-smokeping_cgi-config.patch"
)
src_prepare() {
default