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

Last change on this file was 151839, checked in by mojca@…, 15 months ago

xserve-raid-tools: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 151839 2016-08-23 12:07:04Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                xserve-raid-tools
8version             1.2
9revision            5
10categories          sysutils net
11license             GPL-2
12maintainers         nomaintainer
13
14description         The xserve-raid-tools package provides command line tools and \
15                    a daemon for monitoring Apple Xserve RAIDs.  It also contains a \
16                    Nagios plugin to monitor Apple Xserve RAIDs.
17
18long_description    ${description}
19
20# not working
21homepage            http://noc.hep.wisc.edu/xserve-raid-tools.txt
22platforms           darwin
23master_sites        ftp://noc.hep.wisc.edu/pub/src/xserve-raid-tools/
24
25checksums           rmd160  52f6973a8eb86a767e3c11619ce0bbdd53e035e0 \
26                    sha256  fb13b345ef253ad6d2de9dcef8572818515ecc7a4bc4552439cfe7e42362b100
27
28perl5.branches      5.24
29
30depends_lib         port:p${perl5.major}-xml-parser \
31                    port:netcat
32
33supported_archs     noarch
34
35variant nagios_plugin description {Install nagios plugin} {
36    depends_build-append    port:nagios-plugins
37}
38
39startupitem.create  yes
40startupitem.name    xserve-raid-checkd
41startupitem.start   "${prefix}/bin/xserve-raid-checkd"
42startupitem.stop    "exec ${prefix}/bin/xserve-raid-checkd -k kill"
43
44set nagios_plugin_dir ${prefix}/libexec/nagios
45
46post-patch {
47    reinplace "s|\$(PREFIX)|\$(DESTDIR)\$(PREFIX)|g" ${worksrcpath}/Makefile.in
48}
49
50configure.perl      ${perl5.bin}
51
52build {}
53
54post-destroot {
55if { [variant_isset nagios_plugin] } {
56    xinstall -m 755 -d ${destroot}${nagios_plugin_dir}
57    xinstall -m 755 ${worksrcpath}/check_xserve_raid ${destroot}${nagios_plugin_dir}
58}
59    xinstall -m 755 -d ${destroot}${prefix}/share/doc/xserve-raid-tools
60    foreach docfile {CHANGES LICENSE NOTES README TODO} {
61        xinstall ${worksrcpath}/${docfile} ${destroot}${prefix}/share/doc/xserve-raid-tools/
62    }
63}
64
65notes "
66Make sure to edit the ${prefix}/etc/xserve-raid-tools.conf file.
67"
Note: See TracBrowser for help on using the repository browser.