Add p5-DNS-ZoneParse 0.91, parse and manipulate DNS Zone Files.

This commit is contained in:
Mathieu Arnold 2004-07-15 13:37:58 +00:00
parent 7aa540c0a7
commit 60e2cc7618
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113712
5 changed files with 49 additions and 0 deletions

View file

@ -51,6 +51,7 @@
SUBDIR += p5-BIND-Conf_Parser
SUBDIR += p5-DNS-Config
SUBDIR += p5-DNS-Zone
SUBDIR += p5-DNS-ZoneParse
SUBDIR += p5-Net-DNS
SUBDIR += p5-Net-DNS-SEC
SUBDIR += p5-Net-DNS-ZoneFile

View file

@ -0,0 +1,29 @@
# New ports collection makefile for: p5-DNS-ZoneParse
# Date created: 15 July 2004
# Whom: mat
#
# $FreeBSD$
#
PORTNAME= DNS-ZoneParse
PORTVERSION= 0.91
CATEGORIES= dns textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= DNS
PKGNAMEPREFIX= p5-
MAINTAINER= mat@FreeBSD.org
COMMENT= Parse and manipulate DNS Zone Files
PERL_CONFIGURE= yes
MAN3= DNS::ZoneParse.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500800
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,2 @@
MD5 (DNS-ZoneParse-0.91.tar.gz) = b487c33bb5708c0346533afe9b0e9bda
SIZE (DNS-ZoneParse-0.91.tar.gz) = 8376

View file

@ -0,0 +1,12 @@
This module will parse a Zone File and put all the Resource Records (RRs) into
an anonymous hash structure. At the moment, the following types of RRs are
supported: SOA, NS, MX, A, CNAME, TXT, PTR. It could be useful for maintaining
DNS zones, or for transferring DNS zones to other servers. If you want to
generate an XML-friendly version of your zone files, it is easy to use
XML::Simple with this module once you have parsed the zonefile.
DNS::ZoneParse scans the DNS zonefile - removes comments and seperates the file
into it's constituent records. It then parses each record and stores the
records internally. See below for information on the accessor methods.
WWW: http://search.cpan.org/dist/DNS-ZoneParse/

View file

@ -0,0 +1,5 @@
%%SITE_PERL%%/DNS/ZoneParse.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DNS/ZoneParse/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DNS/ZoneParse
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/DNS 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/DNS 2>/dev/null || true