[59221] trunk/dports/sysutils/clamav/Portfile
dluke at macports.org
dluke at macports.org
Sun Oct 11 16:19:40 PDT 2009
Revision: 59221
http://trac.macports.org/changeset/59221
Author: dluke at macports.org
Date: 2009-10-11 16:19:32 -0700 (Sun, 11 Oct 2009)
Log Message:
-----------
Don't clobber clamav-milter conf file (and use file rename instead of system mv)
Modified Paths:
--------------
trunk/dports/sysutils/clamav/Portfile
Modified: trunk/dports/sysutils/clamav/Portfile
===================================================================
--- trunk/dports/sysutils/clamav/Portfile 2009-10-11 21:54:12 UTC (rev 59220)
+++ trunk/dports/sysutils/clamav/Portfile 2009-10-11 23:19:32 UTC (rev 59221)
@@ -4,7 +4,7 @@
name clamav
version 0.95.2
-revision 1
+revision 2
categories sysutils
maintainers geeklair.net:dluke
description clamav antivirus software
@@ -39,12 +39,14 @@
}
post-destroot {
- system "cd '${destroot}${prefix}/etc/'
- mv freshclam.conf example-freshclam.conf
- mv clamd.conf example-clamd.conf"
+ file rename "${destroot}${prefix}/etc/freshclam.conf" "${destroot}${prefix}/etc/example-freshclam.conf"
+ file rename "${destroot}${prefix}/etc/clamd.conf" "${destroot}${prefix}/etc/example-clamd.conf"
}
variant clamav_milter description {build with libmilter support} {
depends_lib-append port:libmilter
configure.args-append --enable-milter
+ post-destroot {
+ file rename "${destroot}${prefix}/etc/clamv-milter.conf" "${destroot}${prefix}/etc/example-clamav-milter.conf"
}
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091011/f13f4472/attachment.html>
More information about the macports-changes
mailing list