View | Details | Raw Unified | Return to bug 148370
Collapse All | Expand All

(-)dnscheckengine/Makefile (-8 / +12 lines)
Lines 18-24 Link Here
18
BUILD_DEPENDS=	p5-Crypt-OpenSSL-Random>=0:${PORTSDIR}/security/p5-Crypt-OpenSSL-Random \
18
BUILD_DEPENDS=	p5-Crypt-OpenSSL-Random>=0:${PORTSDIR}/security/p5-Crypt-OpenSSL-Random \
19
		p5-Digest-BubbleBabble>=0:${PORTSDIR}/security/p5-Digest-BubbleBabble \
19
		p5-Digest-BubbleBabble>=0:${PORTSDIR}/security/p5-Digest-BubbleBabble \
20
		p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \
20
		p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \
21
		p5-IO-Socket-INET6>=2.51:${PORTSDIR}/net/p5-IO-INET6 \
21
		p5-IO-Socket-INET6>=2.51:${PORTSDIR}/net/p5-IO-Socket-INET6 \
22
		p5-Net-DNS>=0.65:${PORTSDIR}/dns/p5-Net-DNS \
22
		p5-Net-DNS>=0.65:${PORTSDIR}/dns/p5-Net-DNS \
23
		p5-Net-DNS-SEC>=0.15:${PORTSDIR}/dns/p5-Net-DNS-SEC \
23
		p5-Net-DNS-SEC>=0.15:${PORTSDIR}/dns/p5-Net-DNS-SEC \
24
		p5-Socket6>=0.19:${PORTSDIR}/net/p5-Socket6 \
24
		p5-Socket6>=0.19:${PORTSDIR}/net/p5-Socket6 \
Lines 38-47 Link Here
38
DOCS=	'DNSCheck Lib Descriptions.pdf' data-flow-batch.png DNSCheck.graffle data-flow-web.png call-flow.png database-schema.pdf
38
DOCS=	'DNSCheck Lib Descriptions.pdf' data-flow-batch.png DNSCheck.graffle data-flow-web.png call-flow.png database-schema.pdf
39
DOCSDB=	indexes.sql schema.sql drop.sql
39
DOCSDB=	indexes.sql schema.sql drop.sql
40
PORTDOCS=	${DOCS} db
40
PORTDOCS=	${DOCS} db
41
SUB_FILES=	pkg-install pkg-deinstall pkg-message
41
42
42
OPTIONS=	MYSQL "Add MySQL Support (needed for webgui)" off
43
OPTIONS=	MYSQL "Add MySQL Support (needed for webgui)" off
43
44
44
.include <bsd.port.pre.mk>
45
.include <bsd.port.options.mk>
45
46
46
.if defined(WITH_MYSQL)
47
.if defined(WITH_MYSQL)
47
BUILD_DEPENDS+=	p5-DBI>=0:${PORTSDIR}/databases/p5-DBI
48
BUILD_DEPENDS+=	p5-DBI>=0:${PORTSDIR}/databases/p5-DBI
Lines 49-55 Link Here
49
USE_MYSQL=	yes
50
USE_MYSQL=	yes
50
.endif
51
.endif
51
52
52
MAN1= 	dnscheck-zonediff.1 \
53
MAN1=	dnscheck-zonediff.1 \
53
	dnscheck-dispatcher.1 \
54
	dnscheck-dispatcher.1 \
54
	dnscheck-preflight.1 \
55
	dnscheck-preflight.1 \
55
	dnscheck-hostsyntax.1 \
56
	dnscheck-hostsyntax.1 \
Lines 79-94 Link Here
79
MANCOMPRESSED=	no
80
MANCOMPRESSED=	no
80
81
81
post-patch:
82
post-patch:
82
	@${FIND} ${WRKSRC} -name \*.orig -delete
83
	@${GREP} -Rl '%%[[:alpha:]]\+%%' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
84
		-e 's,%%PREFIX%%,${PREFIX},g'
85
86
pre-install:
87
	-@${FIND} ${WRKSRC} -name \*.orig -delete
83
88
84
post-install:
89
post-install:
85
.if defined(WITH_MYSQL)
90
.if defined(WITH_MYSQL)
86
# install startup script (if WITH_MYSQL  is defined)
91
# install startup script (if WITH_MYSQL  is defined)
87
	@[ -f  ${PREFIX}/etc/rc.d/dnscheck-dispatcher ] || \
