diff options
author | Philipp Hausmann <ph_git@314.ch> | 2017-08-10 09:46:29 +0200 |
---|---|---|
committer | Philipp Hausmann <ph_git@314.ch> | 2017-09-25 10:39:11 +0200 |
commit | de3d26165f15219dfd007798b2c8085ba4795c30 (patch) | |
tree | 681b8253dc8c82f62a7169c511a30951d205c2dd /pkgs/servers/monitoring/fusion-inventory | |
parent | 272c0bf88c9c21404d54310c349c887867f847d9 (diff) | |
download | nixlib-de3d26165f15219dfd007798b2c8085ba4795c30.tar nixlib-de3d26165f15219dfd007798b2c8085ba4795c30.tar.gz nixlib-de3d26165f15219dfd007798b2c8085ba4795c30.tar.bz2 nixlib-de3d26165f15219dfd007798b2c8085ba4795c30.tar.lz nixlib-de3d26165f15219dfd007798b2c8085ba4795c30.tar.xz nixlib-de3d26165f15219dfd007798b2c8085ba4795c30.tar.zst nixlib-de3d26165f15219dfd007798b2c8085ba4795c30.zip |
FusionInventory: Init at 2.3.18
Diffstat (limited to 'pkgs/servers/monitoring/fusion-inventory')
-rw-r--r-- | pkgs/servers/monitoring/fusion-inventory/default.nix | 67 | ||||
-rw-r--r-- | pkgs/servers/monitoring/fusion-inventory/remove_software_test.patch | 25 |
2 files changed, 92 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/fusion-inventory/default.nix b/pkgs/servers/monitoring/fusion-inventory/default.nix new file mode 100644 index 000000000000..8b3f902b00cb --- /dev/null +++ b/pkgs/servers/monitoring/fusion-inventory/default.nix @@ -0,0 +1,67 @@ +{ stdenv, fetchurl, gnused, buildPerlPackage, perl, perlPackages +}: + +buildPerlPackage rec { + version = "2.3.18"; + name = "FusionInventory-Agent-${version}"; + src = fetchurl { + url = "mirror://cpan/authors/id/G/GR/GROUSSE/${name}.tar.gz"; + sha256 = "543d96fa61b8f2a2bc599fe9f694f19d1f2094dc5506bc514d00b8a445bc5401"; + }; + + patches = [ ./remove_software_test.patch ]; + + postPatch = '' + patchShebangs bin + ''; + + buildTools = []; + buildInputs = with perlPackages; [ + CGI + DataStructureUtil + FileCopyRecursive + HTTPProxy + HTTPServerSimple + HTTPServerSimpleAuthen + IOCapture + IOSocketSSL + IPCRun + JSON + LWPProtocolhttps + NetSNMP + TestCompile + TestDeep + TestException + TestMockModule + TestMockObject + TestNoWarnings + ]; + propagatedBuildInputs = with perlPackages; [ + FileWhich + LWP + NetIP + TextTemplate + UNIVERSALrequire + XMLTreePP + ]; + + installPhase = '' + mkdir -p $out + + cp -r bin $out + cp -r lib $out + + for cur in $out/bin/*; do + sed -e "s|./lib|$out/lib|" -i "$cur" + done + ''; + + outputs = [ "out" ]; + + meta = with stdenv.lib; { + homepage = http://www.fusioninventory.org; + description = "FusionInventory unified Agent for UNIX, Linux, Windows and MacOSX"; + license = stdenv.lib.licenses.gpl2; + maintainers = [ maintainers.phile314 ]; + }; +} diff --git a/pkgs/servers/monitoring/fusion-inventory/remove_software_test.patch b/pkgs/servers/monitoring/fusion-inventory/remove_software_test.patch new file mode 100644 index 000000000000..ba6fd54eb183 --- /dev/null +++ b/pkgs/servers/monitoring/fusion-inventory/remove_software_test.patch @@ -0,0 +1,25 @@ +diff --git a/t/apps/agent.t b/t/apps/agent.t +index c0f6fc52f..c83837d70 100755 +--- a/t/apps/agent.t ++++ b/t/apps/agent.t +@@ -12,7 +12,7 @@ use XML::TreePP; + use FusionInventory::Agent::Tools; + use FusionInventory::Test::Utils; + +-plan tests => 34; ++plan tests => 33; + + my ($content, $out, $err, $rc); + +@@ -72,11 +72,6 @@ subtest "first inventory execution and content" => sub { + }; + + ok( +- exists $content->{REQUEST}->{CONTENT}->{SOFTWARES}, +- 'inventory has software' +-); +- +-ok( + exists $content->{REQUEST}->{CONTENT}->{ENVS}, + 'inventory has environment variables' + ); |