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:
parent
1bc15a6271
commit
7dceb3bc1a
|
@ -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);
|
||||
|
|
@ -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() {
|
||||
|
|
|
@ -49,6 +49,10 @@ DEPEND="
|
|||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-smokeping_cgi-config.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
|
|
Loading…
Reference in a new issue