2013-09-21 00:24:43 +02:00
|
|
|
# Created by: salexanov@gmail.com
|
2008-02-27 23:09:37 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= fetchconfig
|
2012-08-05 07:54:51 +02:00
|
|
|
PORTVERSION= 0.22
|
2014-11-26 14:08:24 +01:00
|
|
|
PORTREVISION= 1
|
2008-02-27 23:09:37 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2008-05-17 15:49:21 +02:00
|
|
|
MASTER_SITES= SAVANNAH
|
2008-02-27 23:09:37 +01:00
|
|
|
|
|
|
|
MAINTAINER= salexanov@gmail.com
|
|
|
|
COMMENT= Perl script for retrieving configuration of various network devices
|
|
|
|
|
2012-08-05 07:54:51 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2012-06-30 14:42:52 +02:00
|
|
|
BUILD_DEPENDS= p5-Net-Telnet>=0:${PORTSDIR}/net/p5-Net-Telnet
|
2011-06-03 13:23:46 +02:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2008-02-27 23:09:37 +01:00
|
|
|
|
2013-09-03 18:18:49 +02:00
|
|
|
USES= perl5
|
2008-02-27 23:09:37 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
MODULES= model/Abstract.pm model/CiscoCAT.pm model/CiscoIOS.pm \
|
|
|
|
model/Dell.pm model/Detector.pm model/FortiGate.pm \
|
|
|
|
model/Parks.pm model/ProCurve.pm model/Riverstone.pm \
|
2011-06-03 13:23:46 +02:00
|
|
|
model/DmSwitch.pm model/Terayon.pm Constants.pm Logger.pm \
|
2011-06-28 02:13:13 +02:00
|
|
|
model/3ComMSR.pm model/CiscoASA.pm model/MikroTik.pm \
|
2012-08-05 07:54:51 +02:00
|
|
|
model/CiscoPIX.pm model/JunOS.pm model/TellabsMSR.pm
|
2008-02-27 23:09:37 +01:00
|
|
|
PORTDOCS= CHANGES README device_table.example
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '1s|.*|#!${PERL} -w|' ${WRKSRC}/${PORTNAME}.pl
|
|
|
|
|
|
|
|
do-install:
|
2014-02-28 08:25:06 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/model
|
2008-02-27 23:09:37 +01:00
|
|
|
.for f in ${MODULES}
|
2014-02-28 08:25:06 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${f} \
|
|
|
|
${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/${f}
|
2008-02-27 23:09:37 +01:00
|
|
|
.endfor
|
2014-02-28 08:25:06 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2008-02-27 23:09:37 +01:00
|
|
|
.for i in ${PORTDOCS}
|
2014-02-28 08:25:06 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
2008-02-27 23:09:37 +01:00
|
|
|
.endfor
|
2012-08-05 07:56:37 +02:00
|
|
|
|
2008-02-27 23:09:37 +01:00
|
|
|
.include <bsd.port.mk>
|