| 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=(perl perl-timedate perl-net-dns perl-net-dns-sec) |
| 13 | install="${pkgname}.install" |
| 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 |
| 19 | msg 'Configuring...' |
| 20 | ./configure\ |
| 21 | --exec_prefix=/usr --prefix=/usr\ |
| 22 | --sysconfdir=/etc --mandir=/usr/share/man\ |
| 23 | --with-resolv-conf=/etc/resolv.conf\ |
| 24 | --with-root-hints=none\ |
| 25 | --with-ipv6\ |
| 26 | --with-nsec3\ |
| 27 | --with-dlv |
| 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 | |
| 37 | msg 'Building...' |
| 38 | make |
| 39 | |
| 40 | msg 'Installing files to package...' |
| 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}/" |
| 48 | } |