Files
chromebrew/packages/snort.rb
Satadru Pramanik, DO, MPH, MEng 22d986c981 Py updates, fix env variable for timeout, add option to skip remote updates in build_updates script (#10503)
* Update py3_setuptools

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix Agree timeout env variable, add pip updates, fixup build_updated_packages script and add functionality to skip remote update checks.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add documentation for the --skip command.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Handle compatibility with commas

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Handle empty conpatibility.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fixup compatibility sections of package files.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Rebuild parted to handle missing binaries, and update build_updated_packages to notice binary_compression and not ask to rebuild if bimaries already exist.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix hash for nconvert.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2024-09-19 22:22:33 -05:00

47 lines
1.3 KiB
Ruby

require 'package'
class Snort < Package
description 'Snort is an open source intrusion prevention system capable of real-time traffic analysis and packet logging.'
homepage 'https://www.snort.org/'
version '2.9.20'
license 'GPL-2'
compatibility 'aarch64 armv7l x86_64'
source_url 'https://www.snort.org/downloads/snort/snort-2.9.20.tar.gz'
source_sha256 '29400e13f53b1831e0b8b10ec1224a1cbaa6dc1533a5322a20dd80bb84b4981c'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'abe8b0488c8e15c2f21e28749be32ac981e21bac0df0eba64633c3599f4b39e2',
armv7l: 'abe8b0488c8e15c2f21e28749be32ac981e21bac0df0eba64633c3599f4b39e2',
x86_64: 'c5442cbeef2caaf47c3c3166768bae521e8438b7919431c9fd2d37a1059c3705'
})
depends_on 'daq'
depends_on 'libdnet'
depends_on 'libtirpc'
depends_on 'luajit'
depends_on 'pcre'
no_fhs
def self.patch
# Fix /usr/bin/file: No such file or directory
system 'filefix'
end
def self.build
system "./configure #{CREW_CONFIGURE_OPTIONS} --enable-sourcefire \
--with-dnet-includes=#{CREW_PREFIX}/include/dnet \
--with-tirpc-includes=#{CREW_PREFIX}/include/tirpc"
system 'make'
end
def self.check
system 'make', 'check'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end