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