On Nov 11, 2008, at 21:02, [EMAIL PROTECTED] wrote:
+set cgi_path "/Library/WebServer/CGI-Executables/"
+
+# apache macport interop
+if {[ file exists ${prefix}/sbin/httpd]} {
+ set cgi_path "${prefix}/www/cgi-bin/"
+}
It's not good for a port to behave differently depending on what else
the user has installed. A port should behave identically on
everyone's system (modulo such details as OS version and processor
architecture).
Instead, I recommend some variants to let the user select whether
they want to use MacPorts Apache 1, MacPorts Apache 2, or whatever
Apache Apple includes with Mac OS X.
variant apache conflicts apache2 apache_apple description {Use
MacPorts Apache 1} {
depends_run-append port:apache
set cgi_path "${prefix}/www/cgi-bin/"
}
variant apache2 conflicts apache apache_apple description {Use
MacPorts Apache 2} {
depends_run-append port:apache2
set cgi_path "${prefix}/apache2/cgi-bin/"
}
variant apache_apple conflicts apache apache2 description {Use Apple
Apache} {
set cgi_path "/Library/WebServer/CGI-Executables/"
}
if {![variant_isset apache] && ![variant_isset apache2] && !
[variant_isset apache_apple]} {
default_variants +apache2
}
Actually there are also web servers other than Apache -- lighttpd for
example...
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev