[46695] trunk/dports/security/logwatch/Portfile
snc at macports.org
snc at macports.org
Tue Feb 10 12:11:20 PST 2009
Revision: 46695
http://trac.macports.org/changeset/46695
Author: snc at macports.org
Date: 2009-02-10 12:11:18 -0800 (Tue, 10 Feb 2009)
Log Message:
-----------
requested changes from maintainer, ticket #18021
Modified Paths:
--------------
trunk/dports/security/logwatch/Portfile
Modified: trunk/dports/security/logwatch/Portfile
===================================================================
--- trunk/dports/security/logwatch/Portfile 2009-02-10 18:52:14 UTC (rev 46694)
+++ trunk/dports/security/logwatch/Portfile 2009-02-10 20:11:18 UTC (rev 46695)
@@ -4,6 +4,7 @@
PortSystem 1.0
name logwatch
+revision 1
version 7.3.6
distname logwatch-${version}
categories security
@@ -23,20 +24,20 @@
checksums md5 937d982006b2a76a83edfcfd2e5a9d7d
use_configure no
-build { }
-destroot {
-
+build {
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
+}
+destroot.keepdirs ${destroot}${prefix}/var/cache/${name}
+destroot {
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
@@ -45,20 +46,20 @@
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 {
+ 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 dnsmasq with launcd. It is disabled"
+ 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.dnsmasq.plist"
+ ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.macports.logwatch.plist"
ui_msg "###########################################################"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090210/063c7de6/attachment-0001.html>
More information about the macports-changes
mailing list