Skip to content

Instantly share code, notes, and snippets.

@leiless
Last active March 14, 2022 12:24
Show Gist options
  • Save leiless/1f81c8979c8879b53afe1a31b42d2619 to your computer and use it in GitHub Desktop.
Save leiless/1f81c8979c8879b53afe1a31b42d2619 to your computer and use it in GitHub Desktop.
etsy/mctop patches
diff --git a/bin/mctop b/bin/mctop
index 20da5f8..f09070e 100755
--- a/bin/mctop
+++ b/bin/mctop
@@ -23,7 +23,7 @@ sort_order = :desc
done = false
# trap most of the typical signals
-%w[ INT QUIT HUP KILL ].each do |sig|
+%w[ INT QUIT HUP ].each do |sig|
Signal.trap(sig) do
puts "** Caught signal #{sig} - exiting"
done = true
diff --git a/mctop.gemspec b/mctop.gemspec
index 507e2e5..2998fe5 100644
--- a/mctop.gemspec
+++ b/mctop.gemspec
@@ -15,6 +15,6 @@ Gem::Specification.new do |gem|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.require_paths = ["lib"]
- gem.add_runtime_dependency 'ruby-pcap', '= 0.7.8'
- gem.add_runtime_dependency 'curses', '~> 1.0.1'
+ gem.add_runtime_dependency 'ruby-pcap', '= 0.8.0'
+ gem.add_runtime_dependency 'curses', '= 1.4.4'
end
@leiless
Copy link
Author

leiless commented Mar 14, 2022

apt-get update
apt-get install -y libpcap-dev ruby ruby-dev make gcc libtinfo-dev libncurses5-dev
gem install bundler rake
git clone --depth 1 https://github.com/etsy/mctop.git
bundle install
rake install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment