1 # Created by: dnscheckengine-port@academ.com (Stan Barber)
4 PORTNAME= dnscheckengine
8 MASTER_SITES= ftp://www.ns.gen.tx.us/pub/software/dnscheck-se/
11 MAINTAINER= portmaster@bsdforge.com
12 COMMENT= DNS checker from the folks that run the .SE top level domain
16 BUILD_DEPENDS= p5-Crypt-OpenSSL-Random>=0:${PORTSDIR}/security/p5-Crypt-OpenSSL-Random \
17 p5-Digest-BubbleBabble>=0:${PORTSDIR}/security/p5-Digest-BubbleBabble \
18 p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \
19 p5-IO-Socket-INET6>=2.51:${PORTSDIR}/net/p5-IO-Socket-INET6 \
20 p5-Net-DNS>=0.65:${PORTSDIR}/dns/p5-Net-DNS \
21 p5-Net-DNS-SEC>=0.15:${PORTSDIR}/dns/p5-Net-DNS-SEC \
22 p5-Socket6>=0.19:${PORTSDIR}/net/p5-Socket6 \
23 p5-Sys-Syslog>=0:${PORTSDIR}/sysutils/p5-Sys-Syslog \
24 p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes \
25 p5-YAML>=0:${PORTSDIR}/textproc/p5-YAML \
26 p5-Text-Template>=0:${PORTSDIR}/textproc/p5-Text-Template \
27 p5-Mail-RFC822-Address>=0:${PORTSDIR}/mail/p5-Mail-RFC822-Address \
28 p5-MIME-Lite>=0:${PORTSDIR}/mail/p5-MIME-Lite \
29 p5-Net-IP>=0:${PORTSDIR}/net-mgmt/p5-Net-IP \
30 p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
31 p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
32 RUN_DEPENDS= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
37 CONFIGURE_SCRIPT+= Makefile.PL INSTALLSITESCRIPT=${PREFIX}/libexec/dnscheck
39 WRKSRC= ${WRKDIR}/engine
41 DOCSDIR= ${PREFIX}/share/doc/DNSCheck
42 DOCS= data-flow-batch.png DNSCheck.graffle data-flow-web.png \
43 call-flow.png database-schema.pdf
44 DOCSDB= indexes.sql schema.sql drop.sql
46 SUB_FILES= pkg-message
50 .include <bsd.port.options.mk>
53 @${FIND} ${WRKSRC} -name \*.orig -delete
54 @${GREP} -Rl '%%[[:alpha:]]\+%%' ${WRKSRC} | \
55 ${XARGS} ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g'
56 @${REINPLACE_CMD} -e "s#%%PREFIX%%#${PREFIX}#" \
57 ${WRKSRC}/contrib/dnscheck-dispatcher.sh
60 ${INSTALL_SCRIPT} ${WRKSRC}/contrib/dnscheck-dispatcher.sh \
61 ${STAGEDIR}${PREFIX}/etc/rc.d/dnscheck-dispatcher
62 (cd ${STAGEDIR}${PREFIX}/bin && \
63 ${LN} -s ../libexec/dnscheck/dnscheck-dispatcher . && \
64 ${LN} -s ../libexec/dnscheck/dnscheck dnscheckengine)
65 .if ${PORT_OPTIONS:MDOCS}
66 @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/db
67 ${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
68 ${INSTALL_DATA} '${WRKSRC}/doc/DNSCheck Lib Descriptions.pdf' \
70 ${INSTALL_DATA} ${DOCSDB:S|^|${WRKSRC}/db/|} ${STAGEDIR}${DOCSDIR}/db
73 .include <bsd.port.mk>