3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #127655 from elohmeier/snmpcheck

snmpcheck: init at 1.9
This commit is contained in:
Sandro 2021-08-05 09:45:15 +02:00 committed by GitHub
commit c385f340fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 0 deletions

View file

@ -131,6 +131,7 @@ source 'https://rubygems.org' do
gem 'sinatra'
gem 'slop'
gem 'snappy'
gem 'snmp'
gem 'sqlite3'
gem 'taglib-ruby'
gem 'thrift'

View file

@ -0,0 +1,30 @@
{ stdenv, lib, fetchurl, ruby }:
let
rubyEnv = ruby.withPackages (ps: [ ps.snmp ]);
in
stdenv.mkDerivation rec {
pname = "snmpcheck";
version = "1.9";
src = fetchurl {
url = "http://www.nothink.org/codes/snmpcheck/snmpcheck-${version}.rb";
sha256 = "sha256-9xkLqbgxU1uykx+M9QsbPAH8OI/Cqn9uw6ALe23Lbq0=";
executable = true;
};
dontUnpack = true;
buildInputs = [ rubyEnv.wrappedRuby ];
installPhase = ''
mkdir -p $out/bin
cp $src $out/bin/snmp-check
'';
meta = with lib; {
description = "SNMP enumerator";
homepage = "http://www.nothink.org/codes/snmpcheck/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ elohmeier ];
};
}

View file

@ -8957,6 +8957,8 @@ in
libpng = libpng12;
};
snmpcheck = callPackage ../tools/networking/snmpcheck {};
sniffglue = callPackage ../tools/networking/sniffglue { };
snort = callPackage ../applications/networking/ids/snort { };

View file

@ -2522,6 +2522,16 @@
};
version = "0.2.0";
};
snmp = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1xr7rwfk7mwxzqcgir0glmyy4j27g6yixfaswsbd2qn6r8c980qf";
type = "gem";
};
version = "1.3.2";
};
solargraph = {
dependencies = ["backport" "benchmark" "diff-lcs" "e2mmap" "jaro_winkler" "kramdown" "kramdown-parser-gfm" "parser" "reverse_markdown" "rubocop" "thor" "tilt" "yard"];
groups = ["default"];