summaryrefslogtreecommitdiff
path: root/net/dnscheck/Makefile
blob: 7dcd33ce13b9108582c12e7d09df1fa517e1ec30 (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
# $NetBSD: Makefile,v 1.9 2015/03/19 22:15:52 pettai Exp $

DISTNAME=	dotse-dnscheck-1.5.4-0-g352a15c
PKGNAME=	dnscheck-1.5.4
PKGREVISION=	2
CATEGORIES=	net perl5
MASTER_SITES=	${MASTER_SITE_GITHUB:=dotse/dnscheck/tarball/1.5.4/}

MAINTAINER=	pettai@NetBSD.org
HOMEPAGE=	https://github.com/dotse/dnscheck/
COMMENT=	DNSCheck is a DNS quality checker
LICENSE=	2-clause-bsd

# If you're not able to download the distfile, try using
#FETCH_USING=	curl # in mk.conf or on the command-line

DEPENDS+=	p5-Net-DNS>=0.65:../../net/p5-Net-DNS
DEPENDS+=	p5-Net-DNS-SEC>=0.16:../../security/p5-Net-DNS-SEC
DEPENDS+=	p5-Net-IP>=1.25:../../net/p5-Net-IP
DEPENDS+=	p5-TimeDate>=0.19:../../time/p5-TimeDate
DEPENDS+=	p5-YAML-[0-9]*:../../textproc/p5-YAML
DEPENDS+=	p5-Socket6>=0.19:../../net/p5-Socket6
DEPENDS+=	p5-IO-Socket-INET6>=2.51:../../net/p5-IO-Socket-INET6
DEPENDS+=	p5-Mail-RFC822-Address-[0-9]*:../../mail/p5-Mail-RFC822-Address
DEPENDS+=	p5-DBI-[0-9]*:../../databases/p5-DBI
DEPENDS+=	p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql
DEPENDS+=	p5-Config-Any-[0-9]*:../../devel/p5-Config-Any
DEPENDS+=	p5-File-ShareDir-[0-9]*:../../devel/p5-File-ShareDir
DEPENDS+=	p5-File-ShareDir-Install-[0-9]*:../../devel/p5-File-ShareDir-Install
DEPENDS+=	p5-File-Slurp-[0-9]*:../../devel/p5-File-Slurp
DEPENDS+=	p5-JSON-XS-[0-9]*:../../converters/p5-JSON-XS
DEPENDS+=	p5-MIME-Lite-[0-9]*:../../mail/p5-MIME-Lite
DEPENDS+=	p5-Text-Template-[0-9]*:../../textproc/p5-Text-Template
DEPENDS+=	p5-List-MoreUtils-[0-9]*:../../devel/p5-List-MoreUtils

REPLACE_PERL+=  lib/DNSCheck.pm lib/DNSCheck/*.pm
REPLACE_PERL+=  lib/DNSCheck/Lookup/*.pm lib/DNSCheck/Test/*.pm
REPLACE_PERL+=  apps/dnscheck-enqueue apps/dnscheck-packetcheck

PERL5_PACKLIST=	auto/DNSCheck/.packlist
BUILDLINK_API_DEPENDS.perl+=	perl>=5.6.1

BUILD_DEFS+=    IPV6_READY

INSTALLATION_DIRS=	${EGDIR}
OWN_DIRS=		${SYSCONFDIR}/${PKGBASE}

SUBST_CLASSES+=         paths
SUBST_STAGE.paths=      pre-configure
SUBST_FILES.paths=      lib/DNSCheck/Config.pm
SUBST_SED.paths+=       -e s!/etc!${SYSCONFDIR}!g

WRKSRC=		${WRKDIR}/dotse-dnscheck-006ca8d/engine
EGDIR=		${PREFIX}/share/examples/${PKGBASE}

post-install:
	${CP} -r ${WRKSRC}/config ${DESTDIR}${EGDIR}/

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"