Fixed dnssec-tools package
[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
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="GPL"
11arch=('i686' 'x86_64')
e9b9390d 12depends=(perl perl-timedate perl-net-dns perl-net-dns-sec)
59208b5e
H
13source=("http://www.dnssec-tools.org/download/${pkgname}-${pkgver}.tar.gz")
14md5sums=('f3dfe18ae50cf65594936e1684d469d0')
15
16build() {
17 cd ${srcdir}/${pkgname}-${pkgver}/ || return 1
11326bfd 18 msg 'Configuring...'
59208b5e
H
19 ./configure --prefix='' --exec_prefix=/usr\
20 --with-resolv-conf=/etc/resolv.conf\
21 --with-root-hints=none\
22 --with-ipv6\
23 --with-nsec3\
24 --with-dlv
11326bfd
H
25
26 msg 'Fixing bugs...'
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
32 }
33
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
39
40 msg 'Building...'
59208b5e 41 make
11326bfd
H
42
43 msg 'Installing files to package...'
44 #export DESTDIR="${pkgdir}";
45 make -j1 install DESTDIR="${pkgdir}" mandir="/usr/share/man"
59208b5e 46}
This page took 0.107601 seconds and 4 git commands to generate.