blob: bd1542c701fd6a64c679f3500e68047a9abffb6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $Id: PKGBUILD 104857 2014-01-27 16:23:54Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Roberto Alsina <ralsina@kde.org>
pkgname=nsd
pkgver=4.0.1
pkgrel=1
pkgdesc='Authoritative only, high performance and simple DNS server'
url='http://www.nlnetlabs.nl/nsd/'
license=('BSD')
arch=('i686' 'x86_64' 'mips64el')
depends=('openssl' 'libevent')
makedepends=('flex')
source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz"
'tmpfiles.d'
'service')
sha1sums=('788cc290ade7fc6a61fe4391837d3abddbda4df0'
'7ad2b8da961a893095eede8963cf8026b13186a1'
'3dbe300d834a32c9a339a6c76c58f5c240239e9b')
install=install
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure \
--prefix=/ \
--sbindir=/usr/bin \
--datarootdir=/usr/share \
--with-pidfile=/run/nsd/nsd.pid \
--enable-ratelimit
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/nsd.conf
install -Dm644 ../service "${pkgdir}"/usr/lib/systemd/system/nsd.service
rmdir "${pkgdir}"/{tmp,run/{nsd,}}
rm doc/differences.pdf
install -d "${pkgdir}"/usr/share/{doc,licenses}/"${pkgname}"
install -m644 doc/* "${pkgdir}"/usr/share/doc/"${pkgname}"
ln -s ../../doc/"${pkgname}"/LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}
|