source: trunk/dports/sysutils/monit/Portfile

Last change on this file was 148374, checked in by ryandesign@…, 17 months ago

monit: update to 5.17.1; use a patchfile instead of just a reinplace; use destroot.keepdirs instead of doing it manually; use https for homepage to avoid redirects

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 148374 2016-05-06 13:22:30Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                monit
6version             5.17.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            https://mmonit.com/monit/
25master_sites        ${homepage}dist/
26
27checksums           rmd160 a0e8aedcc73d36354b1362cb1e30e71ac9114f62 \
28                    sha256 f71a22cfb6bd91ff46496e72e1d1b1021ecd651e7748131ce0f995cc37ff0b42
29
30depends_build       bin:flex:flex bin:bison:bison
31depends_lib         path:lib/libssl.dylib:openssl
32
33patchfiles          patch-monitrc.diff
34
35post-patch {
36    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/monitrc
37}
38
39configure.args      --with-ssl-dir=${prefix}
40
41platform freebsd {
42    build.type      gnu
43}
44
45platform netbsd {
46    build.type      gnu
47}
48
49platform openbsd {
50    build.type      gnu
51}
52
53destroot.keepdirs   ${destroot}${prefix}/etc/monit.d
54post-destroot {
55    xinstall -m 700 ${worksrcpath}/monitrc ${destroot}${prefix}/etc/monitrc
56
57    xinstall -d ${destroot}${prefix}/share/doc/${name}
58    xinstall -m 444 -W ${worksrcpath} CONTRIBUTORS COPYING README \
59        ${destroot}${prefix}/share/doc/${name}
60}
61
62startupitem.create     yes
63startupitem.executable ${prefix}/bin/monit -I -c ${prefix}/etc/monitrc
64
Note: See TracBrowser for help on using the repository browser.