[126236] trunk/dports/security/logwatch/Portfile
khindenburg at macports.org
khindenburg at macports.org
Sun Oct 5 18:34:43 PDT 2014
Revision: 126236
https://trac.macports.org/changeset/126236
Author: khindenburg at macports.org
Date: 2014-10-05 18:34:43 -0700 (Sun, 05 Oct 2014)
Log Message:
-----------
logwatch: update to 7.4.1 #44013; add license; add perl dep; change how the bin link is done #44011; move ui_msg to notes; maintainer timeout
Modified Paths:
--------------
trunk/dports/security/logwatch/Portfile
Modified: trunk/dports/security/logwatch/Portfile
===================================================================
--- trunk/dports/security/logwatch/Portfile 2014-10-05 23:11:32 UTC (rev 126235)
+++ trunk/dports/security/logwatch/Portfile 2014-10-06 01:34:43 UTC (rev 126236)
@@ -4,10 +4,10 @@
PortSystem 1.0
name logwatch
-revision 2
-version 7.3.6
+version 7.4.1
distname logwatch-${version}
categories security
+license MIT
maintainers cern.ch:lassi.tuura
supported_archs noarch
@@ -24,12 +24,16 @@
master_sites sourceforge:project/logwatch/logwatch-${version}
platforms darwin
-checksums md5 937d982006b2a76a83edfcfd2e5a9d7d
+depends_lib path:bin/perl:perl5
+checksums rmd160 dd9539b3880b3a9ce2d0772f09e52de238a89405 \
+ sha256 35ec31f9fe981aaa727b144ab3ff2eb655997d8ccabaf66586458f5dfc3a56eb
+
patchfiles scripts_logwatch.pl.diff
use_configure no
build {
+ reinplace s|#!/usr/bin/perl|#!${prefix}/bin/perl| ${worksrcpath}/scripts/logwatch.pl
reinplace s|/usr/share/${name}|${prefix}/share/${name}|g ${worksrcpath}/scripts/logwatch.pl
reinplace s|/var/cache/${name}|${prefix}/var/cache/${name}|g ${worksrcpath}/scripts/logwatch.pl
reinplace s|/var/cache/${name}|${prefix}/var/cache/${name}|g ${worksrcpath}/conf/logwatch.conf
@@ -48,8 +52,6 @@
file copy ${worksrcpath}/scripts ${destroot}${prefix}/share/${name}/scripts
file copy ${worksrcpath}/lib ${destroot}${prefix}/share/${name}/lib
- ln -s ../share/${name}/scripts/logwatch.pl ${destroot}${prefix}/bin/logwatch
-
# startup item
file mkdir ${destroot}${prefix}/etc/LaunchDaemons/${name}
file copy ${filespath}/org.macports.${name}.plist ${destroot}${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist
@@ -59,14 +61,16 @@
post-destroot {
file delete /Library/LaunchDaemons/org.macports.${name}.plist
ln -s ${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist /Library/LaunchDaemons
- ui_msg "###########################################################"
- ui_msg "# A startup item has been generated that will aid in"
- ui_msg "# starting logwatch with launchd. It is disabled"
- ui_msg "# by default. Execute the following command to start it,"
- ui_msg "# and to cause it to launch at startup:"
- ui_msg "#"
- ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.macports.logwatch.plist"
- ui_msg "###########################################################"
+ ln -s ${prefix}/share/${name}/scripts/logwatch.pl ${prefix}/bin/logwatch
}
+notes "
+A startup item has been generated that will aid in
+starting logwatch with launchd. It is disabled
+by default. Execute the following command to start it,
+and to cause it to launch at startup:
+
+sudo launchctl load -w /Library/LaunchDaemons/org.macports.logwatch.plist
+"
+
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141005/4f229214/attachment.html>
More information about the macports-changes
mailing list