diff options
author | pettai <pettai@pkgsrc.org> | 2012-05-08 22:39:39 +0000 |
---|---|---|
committer | pettai <pettai@pkgsrc.org> | 2012-05-08 22:39:39 +0000 |
commit | c048057eb94d729951d97e3663f6473e60a77cd8 (patch) | |
tree | 093697a3cea8e84d57ddb858bf277700b71d3ce5 /net/dnscheck | |
parent | b0fa5cdfbb075263fc900d465f0894ebf7d7663c (diff) | |
download | pkgsrc-c048057eb94d729951d97e3663f6473e60a77cd8.tar.gz |
DNSCheck is a program that was designed to help people check, measure and
hopefully also understand the workings of the Domain Name System, DNS.
When a domain (aka zone) is submitted to DNSCheck it will investigate
the domain's general health by traversing the DNS from root (.) to
the TLD (Top Level Domain, like .SE) to eventually the nameserver(s)
that holds the information about the specified domain (like iis.se).
Some other sanity checks, for example measuring host connectivity,
validity of IP-addresses and control of DNSSEC signatures
will also be performed.
Diffstat (limited to 'net/dnscheck')
-rw-r--r-- | net/dnscheck/DESCR | 9 | ||||
-rw-r--r-- | net/dnscheck/Makefile | 64 | ||||
-rw-r--r-- | net/dnscheck/PLIST | 61 | ||||
-rw-r--r-- | net/dnscheck/distinfo | 7 | ||||
-rw-r--r-- | net/dnscheck/patches/patch-aa | 16 | ||||
-rw-r--r-- | net/dnscheck/patches/patch-ab | 15 |
6 files changed, 172 insertions, 0 deletions
diff --git a/net/dnscheck/DESCR b/net/dnscheck/DESCR new file mode 100644 index 00000000000..222ad2dab8c --- /dev/null +++ b/net/dnscheck/DESCR @@ -0,0 +1,9 @@ +DNSCheck is a program that was designed to help people check, measure and +hopefully also understand the workings of the Domain Name System, DNS. +When a domain (aka zone) is submitted to DNSCheck it will investigate +the domain's general health by traversing the DNS from root (.) to +the TLD (Top Level Domain, like .SE) to eventually the nameserver(s) +that holds the information about the specified domain (like iis.se). +Some other sanity checks, for example measuring host connectivity, +validity of IP-addresses and control of DNSSEC signatures +will also be performed. diff --git a/net/dnscheck/Makefile b/net/dnscheck/Makefile new file mode 100644 index 00000000000..be160fc2b8d --- /dev/null +++ b/net/dnscheck/Makefile @@ -0,0 +1,64 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/05/08 22:39:39 pettai Exp $ +# + +DISTNAME= dotse-dnscheck-1.2.6-0-g86a5c69 +PKGNAME= dnscheck-1.2.6 +CATEGORIES= net perl5 +MASTER_SITES= -https://github.com/dotse/dnscheck/tarball/1.2.6 + +MAINTAINER= pettai@NetBSD.org +HOMEPAGE= https://github.com/dotse/dnscheck/ +COMMENT= DNSCheck is a DNS quality checker +LICENSE= 2-clause-bsd + +PKG_DESTDIR_SUPPORT= user-destdir + +FETCH_USING= curl + +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-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 + +REPLACE_PERL+= lib/DNSCheck.pm lib/DNSCheck/*.pm +REPLACE_PERL+= lib/DNSCheck/Lookup/*.pm lib/DNSCheck/Test/*.pm + +PERL5_PACKLIST= auto/DNSCheck/.packlist +BUILDLINK_API_DEPENDS.perl+= perl>=5.6.1 + +WRKSRC= ${WRKDIR}/dotse-dnscheck-b73204b/engine +SYSCONFDIR= `${BASENAME} ${PKG_SYSCONFDIR}` + +EGDIR= ${PREFIX}/share/examples/${PKGBASE} +CONF_FILES= ${EGDIR}/config.yaml ${PKG_SYSCONFDIR}/${PKGBASE}/config.yaml +CONF_FILES+= ${EGDIR}/policy.yaml ${PKG_SYSCONFDIR}/${PKGBASE}/policy.yaml + +BUILD_DEFS+= IPV6_READY + +SUBST_CLASSES+= paths +SUBST_STAGE.paths= pre-configure +SUBST_FILES.paths= lib/DNSCheck/Config.pm +SUBST_SED.paths+= -e s!@SYSCONFDIR@!${SYSCONFDIR}!g + +INSTALLATION_DIRS= ${EGDIR} +OWN_DIRS= ${SYSCONFDIR}/${PKGBASE} + +post-patch: + ${RM} ${WRKSRC}/lib/DNSCheck/Config.pm.orig + +post-install: + ${INSTALL_DATA} ${WRKSRC}/config.yaml ${DESTDIR}${EGDIR}/ + ${INSTALL_DATA} ${WRKSRC}/policy.yaml ${DESTDIR}${EGDIR}/ + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/dnscheck/PLIST b/net/dnscheck/PLIST new file mode 100644 index 00000000000..fb2df1975de --- /dev/null +++ b/net/dnscheck/PLIST @@ -0,0 +1,61 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/05/08 22:39:39 pettai Exp $ +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Config.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Locale.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Logger.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Lookup/ASN.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Lookup/DNS.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Lookup/Resolver.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Overview.pod +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/Address.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/Common.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/Connectivity.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/Consistency.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/DNSSEC.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/Delegation.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/Host.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/Mail.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/Nameserver.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/SMTP.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/SOA.pm +${PERL5_SUB_INSTALLVENDORLIB}/DNSCheck/Test/Zone.pm +${PERL5_SUB_INSTALLVENDORLIB}/MockBootstrap.pm +${PERL5_SUB_INSTALLVENDORLIB}/MockResolver.pm +${PERL5_SUB_INSTALLVENDORARCH}/auto/DNSCheck/.packlist +${PERL5_SUB_INSTALLVENDORBIN}/dnscheck +${PERL5_SUB_INSTALLVENDORBIN}/dnscheck-12hourmailer +${PERL5_SUB_INSTALLVENDORBIN}/dnscheck-dispatcher +${PERL5_SUB_INSTALLVENDORBIN}/dnscheck-hostsyntax +${PERL5_SUB_INSTALLVENDORBIN}/dnscheck-preflight +${PERL5_SUB_INSTALLVENDORBIN}/dnscheck-zonediff +${PERL5_SUB_INSTALLVENDORMAN1DIR}/dnscheck-12hourmailer.1 +${PERL5_SUB_INSTALLVENDORMAN1DIR}/dnscheck-dispatcher.1 +${PERL5_SUB_INSTALLVENDORMAN1DIR}/dnscheck-hostsyntax.1 +${PERL5_SUB_INSTALLVENDORMAN1DIR}/dnscheck-preflight.1 +${PERL5_SUB_INSTALLVENDORMAN1DIR}/dnscheck-zonediff.1 +${PERL5_SUB_INSTALLVENDORMAN1DIR}/dnscheck.1 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Config.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Locale.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Logger.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Lookup::ASN.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Lookup::DNS.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Lookup::Resolver.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Overview.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::Address.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::Common.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::Connectivity.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::Consistency.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::DNSSEC.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::Delegation.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::Host.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::Mail.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::Nameserver.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::SMTP.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::SOA.3 +${PERL5_SUB_INSTALLVENDORMAN3DIR}/DNSCheck::Test::Zone.3 +share/dnscheck/locale/en.yaml +share/dnscheck/locale/nl.yaml +share/dnscheck/locale/sv.yaml +share/examples/dnscheck/config.yaml +share/examples/dnscheck/policy.yaml diff --git a/net/dnscheck/distinfo b/net/dnscheck/distinfo new file mode 100644 index 00000000000..c1126c204ba --- /dev/null +++ b/net/dnscheck/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/05/08 22:39:39 pettai Exp $ + +SHA1 (dotse-dnscheck-1.2.6-0-g86a5c69.tar.gz) = da2b5e8cf84eb4416dc32a4006c901b18040b137 +RMD160 (dotse-dnscheck-1.2.6-0-g86a5c69.tar.gz) = d19ba7cd9a6311f82c03421b3928a666b09fb0b8 +Size (dotse-dnscheck-1.2.6-0-g86a5c69.tar.gz) = 1262272 bytes +SHA1 (patch-aa) = 86cf15f480ccb95b136e4712ff0910c01459a549 +SHA1 (patch-ab) = c07651c7015c8d71e77c3ee25e852c3132e73da3 diff --git a/net/dnscheck/patches/patch-aa b/net/dnscheck/patches/patch-aa new file mode 100644 index 00000000000..d767e22e435 --- /dev/null +++ b/net/dnscheck/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2012/05/08 22:39:39 pettai Exp $ + +Install the configuration files in SYSCONFDIR instead of share + +--- Makefile.PL.orig 2012-05-08 21:31:27.000000000 +0000 ++++ Makefile.PL +@@ -77,9 +77,6 @@ FIXVARS = \ + -DLOCALE_DIR="$(LOCALE_DIR)" + + install_locale: +- install -d ${DESTDIR}/${POLICY_DIR} +- install -m 444 policy.yaml ${DESTDIR}/${POLICY_DIR} +- install -m 444 config.yaml ${DESTDIR}/${CONFIG_DIR} + install -d ${DESTDIR}/${LOCALE_DIR} + install -m 444 locale/*.yaml ${DESTDIR}/${LOCALE_DIR} + diff --git a/net/dnscheck/patches/patch-ab b/net/dnscheck/patches/patch-ab new file mode 100644 index 00000000000..35c3fa3d46c --- /dev/null +++ b/net/dnscheck/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2012/05/08 22:39:39 pettai Exp $ + +Look for the configuration files in SYSCONFDIR instead of share + +--- ./lib/DNSCheck/Config.pm.orig 2009-04-04 13:49:09.000000000 +0200 ++++ ./lib/DNSCheck/Config.pm 2009-04-04 13:49:43.000000000 +0200 +@@ -52,7 +52,7 @@ + + my %arg = @_; + +- $self->{configdir} = catfile($Config{'siteprefix'}, 'share/dnscheck'); ++ $self->{configdir} = catfile($Config{'siteprefix'}, '@SYSCONFDIR@/dnscheck'); + $self->{configdir} = $arg{'configdir'} if defined($arg{'configdir'}); + + $self->{sitedir} = $self->{configdir}; |