source: trunk/dports/net/mrtg-ping-probe/Portfile

Last change on this file was 129587, checked in by jmr@…, 3 years ago

mrtg-ping-probe: apply patch from freebsd to fix packet loss reporting (#22077)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 129587 2014-12-16 07:32:26Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name                            mrtg-ping-probe 
6version                         2.2.0
7revision                        1
8
9categories                      net
10license                         GPL-2
11maintainers                     jberry openmaintainer
12platforms                       darwin
13supported_archs         noarch
14
15description                     A ping probe adapter for mrtg
16long_description        Monitors round trip time and packet loss to another host.
17homepage                        http://pwo.de/projects/mrtg/
18                                       
19master_sites            ftp://ftp.pwo.de/pub/pwo/mrtg/${name}
20checksums                       md5 5eec5bc5f1c5097248c701d54639d292
21
22depends_lib                     bin:mrtg:mrtg
23
24fetch.use_epsv          no
25extract.post_args       "| tar -xmf -"
26
27patchfiles                      mrtg-ping-probe.patch
28
29use_configure           no
30
31destroot {
32        # Ensure needed directories
33        xinstall -d ${destroot}${prefix}/share/man
34               
35        # Install binaries
36        xinstall -m 755 \
37                ${worksrcpath}/mrtg-ping-cfg \
38                ${worksrcpath}/mrtg-ping-probe \
39                ${destroot}${prefix}/bin
40               
41        # Install man pages
42        xinstall -m 644 ${worksrcpath}/mrtg-ping-probe.1 \
43                ${destroot}${prefix}/share/man/man1
44       
45        # Fixup binaries
46        reinplace "s|#!/bin/perl|#!/usr/bin/env perl|" ${destroot}${prefix}/bin/mrtg-ping-probe
47        reinplace s|/bin/ksh|/bin/sh| ${destroot}${prefix}/bin/mrtg-ping-cfg
48        reinplace s|PING_PROBE=/usr/local/httpd/mrtg|PING_PROBE=${prefix}/bin| ${destroot}${prefix}/bin/mrtg-ping-cfg
49}
Note: See TracBrowser for help on using the repository browser.