aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/mrtg-ping-probe/Makefile
blob: 2562381300aa4d4b3006e418db25d17fea50522c (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
# New ports collection makefile for: mrng-cfgtg-ping-probe
# Date created:         17 Jan 2004
# Whom:                 sanpei@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   mrtg-ping-probe
PORTVERSION=    2.2.0
PORTREVISION=   5
CATEGORIES= net-mgmt
MASTER_SITES=   ftp://ftp.pwo.de/pub/pwo/mrtg/${PORTNAME}/

MAINTAINER= sanpei@FreeBSD.org
COMMENT=    A Round Trip Time and Packet Loss Probe for MRTG

RUN_DEPENDS=    ${LOCALBASE}/bin/mrtg:${PORTSDIR}/net-mgmt/mrtg

FETCH_BEFORE_ARGS=  -p      # MASTER_SITE needs PASSIVE FTP.

USES=       perl5

MAN1=       ${PORTNAME}.1

post-patch:
    @${REINPLACE_CMD} -e 's|%%PERL%%|${PERL5}|' ${WRKSRC}/${PORTNAME}
    @${CHMOD} +x ${WRKSRC}/${PORTNAME}

do-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    @${INSTALL_SCRIPT} ${WRKSRC}/mrtg-ping-cfg  ${PREFIX}/bin
    @${INSTALL_DATA} ${WRKSRC}/mrtg.cfg-ping  ${PREFIX}/etc/mrtg
    @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${PREFIX}/man/man1

.include <bsd.port.mk>