ocsinventory-agent: 2.10.1 -> 2.10.4

https://github.com/OCSInventory-NG/UnixAgent/compare/v2.10.1-MAC...v2.10.4
This commit is contained in:
Anthony ROUSSEL 2024-11-03 18:27:48 +01:00 committed by Anthony Roussel
parent 5259df7001
commit 3585cfd19a

View File

@ -2,6 +2,7 @@
, stdenv , stdenv
, perlPackages , perlPackages
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, makeWrapper , makeWrapper
, shortenPerlShebang , shortenPerlShebang
, coreutils , coreutils
@ -22,21 +23,31 @@
}: }:
perlPackages.buildPerlPackage rec { perlPackages.buildPerlPackage rec {
version = "2.10.1";
pname = "ocsinventory-agent"; pname = "ocsinventory-agent";
version = "2.10.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OCSInventory-NG"; owner = "OCSInventory-NG";
repo = "UnixAgent"; repo = "UnixAgent";
rev = "refs/tags/v${version}-MAC"; rev = "refs/tags/v${version}";
hash = "sha256-aFzBrUsVttUhpYGEYd/yYuXmE90PGCiBmBsVjtHcHLg="; hash = "sha256-MKUYf3k47lHc9dTGo1wYd7r4GrX98dU+04mF0Jm5e9U=";
}; };
patches = [
# Fix Getopt-Long warnings
# See https://github.com/OCSInventory-NG/UnixAgent/pull/490
(fetchpatch {
url = "https://github.com/OCSInventory-NG/UnixAgent/commit/c4899cef6b797df471ddf41c427970de47302f80.patch";
hash = "sha256-HxcWb9jmHiL0r6VWlsvmKUuybnM9W5471FLBBe3Zrfs=";
})
];
nativeBuildInputs = [ makeWrapper ] ++ lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang; nativeBuildInputs = [ makeWrapper ] ++ lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang;
buildInputs = with perlPackages; [ buildInputs = with perlPackages; [
perl perl
DataUUID DataUUID
GetoptLong
IOCompress IOCompress
IOSocketSSL IOSocketSSL
LWP LWP
@ -81,8 +92,6 @@ perlPackages.buildPerlPackage rec {
version = testers.testVersion { version = testers.testVersion {
package = ocsinventory-agent; package = ocsinventory-agent;
command = "ocsinventory-agent --version"; command = "ocsinventory-agent --version";
# upstream has not updated version in lib/Ocsinventory/Agent/Config.pm
version = "2.10.0";
}; };
}; };
updateScript = nix-update-script { }; updateScript = nix-update-script { };