updated on Sun Jan 22 04:03:10 UTC 2012
[aur-mirror.git] / dnsval / PKGBUILD
blob738984cf9bd15c17ea90159b8fe705641d7ab013
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 # Patches welcome: http://github.com/harvie/archlinux-packages
6 pkgname=dnsval
7 pkgver=1.11
8 pkgrel=1
9 pkgdesc="C libraries that implement DNSSEC aware DNS resolution APIs."
10 url="http://www.dnssec-tools.org/"
11 license="Custom"
12 arch=('i686' 'x86_64')
13 depends=('dnssec-root-zone-trust-anchors' 'dnssec-tools')
14 source=("http://www.dnssec-tools.org/download/${pkgname}-${pkgver}.tar.gz")
15 md5sums=('2c02c0f0f4ed0a73eae029e39fd7ed8c')
16 sha1sums=('cf69fe9c0192bbf77198d22586cef776c97b8b29')
17 sha256sums=('31ba003a4abf4537e4b79556ab21f8fc84586681fc8e1e5a7648b05795375f66')
18 sha384sums=('33e3e7c2a15496631e15c02cd115db1fb382739573e1416fe359903a0482e032fee36e25159419c1b148ddab186139e9')
19 sha512sums=('bb65c094aaa14f5c81de4016db6497168ddd32a25fcb90abd751ba441453e4eed8add6c4f3fca2356ff8ba479726b286ed2c910954f5dd062ab52778e9d0fe92')
22 build() {
23         #Segfaults with optimizations...
24                 ARCH="$(echo -ne "$CARCH" | tr _ -)"
25                 export CFLAGS="-march=$ARCH -mtune=generic"
26                 export CXXFLAGS="-march=$ARCH -mtune=generic"
27         echo $ARCH > /home/max/arch.txt
29         cd ${srcdir}/${pkgname}-${pkgver}/ || return 1
30         msg 'Configuring...'
31         ./configure\
32                 --exec_prefix=/usr --prefix=/usr\
33                 --sysconfdir=/etc --mandir=/usr/share/man\
34                 --with-resolv-conf=/etc/dnssec-tools/resolv.conf\
35                 --with-root-hints=/etc/dnssec-tools/root.hints\
36                 --with-dnsval-conf=/etc/dnsec-tools/dnsval.conf\
37                 --with-ipv6\
38                 --with-nsec3\
39                 --with-dlv 
41         # msg 'Fixing bugs...'
42                 #grep VAL_ROOT_HINTS ./validator/libval/val_policy.h    || {
43                 #       msg2 'fixing missing VAL_ROOT_HINTS in ./validator/libval/val_policy.h'
44                 #       root_hints="$(grep '^VAL_ROOT_HINTS=' ./validator/config.log | head -n 1 | tr = ' ' | tr "'" '"' | sed -e 's/\//\\\//g')"
45                 #       cat ./validator/libval/val_policy.h | sed -e 's/#include "val_parse.h"/#include "val_parse.h"\n#define '"$root_hints"'/' > tmp
46                 #       mv tmp ./validator/libval/val_policy.h
47                 #}
49         msg 'Building...'
50                 make -j1
52 package() {
53         cd ${srcdir}/${pkgname}-${pkgver}/ || return 1  
54         msg 'Installing files to package...'
55                 make -j1 install DESTDIR="${pkgdir}"
56         msg 'Cleaning...'
57                 #have to do this because of some issues...
58                 rm -rf "${srcdir}/"