workaround fixed segfault... will fix this later... probably some bug in gcc
[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() {
fc8ee582
H
21 export CFLAGS=""
22 export CXXFLAGS=""
23 export LDFLAGS=""
24 export MAKEFLAGS="-j1"
25
59208b5e 26 cd ${srcdir}/${pkgname}-${pkgver}/ || return 1
11326bfd 27 msg 'Configuring...'
717bbd34
H
28 ./configure\
29 --exec_prefix=/usr --prefix=/usr\
30 --sysconfdir=/etc --mandir=/usr/share/man\
59208b5e
H
31 --with-resolv-conf=/etc/resolv.conf\
32 --with-root-hints=none\
33 --with-ipv6\
34 --with-nsec3\
35 --with-dlv
11326bfd
H
36
37 msg 'Fixing bugs...'
38 grep VAL_ROOT_HINTS ./validator/libval/val_policy.h || {
39 msg2 'fixing missing VAL_ROOT_HINTS in ./validator/libval/val_policy.h'
40 root_hints="$(grep '^VAL_ROOT_HINTS=' ./validator/config.log | head -n 1 | tr = ' ' | tr "'" '"' | sed -e 's/\//\\\//g')"
41 cat ./validator/libval/val_policy.h | sed -e 's/#include "val_parse.h"/#include "val_parse.h"\n#define '"$root_hints"'/' > tmp
42 mv tmp ./validator/libval/val_policy.h
43 }
44
11326bfd 45 msg 'Building...'
59208b5e 46 make
11326bfd
H
47
48 msg 'Installing files to package...'
5eb1ee34
H
49 make -j1 install DESTDIR="${pkgdir}"
50 msg2 'configuration files'
51 cp -r validator/etc/* "${pkgdir}/etc/${pkgname}/"
52 rm -rf "${pkgdir}/etc/${pkgname}/${pkgname}.conf" #will be generated in post_install
9bf471d2 53 cp -f "${srcdir}"/{dnsval,resolv}.conf "${pkgdir}/etc/dnssec-tools/"
5eb1ee34
H
54 msg2 'license informations'
55 mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/"
56 cp COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
59208b5e 57}
This page took 0.167849 seconds and 4 git commands to generate.