mxcl/homebrew — pull request #15194 by nickstenning (2012-09-29 12:47:52+00:00)
Title: nginx: use /tmp for temp dirs rather than cellar

By default, nginx will use $PREFIX as the root location of its temporary
directories. If you modify nginx.conf to run as root, this results in
root-owned (or rather, 'nobody'-owned) directories in the nginx cellar root,
preventing you from running "brew uninstall", "brew cleanup" as a regular
user.

This commit adds options to nginx's configure that cause it to put its
temporary directories in /tmp. I don't believe there are any permissions
concerns here, as nginx manages ownership of these directories itself.