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

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

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