aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/fetchconfig/Makefile
blob: fc725121b490cdeffef835e225179b21dcc40e55 (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
# New ports collection makefile for:    fetchconfig
# Date created:             21 December 2008
# Whom:                 salexanov@gmail.com
#
# $FreeBSD$
#

PORTNAME=   fetchconfig
PORTVERSION=    0.21
CATEGORIES= net-mgmt
MASTER_SITES=   SAVANNAH

MAINTAINER= salexanov@gmail.com
COMMENT=    Perl script for retrieving configuration of various network devices

BUILD_DEPENDS=  ${SITE_PERL}/Net/Telnet.pm:${PORTSDIR}/net/p5-Net-Telnet
RUN_DEPENDS:=   ${BUILD_DEPENDS}

USE_PERL5=  yes
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 \
        model/DmSwitch.pm model/Terayon.pm Constants.pm Logger.pm \
        model/3ComMSR.pm model/CiscoASA.pm model/MikroTik.pm \
        model/CiscoPIX.pm
PORTDOCS=   CHANGES README device_table.example

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

post-patch:
    @${REINPLACE_CMD} -e '1s|.*|#!${PERL} -w|' ${WRKSRC}/${PORTNAME}.pl

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
    ${MKDIR} ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/model
.for f in ${MODULES}
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${f} ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/${f}
.endfor

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>