Files
chromebrew/packages/libunbound.rb
github-actions[bot] 626a53a7a7 Update buildsystems to use buildsystem name variables, and report contents of those variables/methods during use. (#11936)
* Update buildsystems, update jq, add jq to core for arm.

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

* Only report build options if they exist.

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

* Fix overeager sed replacement.

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

* workflow debugging

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

* Add logging for build errors.

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

* Revert to function in each package file.

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

* Update jq since it needs gcc14 to build.

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

* Add built packages for linux/386 to buildsystems

* remove deprecated gfbgraph

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

* fix git tag for gnome_maps

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

* Update llvm20 package file.

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

* Update gnome_maps deps.

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

* Abstract out buildsystems_methods reporting.

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

* Keep LIBC_VERSION const from being empty.

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

* Update crew_profile_base and libxml2

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

* clarify

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

* lint

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

* Update libarchive

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

* update libavif

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

* more updates

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

* Add libxml2 build comment.

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

* Add build comment to libarchive.

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

* Don't warn for missing directory during package removal.

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

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
2025-05-23 19:50:48 +00:00

34 lines
1.3 KiB
Ruby

require 'buildsystems/autotools'
class Libunbound < Autotools
description 'Unbound is a validating, recursive, and caching DNS resolver.'
homepage 'https://nlnetlabs.nl/projects/unbound/about/'
version '1.22.0'
license 'BSD and GPL-2'
compatibility 'all'
source_url "https://nlnetlabs.nl/downloads/unbound/unbound-#{version}.tar.gz"
source_sha256 'c5dd1bdef5d5685b2cedb749158dd152c52d44f65529a34ac15cd88d4b1b3d43'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '64e32be9f9014acf6dbd9ca1639ba5d9b59555d8182b7fbc11b9122feef91579',
armv7l: '64e32be9f9014acf6dbd9ca1639ba5d9b59555d8182b7fbc11b9122feef91579',
i686: 'd32fb93dc73cf58782dc155a39bf656295795a761ae48da3c5f48b88fe07bf3e',
x86_64: '2ad9eb65fc9c304c1b9239af056ec4e6b2ee2a1e6268b6b8e99d5330886aa2d5'
})
depends_on 'expat' # R
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'openssl' # R On i686 openssl needs to be installed before libunbound.
autotools_configure_options '--enable-shared \
--enable-static \
--with-pic'
def self.postinstall
# Use IPv4 if default fails.
system "#{CREW_PREFIX}/sbin/unbound-anchor -a '#{CREW_PREFIX}/etc/unbound/root.key' || #{CREW_PREFIX}/sbin/unbound-anchor -4 -a '#{CREW_PREFIX}/etc/unbound/root.key'"
end
end