1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/dns/p5-Net-DNS/Makefile
Doug Barton 4ba23117b7 1. Update to 0.58, which contains numerous small bug fixes, and new
functionality for DLV/DNSSEC.

2. Add virtual category ipv6

3. Add OPTIONS for IPV6, enabled by default.

4. Fix the test for WITH_IPV6, and move it out of the test for
${PERL_LEVEL} < 500800. On my system, the IPv6 libraries are not
(any longer?) installed by default with Perl 5.8. The test is
harmless if the libraries are there in any case, so remove the
pointless micro-optiimiztion.
2006-07-09 07:45:25 +00:00

81 lines
2.6 KiB
Makefile

# New ports collection makefile for: p5-Net-DNS
# Date created: April 5th 1997
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Net-DNS
PORTVERSION= 0.58
CATEGORIES= dns net perl5 ipv6
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Net
PKGNAMEPREFIX= p5-
MAINTAINER= DougB@FreeBSD.org
COMMENT= Perl5 interface to the DNS resolver, and dynamic updates
# Warnings during build are harmless, the port does not need these to build
RUN_DEPENDS= ipcount:${PORTSDIR}/net-mgmt/p5-Net-IP \
${SITE_PERL}/Digest/HMAC_MD5.pm:${PORTSDIR}/security/p5-Digest-HMAC
PERL_CONFIGURE= yes
CONFIGURE_ARGS+= --online-tests
MAN3= Net::DNS.3 Net::DNS::Header.3 Net::DNS::Packet.3 \
Net::DNS::Question.3 Net::DNS::RR.3 Net::DNS::RR::A.3 \
Net::DNS::RR::AFSDB.3 Net::DNS::RR::CNAME.3 \
Net::DNS::RR::HINFO.3 Net::DNS::RR::ISDN.3 Net::DNS::RR::MG.3 \
Net::DNS::RR::MINFO.3 Net::DNS::RR::MR.3 Net::DNS::RR::MX.3 \
Net::DNS::RR::NS.3 Net::DNS::RR::PTR.3 Net::DNS::RR::RP.3 \
Net::DNS::RR::RT.3 Net::DNS::RR::SOA.3 Net::DNS::RR::SRV.3 \
Net::DNS::RR::TXT.3 Net::DNS::RR::X25.3 Net::DNS::Resolver.3 \
Net::DNS::RR::AAAA.3 Net::DNS::RR::EID.3 Net::DNS::RR::LOC.3 \
Net::DNS::RR::MB.3 Net::DNS::RR::NAPTR.3 \
Net::DNS::RR::NIMLOC.3 Net::DNS::RR::NSAP.3 \
Net::DNS::RR::NULL.3 Net::DNS::RR::PX.3 Net::DNS::Update.3 \
Net::DNS::Nameserver.3 Net::DNS::RR::CERT.3 \
Net::DNS::FAQ.3 Net::DNS::RR::TKEY.3 \
Net::DNS::RR::OPT.3 Net::DNS::RR::TSIG.3 Net::DNS::RR::DNAME.3 \
Net::DNS::Resolver::Win32.3 Net::DNS::RR::SSHFP.3 \
Net::DNS::Resolver::Base.3 Net::DNS::Resolver::UNIX.3 \
Net::DNS::RR::Unknown.3 Net::DNS::Resolver::Recurse.3 \
Net::DNS::Resolver::Cygwin.3 Net::DNS::RR::SPF.3
OPTIONS= IPV6 "Enable functionality over IPv6 transport" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_IPV6)
RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-INET6
.endif
.if ${PERL_LEVEL} < 500600
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/IO/Socket/INET.pm:${PORTSDIR}/devel/p5-IO
post-patch:
${PERL} -pi -e 's/=(.*);/\($$1\);/ if m{errorstring}' ${WRKSRC}/lib/Net/DNS/Resolver/Recurse.pm
.endif
.if ${PERL_LEVEL} < 500800
PLIST_SUB+= BYTES_INSTALL=""
.else
PLIST_SUB+= BYTES_INSTALL="@comment "
.endif
DOCSDIR= ${PREFIX}/share/doc/p5-Net-DNS
post-install:
.if ${PERL_LEVEL} < 500800
.for file in bytes.pm bytes_heavy.pl
${INSTALL_DATA} ${FILESDIR}/${file} ${SITE_PERL}
.endfor
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in Changes README TODO
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>