[41898] trunk/dports/gis

Frank Schima macsforever2000 at macports.org
Tue Nov 11 19:53:22 PST 2008


Hi Ryan,


On Nov 11, 2008, at 8:39 PM, Ryan Schmidt wrote:

> On Nov 11, 2008, at 21:02, macsforever2000 at macports.org 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...

Excellent idea! I will be happy to implement this, however since  
mbarchfe agreed to be maintainer for the mapserver port, he should  
first approve this change.

mbarchfe, just let me know. Otherwise in 3 days I will implement this  
according to the maintainer timeout rules.


Cheers!
Frank



More information about the macports-dev mailing list