PORTNAME=	jmx4perl
PORTVERSION=	1.11
DISTVERSIONSUFFIX=	_2
PORTREVISION=	4
CATEGORIES=	net-mgmt perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:ROLAND
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	JMX access for Perl
WWW=		https://metacpan.org/release/jmx4perl

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-Archive-Zip>=0:archivers/p5-Archive-Zip \
		p5-Config-General>=0:devel/p5-Config-General \
		p5-Crypt-Blowfish_PP>=0:security/p5-Crypt-Blowfish_PP \
		p5-Crypt-OpenPGP>=0:security/p5-Crypt-OpenPGP \
		p5-Digest-SHA1>=0:security/p5-Digest-SHA1 \
		p5-File-SearchPath>=0:devel/p5-File-SearchPath \
		p5-JSON>=0:converters/p5-JSON \
		p5-Module-Find>=0:devel/p5-Module-Find \
		p5-Nagios-Plugin>=0:net-mgmt/p5-Nagios-Plugin \
		p5-Sys-SigAction>=0:devel/p5-Sys-SigAction \
		p5-Term-Clui>=0:devel/p5-Term-Clui \
		p5-Term-ProgressBar>=0:devel/p5-Term-ProgressBar \
		p5-Term-ShellUI>=0:shells/p5-Term-ShellUI \
		p5-Term-Size>=0:devel/p5-Term-Size \
		p5-URI>=0:net/p5-URI \
		p5-XML-LibXML>=0:textproc/p5-XML-LibXML \
		p5-XML-Twig>=0:textproc/p5-XML-Twig \
		p5-libwww>=0:www/p5-libwww

NO_ARCH=	yes
USES=		perl5
USE_PERL5=	modbuild

ETC_FILES=	common.cfg \
		glassfish.cfg \
		jboss.cfg \
		jetty.cfg \
		memory.cfg \
		metrics.cfg \
		threads.cfg \
		tomcat.cfg \
		weblogic.cfg

post-install:
	@${MKDIR} ${STAGEDIR}${ETCDIR}
.for f in ${ETC_FILES}
	${INSTALL_DATA} ${WRKSRC}/config/${f} ${STAGEDIR}${ETCDIR}/${f}.sample
.endfor

.include <bsd.port.mk>
