Bug 42747

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   

Description Joao Rocha Braga Filho 2002-09-13 17:50:02 UTC
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.
Comment 1 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-09-16 19:04:50 UTC
Responsible Changed
From-To: freebsd-ports->adrian

over to maintainer
Comment 2 Adrian Chadd freebsd_committer freebsd_triage 2003-01-31 09:00:32 UTC
State Changed
From-To: open->closed


Applied and verified patch.