-
-
Save gmcintire/1082956 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Builds Nginx with Passenger support. | |
| # Uses the www/nginx FreeBSD port as the nginx source, also applies | |
| # the FreeBSD port patches and /usr/local/etc/rc.d/nginx rc(8) script. | |
| # | |
| # Enables building Nginx with Passenger from REE for example as the | |
| # www/nginx port with PASSENGER enabled uses system ruby. | |
| # | |
| make -C /usr/ports/www/nginx clean patch apply-slist install-rc-script | |
| source_dir=`ls -d /usr/ports/www/nginx/work/nginx-*` # should be only one | |
| passenger-install-nginx-module --prefix=/usr/local \ | |
| --nginx-source-dir=${source_dir} \ | |
| --extra-configure-flags="--with-cc-opt=\"-I /usr/local/include\" \ | |
| --with-ld-opt=\"-L /usr/local/lib\" \ | |
| --conf-path=/usr/local/etc/nginx/nginx.conf \ | |
| --sbin-path=/usr/local/sbin/nginx \ | |
| --pid-path=/var/run/nginx.pid \ | |
| --error-log-path=/var/log/nginx-error.log \ | |
| --user=www --group=www \ | |
| --http-client-body-temp-path=/var/tmp/nginx/client_body_temp \ | |
| --http-proxy-temp-path=/var/tmp/nginx/proxy_temp \ | |
| --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp \ | |
| --http-log-path=/var/log/nginx-access.log \ | |
| --with-http_addition_module \ | |
| --with-http_gzip_static_module \ | |
| --with-http_ssl_module \ | |
| --with-http_stub_status_module" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment