28fd6e3296f4a4f1709a8576cace522a72f4e83a
[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="Custom"
11 arch=('i686' 'x86_64')
12 depends=(dnssec-root-zone-trust-anchors perl perl-timedate perl-net-dns perl-net-dns-sec)
13 backup=(etc/dnssec-tools/resolv.conf etc/dnssec-tools/root.hints)
14 install="${pkgname}.install"
15 source=("http://www.dnssec-tools.org/download/${pkgname}-${pkgver}.tar.gz" dnsval.conf resolv.conf)
16 md5sums=('f3dfe18ae50cf65594936e1684d469d0'
17 'aaee6f50ab4abbc183f64b5de013f756'
18 '03ff269fa39d2a7eb6cbe108bcea473a')
19
20 build() {
21 cd ${srcdir}/${pkgname}-${pkgver}/ || return 1
22 msg 'Configuring...'
23 ./configure\
24 --exec_prefix=/usr --prefix=/usr\
25 --sysconfdir=/etc --mandir=/usr/share/man\
26 --with-resolv-conf=/etc/resolv.conf\
27 --with-root-hints=none\
28 --with-ipv6\
29 --with-nsec3\
30 --with-dlv
31
32 msg 'Fixing bugs...'
33 grep VAL_ROOT_HINTS ./validator/libval/val_policy.h || {
34 msg2 'fixing missing VAL_ROOT_HINTS in ./validator/libval/val_policy.h'
35 root_hints="$(grep '^VAL_ROOT_HINTS=' ./validator/config.log | head -n 1 | tr = ' ' | tr "'" '"' | sed -e 's/\//\\\//g')"
36 cat ./validator/libval/val_policy.h | sed -e 's/#include "val_parse.h"/#include "val_parse.h"\n#define '"$root_hints"'/' > tmp
37 mv tmp ./validator/libval/val_policy.h
38 }
39
40 msg 'Building...'
41 make
42
43 msg 'Installing files to package...'
44 make -j1 install DESTDIR="${pkgdir}"
45 msg2 'configuration files'
46 cp -r validator/etc/* "${pkgdir}/etc/${pkgname}/"
47 rm -rf "${pkgdir}/etc/${pkgname}/${pkgname}.conf" #will be generated in post_install
48 cp -f "${srcdir}"/{dnsval,resolv}.conf "${pkgdir}/etc/dnssec-tools/"
49 msg2 'license informations'
50 mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/"
51 cp COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
52 }
This page took 0.254017 seconds and 3 git commands to generate.