dnssec-tools: working version
[mirrors/ArchLinux-Packages.git] / dnssec-tools / PKGBUILD
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
5 pkgname=dnssec-tools
6 pkgver=1.7
7 pkgrel=1
8 pkgdesc="Set of software tools, patches, applications, wrappers, extensions, and plugins that will help ease the deployment of DNSSEC related technologies"
9 url="http://www.dnssec-tools.org/"
10 license="GPL"
11 arch=('i686' 'x86_64')
12 depends=(perl perl-timedate perl-net-dns perl-net-dns-sec)
13 source=("http://www.dnssec-tools.org/download/${pkgname}-${pkgver}.tar.gz")
14 md5sums=('f3dfe18ae50cf65594936e1684d469d0')
15
16 build() {
17 cd ${srcdir}/${pkgname}-${pkgver}/ || return 1
18 msg 'Configuring...'
19 ./configure\
20 --exec_prefix=/usr --prefix=/usr\
21 --sysconfdir=/etc --mandir=/usr/share/man\
22 --with-resolv-conf=/etc/resolv.conf\
23 --with-root-hints=none\
24 --with-ipv6\
25 --with-nsec3\
26 --with-dlv
27
28 msg 'Fixing bugs...'
29 grep VAL_ROOT_HINTS ./validator/libval/val_policy.h || {
30 msg2 'fixing missing VAL_ROOT_HINTS in ./validator/libval/val_policy.h'
31 root_hints="$(grep '^VAL_ROOT_HINTS=' ./validator/config.log | head -n 1 | tr = ' ' | tr "'" '"' | sed -e 's/\//\\\//g')"
32 cat ./validator/libval/val_policy.h | sed -e 's/#include "val_parse.h"/#include "val_parse.h"\n#define '"$root_hints"'/' > tmp
33 mv tmp ./validator/libval/val_policy.h
34 }
35
36 msg 'Building...'
37 make
38
39 msg 'Installing files to package...'
40 #export DESTDIR="${pkgdir}";
41 make -j1 install DESTDIR="${pkgdir}" #exec_prefix="/usr" prefix="/usr" sysconfdir="/etc" mandir="/usr/share/man"
42
43 #msg2 'FIXME: Moving files installed to wrong place...'
44 #for dir in bin include man share; do
45 # echo $dir;
46 # cp -r "${pkgdir}/${dir}" "${pkgdir}/usr/" &&
47 # rm -rf "${pkgdir}/${dir}";
48 #done;
49 }
This page took 0.248111 seconds and 4 git commands to generate.