🔒 Repository is read-only – file editing is disabled.

recipes/utils/unbound/PAGBUILD.yaml main

52 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
pkgname: unbound
pkgver: '01a9510'
pkgrel: '1'
pkgdesc: 'A validating, recursive, and caching DNS resolver.'
url: 'https://www.unbound.net'
arch: x86_64
license:
- BSD

depends: []
makedepends:
- git
- openssl
- doxygen

source:
- 'https://github.com/NLnetLabs/unbound.git'

sha256sums:
- SKIP

hooks:
  'post-install': |
    name=unbound
    version=01a9510
    release=1
    getent group unbound >/dev/null 2>&1 || groupadd -g 88 unbound &>/dev/null
    getent passwd unbound > /dev/null 2>&1 || useradd -C "Unbound DNS resolver" -d /var/lib/unbound -u 88 \
    -g unbound -s /bin/false unbound

build: |
  cd unbound

  ./configure --prefix=/usr    \
            --sbindir=/usr/bin \
            --sysconfdir=/etc  \
            --disable-static   \
            --with-pidfile=/run/unbound.pid &&

  make

  make doc

  make DESTDIR=${PKGDIR} install

  install -v -m755 -d ${PKGDIR}/usr/share/doc/${pkgname}
  install -v -m644 doc/html/* ${PKGDIR}/usr/share/doc/${pkgname}

  install -Dm644 LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE  

package: |
  true