Fixed dnssec-tools package
[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 --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
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...'
41 make
42
43 msg 'Installing files to package...'
44 #export DESTDIR="${pkgdir}";
45 make -j1 install DESTDIR="${pkgdir}" mandir="/usr/share/man"
46 }
This page took 0.342267 seconds and 4 git commands to generate.