dnssec-tools: cleaned up verison, still segfaults... dunno why. reported upstream.
[mirrors/ArchLinux-Packages.git] / dnssec-tools / PKGBUILD
CommitLineData
59208b5e
H
1# Contributor: Thomas Mudrunka <harvie@@email..cz>
2# Maintainer: Thomas Mudrunka <harvie@@email..cz>
3# You can also contact me on http://blog.harvie.cz/
4
5pkgname=dnssec-tools
6pkgver=1.7
7pkgrel=1
717bbd34 8pkgdesc="Set of software tools, patches, applications, wrappers, extensions, and plugins that will help ease the deployment of DNSSEC related technologies"
59208b5e 9url="http://www.dnssec-tools.org/"
5eb1ee34 10license="Custom"
59208b5e 11arch=('i686' 'x86_64')
f9341612 12depends=(dnssec-root-zone-trust-anchors perl perl-timedate perl-net-dns perl-net-dns-sec)
9bf471d2 13backup=(etc/dnssec-tools/resolv.conf etc/dnssec-tools/root.hints)
5eb1ee34 14install="${pkgname}.install"
9bf471d2 15source=("http://www.dnssec-tools.org/download/${pkgname}-${pkgver}.tar.gz" dnsval.conf resolv.conf)
5db849a7 16md5sums=('f3dfe18ae50cf65594936e1684d469d0'
9bf471d2
H
17 'aaee6f50ab4abbc183f64b5de013f756'
18 '03ff269fa39d2a7eb6cbe108bcea473a')
59208b5e
H
19
20build() {
21 cd ${srcdir}/${pkgname}-${pkgver}/ || return 1
11326bfd 22 msg 'Configuring...'
717bbd34
H
23 ./configure\
24 --exec_prefix=/usr --prefix=/usr\
25 --sysconfdir=/etc --mandir=/usr/share/man\
59208b5e
H
26 --with-resolv-conf=/etc/resolv.conf\
27 --with-root-hints=none\
28 --with-ipv6\
29 --with-nsec3\
30 --with-dlv
11326bfd
H
31
32 msg 'Fixing bugs...'
33 grep VAL_ROOT_HINTS ./validator/libval/val_policy.h || {
34 msg2 'fixing missing VAL_ROOT_HINTS in ./validator/libval/val_policy.h'
35 root_hints="$(grep '^VAL_ROOT_HINTS=' ./validator/config.log | head -n 1 | tr = ' ' | tr "'" '"' | sed -e 's/\//\\\//g')"
36 cat ./validator/libval/val_policy.h | sed -e 's/#include "val_parse.h"/#include "val_parse.h"\n#define '"$root_hints"'/' > tmp
37 mv tmp ./validator/libval/val_policy.h
38 }
39
11326bfd 40 msg 'Building...'
59208b5e 41 make
11326bfd
H
42
43 msg 'Installing files to package...'
5eb1ee34
H
44 make -j1 install DESTDIR="${pkgdir}"
45 msg2 'configuration files'
46 cp -r validator/etc/* "${pkgdir}/etc/${pkgname}/"
47 rm -rf "${pkgdir}/etc/${pkgname}/${pkgname}.conf" #will be generated in post_install
9bf471d2 48 cp -f "${srcdir}"/{dnsval,resolv}.conf "${pkgdir}/etc/dnssec-tools/"
5eb1ee34
H
49 msg2 'license informations'
50 mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/"
51 cp COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
59208b5e 52}
This page took 0.167773 seconds and 4 git commands to generate.