| Summary: | Squid install changes directory owners. | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Joao Rocha Braga Filho <goffredo> |
| Component: | Individual Port(s) | Assignee: | Adrian Chadd <adrian> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-ports->adrian over to maintainer State Changed From-To: open->closed Applied and verified patch. |
There is a bug in squid install. It try to create, and after chown the logs and the cache diretory. Im my machine I have an user called squid, that owns this directories. Every update I do, I have to "chown squid.squid ~squid/logs ~squid/cache". Fix: My sugestion isto replace this in /usr/ports/www/squid24/Makefile: " ${MKDIR} ${PREFIX}/squid/logs ${CHOWN} nobody:nogroup ${PREFIX}/squid/logs ${MKDIR} ${PREFIX}/squid/cache ${CHOWN} nobody:nogroup ${PREFIX}/squid/cache " By this: " @if [ ! -d ${PREFIX}/squid/logs ]; then \ ${MKDIR} ${PREFIX}/squid/logs; \ ${CHOWN} nobody:nogroup ${PREFIX}/squid/logs; \ fi @if [ ! -d ${PREFIX}/squid/cache ]; then \ ${MKDIR} ${PREFIX}/squid/cache; \ ${CHOWN} nobody:nogroup ${PREFIX}/squid/cache; \ fi " How-To-Repeat: Reinstall squid.