mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
40 lines
1.6 KiB
Ruby
40 lines
1.6 KiB
Ruby
require 'package'
|
|
|
|
class Ncat < Package
|
|
description 'Ncat - Netcat for the 21st Century - a modern netcat with extra features from the makers of nmap.'
|
|
homepage 'https://nmap.org/ncat'
|
|
version '7.60'
|
|
source_url 'https://nmap.org/dist/nmap-7.60.tar.bz2'
|
|
source_sha256 'a8796ecc4fa6c38aad6139d9515dc8113023a82e9d787e5a5fb5fa1b05516f21'
|
|
|
|
binary_url ({
|
|
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/ncat-7.60-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/ncat-7.60-chromeos-armv7l.tar.xz',
|
|
i686: 'https://dl.bintray.com/chromebrew/chromebrew/ncat-7.60-chromeos-i686.tar.xz',
|
|
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/ncat-7.60-chromeos-x86_64.tar.xz',
|
|
})
|
|
binary_sha256 ({
|
|
aarch64: '1607433b71f7faef46bc911acac09d0c34170c874ce9b7b876b4bdb6bee7b0f1',
|
|
armv7l: '1607433b71f7faef46bc911acac09d0c34170c874ce9b7b876b4bdb6bee7b0f1',
|
|
i686: '9900b3105aa411615c45d4b4db18ec0cae0e3a49d7e4a5df708c3b7bdfaf68d5',
|
|
x86_64: '5660ea321436f1b9642d318a77e9b0b5c379825ac0611daaf5f82dd794753598',
|
|
})
|
|
|
|
depends_on 'buildessential' => :build
|
|
depends_on 'filecmd' => :build #configure uses file
|
|
|
|
def self.build
|
|
#fixup "/usr/bin/file" -> "file" in the configure script
|
|
|
|
system "sed -i s#/usr/bin/file##{CREW_PREFIX}/bin/file#g libdnet-stripped/configure"
|
|
|
|
#without-zenmap in configure removes openssl dependency
|
|
system "./configure --without-zenmap --prefix=#{CREW_PREFIX}"
|
|
system "cd ncat && make"
|
|
end
|
|
|
|
def self.install
|
|
system "cd ncat && make DESTDIR=#{CREW_DEST_DIR} install"
|
|
end
|
|
end
|