aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/routers2-extensions/Makefile
blob: f7e3db0fe01d46cd3217df1cf5a9e5e7eb7dc9aa (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
# Created by: Xavier Beaudouin <kiwi@oav.net>
# $FreeBSD$

PORTNAME=   routers2-extensions
PORTVERSION=    2.23
CATEGORIES= net-mgmt
MASTER_SITES=   http://www.steveshipway.org/software/rrd/ \
        ftp://ftp.oav.oav.net/routers2/
DISTNAME=   routers2-v${PORTVERSION}

MAINTAINER= kiwi@oav.net
COMMENT=    Extensions of routers2 frontend

RUN_DEPENDS=    ${LOCALBASE}/www/routers2/routers2.cgi:net-mgmt/routers2 \
        p5-Net-Telnet-Cisco>=0:net-mgmt/p5-Telnet-Cisco \
        ${LOCALBASE}/bin/htmldoc:textproc/htmldoc

WRKSRC=     ${WRKDIR}/routers2-v${PORTVERSION}/extensions

USES=       perl5 shebangfix
SHEBANG_FILES=  trend.cgi \
        showcfg.cgi \
        tonagios.cgi

NO_BUILD=   YES
NO_ARCH=    yes
PORTDOCS=   README *.txt extension.cgi.pl

OPTIONS_DEFINE= DOCS

post-patch:
    ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/*.cgi

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/www/routers2/extensions
    ${INSTALL_SCRIPT} ${WRKSRC}/*.cgi \
        ${STAGEDIR}${PREFIX}/www/routers2/extensions

do-install-DOCS-on:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}; ${INSTALL_DATA} README *.txt extension.cgi.pl \
        ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>