[127197] trunk/dports/sysutils/clamav-server/Portfile
pixilla at macports.org
pixilla at macports.org
Wed Oct 22 12:58:32 PDT 2014
Revision: 127197
https://trac.macports.org/changeset/127197
Author: pixilla at macports.org
Date: 2014-10-22 12:58:32 -0700 (Wed, 22 Oct 2014)
Log Message:
-----------
sysutils/clamav-server:
- Update version to 0.98.4.
- Add conf files on activate if they do not exist. Closes #35113
- White space edits to notes.
Modified Paths:
--------------
trunk/dports/sysutils/clamav-server/Portfile
Modified: trunk/dports/sysutils/clamav-server/Portfile
===================================================================
--- trunk/dports/sysutils/clamav-server/Portfile 2014-10-22 19:35:51 UTC (rev 127196)
+++ trunk/dports/sysutils/clamav-server/Portfile 2014-10-22 19:58:32 UTC (rev 127197)
@@ -1,3 +1,4 @@
+# -*- 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
@@ -3,5 +4,5 @@
name clamav-server
-version 0.97.6
+version 0.98.4
homepage http://www.clamav.net/
categories sysutils
@@ -59,43 +60,61 @@
${destroot}${runPath}
}
-notes "******************************************************
-* To configure clamd and freshclam look for the following files
-* ${prefix}/etc/clamd.conf
-* ${prefix}/etc/freshclam.conf
-**
-* If these files do not exist copy do the following to copy these files into place
-cp ${prefix}/etc/example-clamd.conf ${prefix}/etc/clamd.conf
-cp ${prefix}/etc/example-freshclam.conf ${prefix}/etc/freshclam.conf
-**
-* Alter/Add the following lines to your ${prefix}/etc/clamd.conf
-* Comment out 'Example' near the top like so '#Example'
-* LogFile ${logPath}/clamd.log
-* PidFile ${runPath}/clamd.pid
-* LocalSocket ${runPath}/clamd.socket
-* Foreground yes
-**
-* Alter/Add the following lines to your ${prefix}/etc/freshclam.conf
-* Comment out 'Example' near the top like so '#Example'
-* UpdateLogFile ${logPath}/freshclam.log
-* PidFile ${runPath}/freshclam.pid
-* NotifyClamd ${prefix}/etc/clamd.conf
-**
-* Two launchd startup items have been installed
-**
-* To load clamd and freshclam do the following
-launchctl load -w /Library/LaunchDaemons/org.macports.clamd.plist
-launchctl load -w /Library/LaunchDaemons/org.macports.freshclam.plist
-**
-* To unload clamd and freshclam do the following
-launchctl unload -w /Library/LaunchDaemons/org.macports.clamd.plist
-launchctl unload -w /Library/LaunchDaemons/org.macports.freshclam.plist
-**
-* To try things out do
-freshclam
-* If all is well you should see your clamav database being updated
-******************************************************"
+post-activate {
+ if {![file exists ${prefix}/etc/clamd.conf]} {
+ copy ${prefix}/etc/clamd.conf.sample \
+ ${prefix}/etc/clamd.conf
+ reinplace "s,#Foreground,Foreground," \
+ ${prefix}/etc/clamd.conf
+ }
+ if {![file exists ${prefix}/etc/freshclam.conf]} {
+ copy ${prefix}/etc/freshclam.conf.sample \
+ ${prefix}/etc/freshclam.conf
+ reinplace "s,#Foreground,Foreground," \
+ ${prefix}/etc/freshclam.conf
+ }
+}
+notes "
+To configure clamd and freshclam look for the following files:
+ ${prefix}/etc/clamd.conf
+ ${prefix}/etc/freshclam.conf
+
+If these files do not exist you can copy the sample conf files into place:
+ sudo cp ${prefix}/etc/clamd.conf.sample ${prefix}/etc/clamd.conf
+ sudo cp ${prefix}/etc/freshclam.conf.sample ${prefix}/etc/freshclam.conf
+
+Edit ${prefix}/etc/clamd.conf to your liking, example:
+# Comment out 'Example' near the top if it exists
+ #Example
+ LogFile ${logPath}/clamd.log
+ PidFile ${runPath}/clamd.pid
+ LocalSocket ${runPath}/clamd.socket
+ Foreground yes
+
+Edit ${prefix}/etc/freshclam.conf to your liking, example:
+# Comment out 'Example' near the top if it exists
+ #Example
+ UpdateLogFile ${logPath}/freshclam.log
+ PidFile ${runPath}/freshclam.pid
+ NotifyClamd ${prefix}/etc/clamd.conf
+
+Two launchd startup items have been installed.
+
+To load clamd and freshclam do the following:
+ sudo launchctl load -w /Library/LaunchDaemons/org.macports.clamd.plist
+ sudo launchctl load -w /Library/LaunchDaemons/org.macports.freshclam.plist
+
+To unload clamd and freshclam do the following:
+ sudo launchctl unload -w /Library/LaunchDaemons/org.macports.clamd.plist
+ sudo launchctl unload -w /Library/LaunchDaemons/org.macports.freshclam.plist
+
+To try things out do
+ sudo freshclam
+
+If all is well you should see your clamav database being updated
+"
+
livecheck.type regex
livecheck.url http://www.clamav.net/lang/en/download/sources/
livecheck.regex "clamav-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141022/d8d6a0f8/attachment.html>
More information about the macports-changes
mailing list