mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Add mtr package (#3883)
Co-authored-by: Thomas Gambier <thomas.gambier@nexedi.com>
This commit is contained in:
34
packages/mtr.rb
Normal file
34
packages/mtr.rb
Normal file
@@ -0,0 +1,34 @@
|
||||
require 'package'
|
||||
|
||||
class Mtr < Package
|
||||
description "mtr combines the functionality of the 'traceroute' and 'ping' programs in a single network diagnostic tool."
|
||||
homepage 'https://www.bitwizard.nl/mtr/'
|
||||
version '0.93'
|
||||
source_url 'ftp://ftp.bitwizard.nl/mtr/mtr-0.93.tar.gz'
|
||||
source_sha256 '229c673d637bd7dbb96471623785a47e85da0b1944978200c949994c1e6af10d'
|
||||
|
||||
binary_url ({
|
||||
aarch64: '',
|
||||
armv7l: '',
|
||||
x86_64: '',
|
||||
i686: ''
|
||||
})
|
||||
binary_sha256 ({
|
||||
aarch64: '',
|
||||
armv7l: '',
|
||||
x86_64: '',
|
||||
i686: '',
|
||||
})
|
||||
|
||||
depends_on 'ncurses'
|
||||
|
||||
def self.build
|
||||
system "./configure", "--prefix=#{CREW_PREFIX}", "--libdir=#{CREW_LIB_PREFIX}", "--without-gtk",
|
||||
"LDFLAGS=-Wl,-rpath,#{CREW_LIB_PREFIX}"
|
||||
system "make"
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "sudo", "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user