1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

Add p5-Net-DNS-ZoneFile, a Perl extension to convert a zone file to a

collection of RRs.
This commit is contained in:
Anton Berezin 2002-06-11 18:46:16 +00:00
parent 5b29610d80
commit f53230d8af
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61129
13 changed files with 177 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# New ports collection makefile for: net/p5-Net-DNS-ZoneFile
# Date created: 11 June 2002
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Net-DNS-ZoneFile
PORTVERSION= 1.00
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Net
PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
BUILD_DEPENDS= ${SITE_PERL}/Net/DNS/RR.pm:${PORTSDIR}/net/p5-Net-DNS \
${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple \
${SITE_PERL}/NetAddr/IP.pm:${PORTSDIR}/net/p5-NetAddr-IP
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
SITE_PERL= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Net::DNS::ZoneFile.3
post-patch:
${PERL} -pi -e 's/^\s*our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
-e '$$_="" if /require 5/;' \
-e '$$_="" if /^\s*(use|no)\s+warnings;\s*$$/;' \
${WRKSRC}/ZoneFile.pm
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (Net-DNS-ZoneFile-1.00.tar.gz) = 3489dee610f2a8d2dbbfc94fab0280e9

View File

@ -0,0 +1,39 @@
$FreeBSD$
--- ZoneFile.pm.orig Tue Jun 11 20:34:27 2002
+++ ZoneFile.pm Tue Jun 11 20:35:23 2002
@@ -129,23 +129,23 @@
elsif ($text =~ # SOA
s/
\A(|\*|\s*@|\.|([-\w\d]+(\.[-\w\d]+)*\.?))
- \s+ ((IN|HESIOD|CHAOS) \s+)?
+ \s+ (?:([\d]+)\s+)? ((IN|HESIOD|CHAOS) \s+)?
(SOA) \s+ ([-\w\d]+(\.[-\w\d]+)*\.)
\s+ ([-\w\d]+(\.[-\w\d]+)*\.) \s* \(
\s* (\d+) \s+ (\d+) \s+ (\d+) \s+ (\d+) \s+ (\d+) \s+ \) \s*$
//mxi)
{
my $name = $1;
- my $class = $5 || 'IN';
- my $type = $6;
- my $host = $7;
- my $admin = $9;
- my $d1 = $11;
- my $d2 = $12;
- my $d3 = $13;
- my $d4 = $14;
- my $d5 = $15;
- my $ttl = $d5;
+ my $class = $6 || 'IN';
+ my $type = $7;
+ my $host = $8;
+ my $admin = $10;
+ my $d1 = $12;
+ my $d2 = $13;
+ my $d3 = $14;
+ my $d4 = $15;
+ my $d5 = $16;
+ my $ttl = $4 || $d5;
$SoaTTL = $ttl;

View File

@ -0,0 +1 @@
Perl extension to convert a zone file to a collection of RRs

View File

@ -0,0 +1,9 @@
This module parses a zone file and returns a reference to an array of
Net::DNS::RR objects containing each of the RRs given in the zone in the
case that the whole zone file was succesfully parsed.
Author: Luis Mun~oz <lem@cantv.net>
WWW: http://search.cpan.org/search?dist=Net-DNS-ZoneFile
-Anton
<tobez@FreeBSD.org>

View File

@ -0,0 +1,4 @@
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/DNS/ZoneFile/.packlist
lib/perl5/site_perl/%%PERL_VER%%/Net/DNS/ZoneFile.pm
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/DNS/ZoneFile
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Net/DNS 2>/dev/null || true

View File

@ -324,6 +324,7 @@
SUBDIR += p5-Net-CIDR
SUBDIR += p5-Net-DLookup
SUBDIR += p5-Net-DNS
SUBDIR += p5-Net-DNS-ZoneFile
SUBDIR += p5-Net-Daemon
SUBDIR += p5-Net-Google
SUBDIR += p5-Net-ICQ2000

View File

@ -0,0 +1,34 @@
# New ports collection makefile for: net/p5-Net-DNS-ZoneFile
# Date created: 11 June 2002
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Net-DNS-ZoneFile
PORTVERSION= 1.00
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Net
PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
BUILD_DEPENDS= ${SITE_PERL}/Net/DNS/RR.pm:${PORTSDIR}/net/p5-Net-DNS \
${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple \
${SITE_PERL}/NetAddr/IP.pm:${PORTSDIR}/net/p5-NetAddr-IP
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
SITE_PERL= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Net::DNS::ZoneFile.3
post-patch:
${PERL} -pi -e 's/^\s*our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
-e '$$_="" if /require 5/;' \
-e '$$_="" if /^\s*(use|no)\s+warnings;\s*$$/;' \
${WRKSRC}/ZoneFile.pm
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (Net-DNS-ZoneFile-1.00.tar.gz) = 3489dee610f2a8d2dbbfc94fab0280e9

View File

@ -0,0 +1,39 @@
$FreeBSD$
--- ZoneFile.pm.orig Tue Jun 11 20:34:27 2002
+++ ZoneFile.pm Tue Jun 11 20:35:23 2002
@@ -129,23 +129,23 @@
elsif ($text =~ # SOA
s/
\A(|\*|\s*@|\.|([-\w\d]+(\.[-\w\d]+)*\.?))
- \s+ ((IN|HESIOD|CHAOS) \s+)?
+ \s+ (?:([\d]+)\s+)? ((IN|HESIOD|CHAOS) \s+)?
(SOA) \s+ ([-\w\d]+(\.[-\w\d]+)*\.)
\s+ ([-\w\d]+(\.[-\w\d]+)*\.) \s* \(
\s* (\d+) \s+ (\d+) \s+ (\d+) \s+ (\d+) \s+ (\d+) \s+ \) \s*$
//mxi)
{
my $name = $1;
- my $class = $5 || 'IN';
- my $type = $6;
- my $host = $7;
- my $admin = $9;
- my $d1 = $11;
- my $d2 = $12;
- my $d3 = $13;
- my $d4 = $14;
- my $d5 = $15;
- my $ttl = $d5;
+ my $class = $6 || 'IN';
+ my $type = $7;
+ my $host = $8;
+ my $admin = $10;
+ my $d1 = $12;
+ my $d2 = $13;
+ my $d3 = $14;
+ my $d4 = $15;
+ my $d5 = $16;
+ my $ttl = $4 || $d5;
$SoaTTL = $ttl;

View File

@ -0,0 +1 @@
Perl extension to convert a zone file to a collection of RRs

View File

@ -0,0 +1,9 @@
This module parses a zone file and returns a reference to an array of
Net::DNS::RR objects containing each of the RRs given in the zone in the
case that the whole zone file was succesfully parsed.
Author: Luis Mun~oz <lem@cantv.net>
WWW: http://search.cpan.org/search?dist=Net-DNS-ZoneFile
-Anton
<tobez@FreeBSD.org>

View File

@ -0,0 +1,4 @@
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/DNS/ZoneFile/.packlist
lib/perl5/site_perl/%%PERL_VER%%/Net/DNS/ZoneFile.pm
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/DNS/ZoneFile
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Net/DNS 2>/dev/null || true