[135066] trunk/dports/sysutils/monit/Portfile

mf2k at macports.org mf2k at macports.org
Tue Apr 14 12:39:20 PDT 2015


Revision: 135066
          https://trac.macports.org/changeset/135066
Author:   mf2k at macports.org
Date:     2015-04-14 12:39:20 -0700 (Tue, 14 Apr 2015)
Log Message:
-----------
monit: Update to version 5.12.1. Add startupitem. (#47209)

Modified Paths:
--------------
    trunk/dports/sysutils/monit/Portfile

Modified: trunk/dports/sysutils/monit/Portfile
===================================================================
--- trunk/dports/sysutils/monit/Portfile	2015-04-14 19:22:00 UTC (rev 135065)
+++ trunk/dports/sysutils/monit/Portfile	2015-04-14 19:39:20 UTC (rev 135066)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name                monit
-version             5.4
+version             5.12.1
 categories          sysutils
 platforms           darwin freebsd linux netbsd openbsd solaris
 license             GPL-3
@@ -24,10 +24,10 @@
 homepage            http://mmonit.com/monit/
 master_sites        ${homepage}dist/
 
-checksums           rmd160  1f011399d4e04a1d85277ed5ed2ba7750a2e855e \
-                    sha256  805c6545de2dd7f3d9e6e0c68018b2aadd5fc98b243c8868178f247a60906038
+checksums           rmd160 3c8b9f73b27dd1d0d633cc2b8a33b8fe0083937f \
+                    sha256 0ed2489d31313fb9f7b6867352609c8aa416c3c19be3761142356d0a9cfa41c9
 
-depends_build       bin:flex:flex bin:bison:bison 
+depends_build       bin:flex:flex bin:bison:bison
 depends_lib         port:openssl
 
 platform freebsd {
@@ -43,8 +43,20 @@
 }
 
 post-destroot {
-    xinstall -m 444 ${worksrcpath}/monitrc ${destroot}${prefix}/etc/monitrc.sample
+    xinstall -d ${destroot}${prefix}/etc/monit.d
+    xinstall -m 640 \
+        /dev/null \
+        ${destroot}${prefix}/etc/monit.d/.turd_monit
+
+    xinstall -m 700 ${worksrcpath}/monitrc ${destroot}${prefix}/etc/monitrc
+    reinplace "s|#  include /etc/monit.d/|include ${prefix}/etc/monit.d/|" \
+        ${destroot}${prefix}/etc/monitrc
+
     xinstall -d ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 444 -W ${worksrcpath} CHANGES COPYING README \
+    xinstall -m 444 -W ${worksrcpath} CONTRIBUTORS COPYING README \
         ${destroot}${prefix}/share/doc/${name}
 }
+
+startupitem.create     yes
+startupitem.executable ${prefix}/bin/monit -I -c ${prefix}/etc/monitrc
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150414/5dd982ee/attachment.html>


More information about the macports-changes mailing list