[107214] trunk/dports/www/nginx/Portfile
cal at macports.org
cal at macports.org
Fri Jun 21 15:15:43 PDT 2013
Revision: 107214
https://trac.macports.org/changeset/107214
Author: cal at macports.org
Date: 2013-06-21 15:15:43 -0700 (Fri, 21 Jun 2013)
Log Message:
-----------
nginx: do not install default configuration twice, closes #39370
Modified Paths:
--------------
trunk/dports/www/nginx/Portfile
Modified: trunk/dports/www/nginx/Portfile
===================================================================
--- trunk/dports/www/nginx/Portfile 2013-06-21 22:13:21 UTC (rev 107213)
+++ trunk/dports/www/nginx/Portfile 2013-06-21 22:15:43 UTC (rev 107214)
@@ -5,6 +5,7 @@
name nginx
version 1.4.1
+revision 1
categories www mail
platforms darwin
license BSD
@@ -67,11 +68,9 @@
post-destroot {
foreach conf ${nginx_all_confs} {
- set conf_target "${destroot}${nginx_confdir}/${conf}.example"
- if {![file exists "${conf_target}"]} {
- file rename "${destroot}${nginx_confdir}/${conf}" "${destroot}${nginx_confdir}/${conf}.example"
- } else {
- file delete "${destroot}${nginx_confdir}/${conf}"
+ set conf_path "${destroot}${nginx_confdir}/${conf}"
+ if {[file exists ${conf_path}]} {
+ file delete ${conf_path}
}
}
file mkdir ${destroot}${prefix}/share/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130621/56deb339/attachment.html>
More information about the macports-changes
mailing list