Files
chromebrew/packages/iftop.rb
Maximilian Downey Twiss de24923ee8 Add Rubocop CI (#7083)
* Rename IgnoredPatterns to AllowedPatterns.

* Exclude docopt.rb (not our code) from Rubocop

* Disable Style/RedundantReturn

* Disable Style/MutableConstant

* Disable Style/NumericLiterals

* Set Layout/IndentationStyle to spaces

* Temporarily disable various cops.

* Add Rubocop CI via Octocop

* Lint tree with rubocop -A -c .rubocop.yml

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2022-08-22 13:31:25 -04:00

37 lines
1.5 KiB
Ruby

require 'package'
class Iftop < Package
description 'iftop does for network usage what top(1) does for CPU usage.'
homepage 'http://www.ex-parrot.com/pdw/iftop/'
version '0.17'
license 'GPL-2'
compatibility 'all'
source_url 'http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz'
source_sha256 'd032547c708307159ff5fd0df23ebd3cfa7799c31536fa0aea1820318a8e0eac'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/iftop/0.17_armv7l/iftop-0.17-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/iftop/0.17_armv7l/iftop-0.17-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/iftop/0.17_i686/iftop-0.17-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/iftop/0.17_x86_64/iftop-0.17-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '8c5c376a55f851adb4a0f189286445a67c9f51bceeada360e5c74c6d318a28ce',
armv7l: '8c5c376a55f851adb4a0f189286445a67c9f51bceeada360e5c74c6d318a28ce',
i686: '2136c6a3f6595c816ed758884a3410699f948f7cab07aace0861c6aad722f26d',
x86_64: '3147fb82cbc3d6cbf1c4b6230894ff7347409bc9b733e2135c509a12dc2ea7f0'
})
depends_on 'libpcap'
depends_on 'ncurses'
def self.build
system "./configure --prefix=#{CREW_PREFIX} CPPFLAGS='-I#{CREW_PREFIX}/include/ncurses'"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end