Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 May 2012 16:59:17 +0200 (CEST)
From:      Jimmy Bergman <jimmy@sigint.se>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/167708: New port: dns/p5-Net-DNS-Zone-Parser perl5 zone preprocessor
Message-ID:  <201205071459.q47ExHGO039834@s1022.atomia.com>
Resent-Message-ID: <201205080840.q488e7oM025840@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167708
>Category:       ports
>Synopsis:       New port: dns/p5-Net-DNS-Zone-Parser perl5 zone preprocessor
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 08 08:40:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jimmy Bergman
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
Atomia AB
>Environment:
System: FreeBSD s1022 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
The Net::DNS::Zone::Parser should be considered a preprocessor that "normalizes" a zonefile.

It will read a zonefile in a format conforming to the relevant RFCs with the addition of BIND's GENERATE directive from disk and will write fully specified resource records (RRs) to a filehandle. Whereby:

- all comments are stripped;
- there is one RR per line;
- each RR is fully expanded i.e. all domain names are fully qualified (canonicalised) and the CLASS and TTLs are specified.
- Some RRs may be 'stripped' from the source or otherwise processed. For details see the 'read' method.

Note that this module does not have a notion of what constitutes a valid zone; it only parses. For example, the parser will happilly parse RRs with ownernames that are below in another zone because a NS RR elsewhere in the zone.
>How-To-Repeat:
>Fix:
--- p5-Net-DNS-Zone-Parser.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-Net-DNS-Zone-Parser
#	p5-Net-DNS-Zone-Parser/Makefile
#	p5-Net-DNS-Zone-Parser/pkg-descr
#	p5-Net-DNS-Zone-Parser/distinfo
#	p5-Net-DNS-Zone-Parser/pkg-plist
#
echo c - p5-Net-DNS-Zone-Parser
mkdir -p p5-Net-DNS-Zone-Parser > /dev/null 2>&1
echo x - p5-Net-DNS-Zone-Parser/Makefile
sed 's/^X//' >p5-Net-DNS-Zone-Parser/Makefile << '064a825227c744910e12cf1e9210fdec'
X# New ports collection makefile for:	p5-Net-DNS-Zone-Parser
X# Date created:	   Mon May  7 16:26:08 CEST 2012
X# Whom:		   Jimmy Bergman jimmy@sigint.se
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Net-DNS-Zone-Parser
XPORTVERSION=	0.02
XPORTREVISION=	1
XCATEGORIES=	dns perl5
XMASTER_SITES=	CPAN
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	jimmy@sigint.se
XCOMMENT=	A Perl5 preprocessor for normalising a zone file
X
XRUN_DEPENDS+=	p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS
XRUN_DEPENDS+=	p5-Net-DNS-SEC>=0:${PORTSDIR}/dns/p5-Net-DNS-SEC
X
XPERL_CONFIGURE=	yes
X
XMAN3=		Net::DNS::Zone::Parser.3
X
X.include <bsd.port.mk>
064a825227c744910e12cf1e9210fdec
echo x - p5-Net-DNS-Zone-Parser/pkg-descr
sed 's/^X//' >p5-Net-DNS-Zone-Parser/pkg-descr << '3b686b009bb23ff09413da2a0d864ec4'
XThis module provides Perl bindings for the GNU IDN Library (Libidn)
X(see also Port devel/libidn).
X
XWWW: http://search.cpan.org/dist/Net-LibIDN/
3b686b009bb23ff09413da2a0d864ec4
echo x - p5-Net-DNS-Zone-Parser/distinfo
sed 's/^X//' >p5-Net-DNS-Zone-Parser/distinfo << 'ce7b604e2429ae66e247add9bc26afdd'
XSHA256 (Net-DNS-Zone-Parser-0.02.tar.gz) = 8ed6cc9c0e145a678c9d1f12631db55733f5025928cddbcd8ea2997591249517
XSIZE (Net-DNS-Zone-Parser-0.02.tar.gz) = 76885
ce7b604e2429ae66e247add9bc26afdd
echo x - p5-Net-DNS-Zone-Parser/pkg-plist
sed 's/^X//' >p5-Net-DNS-Zone-Parser/pkg-plist << 'a87f0fd2ffafbfdf150659134870e3ea'
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/DNS/Zone/Parser/.packlist
X%%SITE_PERL%%/Net/DNS/Zone/Parser.pm
X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/DNS/Zone/Parser
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/DNS/Zone
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/DNS
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net
X@dirrmtry %%SITE_PERL%%/Net/DNS/Zone
X@dirrmtry %%SITE_PERL%%/Net/DNS
X@dirrmtry %%SITE_PERL%%/Net
a87f0fd2ffafbfdf150659134870e3ea
exit
--- p5-Net-DNS-Zone-Parser.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205071459.q47ExHGO039834>