[148374] trunk/dports/sysutils/monit
ryandesign at macports.org
ryandesign at macports.org
Fri May 6 06:22:31 PDT 2016
Revision: 148374
https://trac.macports.org/changeset/148374
Author: ryandesign at macports.org
Date: 2016-05-06 06:22:30 -0700 (Fri, 06 May 2016)
Log Message:
-----------
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
Modified Paths:
--------------
trunk/dports/sysutils/monit/Portfile
Added Paths:
-----------
trunk/dports/sysutils/monit/files/
trunk/dports/sysutils/monit/files/patch-monitrc.diff
Modified: trunk/dports/sysutils/monit/Portfile
===================================================================
--- trunk/dports/sysutils/monit/Portfile 2016-05-06 11:15:58 UTC (rev 148373)
+++ trunk/dports/sysutils/monit/Portfile 2016-05-06 13:22:30 UTC (rev 148374)
@@ -3,8 +3,7 @@
PortSystem 1.0
name monit
-version 5.12.1
-revision 1
+version 5.17.1
categories sysutils
platforms darwin freebsd linux netbsd openbsd solaris
license GPL-3
@@ -22,15 +21,21 @@
logs to syslog or to its own log file and notifies you about error \
conditions and recovery status via customizable alert.
-homepage http://mmonit.com/monit/
+homepage https://mmonit.com/monit/
master_sites ${homepage}dist/
-checksums rmd160 3c8b9f73b27dd1d0d633cc2b8a33b8fe0083937f \
- sha256 0ed2489d31313fb9f7b6867352609c8aa416c3c19be3761142356d0a9cfa41c9
+checksums rmd160 a0e8aedcc73d36354b1362cb1e30e71ac9114f62 \
+ sha256 f71a22cfb6bd91ff46496e72e1d1b1021ecd651e7748131ce0f995cc37ff0b42
depends_build bin:flex:flex bin:bison:bison
depends_lib path:lib/libssl.dylib:openssl
+patchfiles patch-monitrc.diff
+
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/monitrc
+}
+
configure.args --with-ssl-dir=${prefix}
platform freebsd {
@@ -45,15 +50,9 @@
build.type gnu
}
+destroot.keepdirs ${destroot}${prefix}/etc/monit.d
post-destroot {
- 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} CONTRIBUTORS COPYING README \
Added: trunk/dports/sysutils/monit/files/patch-monitrc.diff
===================================================================
--- trunk/dports/sysutils/monit/files/patch-monitrc.diff (rev 0)
+++ trunk/dports/sysutils/monit/files/patch-monitrc.diff 2016-05-06 13:22:30 UTC (rev 148374)
@@ -0,0 +1,9 @@
+--- monitrc.orig 2016-03-06 05:00:21.000000000 -0600
++++ monitrc 2016-05-06 06:24:12.000000000 -0500
+@@ -286,5 +286,5 @@
+ ## It is possible to include additional configuration parts from other files or
+ ## directories.
+ #
+-# include /etc/monit.d/*
++include @PREFIX@/etc/monit.d/*
+ #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160506/7493c623/attachment.html>
More information about the macports-changes
mailing list