92
	@${INSTALL_SCRIPT} ${WRKSRC}/contrib/dnscheck-dispatcher.sh \
88
		${CP} ${WRKSRC}/contrib/dnscheck-dispatcher.sh \
89
		${PREFIX}/etc/rc.d/dnscheck-dispatcher
93
		${PREFIX}/etc/rc.d/dnscheck-dispatcher
90
.endif
94
.endif
91
	@PKG_PREFIX=${PREFIX} BATCH=${BATCH} SU_CMD="${SU_CMD}" ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
95
	@PKG_PREFIX=${PREFIX} BATCH=${BATCH} SU_CMD="${SU_CMD}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
92
.if !defined(NOPORTDOCS)
96
.if !defined(NOPORTDOCS)
93
	@${MKDIR} ${DOCSDIR} ${DOCSDIR}/db
97
	@${MKDIR} ${DOCSDIR} ${DOCSDIR}/db
94
	@${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
98
	@${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
Lines 96-99 Link Here
96
100
97
.endif
101
.endif
98
	@${SED} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE}
102
	@${SED} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE}
99
.include <bsd.port.post.mk>
103
.include <bsd.port.mk>
(-)dnscheckengine/files/patch-contrib-dnscheck-dispatcher.sh (-19 lines)
Lines 1-19 Link Here
1
*** contrib/dnscheck-dispatcher.sh	Tue Jun 29 04:15:59 2010
2
--- contrib/dnscheck-dispatcher.sh	Mon Jul 26 21:17:51 2010
3
***************
4
*** 20,26 ****
5
  
6
  name="dnscheck_dispatcher"
7
  rcvar=`set_rcvar`
8
! command="/usr/local/bin/dnscheck-dispatcher"
9
  
10
  pidfile="${utility_pidfile}"
11
  
12
--- 20,26 ----
13
  
14
  name="dnscheck_dispatcher"
15
  rcvar=`set_rcvar`
16
! command="/usr/local/libexec/dnscheck/dnscheck-dispatcher"
17
  
18
  pidfile="${utility_pidfile}"
19
  
(-)dnscheckengine/files/patch-contrib_dnscheck-dispatcher.sh (+14 lines)
Line 0 Link Here
1
2
$FreeBSD$
3
4
--- contrib/dnscheck-dispatcher.sh.orig
5
+++ contrib/dnscheck-dispatcher.sh
6
@@ -20,7 +20,7 @@
7
 
8
 name="dnscheck_dispatcher"
9
 rcvar=`set_rcvar`
10
-command="/usr/local/bin/dnscheck-dispatcher"
11
+command="%%PREFIX%%/libexec/dnscheck/dnscheck-dispatcher"
12
 
13
 pidfile="${utility_pidfile}"
14
 
