Files
chromebrew/packages/nftables.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

37 lines
1.1 KiB
Ruby

# Adapted from Arch Linux nftables PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/nftables/trunk/PKGBUILD
require 'buildsystems/autotools'
class Nftables < Autotools
description 'Netfilter tables userspace tools'
homepage 'https://netfilter.org/projects/nftables/'
version '1.0.9'
license 'GPL2'
compatibility 'aarch64 armv7l x86_64'
source_url 'https://netfilter.org/projects/nftables/files/nftables-1.0.9.tar.xz'
source_sha256 'a3c304cd9ba061239ee0474f9afb938a9bb99d89b960246f66f0c3a0a85e14cd'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'bbed65ebad95e0ee11ec0ab2a1b17ecd8e33140505441f9c2d95a86ef360225b',
armv7l: 'bbed65ebad95e0ee11ec0ab2a1b17ecd8e33140505441f9c2d95a86ef360225b',
x86_64: '370e9eb2fe2c1bf7ee577623e8c8aa29d659336eb17ebbe3217c9b9379b5464e'
})
depends_on 'asciidoc' => :build
depends_on 'glibc' # R
depends_on 'jansson' # R
depends_on 'libmnl' # R
depends_on 'libnftnl' # R
depends_on 'readline' # R
configure_options "--sysconfdir=#{CREW_PREFIX}/etc \
--with-json \
--with-cli=readline \
--with-mini-gmp \
--disable-debug"
run_tests
end