workaround fixed segfault... will fix this later... probably some bug in gcc
[mirrors/ArchLinux-Packages.git] / dnssec-tools / PKGBUILD
... / ...
CommitLineData
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
8pkgdesc="Set of software tools, patches, applications, wrappers, extensions, and plugins that will help ease the deployment of DNSSEC related technologies"
9url="http://www.dnssec-tools.org/"
10license="Custom"
11arch=('i686' 'x86_64')
12depends=(dnssec-root-zone-trust-anchors perl perl-timedate perl-net-dns perl-net-dns-sec)
13backup=(etc/dnssec-tools/resolv.conf etc/dnssec-tools/root.hints)
14install="${pkgname}.install"
15source=("http://www.dnssec-tools.org/download/${pkgname}-${pkgver}.tar.gz" dnsval.conf resolv.conf)
16md5sums=('f3dfe18ae50cf65594936e1684d469d0'
17 'aaee6f50ab4abbc183f64b5de013f756'
18 '03ff269fa39d2a7eb6cbe108bcea473a')
19
20build() {
21 export CFLAGS=""
22 export CXXFLAGS=""
23 export LDFLAGS=""
24 export MAKEFLAGS="-j1"
25
26 cd ${srcdir}/${pkgname}-${pkgver}/ || return 1
27 msg 'Configuring...'
28 ./configure\
29 --exec_prefix=/usr --prefix=/usr\
30 --sysconfdir=/etc --mandir=/usr/share/man\
31 --with-resolv-conf=/etc/resolv.conf\
32 --with-root-hints=none\
33 --with-ipv6\
34 --with-nsec3\
35 --with-dlv
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
45 msg 'Building...'
46 make
47
48 msg 'Installing files to package...'
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
53 cp -f "${srcdir}"/{dnsval,resolv}.conf "${pkgdir}/etc/dnssec-tools/"
54 msg2 'license informations'
55 mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/"
56 cp COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
57}
This page took 0.117878 seconds and 4 git commands to generate.