Commit | Line | Data |
---|---|---|
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 | ||
5 | pkgname=dnssec-tools | |
6 | pkgver=1.7 | |
7 | pkgrel=1 | |
717bbd34 | 8 | pkgdesc="Set of software tools, patches, applications, wrappers, extensions, and plugins that will help ease the deployment of DNSSEC related technologies" |
59208b5e H |
9 | url="http://www.dnssec-tools.org/" |
10 | license="GPL" | |
11 | arch=('i686' 'x86_64') | |
e9b9390d | 12 | depends=(perl perl-timedate perl-net-dns perl-net-dns-sec) |
59208b5e H |
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 | |
11326bfd | 18 | msg 'Configuring...' |
717bbd34 H |
19 | ./configure\ |
20 | --exec_prefix=/usr --prefix=/usr\ | |
21 | --sysconfdir=/etc --mandir=/usr/share/man\ | |
59208b5e H |
22 | --with-resolv-conf=/etc/resolv.conf\ |
23 | --with-root-hints=none\ | |
24 | --with-ipv6\ | |
25 | --with-nsec3\ | |
26 | --with-dlv | |
11326bfd H |
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 | ||
11326bfd | 36 | msg 'Building...' |
59208b5e | 37 | make |
11326bfd H |
38 | |
39 | msg 'Installing files to package...' | |
40 | #export DESTDIR="${pkgdir}"; | |
717bbd34 H |
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; | |
59208b5e | 49 | } |