(-)dnscheckengine/files/pkg-deinstall.in (+20 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
PKG_PREFIX=${PKG_PREFIX:-%%PREFIX%%}
7
8
9
if [ "$2" != "DEINSTALL" ]; then
10
    exit 0
11
fi
12
if [ -f ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher ]; then
13
    echo '===>   Stopping dnscheck dispatcher if it is running'
14
    ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher stop >/dev/null 2>/dev/null
15
    echo '===>   Removing startup script for dnscheck dispatcher'
16
    rm -f ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher stop
17
fi
18
19
20
exit 0
(-)dnscheckengine/files/pkg-install.in (+18 lines)
Line 0 Link Here
1
#!/bin/sh
2
# $FreeBSD$ 
3
#
4
5
PKG_PREFIX=${PKG_PREFIX:-%%PREFIX%%}
6
7
if [ "$2" = "POST-INSTALL" ];then
8
9
if [ -f ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher  ]; then
10
    echo '***Please add dns_dispatcher_enable="YES" to /etc/rc.conf to enable dnscheck-se-dispatcher to run at startup.***'
11
    chmod +x ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher
12
    fi
13
# install a link to put the dnscheck engine into the regular $PATH for more users
14
15
ln -s ${PKG_PREFIX}/libexec/dnscheck/dnscheck ${PKG_PREFIX}/bin/dnscheckengine
16
17
fi
18
exit 0
(-)dnscheckengine/files/pkg-message.in (+34 lines)
Line 0 Link Here
1
*************************************************************************
2
*	    _  _____ _____ _____ _   _ _____ ___ ___  _   _ 		*
3
*	   / \|_   _|_   _| ____| \ | |_   _|_ _/ _ \| \ | |		*
4
*	  / _ \ | |   | | |  _| |  \| | | |  | | | | |  \| |		*
5
*	 / ___ \| |   | | | |___| |\  | | |  | | |_| | |\  |		*
6
*	/_/   \_\_|   |_| |_____|_| \_| |_| |___\___/|_| \_|		*
7
*                                                                       *
8
*************************************************************************
9
10
The DNSCheck software included in the port is the PERL-based engine and 
11
includes a command line utility that uses that engine in %%PREFIX%%/bin
12
called dnscheckengine. There is some other software that is included 
13
that the developers at the .SE registry use to manage the process by
14
which they do domain delegation. These generally require MYSQL support 
15
to work and are disabled by default. If you want to learn more about them, 
16
they are all PERL-based and have integrated perldoc information. However, 
17
I have not tested them extensively and can't advise on their suitability as of
18
this writing. All the scripts install into %%PREFIX%%/libexec/dnscheck. 
19
20
This port also installs some documentation in %%DOCSDIR%%
21
that may prove useful. 
22
23
There is also a webui that is available as an alternative frontend. I hope
24
to include it in a future port. 
25
26
If you have questions about the basic software, please see the developer's
27
web site at http://opensource.iis.se/dnscheck. If there is a problem with 
28
the port, please let me know at dnscheckengine-port@academ.com.
29
30
Stan Barber
31
Academ Consulting Services
32
http://www.stanbarber.com
33
http://www.academ.com
34
(-)dnscheckengine/pkg-deinstall (-20 lines)
Lines 1-20 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
PKG_PREFIX=${PKG_PREFIX:-/usr/local}
7
8
9
if [ "$2" != "DEINSTALL" ]; then
10
    exit 0
11
fi
12
if [ -f ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher ]; then
13
    echo '===>   Stopping dnscheck dispatcher if it is running'
14
    ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher stop >/dev/null 2>/dev/null
15
    echo '===>   Removing startup script for dnscheck dispatcher'
16
    rm -f ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher stop
17
fi
18
19
20
exit 0
(-)dnscheckengine/pkg-install (-18 lines)
Lines 1-18 Link Here
1
#!/bin/sh
2
# $FreeBSD$ 
3
#
4
5
PKG_PREFIX=${PKG_PREFIX:-/usr/local}
6
7
if [ "$2" = "POST-INSTALL" ];then
8
9
if [ -f ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher  ]; then
10
    echo '***Please add dns_dispatcher_enable="YES" to /etc/rc.conf to enable dnscheck-se-dispatcher to run at startup.***'
11
    chmod +x ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher
12
    fi
13
# install a link to put the dnscheck engine into the regular $PATH for more users
14
15
ln -s ${PKG_PREFIX}/libexec/dnscheck/dnscheck ${PKG_PREFIX}/bin/dnscheckengine
16
17
fi
18
exit 0
(-)dnscheckengine/pkg-message (-34 lines)
Lines 1-34 Link Here
1
*************************************************************************
2
*	    _  _____ _____ _____ _   _ _____ ___ ___  _   _ 		*
3
*	   / \|_   _|_   _| ____| \ | |_   _|_ _/ _ \| \ | |		*
4
*	  / _ \ | |   | | |  _| |  \| | | |  | | | | |  \| |		*
5
*	 / ___ \| |   | | | |___| |\  | | |  | | |_| | |\  |		*
6
*	/_/   \_\_|   |_| |_____|_| \_| |_| |___\___/|_| \_|		*
7
*                                                                       *
8
*************************************************************************
9
10
The DNSCheck software included in the port is the PERL-based engine and 
11
includes a command line utility that uses that engine in /usr/local/bin
12
called dnscheckengine. There is some other software that is included 
13
that the developers at the .SE registry use to manage the process by
14
which they do domain delegation. These generally require MYSQL support 
15
to work and are disabled by default. If you want to learn more about them, 
16
they are all PERL-based and have integrated perldoc information. However, 
17
I have not tested them extensively and can't advise on their suitability as of
18
this writing. All the scripts install into PREFIX/libexec/dnscheck. 
19
20
This port also installs some documentation in PREFIX/share/doc/DNSCheck
21
that may prove useful. 
22
23
There is also a webui that is available as an alternative frontend. I hope
24
to include it in a future port. 
25
26
If you have questions about the basic software, please see the developer's
27
web site at http://opensource.iis.se/dnscheck. If there is a problem with 
28
the port, please let me know at dnscheckengine-port@academ.com.
29
30
Stan Barber
31
Academ Consulting Services
32
http://www.stanbarber.com
33
http://www.academ.com
34
(-)dnscheckengine/pkg-plist (-14 / +14 lines)
Lines 8-34 Link Here
8
bin/dnscheckengine
8
bin/dnscheckengine
9
%%SITE_PERL%%/DNSCheck.pm
9
%%SITE_PERL%%/DNSCheck.pm
10
%%SITE_PERL%%/DNSCheck/Test/Address.pm
10
%%SITE_PERL%%/DNSCheck/Test/Address.pm
11
%%SITE_PERL%%/DNSCheck/Test/Consistency.pm  
11
%%SITE_PERL%%/DNSCheck/Test/Consistency.pm
12
%%SITE_PERL%%/DNSCheck/Test/Host.pm         
12
%%SITE_PERL%%/DNSCheck/Test/Host.pm
13
%%SITE_PERL%%/DNSCheck/Test/SMTP.pm
13
%%SITE_PERL%%/DNSCheck/Test/SMTP.pm
14
%%SITE_PERL%%/DNSCheck/Test/Common.pm       
14
%%SITE_PERL%%/DNSCheck/Test/Common.pm
15
%%SITE_PERL%%/DNSCheck/Test/DNSSEC.pm       
15
%%SITE_PERL%%/DNSCheck/Test/DNSSEC.pm
16
%%SITE_PERL%%/DNSCheck/Test/Mail.pm         
16
%%SITE_PERL%%/DNSCheck/Test/Mail.pm
17
%%SITE_PERL%%/DNSCheck/Test/SOA.pm
17
%%SITE_PERL%%/DNSCheck/Test/SOA.pm
18
%%SITE_PERL%%/DNSCheck/Test/Connectivity.pm 
18
%%SITE_PERL%%/DNSCheck/Test/Connectivity.pm
19
%%SITE_PERL%%/DNSCheck/Test/Delegation.pm   
19
%%SITE_PERL%%/DNSCheck/Test/Delegation.pm
20
%%SITE_PERL%%/DNSCheck/Test/Nameserver.pm   
20
%%SITE_PERL%%/DNSCheck/Test/Nameserver.pm
21
%%SITE_PERL%%/DNSCheck/Test/Zone.pm
21
%%SITE_PERL%%/DNSCheck/Test/Zone.pm
22
%%SITE_PERL%%/DNSCheck/Config.pm       
22
%%SITE_PERL%%/DNSCheck/Config.pm
23
%%SITE_PERL%%/DNSCheck/Logger.pm       
23
%%SITE_PERL%%/DNSCheck/Logger.pm
24
%%SITE_PERL%%/DNSCheck/Locale.pm       
24
%%SITE_PERL%%/DNSCheck/Locale.pm
25
%%SITE_PERL%%/DNSCheck/Overview.pod
25
%%SITE_PERL%%/DNSCheck/Overview.pod
26
%%SITE_PERL%%/DNSCheck/Lookup/ASN.pm          
26
%%SITE_PERL%%/DNSCheck/Lookup/ASN.pm
27
%%SITE_PERL%%/DNSCheck/Lookup/DNS.pm          
27
%%SITE_PERL%%/DNSCheck/Lookup/DNS.pm
28
%%SITE_PERL%%/DNSCheck/Lookup/Resolver.pm
28
%%SITE_PERL%%/DNSCheck/Lookup/Resolver.pm
29
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DNSCheck/.packlist
29
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DNSCheck/.packlist
30
@dirrm %%SITE_PERL%%/DNSCheck/Test
30
@dirrm %%SITE_PERL%%/DNSCheck/Test
31
@dirrm %%SITE_PERL%%/DNSCheck/Lookup          
31
@dirrm %%SITE_PERL%%/DNSCheck/Lookup
32
@dirrm %%SITE_PERL%%/DNSCheck
32
@dirrm %%SITE_PERL%%/DNSCheck
33
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DNSCheck
33
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DNSCheck
34
share/dnscheck/locale/en.yaml
34
share/dnscheck/locale/en.yaml

Return to bug 148370