diff --git a/net-mgmt/ocsinventory-agent/Makefile b/net-mgmt/ocsinventory-agent/Makefile index 9c8c0509bdf0..0572ca8f9a90 100644 --- a/net-mgmt/ocsinventory-agent/Makefile +++ b/net-mgmt/ocsinventory-agent/Makefile @@ -1,63 +1,64 @@ PORTNAME= ocsinventory PORTVERSION= 2.10.4 DISTVERSIONPREFIX= v +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net-mgmt PKGNAMESUFFIX= -agent MAINTAINER= mikael@FreeBSD.org COMMENT= Keep track of the computers configuration and software WWW= https://www.ocsinventory-ng.org/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= lscpu:sysutils/lscpu \ lspci:sysutils/pciutils \ p5-Data-UUID>=0:devel/p5-Data-UUID \ p5-libwww>=0:www/p5-libwww \ p5-Net-IP>=0:net-mgmt/p5-Net-IP \ p5-Proc-Daemon>=0:devel/p5-Proc-Daemon \ p5-XML-Simple>=0:textproc/p5-XML-Simple USES= perl5 shebangfix USE_GITHUB= yes GH_PROJECT= UnixAgent GH_ACCOUNT= OCSInventory-NG USE_PERL5= configure CONFIGURE_ENV= PERL_AUTOINSTALL=1 SUB_FILES= pkg-message SUB_LIST= SITE_PERL=${PREFIX}/${SITE_PERL_REL} NO_ARCH= yes SHEBANG_FILES= postinst.pl # define options OPTIONS_DEFINE= DAEMON IPMI PRINTER SNMP SSL DAEMON_DESC= Daemon mode IPMI_DESC= Collect information about IPMI PRINTER_DESC= Printers detection SNMP_DESC= Scan network devices using SNMP # define default options OPTIONS_DEFAULT= SNMP SSL DAEMON_RUN_DEPENDS= p5-Proc-Daemon>=0:devel/p5-Proc-Daemon \ p5-Proc-PID-File>=0:devel/p5-Proc-PID-File IPMI_RUN_DEPENDS= ipmitool:sysutils/ipmitool SSL_RUN_DEPENDS= p5-Crypt-SSLeay>=0:security/p5-Crypt-SSLeay \ p5-LWP-Protocol-https>=0:www/p5-LWP-Protocol-https PRINTER_RUN_DEPENDS= p5-Net-CUPS>=0:print/p5-Net-CUPS SNMP_RUN_DEPENDS= nmap:security/nmap \ p5-Net-Netmask>=0:net-mgmt/p5-Net-Netmask \ p5-Net-SNMP>=0:net-mgmt/p5-Net-SNMP \ p5-Nmap-Parser>=0:security/p5-Nmap-Parser .include .if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == riscv64 || ${ARCH} == riscv64sf RUN_DEPENDS+= dmidecode:sysutils/dmidecode .endif .include diff --git a/net-mgmt/ocsinventory-agent/files/patch-lib_Ocsinventory_Agent_Backend_OS_BSD_CPU.pm b/net-mgmt/ocsinventory-agent/files/patch-lib_Ocsinventory_Agent_Backend_OS_BSD_CPU.pm new file mode 100644 index 000000000000..75d5c0457489 --- /dev/null +++ b/net-mgmt/ocsinventory-agent/files/patch-lib_Ocsinventory_Agent_Backend_OS_BSD_CPU.pm @@ -0,0 +1,13 @@ +--- lib/Ocsinventory/Agent/Backend/OS/BSD/CPU.pm.orig 2024-11-12 14:35:48 UTC ++++ lib/Ocsinventory/Agent/Backend/OS/BSD/CPU.pm +@@ -64,8 +64,8 @@ sub run { + if ($cpu->{NBSOCKET} and $cpu->{CORES} and $cpu->{THREADS} ){ + if ($cpu->{THREADS} >= $cpu->{CORES}) { + $cpu->{THREADS}=$cpu->{THREADS}/$cpu->{CORES}; +- } elsif ($cpu->{THREADS} >= $cpu->{NBSOCKETS}) { +- $cpu->{THREADS}=$cpu->{THREADS}/$cpu->{NBSOCKETS}; ++ } elsif ($cpu->{THREADS} >= $cpu->{NBSOCKET}) { ++ $cpu->{THREADS}=$cpu->{THREADS}/$cpu->{NBSOCKET}; + } + } +