aboutsummaryrefslogtreecommitdiffstats
path: root/dns/p5-Net-DNS/Makefile
blob: cfa3f9c6b1d7646211307e9e5e276626d55d9f17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# 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.55
CATEGORIES= dns net perl5
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

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

.include <bsd.port.pre.mk>

pre-fetch:
.if ${PERL_LEVEL} < 500600
    @${ECHO} "************************************************************"
    @${ECHO} "* WARNING: Dependencies for the cryptographic functions of *"
    @${ECHO} "* this library require at least Perl 5.6.2. Although most  *"
    @${ECHO} "* functions of this library will work without them, if you *"
    @${ECHO} "* need those features, you will have to upgrade Perl.      *"
    @${ECHO} "************************************************************"
    @sleep 5
.else
RUN_DEPENDS=    ${SITE_PERL}/Digest/HMAC_MD5.pm:${PORTSDIR}/security/p5-Digest-HMAC
.endif

.if ${PERL_LEVEL} < 500800
.if defined(WITH_IPv6)
RUN_DEPENDS+=   ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-INET6
.endif
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>