[58202] trunk/dports/www/spawn-fcgi/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Sep 23 18:20:59 PDT 2009


Revision: 58202
          http://trac.macports.org/changeset/58202
Author:   ryandesign at macports.org
Date:     2009-09-23 18:20:59 -0700 (Wed, 23 Sep 2009)
Log Message:
-----------
spawn-fcgi: advise the user to deactivate their existing lighttpd <= 1.4.22 before installing this port; see #21586

Modified Paths:
--------------
    trunk/dports/www/spawn-fcgi/Portfile

Modified: trunk/dports/www/spawn-fcgi/Portfile
===================================================================
--- trunk/dports/www/spawn-fcgi/Portfile	2009-09-24 01:07:39 UTC (rev 58201)
+++ trunk/dports/www/spawn-fcgi/Portfile	2009-09-24 01:20:59 UTC (rev 58202)
@@ -21,6 +21,20 @@
 
 use_parallel_build  yes
 
+pre-extract {
+    # As of version 1.4.23, the lighttpd port depends on the spawn-fcgi port,
+    # but lighttpd 1.4.22 and earlier provided the same files spawn-fcgi now
+    # installs. If lighttpd 1.4.22 or earlier is installed and the user \
+    # upgrades to 1.4.23, spawn-fcgi will be installed first, which would cause
+    # a conflict on these files at activation time. Therefore tell the user to
+    # first deactivate their old lighttpd.
+    # Note: lighttpd.1 is only installed by lighttpd 1.4.22 and earlier. In
+    # lighttpd 1.4.23 the manpage was moved to lighttpd.8.
+    if {[file exists ${prefix}/share/man/man1/lighttpd.1.gz]} {
+        return -code error "Please deactivate your currently-installed lighttpd port, then try again"
+    }
+}
+
 post-destroot {
     set docdir ${destroot}${prefix}/share/doc/${name}
     xinstall -d ${docdir}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090923/57b26478/attachment.html>


More information about the macports-changes mailing list