blob: 7442ec7dd305dac89a7b22d753a454af467d20b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# $NetBSD: Makefile,v 1.36 2021/05/24 19:53:52 wiz Exp $
DISTNAME= dnssec-tools-2.2.3
PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GITHUB:=DNSSEC-Tools/}
GITHUB_PROJECT= DNSSEC-Tools
GITHUB_TAG= ${DISTNAME}
MAINTAINER= pettai@NetBSD.org
HOMEPAGE= https://www.dnssec-tools.org/
COMMENT= Toolkit to ease the deployment of DNSSEC related technologies
LICENSE= modified-bsd
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${DISTNAME}/dnssec-tools
DEPENDS+= p5-Net-DNS-SEC-[0-9]*:../../security/p5-Net-DNS-SEC
DEPENDS+= p5-Text-Diff-[0-9]*:../../textproc/p5-Text-Diff
DEPENDS+= p5-XML-Simple-[0-9]*:../../textproc/p5-XML-Simple
CONFLICTS= gethost-[0-9]*
BUILD_DEFS+= IPV6_READY
USE_TOOLS+= perl
REPLACE_PERL+= tools/modules/realm.pm
REPLACE_PERL+= tools/modules/rollrec.pm
REPLACE_PERL+= tools/modules/timetrans.pm
REPLACE_PERL+= tools/modules/tooloptions.pm
REPLACE_PERL+= tools/convertar/lib/Net/DNS/SEC/Tools/TrustAnchor/Makefile.PL
PERL5_PACKLIST= auto/Net/DNS/SEC/Tools/Dnspktflow/dnspktflow/.packlist
PERL5_PACKLIST+= auto/Net/DNS/SEC/Tools/Donuts/donuts/.packlist
PERL5_PACKLIST+= auto/Net/DNS/SEC/Tools/Drawvalmap/drawvalmap/.packlist
PERL5_PACKLIST+= auto/Net/DNS/SEC/Tools/Maketestzone/maketestzone/.packlist
PERL5_PACKLIST+= auto/Net/DNS/SEC/Tools/Mapper/mapper/.packlist
PERL5_PACKLIST+= auto/Net/DNS/SEC/Tools/conf/.packlist
PERL5_PACKLIST+= auto/convertar/.packlist
PERL5_PACKLIST+= auto/dnssec-tools/.packlist
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-nsec3
CONFIGURE_ARGS+= --with-resolv-conf=${PKG_SYSCONFDIR}/dnssec-tools/resolv.conf
CONFIGURE_ARGS+= --with-root-hints=${PKG_SYSCONFDIR}/dnssec-tools/root.hints
CONFIGURE_ARGS+= --with-perl-build-args=${MAKE_PARAMS:Q}
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
EGDIR= ${PREFIX}/share/examples/dnssec-tools
PKG_SYSCONFSUBDIR?= dnssec-tools
CONF_FILES= ${EGDIR}/dnsval.conf ${PKG_SYSCONFDIR}/dnsval.conf
CONF_FILES+= ${EGDIR}/resolv.conf ${PKG_SYSCONFDIR}/resolv.conf
CONF_FILES+= ${EGDIR}/root.hints ${PKG_SYSCONFDIR}/root.hints
INSTALLATION_DIRS= ${EGDIR}
.include "options.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/sbin/dnssec-keygen)
CONFIGURE_ARGS+= BIND_DNSSEC_KEYGEN=/usr/sbin/dnssec-keygen
.endif
.if ${OPSYS} == "NetBSD" && exists(/usr/sbin/dnssec-signzone)
CONFIGURE_ARGS+= BIND_DNSSEC_SIGNZONE=/usr/sbin/dnssec-signzone
.endif
.if ${OPSYS} == "NetBSD" && exists(/usr/sbin/named-checkzone)
CONFIGURE_ARGS+= BIND_DNSSEC_CHECKZONE=/usr/sbin/named-checkzone
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/validator/etc/dnsval.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/validator/etc/resolv.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/validator/etc/root.hints ${DESTDIR}${EGDIR}
PERL5_CONFIGURE= no
.include "../../lang/perl5/module.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|