# $NetBSD: Makefile,v 1.32 2016/06/08 19:24:23 wiz Exp $
DISTNAME= Net-DNS-SEC-0.22
PKGNAME= p5-${DISTNAME}
PKGREVISION= 2
CATEGORIES= security net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Net/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.net-dns.org/
COMMENT= DNSSEC extension to Net::DNS Perl DNS Resolver Module
LICENSE= modified-bsd
DEPENDS+= p5-Crypt-OpenSSL-Bignum>=0.03:../../security/p5-Crypt-OpenSSL-Bignum
DEPENDS+= p5-Crypt-OpenSSL-DSA>=0.10:../../security/p5-Crypt-OpenSSL-DSA
DEPENDS+= p5-Crypt-OpenSSL-RSA>=0.27:../../security/p5-Crypt-OpenSSL-RSA
DEPENDS+= p5-Digest-BubbleBabble>=0.01:../../security/p5-Digest-BubbleBabble
#DEPENDS+= {perl>=5.10.0,p5-Digest-SHA>=5.23}:../../security/p5-Digest-SHA
DEPENDS+= p5-Digest-SHA1>=2.04:../../security/p5-Digest-SHA1
DEPENDS+= p5-MIME-Base32-[0-9]*:../../converters/p5-MIME-Base32
#DEPENDS+= {perl>=5.7.3,p5-MIME-Base64-[0-9]*}:../../converters/p5-MIME-Base64
DEPENDS+= p5-Net-DNS>=0.64:../../net/p5-Net-DNS
#BUILDLINK_API_DEPENDS.perl+= perl>=5.6.1
PERL5_PACKLIST= auto/Net/DNS/SEC/.packlist
REPLACE_PERL= demo/getkeyset.pl demo/key2ds demo/make-signed-keyset
DOCSUBDIR= share/doc/${PKGBASE}
EGSUBDIR= share/examples/${PKGBASE}
INSTALLATION_DIRS+= ${DOCSUBDIR} ${EGSUBDIR}
SUBST_CLASSES+= p5nds
SUBST_STAGE.p5nds= post-install
SUBST_FILES.p5nds= demo/getkeyset.pl
SUBST_SED.p5nds= -e "1s,-I./blib/lib,,"
post-install:
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/${DOCSUBDIR}
.for f in getkeyset.pl key2ds make-signed-keyset
${INSTALL_SCRIPT} ${WRKSRC}/demo/${f} ${DESTDIR}${PREFIX}/${EGSUBDIR}
.endfor
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>