community/unbound to 1.16.3-1

This commit is contained in:
Kevin Mihelich 2022-09-24 15:07:28 +00:00
parent 8f25036689
commit 194be0508c
2 changed files with 96 additions and 43 deletions

View file

@ -8,7 +8,7 @@
# - disable LTO (--disable-flto) # - disable LTO (--disable-flto)
pkgname=unbound pkgname=unbound
pkgver=1.16.2 pkgver=1.16.3
pkgrel=1 pkgrel=1
pkgdesc="Validating, recursive, and caching DNS resolver" pkgdesc="Validating, recursive, and caching DNS resolver"
arch=(x86_64) arch=(x86_64)
@ -24,19 +24,19 @@ optdepends=(
provides=(libunbound.so) provides=(libunbound.so)
backup=(etc/${pkgname}/${pkgname}.conf) backup=(etc/${pkgname}/${pkgname}.conf)
source=( source=(
"https://unbound.net/downloads/${pkgname}-${pkgver}.tar.gz"{,.asc} https://unbound.net/downloads/$pkgname-$pkgver.tar.gz{,.asc}
${pkgname}-1.14.0-trust_anchor_file.patch $pkgname-1.14.0-trust_anchor_file.patch
${pkgname}-sysusers.conf $pkgname-sysusers.conf
${pkgname}-tmpfiles.conf $pkgname-tmpfiles.conf
${pkgname}-trusted-key.hook $pkgname-trusted-key.hook
) )
sha512sums=('0ea65ea63265be677441bd2a28df12098ec5e86c3372240c2874f9bd13752b8b818da81ae6076cf02cbeba3d36e397698a4c2b50570be1a6a8e47f57a0251572' sha512sums=('ef5cda926dd1082a750615d8687bccd756869c66e9f24f984fda4c6613f94f3e4884db328b8d7b490777a75d3e616dcb61c5258e7777923c0590e6fabacd207c'
'SKIP' 'SKIP'
'9590d3d459d96f99cbc7482fae0f5318dd22a034e45cff18079e4f3c9f9c3c1d7af90cdd5353fb469eac08c535555fd164097b496286b807b2117e8a3a6cd304' '9590d3d459d96f99cbc7482fae0f5318dd22a034e45cff18079e4f3c9f9c3c1d7af90cdd5353fb469eac08c535555fd164097b496286b807b2117e8a3a6cd304'
'ef71d4e9b0eb0cc602d66bd0573d9424578fe33ef28a852c582d56f0fd34fdd63046c365ef7aed8b84a461b81254240af7ad3fd539da72f9587817d21bd6c585' 'ef71d4e9b0eb0cc602d66bd0573d9424578fe33ef28a852c582d56f0fd34fdd63046c365ef7aed8b84a461b81254240af7ad3fd539da72f9587817d21bd6c585'
'6b1849ae9d7cf427f6fa6cd0590e8f8c3f06210d2d6795e543b0f325a9e866db0f5db2275a29fa90f688783c0dd16f19c8a49a9817d5f5444e13f8f2df3ff712' '6b1849ae9d7cf427f6fa6cd0590e8f8c3f06210d2d6795e543b0f325a9e866db0f5db2275a29fa90f688783c0dd16f19c8a49a9817d5f5444e13f8f2df3ff712'
'613826cdf5ab6e77f2805fa2aa65272508dcd11090add1961b3df6dfac3b67db016bc9f45fbcf0ef0de82b2d602c153d5263a488027a6cf13a72680b581b266d') '613826cdf5ab6e77f2805fa2aa65272508dcd11090add1961b3df6dfac3b67db016bc9f45fbcf0ef0de82b2d602c153d5263a488027a6cf13a72680b581b266d')
b2sums=('2f7f119d12807ff5c000fd500be72a0825614da3e1f079f9b8d15a651bda2fa0b41599a55c6f76b17ff56120aa61e48042469063f08dd199333520172ca16750' b2sums=('b97deade78ab903363e06ff9d71b9895c754378ec276bb17556de62c48a88af5fbabd26f97fb47313d1e631fe75dee245aa38fbf42a865ac3e764882a1124a51'
'SKIP' 'SKIP'
'0978ab5c0474ed29de9c0904a46d114413e094dafeadaac4f10cdbc19e4152fcc064d7cdb8c331da7c2531075aa699326b84e21da1a8218a6f00a10f0e107b3d' '0978ab5c0474ed29de9c0904a46d114413e094dafeadaac4f10cdbc19e4152fcc064d7cdb8c331da7c2531075aa699326b84e21da1a8218a6f00a10f0e107b3d'
'292a3c2e5fde292a03b6c9b2ddabd5089f52e73b50a404c3d9f54c1a43184924b661a21eea61cc521c594c1005a3b40b630fa585a38195c61298f9b24b248b92' '292a3c2e5fde292a03b6c9b2ddabd5089f52e73b50a404c3d9f54c1a43184924b661a21eea61cc521c594c1005a3b40b630fa585a38195c61298f9b24b248b92'
@ -45,53 +45,54 @@ b2sums=('2f7f119d12807ff5c000fd500be72a0825614da3e1f079f9b8d15a651bda2fa0b41599a
validpgpkeys=(EDFAA3F2CA4E6EB05681AF8E9F6F1C2D7E045F8D) # W.C.A. Wijngaards <wouter@nlnetlabs.nl> validpgpkeys=(EDFAA3F2CA4E6EB05681AF8E9F6F1C2D7E045F8D) # W.C.A. Wijngaards <wouter@nlnetlabs.nl>
prepare() { prepare() {
cd ${pkgname}-${pkgver}
# enable trusted-anchor-file and set it to an unbound specific location # enable trusted-anchor-file and set it to an unbound specific location
patch -p1 < ../${pkgname}-1.14.0-trust_anchor_file.patch patch -p1 -d $pkgname-$pkgver -i ../$pkgname-1.14.0-trust_anchor_file.patch
autoreconf -vfi cd $pkgname-$pkgver
autoreconf -fiv
} }
build() { build() {
cd ${pkgname}-${pkgver} cd $pkgname-$pkgver
./configure --prefix=/usr \ ./configure \
--sysconfdir=/etc \ --prefix=/usr \
--localstatedir=/var \ --sysconfdir=/etc \
--sbindir=/usr/bin \ --localstatedir=/var \
--disable-rpath \ --sbindir=/usr/bin \
--enable-dnscrypt \ --disable-rpath \
--enable-dnstap \ --enable-dnscrypt \
--enable-pie \ --enable-dnstap \
--enable-relro-now \ --enable-pie \
--enable-subnet \ --enable-relro-now \
--enable-systemd \ --enable-subnet \
--enable-tfo-client \ --enable-systemd \
--enable-tfo-server \ --enable-tfo-client \
--enable-cachedb \ --enable-tfo-server \
--with-libhiredis \ --enable-cachedb \
--with-conf-file=/etc/unbound/unbound.conf \ --with-libhiredis \
--with-pidfile=/run/unbound.pid \ --with-conf-file=/etc/unbound/unbound.conf \
--with-rootkey-file=/etc/trusted-key.key \ --with-pidfile=/run/unbound.pid \
--with-libevent \ --with-rootkey-file=/etc/trusted-key.key \
--with-libnghttp2 \ --with-libevent \
--with-pyunbound \ --with-libnghttp2 \
--disable-flto --with-pyunbound \
--disable-flto
# prevent excessive overlinking due to libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make make
} }
check() { check() {
cd ${pkgname}-${pkgver} make -k check -C $pkgname-$pkgver
make -k check
} }
package() { package() {
depends+=(libprotobuf-c.so libsystemd.so) depends+=(libprotobuf-c.so libsystemd.so)
cd ${pkgname}-${pkgver} make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
make DESTDIR="${pkgdir}" install install -vDm 644 $pkgname-$pkgver/contrib/$pkgname.service -t "$pkgdir/usr/lib/systemd/system/"
install -vDm 644 contrib/${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/ install -vDm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -vDm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/ install -vDm 644 $pkgname-sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
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"
install -vDm 644 ../${pkgname}-tmpfiles.conf "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
# libalpm hook to copy the dnssec-anchors provided key to /etc/unbound # libalpm hook to copy the dnssec-anchors provided key to /etc/unbound
install -vDm 644 ../unbound-trusted-key.hook -t "${pkgdir}"/usr/share/libalpm/hooks/ install -vDm 644 unbound-trusted-key.hook -t "$pkgdir/usr/share/libalpm/hooks/"
} }

View file

@ -0,0 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBE2v/RwBEACyQpJlpCeSZBV1QUH7jNEp5xGdo6OnX2h9XoZ4ZPsb+u6OT+xE
SH45ncnISUh8rPCygbeWOoPR/yOBzh+lYoGxQ5iUHtwRrhHq04sQe/qFpXDO2xs6
1pTcPU2PnH7Rsr2qp6fZLPHuXLolD7NJfaSib8sVeMM0/ecyl/L2bBg9NpaGDX0x
TQh95M8o6AFo6UKWApBpgsvEZr2aH/B8b9KnCWFhfJyheEM7DamksdZNsKxXQyq3
l/ROfdsMLZGF8vPbYV/v11G4keyaL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