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/
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/"
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')
17 cd ${srcdir}/${pkgname}-${pkgver}/ || return 1
19 ./configure --prefix='' --exec_prefix=/usr\
20 --with-resolv-conf=/etc/resolv.conf\
21 --with-root-hints=none\
27 grep VAL_ROOT_HINTS ./validator/libval/val_policy.h || {
28 msg2 'fixing missing VAL_ROOT_HINTS in ./validator/libval/val_policy.h'
29 root_hints="$(grep '^VAL_ROOT_HINTS=' ./validator/config.log | head -n 1 | tr = ' ' | tr "'" '"' | sed -e 's/\//\\\//g')"
30 cat ./validator/libval/val_policy.h | sed -e 's/#include "val_parse.h"/#include "val_parse.h"\n#define '"$root_hints"'/' > tmp
31 mv tmp ./validator/libval/val_policy.h
34 #msg2 'fixing validator/mkinstalldirs to obey the DESTDIR'
35 ##cat validator/mkinstalldirs | sed -e 's/pathcomp="$pathcomp$d"/pathcomp="$DESTDIR$pathcomp$d"/' | sed -e 's/exit $errstatus/exit 0/g' > tmp
36 #cat validator/mkinstalldirs | sed -e 's/mkdir /mkdir -p "$DESTDIR"/' > tmp
37 #mv tmp validator/mkinstalldirs
38 #chmod +x validator/mkinstalldirs
43 msg 'Installing files to package...'
44 #export DESTDIR="${pkgdir}";
45 make -j1 install DESTDIR="${pkgdir}" mandir="/usr/share/man"