Subject: Re: OWN_DIRS_PERMS gives wrong perms
To: None <tech-pkg@netbsd.org>
From: Amitai Schlair <schmonz@schmonz.com>
List: tech-pkg
Date: 05/09/2007 21:28:39
On May 7, 2007, at 9:27 AM, Jeremy C. Reed wrote:

> 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?

Not sure what to look for, but here are the lines from the end of $ 
{WRKDIR}/.pkginstall/INSTALL:

# FILE: etc/httpd/roundcube.conf c share/examples/roundcube/ 
roundcube.conf 0644
# FILE: etc/httpd/roundcube/ c share/examples/roundcube/.htaccess 0644
# FILE: var/log/roundcube/ c share/examples/roundcube/.htaccess 0644
# FILE: var/tmp/roundcube/ c share/examples/roundcube/.htaccess 0644
# FILE: etc/httpd/roundcube/db.inc.php c share/examples/roundcube/ 
db.inc.php 0440 www www
# FILE: etc/httpd/roundcube/main.inc.php c share/examples/roundcube/ 
main.inc.php 0440 www www
# DIR: etc/httpd m 755 root wheel
# DIR: etc/httpd/roundcube mo
# DIR: var/log/roundcube mo 0755 www www
# DIR: var/tmp/roundcube mo 0755 www www