diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
commit | e68d405c5d712af4387159df07e226217bdda049 (patch) | |
tree | 009ab0f3d427f0813e62930d71802cb054c07e30 /net-analyzer/zabbix/files/zabbix-5.4.12-system.sw.packages.patch | |
parent | 401101f9c8077911929d3f2b60a37098460a5d89 (diff) |
gentoo resync : 06.04.2022
Diffstat (limited to 'net-analyzer/zabbix/files/zabbix-5.4.12-system.sw.packages.patch')
-rw-r--r-- | net-analyzer/zabbix/files/zabbix-5.4.12-system.sw.packages.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/net-analyzer/zabbix/files/zabbix-5.4.12-system.sw.packages.patch b/net-analyzer/zabbix/files/zabbix-5.4.12-system.sw.packages.patch new file mode 100644 index 000000000000..54a5299ee791 --- /dev/null +++ b/net-analyzer/zabbix/files/zabbix-5.4.12-system.sw.packages.patch @@ -0,0 +1,35 @@ +From ee5ed14f0f858eb0f776f5b8c4c1a1e740787bfa 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> +--- + src/go/plugins/system/sw/sw.go | 1 + + src/libs/zbxsysinfo/linux/software.c | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/go/plugins/system/sw/sw.go b/src/go/plugins/system/sw/sw.go +index 6ff354fd711..db9a4b763f7 100644 +--- a/src/go/plugins/system/sw/sw.go ++++ b/src/go/plugins/system/sw/sw.go +@@ -163,6 +163,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}, + } + } + +diff --git a/src/libs/zbxsysinfo/linux/software.c b/src/libs/zbxsysinfo/linux/software.c +index 24f8e93eed8..8dcf01a3e47 100644 +--- 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} + }; + |