Bug 42747 - Squid install changes directory owners.
Summary: Squid install changes directory owners.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Adrian Chadd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-13 17:50 UTC by Joao Rocha Braga Filho
Modified: 2003-01-31 09:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.