mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
community/unbound to 1.17.1-1
This commit is contained in:
parent
57e48b0c05
commit
a3cd7b6411
1 changed files with 38 additions and 30 deletions
|
@ -9,14 +9,14 @@
|
|||
# - disable LTO (--disable-flto)
|
||||
|
||||
pkgname=unbound
|
||||
pkgver=1.17.0
|
||||
pkgrel=3
|
||||
pkgver=1.17.1
|
||||
pkgrel=1
|
||||
pkgdesc="Validating, recursive, and caching DNS resolver"
|
||||
arch=(x86_64)
|
||||
url="https://unbound.net/"
|
||||
license=(BSD)
|
||||
depends=(dnssec-anchors fstrm hiredis ldns libevent libnghttp2 libsodium openssl)
|
||||
makedepends=(expat protobuf-c python swig systemd)
|
||||
depends=(dnssec-anchors fstrm hiredis ldns libnghttp2 libsodium)
|
||||
makedepends=(expat libevent openssl protobuf-c python swig systemd)
|
||||
optdepends=(
|
||||
'expat: for unbound-anchor'
|
||||
'sh: for unbound-control-setup'
|
||||
|
@ -31,13 +31,13 @@ source=(
|
|||
$pkgname-tmpfiles.conf
|
||||
$pkgname-trusted-key.hook
|
||||
)
|
||||
sha512sums=('f6b9f279330fb19b5feca09524959940aad8c4e064528aa82b369c726d77e9e8e5ca23f366f6e9edcf2c061b96f482ed7a2c26ac70fc15ae5762b3d7e36a5284'
|
||||
sha512sums=('10dd4c3aff77f1c0d19eb3c66956ed6ef1aae19e827d0b3259dc75d9de28dedd41862982a299e67ee07e17fb52058b4beee9d4b1d3bb0a3f633b9ba5b864d168'
|
||||
'SKIP'
|
||||
'9590d3d459d96f99cbc7482fae0f5318dd22a034e45cff18079e4f3c9f9c3c1d7af90cdd5353fb469eac08c535555fd164097b496286b807b2117e8a3a6cd304'
|
||||
'ef71d4e9b0eb0cc602d66bd0573d9424578fe33ef28a852c582d56f0fd34fdd63046c365ef7aed8b84a461b81254240af7ad3fd539da72f9587817d21bd6c585'
|
||||
'6b1849ae9d7cf427f6fa6cd0590e8f8c3f06210d2d6795e543b0f325a9e866db0f5db2275a29fa90f688783c0dd16f19c8a49a9817d5f5444e13f8f2df3ff712'
|
||||
'613826cdf5ab6e77f2805fa2aa65272508dcd11090add1961b3df6dfac3b67db016bc9f45fbcf0ef0de82b2d602c153d5263a488027a6cf13a72680b581b266d')
|
||||
b2sums=('611c1b96ff84e6dd8f7a592135cc17f416cd810d0f35d27c8cedd56af069badd8dca112cc5927a1fe50ec3335c377b6bd6fc4e1a6d63a332a90d676e3c23dcef'
|
||||
b2sums=('c2dec1608e28302da33ee72144bb8eb16cdff2e949e548f9ea5edb10b370e396085de641446b1f94daeb96a48a02f9361ebae69f72f3d449575fe3ce93dcdb5b'
|
||||
'SKIP'
|
||||
'0978ab5c0474ed29de9c0904a46d114413e094dafeadaac4f10cdbc19e4152fcc064d7cdb8c331da7c2531075aa699326b84e21da1a8218a6f00a10f0e107b3d'
|
||||
'292a3c2e5fde292a03b6c9b2ddabd5089f52e73b50a404c3d9f54c1a43184924b661a21eea61cc521c594c1005a3b40b630fa585a38195c61298f9b24b248b92'
|
||||
|
@ -53,30 +53,33 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--sbindir=/usr/bin \
|
||||
--disable-rpath \
|
||||
--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 \
|
||||
local configure_options=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--localstatedir=/var
|
||||
--sbindir=/usr/bin
|
||||
--disable-rpath
|
||||
--disable-flto
|
||||
--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
|
||||
)
|
||||
|
||||
cd $pkgname-$pkgver
|
||||
./configure "${configure_options[@]}"
|
||||
# prevent excessive overlinking due to libtool
|
||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||
make
|
||||
|
@ -87,7 +90,12 @@ check() {
|
|||
}
|
||||
|
||||
package() {
|
||||
depends+=(libprotobuf-c.so libsystemd.so)
|
||||
depends+=(
|
||||
libevent libevent-2.1.so
|
||||
openssl libcrypto.so libssl.so
|
||||
protobuf-c libprotobuf-c.so
|
||||
systemd-libs libsystemd.so
|
||||
)
|
||||
|
||||
make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
|
||||
install -vDm 644 $pkgname-$pkgver/contrib/$pkgname.service -t "$pkgdir/usr/lib/systemd/system/"
|
||||
|
|
Loading…
Reference in a new issue