source: trunk/dports/sysutils/xserve-raid-tools/Portfile @ 125738

Last change on this file since 125738 was 125738, checked in by mf2k@…, 4 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: 1.7 KB
Line 
1# $Id: Portfile 125738 2014-09-25 14:43:03Z mf2k@macports.org $
2PortSystem      1.0
3
4name                    xserve-raid-tools
5version                 1.2
6revision                1
7categories              sysutils net
8maintainers             nomaintainer
9
10description             The xserve-raid-tools package provides command line tools and \
11                        a daemon for monitoring Apple Xserve RAIDs.  It also contains a \
12                        Nagios plugin to monitor Apple Xserve RAIDs.
13
14long_description        ${description}
15
16homepage                http://noc.hep.wisc.edu/xserve-raid-tools.txt
17platforms               darwin
18master_sites            ftp://noc.hep.wisc.edu/pub/src/xserve-raid-tools/
19checksums               md5 fe7d8400a6c85e73cfc5af1f6869a92d
20
21depends_lib             port:p5.12-xml-parser \
22                        port:netcat
23
24variant nagios_plugin {
25        depends_build-append    port:nagios-plugins
26}                                         
27
28variant server {
29        startupitem.create      yes
30        startupitem.name        xserve-raid-checkd
31        startupitem.start       "${prefix}/bin/xserve-raid-checkd"
32        startupitem.stop        "exec ${prefix}/bin/xserve-raid-checkd -k kill"
33}
34
35set nagios_plugin_dir ${prefix}/libexec/nagios
36
37post-patch {
38        reinplace "s|\$(PREFIX)|\$(DESTDIR)\$(PREFIX)|g" \
39                ${worksrcpath}/Makefile.in
40}
41
42build {}
43
44post-destroot {
45if { [variant_isset nagios_plugin] } {   
46        xinstall -m 755 -d ${destroot}${nagios_plugin_dir}
47        xinstall -m 755 ${worksrcpath}/check_xserve_raid ${destroot}${nagios_plugin_dir}
48}
49        xinstall -m 755 -d ${destroot}${prefix}/share/doc/xserve-raid-tools
50        foreach docfile {CHANGES LICENSE NOTES README TODO} {
51                xinstall ${worksrcpath}/${docfile} ${destroot}${prefix}/share/doc/xserve-raid-tools/
52        }
53}
54
55post-activate {
56ui_msg "\n Make sure to edit the ${prefix}/etc/xserve-raid-tools.conf file. \n"
57}
Note: See TracBrowser for help on using the repository browser.