Update editors/libreoffice-af to version 4.3.2
[dports.git] / dns / dnscheckengine / Makefile
1 # Created by: dnscheckengine-port@academ.com (Stan Barber)
2 # $FreeBSD$
3
4 PORTNAME=       dnscheckengine
5 PORTVERSION=    1.1
6 PORTREVISION=   3
7 CATEGORIES=     dns perl5
8 MASTER_SITES=   ftp://www.ns.gen.tx.us/pub/software/dnscheck-se/
9 DISTNAME=       DNSCheck-1.1
10
11 MAINTAINER=     portmaster@bsdforge.com
12 COMMENT=        DNS checker from the folks that run the .SE top level domain
13
14 LICENSE=        BSD2CLAUSE
15
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
33
34 USES=           perl5
35 USE_PERL5=      configure
36 USE_MYSQL=      yes
37 CONFIGURE_SCRIPT+=      Makefile.PL INSTALLSITESCRIPT=${PREFIX}/libexec/dnscheck
38
39 WRKSRC=         ${WRKDIR}/engine
40
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
45 PORTDOCS=       *
46 SUB_FILES=      pkg-message
47
48 OPTIONS_DEFINE= DOCS
49
50 .include <bsd.port.options.mk>
51
52 post-patch:
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
58
59 post-install:
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' \
69                 ${STAGEDIR}${DOCSDIR}
70         ${INSTALL_DATA} ${DOCSDB:S|^|${WRKSRC}/db/|} ${STAGEDIR}${DOCSDIR}/db
71 .endif
72
73 .include <bsd.port.mk>