aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/p5-Net-SNMP/Makefile
blob: 83740dae9a3c25767bd775aa0d3e2852b0de8b3b (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
# New ports collection makefile for:    p5-Net-SNMP
# Date created:             30 June 2000
# Whom:                 Christopher N. Harrell <cnh@ivmg.net>
#
# $FreeBSD$
#

PORTNAME=   Net-SNMP
PORTVERSION=    4.0.3
PORTREVISION=   1
CATEGORIES= net perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Net
PKGNAMEPREFIX=  p5-

MAINTAINER= lars@thegler.dk
COMMENT=    A perl module for SNMP... Net::SNMP

.include <bsd.port.pre.mk>

RUN_DEPENDS=    ${ARCH_PERL}/Crypt/DES.pm:${PORTSDIR}/security/p5-Crypt-DES \
        ${ARCH_PERL}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
        ${ARCH_PERL}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
        ${SITE_PERL}/Digest/HMAC.pm:${PORTSDIR}/security/p5-Digest-HMAC

USE_PERL5=  yes
PERL_CONFIGURE= yes
SITE_PERL=  ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
ARCH_PERL=  ${SITE_PERL}/${PERL_ARCH}

PERL_MAJOR=${PERL_VER:C|^([1-9]+).*|\1|}
PERL_MINOR=${PERL_VER:C|^[1-9]+\.0*([1-9]+).*|\1|}

.if ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 6
BROKEN=     "This port requires Perl v5.6.0 or newer"
.endif

MAN1=       snmpkey.1
MAN3=       Net::SNMP.3
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}

.include <bsd.port.post.mk>