source: trunk/dports/net/nrpe/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              nrpe
6version           2.12
7categories        net
8maintainers       nomaintainer
9description       Nagios Remote Plugin Executor
10long_description  Allows \"local\" Nagios plugins to run on remote hosts and \
11                  report back to a Nagios server.
12
13homepage          http://nagios.org
14master_sites      sourceforge:project/nagios/nrpe-2.x/nrpe-${version}
15platforms         darwin
16checksums         md5 b2d75e2962f1e3151ef58794d60c9e97
17
18patchfiles        patch-init-script.in
19
20configure.args    --mandir=${prefix}/share/man \
21                  --with-nrpe-user=nagios \
22                  --with-nrpe-group=nagios \
23                  --libexecdir=${prefix}/libexec/nagios \
24                  --bindir=${prefix}/sbin \
25                  --sysconfdir=${prefix}/etc/${name} \
26                  --with-kerberos-inc=/usr/include/kerberosIV \
27                  --enable-ssl \
28                  --with-ssl-lib=${prefix}/lib \
29                  --with-ssl-inc=${prefix} \
30                  --enable-command-args
31
32                startupitem.create    yes
33                startupitem.start    "${prefix}/share/${name}/init-script start"
34                startupitem.stop    "${prefix}/share/${name}/init-script stop"
35
36post-patch {
37        adduser nagios
38        addgroup nagios
39
40        reinplace "s|dir/libssl.so|dir/libssl.dylib|g" ${worksrcpath}/configure
41
42        reinplace "s|__PREFIX__|${prefix}|g" "${worksrcpath}/init-script.in"
43}
44
45destroot {
46        xinstall -d -m 755 ${destroot}${prefix}/etc/${name}
47        xinstall -d -m 755 ${destroot}${prefix}/share/${name}
48        xinstall -d -m 755 ${destroot}${prefix}/libexec/nagios
49        xinstall -m 755 ${worksrcpath}/src/nrpe ${destroot}${prefix}/sbin/nrpe
50        xinstall -m 755 ${worksrcpath}/src/check_nrpe ${destroot}${prefix}/libexec/nagios
51        xinstall -m 755 ${worksrcpath}/sample-config/nrpe.cfg ${destroot}${prefix}/etc/${name}/nrpe.cfg.sample
52
53        xinstall -m 755 ${worksrcpath}/init-script ${destroot}${prefix}/share/${name}
54
55        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
56        xinstall -m 755 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
57        xinstall -m 755 ${worksrcpath}/README.SSL ${destroot}${prefix}/share/doc/${name}
58
59        xinstall -d -m 755 ${destroot}${prefix}/var/run/nrpe
60        destroot.keepdirs ${destroot}${prefix}/var/run/nrpe
61}
62
63post-destroot {
64        system "chown nagios:nagios ${destroot}${prefix}/sbin/nrpe"
65        system "chown nagios:nagios ${destroot}${prefix}/libexec/nagios/check_nrpe"
66        system "chown nagios:nagios ${destroot}${prefix}/etc/${name}/nrpe.cfg.sample"
67}
68
69post-install {
70                ui_msg "\n
71README files     -->       ${prefix}/share/doc/${name}
72Config file name -->       ${prefix}/etc/${name}/nrpe.cfg (rename nrpe.cfg.sample)
73Start script     -->       ${prefix}/share/${name}/init-script start|stop|status
74\n"
75}
76
Note: See TracBrowser for help on using the repository browser.