source: trunk/dports/net/moomps/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.3 KB
Line 
1# $Id: Portfile 125738 2014-09-25 14:43:03Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name                    moomps
6version                 5.8
7categories              net
8maintainers             nomaintainer
9
10description             Modular Object Oriented Multi-Purpose Service - A monitoring daemon \
11                        that uses configuration files created by moodss.
12
13long_description        Moomps is a monitoring daemon which works using configuration \
14                        files created by the moodss (Modular Object Oriented Dynamic \
15                        SpreadSheet) graphical application. The configuration files \
16                        contain the definition of thresholds, which when crossed, \
17                        create messages in the system log, and can trigger the email \
18                        alert messages or the execution of user defined scripts.
19
20homepage                http://moodss.sourceforge.net/
21platforms               darwin
22master_sites            sourceforge:moodss
23checksums               md5 24f49a6df9c0701d23f99d62b030d72b
24use_bzip2               yes
25
26patchfiles              patch-moomps.sh
27
28depends_lib             port:moodss \
29                        port:tclx
30
31        startupitem.create      yes
32        startupitem.name        moomps
33        startupitem.start       "${prefix}/share/moomps/moomps start"
34        startupitem.stop        "${prefix}/share/moomps/moomps stop"
35
36variant sqlite3 {
37        depends_lib-append      port:sqlite3
38}
39
40variant mysqltcl {
41        depends_lib-append      port:mysqltcl
42}
43
44use_configure   no
45build {}
46
47pre-build {
48        adduser moomps
49        addgroup moomps
50}
51
52destroot {
53        system "make \
54                        ROOTDIR=${destroot} \
55                        TCLSH=${prefix}/bin/tclsh \
56                        SBINDIR=${prefix}/sbin \
57                        LIBDIR=${prefix}/lib \
58                        MANDIR=${prefix}/share/man \
59                        DOCDIR=${prefix}/share/doc \
60                        MOODSSLIBDIR=${prefix}/lib/moodss \
61                        ETCDIR=${prefix}/etc \
62                        DATADIR=${prefix}/share/moomps/moofiles \
63                        INITDIR=${prefix}/share/moomps \
64                        MANDIR=${prefix}/share/man \
65                        DOCDIR=${prefix}/share/doc \
66                        MOOMPSRCFILE=${prefix}/etc/moomps/rc \
67                install"
68}
69
70post-destroot {
71        xinstall -m 755 -d ${destroot}${prefix}/share/moomps/moofiles
72        xinstall -m 755 -d ${destroot}${prefix}/var/lock
73        xinstall -m 755 -d ${destroot}${prefix}/var/run
74
75        destroot.keepdirs \
76                ${destroot}${prefix}/share/moomps/moofiles \
77                ${destroot}${prefix}/var/lock \
78                ${destroot}${prefix}/var/run
79}
80
81post-activate {
82ui_msg "\n
83You must place your moodss files (.moo) in this path:
84
85        ${prefix}/share/moomps/moofiles
86
87for the moomps daemon to find them.
88\n"
89}
Note: See TracBrowser for help on using the repository browser.