oxidized: init at 0.21.0

authored by WilliButz and committed by Robin Gloster dc433b47 e91d3c91

+320
+7
pkgs/development/ruby-modules/gem-config/default.nix
··· 208 208 ] ++ lib.optional stdenv.isDarwin "--with-iconv-dir=${libiconv}"; 209 209 }; 210 210 211 + oxidized = attrs: { 212 + postInstall = '' 213 + cd "$(cat "$out/nix-support/gem-meta/install-path")" 214 + patch -p1 < ${../../../tools/admin/oxidized/temporary-x-series.patch} 215 + ''; 216 + }; 217 + 211 218 pango = attrs: { 212 219 nativeBuildInputs = [ pkgconfig ]; 213 220 buildInputs = [ gtk2 xorg.libXdmcp pcre xorg.libpthreadstubs ];
+5
pkgs/tools/admin/oxidized/Gemfile
··· 1 + source 'https://rubygems.org' 2 + 3 + gem 'oxidized' 4 + gem 'oxidized-web' 5 + gem 'oxidized-script'
+69
pkgs/tools/admin/oxidized/Gemfile.lock
··· 1 + GEM 2 + remote: https://rubygems.org/ 3 + specs: 4 + asetus (0.3.0) 5 + backports (3.11.2) 6 + emk-sinatra-url-for (0.2.1) 7 + sinatra (>= 0.9.1.1) 8 + ffi (1.9.23) 9 + haml (4.0.7) 10 + tilt 11 + htmlentities (4.3.4) 12 + multi_json (1.13.1) 13 + net-ssh (4.1.0) 14 + oxidized (0.21.0) 15 + asetus (~> 0.1) 16 + net-ssh (~> 4.1.0) 17 + rugged (~> 0.21, >= 0.21.4) 18 + slop (~> 3.5) 19 + oxidized-script (0.5.0) 20 + oxidized (~> 0.21.0) 21 + slop (~> 3.5) 22 + oxidized-web (0.9.3) 23 + emk-sinatra-url-for (~> 0.2) 24 + haml (~> 4.0) 25 + htmlentities (~> 4.3) 26 + oxidized (~> 0.21.0) 27 + puma (~> 3) 28 + sass (~> 3.3) 29 + sinatra (~> 1.4, >= 1.4.6) 30 + sinatra-contrib (~> 1.4, >= 1.4.6) 31 + puma (3.11.3) 32 + rack (1.6.9) 33 + rack-protection (1.5.5) 34 + rack 35 + rack-test (1.0.0) 36 + rack (>= 1.0, < 3) 37 + rb-fsevent (0.10.3) 38 + rb-inotify (0.9.10) 39 + ffi (>= 0.5.0, < 2) 40 + rugged (0.27.0) 41 + sass (3.5.6) 42 + sass-listen (~> 4.0.0) 43 + sass-listen (4.0.0) 44 + rb-fsevent (~> 0.9, >= 0.9.4) 45 + rb-inotify (~> 0.9, >= 0.9.7) 46 + sinatra (1.4.8) 47 + rack (~> 1.5) 48 + rack-protection (~> 1.4) 49 + tilt (>= 1.3, < 3) 50 + sinatra-contrib (1.4.7) 51 + backports (>= 2.0) 52 + multi_json 53 + rack-protection 54 + rack-test 55 + sinatra (~> 1.4.0) 56 + tilt (>= 1.3, < 3) 57 + slop (3.6.0) 58 + tilt (2.0.8) 59 + 60 + PLATFORMS 61 + ruby 62 + 63 + DEPENDENCIES 64 + oxidized 65 + oxidized-script 66 + oxidized-web 67 + 68 + BUNDLED WITH 69 + 1.14.6
+18
pkgs/tools/admin/oxidized/default.nix
··· 1 + { lib, fetchFromGitHub, ruby, git, bundlerApp }: 2 + 3 + bundlerApp rec { 4 + pname = "oxidized"; 5 + gemdir = ./.; 6 + 7 + inherit ruby; 8 + 9 + exes = [ "oxidized" "oxidized-web" "oxidized-script" ]; 10 + 11 + meta = with lib; { 12 + description = "Oxidized is a network device configuration backup tool. It's a RANCID replacement!"; 13 + homepage = https://github.com/ytti/oxidized; 14 + license = licenses.asl20; 15 + maintainers = [ maintainers.willibutz ]; 16 + platforms = platforms.linux; 17 + }; 18 + }
+206
pkgs/tools/admin/oxidized/gemset.nix
··· 1 + { 2 + asetus = { 3 + source = { 4 + remotes = ["https://rubygems.org"]; 5 + sha256 = "1zkr8cbp8klanqmhzz7qmimzlxh6zmsy98zb3s75af34l7znq790"; 6 + type = "gem"; 7 + }; 8 + version = "0.3.0"; 9 + }; 10 + backports = { 11 + source = { 12 + remotes = ["https://rubygems.org"]; 13 + sha256 = "0sw58rsz1hl821ia1jj3nnl3jr7xwfkcljgs56kpq3fakzcljcdz"; 14 + type = "gem"; 15 + }; 16 + version = "3.11.2"; 17 + }; 18 + emk-sinatra-url-for = { 19 + dependencies = ["sinatra"]; 20 + source = { 21 + remotes = ["https://rubygems.org"]; 22 + sha256 = "0rd5b1lraklv0hblzdnmw2z3dragfg0qqk7wxbpn58f8y7jxzjgj"; 23 + type = "gem"; 24 + }; 25 + version = "0.2.1"; 26 + }; 27 + ffi = { 28 + source = { 29 + remotes = ["https://rubygems.org"]; 30 + sha256 = "0zw6pbyvmj8wafdc7l5h7w20zkp1vbr2805ql5d941g2b20pk4zr"; 31 + type = "gem"; 32 + }; 33 + version = "1.9.23"; 34 + }; 35 + haml = { 36 + dependencies = ["tilt"]; 37 + source = { 38 + remotes = ["https://rubygems.org"]; 39 + sha256 = "0mrzjgkygvfii66bbylj2j93na8i89998yi01fin3whwqbvx0m1p"; 40 + type = "gem"; 41 + }; 42 + version = "4.0.7"; 43 + }; 44 + htmlentities = { 45 + source = { 46 + remotes = ["https://rubygems.org"]; 47 + sha256 = "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"; 48 + type = "gem"; 49 + }; 50 + version = "4.3.4"; 51 + }; 52 + multi_json = { 53 + source = { 54 + remotes = ["https://rubygems.org"]; 55 + sha256 = "1rl0qy4inf1mp8mybfk56dfga0mvx97zwpmq5xmiwl5r770171nv"; 56 + type = "gem"; 57 + }; 58 + version = "1.13.1"; 59 + }; 60 + net-ssh = { 61 + source = { 62 + remotes = ["https://rubygems.org"]; 63 + sha256 = "013p5jb4wy0cq7x7036piw2a3s1i9p752ki1srx2m289mpz4ml3q"; 64 + type = "gem"; 65 + }; 66 + version = "4.1.0"; 67 + }; 68 + oxidized = { 69 + dependencies = ["asetus" "net-ssh" "rugged" "slop"]; 70 + source = { 71 + remotes = ["https://rubygems.org"]; 72 + sha256 = "0xqx0iawj2cm6083a61y43d6a76xaypiw0nkyirx02lhynq07yz0"; 73 + type = "gem"; 74 + }; 75 + version = "0.21.0"; 76 + }; 77 + oxidized-script = { 78 + dependencies = ["oxidized" "slop"]; 79 + source = { 80 + remotes = ["https://rubygems.org"]; 81 + sha256 = "12c15gksrrar9kradcv6mx2d4a8ixa4lykszb4pcapiw5mi35mxp"; 82 + type = "gem"; 83 + }; 84 + version = "0.5.0"; 85 + }; 86 + oxidized-web = { 87 + dependencies = ["emk-sinatra-url-for" "haml" "htmlentities" "oxidized" "puma" "sass" "sinatra" "sinatra-contrib"]; 88 + source = { 89 + remotes = ["https://rubygems.org"]; 90 + sha256 = "14s10pr8qaq6g19zi753igngp02li46k3nm5ap537r3743v1l4f9"; 91 + type = "gem"; 92 + }; 93 + version = "0.9.3"; 94 + }; 95 + puma = { 96 + source = { 97 + remotes = ["https://rubygems.org"]; 98 + sha256 = "03313mnx8n6g9qs9l5zafqq90grrhq2nqrmjs8lsffi28mgd3cfd"; 99 + type = "gem"; 100 + }; 101 + version = "3.11.3"; 102 + }; 103 + rack = { 104 + source = { 105 + remotes = ["https://rubygems.org"]; 106 + sha256 = "03w1ri5l91q800f1bdcdl5rbagy7s4kml136b42s2lmxmznxhr07"; 107 + type = "gem"; 108 + }; 109 + version = "1.6.9"; 110 + }; 111 + rack-protection = { 112 + dependencies = ["rack"]; 113 + source = { 114 + remotes = ["https://rubygems.org"]; 115 + sha256 = "0my0wlw4a5l3hs79jkx2xzv7djhajgf8d28k8ai1ddlnxxb0v7ss"; 116 + type = "gem"; 117 + }; 118 + version = "1.5.5"; 119 + }; 120 + rack-test = { 121 + dependencies = ["rack"]; 122 + source = { 123 + remotes = ["https://rubygems.org"]; 124 + sha256 = "1l799s5qr2qrshvrggq5ch3v235y491zfww07b39w4pj4vpa65l1"; 125 + type = "gem"; 126 + }; 127 + version = "1.0.0"; 128 + }; 129 + rb-fsevent = { 130 + source = { 131 + remotes = ["https://rubygems.org"]; 132 + sha256 = "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"; 133 + type = "gem"; 134 + }; 135 + version = "0.10.3"; 136 + }; 137 + rb-inotify = { 138 + dependencies = ["ffi"]; 139 + source = { 140 + remotes = ["https://rubygems.org"]; 141 + sha256 = "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"; 142 + type = "gem"; 143 + }; 144 + version = "0.9.10"; 145 + }; 146 + rugged = { 147 + source = { 148 + remotes = ["https://rubygems.org"]; 149 + sha256 = "0q1krxgd0ql03x8m9m05x5sxizw5sc7lms7rkp44qf45grpdk3v3"; 150 + type = "gem"; 151 + }; 152 + version = "0.27.0"; 153 + }; 154 + sass = { 155 + dependencies = ["sass-listen"]; 156 + source = { 157 + remotes = ["https://rubygems.org"]; 158 + sha256 = "19wyzp9qsg8hdkkxlsv713w0qmy66qrdp0shj42587ssx4qhrlag"; 159 + type = "gem"; 160 + }; 161 + version = "3.5.6"; 162 + }; 163 + sass-listen = { 164 + dependencies = ["rb-fsevent" "rb-inotify"]; 165 + source = { 166 + remotes = ["https://rubygems.org"]; 167 + sha256 = "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"; 168 + type = "gem"; 169 + }; 170 + version = "4.0.0"; 171 + }; 172 + sinatra = { 173 + dependencies = ["rack" "rack-protection" "tilt"]; 174 + source = { 175 + remotes = ["https://rubygems.org"]; 176 + sha256 = "0byxzl7rx3ki0xd7aiv1x8mbah7hzd8f81l65nq8857kmgzj1jqq"; 177 + type = "gem"; 178 + }; 179 + version = "1.4.8"; 180 + }; 181 + sinatra-contrib = { 182 + dependencies = ["backports" "multi_json" "rack-protection" "rack-test" "sinatra" "tilt"]; 183 + source = { 184 + remotes = ["https://rubygems.org"]; 185 + sha256 = "0vi3i0icbi2figiayxpvxbqpbn1syma7w4p4zw5mav1ln4c7jnfr"; 186 + type = "gem"; 187 + }; 188 + version = "1.4.7"; 189 + }; 190 + slop = { 191 + source = { 192 + remotes = ["https://rubygems.org"]; 193 + sha256 = "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"; 194 + type = "gem"; 195 + }; 196 + version = "3.6.0"; 197 + }; 198 + tilt = { 199 + source = { 200 + remotes = ["https://rubygems.org"]; 201 + sha256 = "0020mrgdf11q23hm1ddd6fv691l51vi10af00f137ilcdb2ycfra"; 202 + type = "gem"; 203 + }; 204 + version = "2.0.8"; 205 + }; 206 + }
+13
pkgs/tools/admin/oxidized/temporary-x-series.patch
··· 1 + diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb 2 + index f602a36..3f3a0f9 100644 3 + --- a/lib/oxidized/model/powerconnect.rb 4 + +++ b/lib/oxidized/model/powerconnect.rb 5 + @@ -4,7 +4,7 @@ class PowerConnect < Oxidized::Model 6 + 7 + comment '! ' 8 + 9 + - expect /^\s*--More--\s+.*$/ do |data, re| 10 + + expect /^([[:cntrl:]]...More:|\s*--More--\s+).*$/ do |data, re| 11 + send ' ' 12 + data.sub re, '' 13 + end
+2
pkgs/top-level/all-packages.nix
··· 4231 4231 4232 4232 owncloud-client = libsForQt5.callPackage ../applications/networking/owncloud-client { }; 4233 4233 4234 + oxidized = callPackage ../tools/admin/oxidized { }; 4235 + 4234 4236 oxipng = callPackage ../tools/graphics/oxipng { }; 4235 4237 4236 4238 p2pvc = callPackage ../applications/video/p2pvc {};