X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=dnssec-tools%2FPKGBUILD;h=46c0f401993be4917a464fb4f42f727a70ff8607;hb=717bbd343f1922cd58430f90f51d97a73adc5bfc;hp=9bb23e6bc47b8c38467e7fcf4c8652e086ec1679;hpb=59208b5ead37d6c174afa6847c6984bb8452ccd9;p=mirrors%2FArchLinux-Packages.git diff --git a/dnssec-tools/PKGBUILD b/dnssec-tools/PKGBUILD index 9bb23e6..46c0f40 100644 --- a/dnssec-tools/PKGBUILD +++ b/dnssec-tools/PKGBUILD @@ -5,22 +5,45 @@ 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" arch=('i686' 'x86_64') -depends=(perl) +depends=(perl perl-timedate perl-net-dns perl-net-dns-sec) source=("http://www.dnssec-tools.org/download/${pkgname}-${pkgver}.tar.gz") md5sums=('f3dfe18ae50cf65594936e1684d469d0') build() { cd ${srcdir}/${pkgname}-${pkgver}/ || return 1 - ./configure --prefix='' --exec_prefix=/usr\ + msg 'Configuring...' + ./configure\ + --exec_prefix=/usr --prefix=/usr\ + --sysconfdir=/etc --mandir=/usr/share/man\ --with-resolv-conf=/etc/resolv.conf\ --with-root-hints=none\ --with-ipv6\ --with-nsec3\ --with-dlv + + 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 - make exec_prefix=/usr | return 1 + + msg 'Installing files to package...' + #export DESTDIR="${pkgdir}"; + make -j1 install DESTDIR="${pkgdir}" #exec_prefix="/usr" prefix="/usr" sysconfdir="/etc" mandir="/usr/share/man" + + #msg2 'FIXME: Moving files installed to wrong place...' + #for dir in bin include man share; do + # echo $dir; + # cp -r "${pkgdir}/${dir}" "${pkgdir}/usr/" && + # rm -rf "${pkgdir}/${dir}"; + #done; }