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/ | |
fa003b37 | 4 | # Patches welcome: http://github.com/harvie/archlinux-packages |
59208b5e H |
5 | |
6 | pkgname=dnssec-tools | |
7 | pkgver=1.7 | |
8 | pkgrel=1 | |
717bbd34 | 9 | pkgdesc="Set of software tools, patches, applications, wrappers, extensions, and plugins that will help ease the deployment of DNSSEC related technologies" |
59208b5e | 10 | url="http://www.dnssec-tools.org/" |
5eb1ee34 | 11 | license="Custom" |
59208b5e | 12 | arch=('i686' 'x86_64') |
f9341612 | 13 | depends=(dnssec-root-zone-trust-anchors perl perl-timedate perl-net-dns perl-net-dns-sec) |
9bf471d2 | 14 | backup=(etc/dnssec-tools/resolv.conf etc/dnssec-tools/root.hints) |
5eb1ee34 | 15 | install="${pkgname}.install" |
9bf471d2 | 16 | source=("http://www.dnssec-tools.org/download/${pkgname}-${pkgver}.tar.gz" dnsval.conf resolv.conf) |
5db849a7 | 17 | md5sums=('f3dfe18ae50cf65594936e1684d469d0' |
fa003b37 H |
18 | '60928d281572619dfdc24c3d727c120f' |
19 | '8096025f849b477e4e6008b9d3dc1232') | |
59208b5e H |
20 | |
21 | build() { | |
fa003b37 H |
22 | #Segfaults with optimalizations... |
23 | export CFLAGS="-march=$CARCH -mtune=generic" | |
24 | export CXXFLAGS="-march=$CARCH -mtune=generic" | |
fc8ee582 | 25 | |
59208b5e | 26 | cd ${srcdir}/${pkgname}-${pkgver}/ || return 1 |
11326bfd | 27 | msg 'Configuring...' |
717bbd34 H |
28 | ./configure\ |
29 | --exec_prefix=/usr --prefix=/usr\ | |
30 | --sysconfdir=/etc --mandir=/usr/share/man\ | |
fa003b37 H |
31 | --with-resolv-conf=/dev/null\ |
32 | --with-root-hints=/etc/dnssec-tools/root.hints\ | |
59208b5e H |
33 | --with-ipv6\ |
34 | --with-nsec3\ | |
35 | --with-dlv | |
11326bfd H |
36 | |
37 | msg 'Fixing bugs...' | |
fa003b37 H |
38 | #grep VAL_ROOT_HINTS ./validator/libval/val_policy.h || { |
39 | # msg2 'fixing missing VAL_ROOT_HINTS in ./validator/libval/val_policy.h' | |
40 | # root_hints="$(grep '^VAL_ROOT_HINTS=' ./validator/config.log | head -n 1 | tr = ' ' | tr "'" '"' | sed -e 's/\//\\\//g')" | |
41 | # cat ./validator/libval/val_policy.h | sed -e 's/#include "val_parse.h"/#include "val_parse.h"\n#define '"$root_hints"'/' > tmp | |
42 | # mv tmp ./validator/libval/val_policy.h | |
43 | #} | |
11326bfd | 44 | |
11326bfd | 45 | msg 'Building...' |
fa003b37 | 46 | make -j1 |
11326bfd H |
47 | |
48 | msg 'Installing files to package...' | |
5eb1ee34 H |
49 | make -j1 install DESTDIR="${pkgdir}" |
50 | msg2 'configuration files' | |
51 | cp -r validator/etc/* "${pkgdir}/etc/${pkgname}/" | |
52 | rm -rf "${pkgdir}/etc/${pkgname}/${pkgname}.conf" #will be generated in post_install | |
9bf471d2 | 53 | cp -f "${srcdir}"/{dnsval,resolv}.conf "${pkgdir}/etc/dnssec-tools/" |
5eb1ee34 H |
54 | msg2 'license informations' |
55 | mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/" | |
56 | cp COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" | |
fa003b37 H |
57 | |
58 | msg 'Cleaning...' | |
59 | #have to do this because of some issues... | |
60 | rm -rf "${srcdir}/" | |
59208b5e | 61 | } |