Ticket #47209: Portfile-monit.diff

File Portfile-monit.diff, 1.8 KB (added by jdempster (James Dempster), 10 years ago)
  • Portfile

    old new  
    1 # $Id: Portfile 96546 2012-08-13 23:05:57Z ryandesign@macports.org $
     1# $Id$
    22
    33PortSystem 1.0
    44
    55name                monit
    6 version             5.4
     6version             5.12.1
    77categories          sysutils
    88platforms           darwin freebsd linux netbsd openbsd solaris
    99license             GPL-3
     
    2424homepage            http://mmonit.com/monit/
    2525master_sites        ${homepage}dist/
    2626
    27 checksums           rmd160  1f011399d4e04a1d85277ed5ed2ba7750a2e855e \
    28                     sha256  805c6545de2dd7f3d9e6e0c68018b2aadd5fc98b243c8868178f247a60906038
     27checksums           rmd160 3c8b9f73b27dd1d0d633cc2b8a33b8fe0083937f \
     28                    sha256 0ed2489d31313fb9f7b6867352609c8aa416c3c19be3761142356d0a9cfa41c9
    2929
    30 depends_build       bin:flex:flex bin:bison:bison 
     30depends_build       bin:flex:flex bin:bison:bison
    3131depends_lib         port:openssl
    3232
    3333platform freebsd {
     
    4343}
    4444
    4545post-destroot {
    46     xinstall -m 444 ${worksrcpath}/monitrc ${destroot}${prefix}/etc/monitrc.sample
     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
    4755    xinstall -d ${destroot}${prefix}/share/doc/${name}
    48     xinstall -m 444 -W ${worksrcpath} CHANGES COPYING README \
     56    xinstall -m 444 -W ${worksrcpath} CONTRIBUTORS COPYING README \
    4957        ${destroot}${prefix}/share/doc/${name}
    5058}
     59
     60startupitem.create     yes
     61startupitem.executable ${prefix}/bin/monit -I -c ${prefix}/etc/monitrc
     62