[116129] trunk/dports/mail/pflogsumm/Portfile

jmr at macports.org jmr at macports.org
Sat Jan 18 20:48:30 PST 2014


Revision: 116129
          https://trac.macports.org/changeset/116129
Author:   jmr at macports.org
Date:     2014-01-18 20:48:30 -0800 (Sat, 18 Jan 2014)
Log Message:
-----------
pflogsumm: fix destroot failure when /var/log/mail.log does not exist

Modified Paths:
--------------
    trunk/dports/mail/pflogsumm/Portfile

Modified: trunk/dports/mail/pflogsumm/Portfile
===================================================================
--- trunk/dports/mail/pflogsumm/Portfile	2014-01-19 04:43:31 UTC (rev 116128)
+++ trunk/dports/mail/pflogsumm/Portfile	2014-01-19 04:48:30 UTC (rev 116129)
@@ -100,7 +100,11 @@
 	xinstall -m 0644 ${worksrcpath}/${name}-faq.txt \
 		${destroot}${prefix}/share/doc/${name}
 	xinstall -d -m 0755 ${destroot}${cgi_path}
-	set maillog_group [file attributes ${maillog_path} -group]
+	if {[file exists ${maillog_path}]} {
+	    set maillog_group [file attributes ${maillog_path} -group]
+	} else {
+	    set maillog_group wheel
+	}
 	xinstall -m 02755 -g ${maillog_group} ${worksrcpath}/${name}.cgi \
 		${destroot}${cgi_path}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140118/c6cb89ea/attachment-0001.html>


More information about the macports-changes mailing list