Ticket #44463: patch-nginx-Portfile.diff
File patch-nginx-Portfile.diff, 2.1 KB (added by jul_bsd@…, 10 years ago) |
---|
-
www/nginx/Portfile
old new 5 5 6 6 name nginx 7 7 version 1.6.0 8 revision 1 8 9 categories www mail 9 10 platforms darwin 10 11 license BSD … … 82 83 ${destroot}${nginx_rundir} 83 84 84 85 post-destroot { 86 xinstall -d ${destroot}${prefix}/share/examples/${name}/ 85 87 foreach conf ${nginx_all_confs} { 86 88 set conf_path "${destroot}${nginx_confdir}/${conf}" 87 89 if {[file exists ${conf_path}]} { 88 90 file delete ${conf_path} 89 91 } 92 if {[file exists ${conf_path}.default]} { 93 move ${conf_path}.default ${destroot}${prefix}/share/examples/${name}/ 94 } 90 95 } 91 96 file mkdir ${destroot}${prefix}/share/nginx 92 97 file rename ${destroot}${prefix}/html ${destroot}${prefix}/share/nginx 93 98 } 94 99 95 startupitem.create yes 100 post-activate { 101 if ![file exists ${prefix}/etc/${name}/nginx.conf ] { 102 copy ${prefix}/share/examples/${name}/nginx.conf.default ${prefix}/etc/${name}/nginx.conf 103 } 104 if ![file exists ${prefix}/etc/${name}/mime.types ] { 105 copy ${prefix}/share/examples/${name}/mime.types.default ${prefix}/etc/${name}/mime.types 106 } 107 if ![file exists ${prefix}/etc/${name}/fastcgi_params ] { 108 copy ${prefix}/share/examples/${name}/fastcgi_params.default ${prefix}/etc/${name}/fastcgi_params 109 } 110 } 111 112 startupitem.create yes 96 113 startupitem.pidfile auto ${nginx_pidfile} 97 114 startupitem.executable ${prefix}/sbin/nginx 98 115 99 116 notes \ 100 "A sample nginx configuration file has been installed in 101 ${nginx_confdir}/nginx.conf.default.\nCopy the configuration to 102 ${nginx_confdir}/nginx.conf\nand adjust it to your needs before starting\ 117 "A sample nginx configuration files hav been installed in 118 ${prefix}/share/examples/${name}/. If no existing files, it has been 119 copied to ${nginx_confdir}.\n 120 Adjust it to your needs before starting\ 103 121 nginx." 104 122 105 123 variant addition description {Append text to pages} {