source: trunk/dports/net/moodss/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.9 KB
Line 
1# $Id: Portfile 125738 2014-09-25 14:43:03Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name                    moodss
6version                 21.5
7revision                1
8categories              net
9maintainers             nomaintainer
10
11description             Modular Object Oriented Dynamic Spreadsheet - A graphical \
12                        monitoring application that supports external modules \
13                        including Nagios plugins.  It supports SNMP when used with \
14                        the Scotty Tcl extensions package.
15
16long_description        ${description}
17homepage                http://moodss.sourceforge.net/
18platforms               darwin
19master_sites            sourceforge
20checksums               md5 4d05f8135c05d7f39dd0a8868c899897
21use_bzip2               yes
22
23depends_lib             port:tcl \
24                        port:tk \
25                        port:tktable \
26                        port:blt \
27                        port:scotty \
28                        port:sqlite3
29
30patchfiles              patch-Makefile
31
32variant nagios_plugins {
33        depends_lib-append      port:nagios-plugins
34}
35
36variant mysqltcl {
37        depends_lib-append      port:mysqltcl
38}
39
40variant rproject {
41        depends_lib-append      port:R
42}
43
44use_configure   no
45build {}
46
47post-patch {
48# Set the location of the moomps resource file to where the moomps port puts it
49#        reinplace "s|/etc/moomps/rc|${prefix}/etc/moomps/rc|g" \
50#                "${worksrcpath}/global.tcl"
51
52#   When Nagios plugin path is set, '/<plugin_path>/check_' may be ommitted from Nagios check commands
53        reinplace "s|/usr/lib/nagios/plugins/|${prefix}/libexec/nagios/|g" \
54                "${worksrcpath}/nagios/nagios.tcl"
55}
56
57destroot.args-append    ROOTDIR=${destroot} \
58                        TCLLIBDIR=${prefix}/lib \
59                        BINDIR=${prefix}/bin \
60                        LIBDIR=${prefix}/lib \
61                        MANDIR=${prefix}/share/man \
62                        DOCDIR=${prefix}/share/doc \
63                        MOODSSLIBDIR=${prefix}/lib/moodss \
64                        MOOMPSRCFILE=${prefix}/etc/moomps/rc
65
66post-activate {
67# User Instructions
68
69ui_msg "\n
70To enable the moodss ping module you must activate the ${prefix}/bin/nmicmpd
71daemon (a component of the dependent package Scotty).  To do this:
72
73   1) Edit the /etc/services file as described in ${prefix}/lib/moodss/ping/INSTALL.
74
75   2) OS X 10.4 (see below for 10.3) - Load the nmicmpd LaunchD script installed by MacPorts' Scotty dependency.
76        sudo launchctl load -w /Library/LaunchDaemons/org.macports.nmicmpd.plist
77
78   3) Reboot and test the nmicmpd daemon:
79        telnet localhost nmicmp
80        ps -ax |grep nmicmpd (The daemon loads only when requested and unloads afterwards)
81
82      Or you may test the ping module within moodss:
83        moodss ping
84
85   Additional instructions for OS X 10.3:
86    a) A startup item was created in /Library/StartupItems
87        Add \"NMICMPD=-YES-\" to the /etc/hostconfig file to run nmicmpd at system boot.
88
89    b) Add an xinetd entry for nmicmp as described in ${prefix}/lib/moodss/ping/INSTALL.
90
91    c) Reboot and test as shown in step 3 above.
92
93\n"
94}
Note: See TracBrowser for help on using the repository browser.