summaryrefslogtreecommitdiff
path: root/net/p5-FusionInventory-Agent
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2021-05-07 18:27:20 +0000
committerbouyer <bouyer@pkgsrc.org>2021-05-07 18:27:20 +0000
commit8a8dae4042cfaba6ba487a0210727fda64842ba9 (patch)
tree6657f7c1ef13d1e2c7e71d1a008c045593915d44 /net/p5-FusionInventory-Agent
parent553443608f8f19ef953dd374af5ae97f185199d1 (diff)
downloadpkgsrc-8a8dae4042cfaba6ba487a0210727fda64842ba9.tar.gz
Backport patch from upstream for better Intel CPU report
Bump PKGREVISION
Diffstat (limited to 'net/p5-FusionInventory-Agent')
-rw-r--r--net/p5-FusionInventory-Agent/Makefile4
-rw-r--r--net/p5-FusionInventory-Agent/distinfo4
-rw-r--r--net/p5-FusionInventory-Agent/patches/patch-lib_FusionInventory_Agent_Tools_Generic.pm21
3 files changed, 22 insertions, 7 deletions
diff --git a/net/p5-FusionInventory-Agent/Makefile b/net/p5-FusionInventory-Agent/Makefile
index 8ff2fdb1c2a..cf9cc09fdb2 100644
--- a/net/p5-FusionInventory-Agent/Makefile
+++ b/net/p5-FusionInventory-Agent/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.20 2021/05/06 20:25:15 bouyer Exp $
+# $NetBSD: Makefile,v 1.21 2021/05/07 18:27:20 bouyer Exp $
DISTNAME= FusionInventory-Agent-2.6
PKGNAME= p5-${DISTNAME}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/G/GB/GBOUGARD/}
diff --git a/net/p5-FusionInventory-Agent/distinfo b/net/p5-FusionInventory-Agent/distinfo
index b9b0325fab2..987c63bc145 100644
--- a/net/p5-FusionInventory-Agent/distinfo
+++ b/net/p5-FusionInventory-Agent/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2021/05/06 20:25:15 bouyer Exp $
+$NetBSD: distinfo,v 1.8 2021/05/07 18:27:20 bouyer Exp $
SHA1 (FusionInventory-Agent-2.6.tar.gz) = 288acf5707e550fa10275f8e6fab70b50aa790aa
RMD160 (FusionInventory-Agent-2.6.tar.gz) = 1d6504f2119bb531c527180c9275bb692b8a1a2a
@@ -12,4 +12,4 @@ SHA1 (patch-lib_FusionInventory_Agent_Task_Inventory_BSD_SPARC.pm) = 48fcf497b55
SHA1 (patch-lib_FusionInventory_Agent_Task_Inventory_BSD_Storages.pm) = a2ffacd0b9ee84accc001b2013aa52a0c0dc419f
SHA1 (patch-lib_FusionInventory_Agent_Task_Inventory_Generic_PCI.pm) = 94f5afb7b4277a1729c322c7111c94481e1cbe34
SHA1 (patch-lib_FusionInventory_Agent_Tools_BSD.pm) = d312bc244889beb7c747a4c8b021590102a8294c
-SHA1 (patch-lib_FusionInventory_Agent_Tools_Generic.pm) = 1e8cc8d8ff4c03ba563c3c63ed348e22bd665e9d
+SHA1 (patch-lib_FusionInventory_Agent_Tools_Generic.pm) = 415b4c3483b6e322ca04bde01ed048c3640f0741
diff --git a/net/p5-FusionInventory-Agent/patches/patch-lib_FusionInventory_Agent_Tools_Generic.pm b/net/p5-FusionInventory-Agent/patches/patch-lib_FusionInventory_Agent_Tools_Generic.pm
index b2efb95bfd7..5cf3a9f3d20 100644
--- a/net/p5-FusionInventory-Agent/patches/patch-lib_FusionInventory_Agent_Tools_Generic.pm
+++ b/net/p5-FusionInventory-Agent/patches/patch-lib_FusionInventory_Agent_Tools_Generic.pm
@@ -1,10 +1,25 @@
-$NetBSD: patch-lib_FusionInventory_Agent_Tools_Generic.pm,v 1.1 2021/05/06 20:25:15 bouyer Exp $
+$NetBSD: patch-lib_FusionInventory_Agent_Tools_Generic.pm,v 1.2 2021/05/07 18:27:20 bouyer Exp $
accept pcictl as alternative to lspci
+Bring in upstream patch for better CPU report
--- lib/FusionInventory/Agent/Tools/Generic.pm.orig 2020-11-09 14:49:31.000000000 +0100
-+++ lib/FusionInventory/Agent/Tools/Generic.pm 2021-05-06 21:25:27.448948334 +0200
-@@ -217,52 +217,103 @@
++++ lib/FusionInventory/Agent/Tools/Generic.pm 2021-05-07 20:08:32.214113753 +0200
+@@ -126,10 +126,12 @@
+ MANUFACTURER => $manufacturer
+ };
+ $cpu->{NAME} =
+- ($cpu->{MANUFACTURER} =~ /Intel/ ? $info->{'Family'} : undef) ||
+ $info->{'Version'} ||
++ $info->{'Family'} ||
+ $info->{'Processor Family'} ||
+ $info->{'Processor Version'};
++ # Cleanup cpu NAME
++ $cpu->{NAME} =~ s/\((R|TM)\)//gi if $cpu->{NAME};
+
+ if ($cpu->{ID}) {
+
+@@ -217,52 +219,103 @@
}
sub getPCIDevices {