source: trunk/dports/net/nsca/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.7 KB
Line 
1# $Id: Portfile 125738 2014-09-25 14:43:03Z ryandesign@macports.org $
2
3PortSystem        1.0
4
5name              nsca
6version           2.7.2
7categories        net
8maintainers       nomaintainer
9description       Nagios Service Check Acceptor
10long_description  The NSCA addon is designed to accept passive host and service \
11                  check results from clients that use the send_nsca utility \
12                  (also included in this package) and pass them along to the \
13                  Nagios process by using the external command interface.
14
15homepage          http://nagios.org
16master_sites      sourceforge:nagios
17platforms         darwin
18checksums         md5 33a98e7975f633a9489d7a8938ed6131
19
20depends_build   port:libmcrypt
21
22patchfiles        patch-init-script.in
23
24configure.args    --mandir=${prefix}/share/man \
25                  --with-nsca-user=nagios \
26                  --with-nsca-grp=nagios \
27                  --libexecdir=${prefix}/libexec/nagios \
28                  --bindir=${prefix}/sbin \
29                  --sysconfdir=${prefix}/etc/${name}
30
31                startupitem.create    yes
32                startupitem.start    "${prefix}/share/${name}/init-script start"
33                startupitem.stop    "${prefix}/share/${name}/init-script stop"
34
35pre-destroot {
36        adduser nagios
37        addgroup nagios
38
39        reinplace "s|/var/lock/subsys/nsca|${prefix}/var/run/nsca.lock|g" "${worksrcpath}/init-script.in"
40}
41
42destroot {
43        xinstall -d -m 755 ${destroot}${prefix}/etc/${name}
44        xinstall -d -m 755 ${destroot}${prefix}/share/${name}
45        xinstall -d -m 755 ${destroot}${prefix}/sbin
46        xinstall -m 755 ${worksrcpath}/src/nsca ${destroot}${prefix}/sbin/nsca
47        xinstall -m 755 ${worksrcpath}/src/send_nsca ${destroot}${prefix}/sbin/send_nsca
48        xinstall -m 755 ${worksrcpath}/sample-config/nsca.cfg ${destroot}${prefix}/etc/${name}/nsca.cfg.sample
49        xinstall -m 755 ${worksrcpath}/sample-config/send_nsca.cfg ${destroot}${prefix}/etc/${name}/send_nsca.cfg.sample
50
51        xinstall -m 755 ${worksrcpath}/init-script ${destroot}${prefix}/share/${name}
52        xinstall -d -m 755 ${destroot}${prefix}/var/run
53
54        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
55        xinstall -m 755 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
56
57}
58
59post-destroot {
60        system "chown nagios:nagios ${destroot}${prefix}/sbin/nsca"
61        system "chown nagios:nagios ${destroot}${prefix}/sbin/send_nsca"
62        system "chown nagios:nagios ${destroot}${prefix}/etc/${name}/*"
63}
64
65post-install {
66                ui_msg "\n
67README files      -->       ${prefix}/share/doc/${name}
68Config file names -->       ${prefix}/etc/${name}/nsca.cfg (rename sample file to nsca.cfg)
69                            ${prefix}/etc/${name}/send_nsca.cfg (rename sample file to send_nsca.cfg)
70Start script      -->       ${prefix}/share/${name}/init-script start|stop|status
71\n"
72}
73
Note: See TracBrowser for help on using the repository browser.