source: trunk/dports/sysutils/monit/Portfile @ 148373

Last change on this file since 148373 was 148373, checked in by ryandesign@…, 3 years ago

monit: use MacPorts openssl headers; fixed build on El Capitan and later (#51316)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 148373 2016-05-06 11:15:58Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                monit
6version             5.12.1
7revision            1
8categories          sysutils
9platforms           darwin freebsd linux netbsd openbsd solaris
10license             GPL-3
11maintainers         nomaintainer
12
13description         monit is a utility for managing and monitoring, processes, \
14                    files, directories and devices on a UNIX system.
15long_description    Monit can start a process if it does not run, restart a process \
16                    if it does not respond and stop a process if it uses too many resources. \
17                    You can use monit to monitor files, directories and devices for changes, \
18                    such as timestamp changes, checksum changes or size changes. You can also \
19                    monitor remote hosts\; monit can ping a remote host and can check TCP/IP \
20                    port connections and server protocols. Monit is controlled via an easy \
21                    to use control file based on a free-format, token-oriented syntax. Monit \
22                    logs to syslog or to its own log file and notifies you about error \
23                    conditions and recovery status via customizable alert.
24
25homepage            http://mmonit.com/monit/
26master_sites        ${homepage}dist/
27
28checksums           rmd160 3c8b9f73b27dd1d0d633cc2b8a33b8fe0083937f \
29                    sha256 0ed2489d31313fb9f7b6867352609c8aa416c3c19be3761142356d0a9cfa41c9
30
31depends_build       bin:flex:flex bin:bison:bison
32depends_lib         path:lib/libssl.dylib:openssl
33
34configure.args      --with-ssl-dir=${prefix}
35
36platform freebsd {
37    build.type      gnu
38}
39
40platform netbsd {
41    build.type      gnu
42}
43
44platform openbsd {
45    build.type      gnu
46}
47
48post-destroot {
49    xinstall -d ${destroot}${prefix}/etc/monit.d
50    xinstall -m 640 \
51        /dev/null \
52        ${destroot}${prefix}/etc/monit.d/.turd_monit
53
54    xinstall -m 700 ${worksrcpath}/monitrc ${destroot}${prefix}/etc/monitrc
55    reinplace "s|#  include /etc/monit.d/|include ${prefix}/etc/monit.d/|" \
56        ${destroot}${prefix}/etc/monitrc
57
58    xinstall -d ${destroot}${prefix}/share/doc/${name}
59    xinstall -m 444 -W ${worksrcpath} CONTRIBUTORS COPYING README \
60        ${destroot}${prefix}/share/doc/${name}
61}
62
63startupitem.create     yes
64startupitem.executable ${prefix}/bin/monit -I -c ${prefix}/etc/monitrc
65
Note: See TracBrowser for help on using the repository browser.