aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/pancho/Makefile
blob: 49a94d7e33c9ffece3361cfbf45e2ded46ff51b8 (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
# $FreeBSD$

PORTNAME=	pancho
PORTVERSION=	9.3.9
PORTREVISION=	1
CATEGORIES=	net-mgmt
MASTER_SITES=	http://www.pancho.org/archives/pancho/ \
		http://200ok.org/distfiles/pancho/
DISTNAME=	pancho-v${PORTVERSION}

MAINTAINER=	ecu@200ok.org
COMMENT=	Network devices management tool using TFTP and SNMP

RUN_DEPENDS=	p5-Net-SNMP>=0:net-mgmt/p5-Net-SNMP \
		p5-Config-IniFiles>=0:devel/p5-Config-IniFiles \
		p5-Parallel-ForkManager>=0:devel/p5-Parallel-ForkManager

WRKSRC=		${WRKDIR}/Pancho-${PORTVERSION}
USES=		perl5
USE_PERL5=	configure

DOCS=		README README.plugins Plugin.sample

OPTIONS_DEFINE=	DOCS

post-patch:
	@${MV} ${WRKSRC}/lib/Pancho/Plugins/README ${WRKSRC}/README.plugins
	@${MV} ${WRKSRC}/lib/Pancho/Plugins/Plugin.sample ${WRKSRC}/

post-install:
	${INSTALL_DATA} ${WRKSRC}/samples/sample.conf ${STAGEDIR}${PREFIX}/etc/pancho.conf.sample
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>