source: trunk/dports/net/network-weathermap/Portfile

Last change on this file was 125738, checked in by mf2k@…, 3 years ago

adodb argus-monitor base blt cacti cdpr doclifter eventlog expect gkrellm honeyd iwidgets kchmviewer libdnsres monarch moodss moomps nagios nagios-plugins nedi netmrg network-weathermap nfdump nfsen nrg nrpe nsca ntop p5-archive-zip p5-cgi p5-cgi-speedycgi p5-convert-asn1 p5-libintl-perl p5-mhonarc p5-net p5-perl-ldap rancid rrdtool scotty sendpage smokeping snort sympa syslog-ng tclx tftp-hpa tktable uplog vm-pop3d xserve-raid-tools zabbix: Ports abandoned by markd. (#44782)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 125738 2014-09-25 14:43:03Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name                    network-weathermap
6version                 0.97c
7categories              net
8maintainers             nomaintainer
9platforms               darwin
10
11description             Weathermap is a network visualisation tool, to take graphs you \
12                        already have and display an overview of your network as a map. \
13                        It supports RRD, MRTG (RRD and old log-format), and tab-delimited \
14                        text files. Other sources are via plugins or external scripts.
15
16long_description        ${description}
17
18homepage                http://www.network-weathermap.com/
19master_sites            http://www.network-weathermap.com/files
20
21use_zip                 yes
22distfiles               php-weathermap-${version}${extract.suffix}
23checksums               md5 221f64506abc4d6572774b3fd3d2e2a7 \
24                        rmd160 76181bfbf6850157265d1851897ada95007c1898
25worksrcdir              weathermap
26
27depends_lib             path:bin/perl:perl5 \
28                        port:cacti
29
30use_configure   no
31build {}
32
33set cactidir ${prefix}/share/cacti
34set pluginsdir ${cactidir}/plugins
35
36post-patch {
37# Set the rrdtool & php paths to point to the MacPorts versions
38        reinplace "s|/usr/local|${prefix}|g" \
39                ${worksrcpath}/weathermap \
40                ${worksrcpath}/weathermap-cacti-rebuild.php
41
42# Set perl location
43        reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
44                ${worksrcpath}/random-bits/auto-overlib.pl
45}
46
47destroot {
48        file delete ${worksrcpath}/configs/.htaccess
49
50        file mkdir ${destroot}${pluginsdir}/weathermap
51        system "cp -R ${worksrcpath}/* ${destroot}${pluginsdir}/weathermap"
52
53        system "chown -R www:www ${destroot}${pluginsdir}/weathermap/"
54}
55
56notes "
57**** To complete the Network Weathermap installation ****
58
59To complete the Network Weather Map installation follow the steps below.  Read the documentation
60at http://www.cacti.net/documentation.php for operational instructions.
61
62
631) Set the PHP path in ${pluginsdir}/weathermap to point to your PHP binary
64
65
662) Set Network Weather Map permissions to match the Cacti user permissions
67   sudo chown -R <cacti-user>:<cacti-group> ${prefix}/share/${pluginsdir}/weathermap
68
69
703) Rename & edit the Network Weathermap Editor's config file
71        cd ${pluginsdir}/weathermap
72        cp editor-config.php-dist editor-config.php
73        nano editor-config.php
74
75
764) Set the editor-config.php variables as shown:
77
78        cacti_base = '${cactidir}';
79        \$cacti_url = \"http://example.com/cacti/\";
80
81
825) Enable the weathermap plugin:
83
84     a) In the Cacti web GUI, go to Configuration -> Plugin Management and you
85  should see your plugin(s) listed.
86        Under 'Actions', click the the install button to install each plugin.
87 
88     b) Ensure that your Cacti user has permissions to manage the plugins
89        Console -> User Management  (select Cacti user and allow Conf/Manage and View options)
90
91
92"
Note: See TracBrowser for help on using the repository browser.