Subject: Re: OWN_DIRS_PERMS gives wrong perms
To: Amitai Schlair <schmonz@schmonz.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 05/07/2007 08:27:52
On Sun, 6 May 2007, Amitai Schlair wrote:

> I'm working on an update to mail/roundcube. While I'm at it, I'm trying to
> pull a few pkgsrc strings in order to avoid the software modifying ${PREFIX}
> at runtime. For instance, instead of writing logs under
> ${PREFIX}/share/roundcube/logs, I want them to go under
> ${VARBASE}/log/roundcube:
> 
> OWN_DIRS_PERMS+= ${VARBASE}/log/roundcube ${APACHE_USER} ${APACHE_GROUP} 0755
> 
> The directory gets created with the proper owner and group, but mode 0644:
> 
> drw-r--r--   3 www  www  102 May  6 19:24 /var/log/roundcube
> 
> And this is warned about at install time:
> 
> ===========================================================================
> The following directories are used by roundcube-20070502 and
> have the wrong ownership and/or permissions:
> 
>        /var/log/roundcube (m=0755, o=www, g=www)
> 
> ===========================================================================
> 
> Any ideas what I might be doing wrong? Here's my working (which is to say,
> non-working) diff:
> 
> http://netbsd.schmonz.com/patches/roundcube.diff

I couldn't see any problem.

Have a look at the generated +INSTALL script. Any problems in it?

  Jeremy C. Reed