X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=dnssec-tools%2FPKGBUILD;h=7e28e327f2574becd49d7efad0ce3e24e52c99ce;hb=c2ae5380d171ed74cf7a5be5b9d6a61bb733a7e6;hp=9bb23e6bc47b8c38467e7fcf4c8652e086ec1679;hpb=59208b5ead37d6c174afa6847c6984bb8452ccd9;p=mirrors%2FArchLinux-Packages.git diff --git a/dnssec-tools/PKGBUILD b/dnssec-tools/PKGBUILD index 9bb23e6..7e28e32 100644 --- a/dnssec-tools/PKGBUILD +++ b/dnssec-tools/PKGBUILD @@ -1,26 +1,62 @@ # Contributor: Thomas Mudrunka # Maintainer: Thomas Mudrunka # You can also contact me on http://blog.harvie.cz/ +# Patches welcome: http://github.com/harvie/archlinux-packages pkgname=dnssec-tools pkgver=1.7 pkgrel=1 -pkgdesc="set of software tools, patches, applications, wrappers, extensions, and plugins that will help ease the deployment of DNSSEC related technologies" +pkgdesc="Set of software tools, patches, applications, wrappers, extensions, and plugins that will help ease the deployment of DNSSEC related technologies" url="http://www.dnssec-tools.org/" -license="GPL" +license="Custom" arch=('i686' 'x86_64') -depends=(perl) -source=("http://www.dnssec-tools.org/download/${pkgname}-${pkgver}.tar.gz") -md5sums=('f3dfe18ae50cf65594936e1684d469d0') +depends=(dnssec-root-zone-trust-anchors perl perl-timedate perl-net-dns perl-net-dns-sec) +backup=(etc/dnssec-tools/resolv.conf etc/dnssec-tools/root.hints) +install="${pkgname}.install" +source=("http://www.dnssec-tools.org/download/${pkgname}-${pkgver}.tar.gz" dnsval.conf resolv.conf) +md5sums=('f3dfe18ae50cf65594936e1684d469d0' + '60928d281572619dfdc24c3d727c120f' + '8096025f849b477e4e6008b9d3dc1232') build() { + #Segfaults with optimalizations... + ARCH="$(echo -ne "$CARCH" | tr _ -)" + export CFLAGS="-march=$ARCH -mtune=generic" + export CXXFLAGS="-march=$ARCH -mtune=generic" + cd ${srcdir}/${pkgname}-${pkgver}/ || return 1 - ./configure --prefix='' --exec_prefix=/usr\ - --with-resolv-conf=/etc/resolv.conf\ - --with-root-hints=none\ + msg 'Configuring...' + ./configure\ + --exec_prefix=/usr --prefix=/usr\ + --sysconfdir=/etc --mandir=/usr/share/man\ + --with-resolv-conf=/dev/null\ + --with-root-hints=/etc/dnssec-tools/root.hints\ --with-ipv6\ --with-nsec3\ --with-dlv - make - make exec_prefix=/usr | return 1 + + msg 'Fixing bugs...' + #grep VAL_ROOT_HINTS ./validator/libval/val_policy.h || { + # msg2 'fixing missing VAL_ROOT_HINTS in ./validator/libval/val_policy.h' + # root_hints="$(grep '^VAL_ROOT_HINTS=' ./validator/config.log | head -n 1 | tr = ' ' | tr "'" '"' | sed -e 's/\//\\\//g')" + # cat ./validator/libval/val_policy.h | sed -e 's/#include "val_parse.h"/#include "val_parse.h"\n#define '"$root_hints"'/' > tmp + # mv tmp ./validator/libval/val_policy.h + #} + + msg 'Building...' + make -j1 + + msg 'Installing files to package...' + make -j1 install DESTDIR="${pkgdir}" + msg2 'configuration files' + cp -r validator/etc/* "${pkgdir}/etc/${pkgname}/" + rm -rf "${pkgdir}/etc/${pkgname}/${pkgname}.conf" #will be generated in post_install + cp -f "${srcdir}"/{dnsval,resolv}.conf "${pkgdir}/etc/dnssec-tools/" + msg2 'license informations' + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/" + cp COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" + + msg 'Cleaning...' + #have to do this because of some issues... + rm -rf "${srcdir}/" }