2020-11-21 17:15:45 +00:00
|
|
|
# Maintainer: David Runge <dvzrv@archlinux.org>
|
2021-07-24 18:33:51 +00:00
|
|
|
# Maintainer: Bruno Pagani <archange@archlinux.org>
|
2022-10-21 12:50:26 +00:00
|
|
|
# Maintainer: T.J. Townsend <blakkheim@archlinux.org>
|
2020-11-21 17:15:45 +00:00
|
|
|
# Contributor: Gaetan Bisson <bisson@archlinux.org>
|
2015-12-06 17:37:32 +00:00
|
|
|
# Contributor: Hisato Tatekura <hisato_tatekura@excentrics.net>
|
|
|
|
# Contributor: Massimiliano Torromeo <massimiliano DOT torromeo AT google mail service>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable LTO (--disable-flto)
|
|
|
|
|
|
|
|
pkgname=unbound
|
2024-05-08 15:37:50 +00:00
|
|
|
pkgver=1.20.0
|
|
|
|
pkgrel=1
|
2020-11-21 17:15:45 +00:00
|
|
|
pkgdesc="Validating, recursive, and caching DNS resolver"
|
2021-07-24 18:33:51 +00:00
|
|
|
arch=(x86_64)
|
2020-11-21 17:15:45 +00:00
|
|
|
url="https://unbound.net/"
|
2024-02-13 15:06:36 +00:00
|
|
|
license=(BSD-3-Clause)
|
|
|
|
depends=(
|
|
|
|
dnssec-anchors
|
|
|
|
fstrm
|
2024-03-07 13:23:26 +00:00
|
|
|
glibc
|
2024-02-13 15:06:36 +00:00
|
|
|
hiredis
|
|
|
|
ldns
|
|
|
|
libnghttp2
|
|
|
|
libsodium
|
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
expat
|
2024-04-02 23:23:27 +00:00
|
|
|
git
|
2024-02-13 15:06:36 +00:00
|
|
|
libevent
|
|
|
|
openssl
|
|
|
|
protobuf-c
|
|
|
|
python
|
|
|
|
swig
|
|
|
|
systemd
|
|
|
|
)
|
2021-02-11 15:01:49 +00:00
|
|
|
optdepends=(
|
|
|
|
'expat: for unbound-anchor'
|
|
|
|
'sh: for unbound-control-setup'
|
2021-12-12 00:44:02 +00:00
|
|
|
'python: for python-bindings'
|
2021-02-11 15:01:49 +00:00
|
|
|
)
|
2021-07-24 18:33:51 +00:00
|
|
|
provides=(libunbound.so)
|
2022-10-21 12:50:26 +00:00
|
|
|
backup=(etc/$pkgname/$pkgname.conf)
|
2021-12-12 00:44:02 +00:00
|
|
|
source=(
|
2024-04-02 23:23:27 +00:00
|
|
|
git+https://github.com/NLnetLabs/unbound.git#tag=release-${pkgver}?signed
|
2022-09-24 15:07:28 +00:00
|
|
|
$pkgname-1.14.0-trust_anchor_file.patch
|
|
|
|
$pkgname-sysusers.conf
|
|
|
|
$pkgname-tmpfiles.conf
|
|
|
|
$pkgname-trusted-key.hook
|
2021-12-12 00:44:02 +00:00
|
|
|
)
|
2024-05-08 15:37:50 +00:00
|
|
|
sha512sums=('4cd74383c8b1ed469d2a35e1ac01d8fccf5d90a267ac2b1f98b9a8ad35f563c778730a7ff9bd29cf15f0216999a54cd730aded5740ca7e1a0000293598803fd5'
|
2021-12-12 00:44:02 +00:00
|
|
|
'9590d3d459d96f99cbc7482fae0f5318dd22a034e45cff18079e4f3c9f9c3c1d7af90cdd5353fb469eac08c535555fd164097b496286b807b2117e8a3a6cd304'
|
2020-11-21 17:15:45 +00:00
|
|
|
'ef71d4e9b0eb0cc602d66bd0573d9424578fe33ef28a852c582d56f0fd34fdd63046c365ef7aed8b84a461b81254240af7ad3fd539da72f9587817d21bd6c585'
|
|
|
|
'6b1849ae9d7cf427f6fa6cd0590e8f8c3f06210d2d6795e543b0f325a9e866db0f5db2275a29fa90f688783c0dd16f19c8a49a9817d5f5444e13f8f2df3ff712'
|
|
|
|
'613826cdf5ab6e77f2805fa2aa65272508dcd11090add1961b3df6dfac3b67db016bc9f45fbcf0ef0de82b2d602c153d5263a488027a6cf13a72680b581b266d')
|
2024-05-08 15:37:50 +00:00
|
|
|
b2sums=('b6aad117635149496d40debc2de64d03d610ac44ebefbc841101f5e909dc2723075ebf8310e5d2a64c8ff233dbb027c04638c66a072f1fe3d4701e057c59fb55'
|
2021-12-12 00:44:02 +00:00
|
|
|
'0978ab5c0474ed29de9c0904a46d114413e094dafeadaac4f10cdbc19e4152fcc064d7cdb8c331da7c2531075aa699326b84e21da1a8218a6f00a10f0e107b3d'
|
2020-11-21 17:15:45 +00:00
|
|
|
'292a3c2e5fde292a03b6c9b2ddabd5089f52e73b50a404c3d9f54c1a43184924b661a21eea61cc521c594c1005a3b40b630fa585a38195c61298f9b24b248b92'
|
|
|
|
'd3951006b43068be904c6b91a9e0563d56228225854e12b40abbdd4ba9b47338e97265837297a6de879acbc8051bb749163f9457683f5e12fc29ac2e7b687fd3'
|
|
|
|
'd28785390eb6c125bd26ca11f097fe8864b080482157deeb7c70e9bee47ff2844abaed574db59a7c152ed3ec0acba05cfee4c3751f7a9f553320b064578f86c7')
|
2021-07-24 18:33:51 +00:00
|
|
|
validpgpkeys=(EDFAA3F2CA4E6EB05681AF8E9F6F1C2D7E045F8D) # W.C.A. Wijngaards <wouter@nlnetlabs.nl>
|
2019-09-17 03:52:16 +00:00
|
|
|
|
|
|
|
prepare() {
|
2021-12-12 00:44:02 +00:00
|
|
|
# enable trusted-anchor-file and set it to an unbound specific location
|
2024-04-02 23:23:27 +00:00
|
|
|
patch -p1 -d $pkgname -i ../$pkgname-1.14.0-trust_anchor_file.patch
|
|
|
|
cd $pkgname
|
2022-09-24 15:07:28 +00:00
|
|
|
autoreconf -fiv
|
2019-09-17 03:52:16 +00:00
|
|
|
}
|
2015-12-06 17:37:32 +00:00
|
|
|
|
|
|
|
build() {
|
2023-01-12 11:34:07 +00:00
|
|
|
local configure_options=(
|
|
|
|
--prefix=/usr
|
|
|
|
--sysconfdir=/etc
|
|
|
|
--localstatedir=/var
|
|
|
|
--sbindir=/usr/bin
|
|
|
|
--disable-rpath
|
2022-09-24 15:07:28 +00:00
|
|
|
--disable-flto
|
2023-01-12 11:34:07 +00:00
|
|
|
--enable-dnscrypt
|
|
|
|
--enable-dnstap
|
|
|
|
--enable-pie
|
|
|
|
--enable-relro-now
|
|
|
|
--enable-subnet
|
|
|
|
--enable-systemd
|
|
|
|
--enable-tfo-client
|
|
|
|
--enable-tfo-server
|
|
|
|
--enable-cachedb
|
|
|
|
--with-libhiredis
|
|
|
|
--with-conf-file=/etc/unbound/unbound.conf
|
|
|
|
--with-pidfile=/run/unbound.pid
|
|
|
|
--with-rootkey-file=/etc/trusted-key.key
|
|
|
|
--with-libevent
|
|
|
|
--with-libnghttp2
|
|
|
|
--with-pyunbound
|
|
|
|
)
|
|
|
|
|
2024-04-02 23:23:27 +00:00
|
|
|
cd $pkgname
|
2023-01-12 11:34:07 +00:00
|
|
|
./configure "${configure_options[@]}"
|
2022-09-24 15:07:28 +00:00
|
|
|
# prevent excessive overlinking due to libtool
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
2020-11-21 17:15:45 +00:00
|
|
|
make
|
|
|
|
}
|
2015-12-06 17:37:32 +00:00
|
|
|
|
2020-11-21 17:15:45 +00:00
|
|
|
check() {
|
2024-04-02 23:23:27 +00:00
|
|
|
make -k check -C $pkgname
|
2015-12-06 17:37:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-01-12 11:34:07 +00:00
|
|
|
depends+=(
|
|
|
|
libevent libevent-2.1.so
|
|
|
|
openssl libcrypto.so libssl.so
|
|
|
|
protobuf-c libprotobuf-c.so
|
|
|
|
systemd-libs libsystemd.so
|
|
|
|
)
|
2021-12-12 00:44:02 +00:00
|
|
|
|
2024-04-02 23:23:27 +00:00
|
|
|
make DESTDIR="$pkgdir" install -C $pkgname
|
|
|
|
install -vDm 644 $pkgname/contrib/$pkgname.service -t "$pkgdir/usr/lib/systemd/system/"
|
|
|
|
install -vDm 644 $pkgname/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
2022-09-24 15:07:28 +00:00
|
|
|
install -vDm 644 $pkgname-sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
|
|
|
|
install -vDm 644 $pkgname-tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
|
2020-11-21 17:15:45 +00:00
|
|
|
# libalpm hook to copy the dnssec-anchors provided key to /etc/unbound
|
2022-09-24 15:07:28 +00:00
|
|
|
install -vDm 644 unbound-trusted-key.hook -t "$pkgdir/usr/share/libalpm/hooks/"
|
2015-12-06 17:37:32 +00:00
|
|
|
}
|