[46644] trunk/dports/security
snc at macports.org
snc at macports.org
Mon Feb 9 07:30:26 PST 2009
Revision: 46644
http://trac.macports.org/changeset/46644
Author: snc at macports.org
Date: 2009-02-09 07:30:24 -0800 (Mon, 09 Feb 2009)
Log Message:
-----------
create logwatch, ticket #18021
Added Paths:
-----------
trunk/dports/security/logwatch/
trunk/dports/security/logwatch/Portfile
trunk/dports/security/logwatch/files/
trunk/dports/security/logwatch/files/org.macports.logwatch.plist
Added: trunk/dports/security/logwatch/Portfile
===================================================================
--- trunk/dports/security/logwatch/Portfile (rev 0)
+++ trunk/dports/security/logwatch/Portfile 2009-02-09 15:30:24 UTC (rev 46644)
@@ -0,0 +1,64 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name logwatch
+version 7.3.6
+distname logwatch-${version}
+categories security
+maintainers lassi.tuura at cern.ch
+description system log analyzer and reporter
+long_description \
+ Logwatch is a customizable log analysis system. Logwatch \
+ parses through your system's logs for a given period of \
+ time and creates a report analyzing areas that you \
+ specify, in as much detail as you require. Logwatch is \
+ easy to use and will work right out of the package on most \
+ systems.
+
+homepage http://www.logwatch.org
+master_sites ftp://ftp.kaybee.org/pub/linux
+platforms darwin
+checksums md5 937d982006b2a76a83edfcfd2e5a9d7d
+
+use_configure no
+build { }
+destroot {
+
+ 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
+ reinplace s|messages|system|g ${worksrcpath}/conf/logfiles/messages.conf
+
+ file mkdir ${destroot}${prefix}/etc/${name}/scripts
+ file mkdir ${destroot}${prefix}/etc/${name}/conf/logfiles
+ file mkdir ${destroot}${prefix}/etc/${name}/conf/services
+ file mkdir ${destroot}${prefix}/share/${name}/dist.conf/logfiles
+ file mkdir ${destroot}${prefix}/var/cache/${name}
+ touch ${destroot}${prefix}/var/cache/.turd
+
+ file copy ${worksrcpath}/conf ${destroot}${prefix}/share/${name}/default.conf
+ 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 delete /Library/LaunchDaemons/org.macports.${name}.plist
+ file mkdir ${destroot}${prefix}/etc/LaunchDaemons/${name}
+ file copy files/org.macports.${name}.plist ${destroot}${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist
+ reinplace s|@PREFIX@|${prefix}|g ${destroot}${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist
+}
+
+post-destroot {
+ 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 dnsmasq with launcd. 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.dnsmasq.plist"
+ ui_msg "###########################################################"
+}
Property changes on: trunk/dports/security/logwatch/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/security/logwatch/files/org.macports.logwatch.plist
===================================================================
--- trunk/dports/security/logwatch/files/org.macports.logwatch.plist (rev 0)
+++ trunk/dports/security/logwatch/files/org.macports.logwatch.plist 2009-02-09 15:30:24 UTC (rev 46644)
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE plist PUBLIC '-//Apple Computer//DTD PLIST 1.0//EN' 'http://www.apple.com/DTDs/PropertyList-1.0.dtd'>
+<plist version='1.0'>
+<dict>
+ <key>Label</key>
+ <string>org.macports.logwatch</string>
+ <key>LowPriorityIO</key>
+ <true/>
+ <key>Nice</key>
+ <integer>1</integer>
+ <key>ProgramArguments</key>
+ <array>
+ <string>@PREFIX@/bin/logwatch</string>
+ <string>--mailto</string>
+ <string>root</string>
+ </array>
+ <key>ServiceDescription</key>
+ <string>Periodic run of logwatch</string>
+ <key>StartCalendarInterval</key>
+ <dict>
+ <key>Hour</key>
+ <integer>1</integer>
+ <key>Minute</key>
+ <integer>12</integer>
+ </dict>
+</dict>
+</plist>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090209/7170e045/attachment.html>
More information about the macports-changes
mailing list