mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
net-analyzer/zabbix: remove unused patch
Signed-off-by: Michael Mair-Keimberger <mm1ke@gentoo.org>
This commit is contained in:
parent
3759e6813c
commit
e60aea38ab
@ -1,26 +0,0 @@
|
||||
From 884982a87fc14918b062f09aa2bc3f8d2f777a14 Mon Sep 17 00:00:00 2001
|
||||
From: Alexey Shvetsov <alexxy@gentoo.org>
|
||||
Date: Mon, 21 Mar 2022 11:23:54 +0300
|
||||
Subject: [PATCH] Allow to use system.sw.packages on gentoo linux
|
||||
|
||||
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
|
||||
--- a/src/go/plugins/system/sw/sw.go
|
||||
+++ b/src/go/plugins/system/sw/sw.go
|
||||
@@ -164,6 +164,7 @@ func getManagers() []manager {
|
||||
{"pkgtools", "[ -d /var/log/packages ] && echo true", "ls /var/log/packages", parseRegex},
|
||||
{"rpm", "rpm --version 2> /dev/null", "rpm -qa", parseRegex},
|
||||
{"pacman", "pacman --version 2> /dev/null", "pacman -Q", parseRegex},
|
||||
+ {"portage", "emerge --version 2> /dev/null", "qlist -IRCv", parseRegex},
|
||||
}
|
||||
}
|
||||
|
||||
--- a/src/libs/zbxsysinfo/linux/software.c
|
||||
+++ b/src/libs/zbxsysinfo/linux/software.c
|
||||
@@ -176,6 +176,7 @@ static ZBX_PACKAGE_MANAGER package_managers[] =
|
||||
{"pkgtools", "[ -d /var/log/packages ] && echo true", "ls /var/log/packages", NULL},
|
||||
{"rpm", "rpm --version 2> /dev/null", "rpm -qa", NULL},
|
||||
{"pacman", "pacman --version 2> /dev/null", "pacman -Q", NULL},
|
||||
+ {"portage", "emerge --version 2> /dev/null", "qlist -IRCv", NULL},
|
||||
{NULL}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user