Subject: DESTDIR support and *_PERMS variables
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <k.heinz.apr.sieben@kh-22.de>
List: tech-pkg
Date: 04/15/2007 19:17:20
Hi,

in order to enable DESTDIR support, installed files get installed with
SHAREOWN and SHAREGRP set to UNPRIVILEGED_USER and UNPRIVILEGED_GROUP,
respectively. This applies to all other *OWN and *GRP variables as well,
see mk/unprivileged.mk.

I just noticed that there is at least one place where we encode
ownership, at the end of +INSTALL, +DIRS, +FILES and +PERMS files if the
package Makefile uses variables like OWN_DIRS_PERMS:

  ...
  # FILE: /etc/rc.d/spamd cr share/examples/rc.d/spamd 0755
  # FILE: etc/spamassassin/init.pre c share/examples/spamassassin/init.pre 0644
  # FILE: etc/spamassassin/v310.pre c share/examples/spamassassin/v310.pre 0644
  # FILE: etc/spamassassin/v312.pre c share/examples/spamassassin/v312.pre 0644
  # FILE: etc/spamassassin/v320.pre c share/examples/spamassassin/v320.pre 0644
  # FILE: etc/spamassassin/local.cf c share/examples/spamassassin/local.cf 0644
  # FILE: etc/spamassassin/user_prefs.template c
  # share/spamassassin/user_prefs.template 0644
  # DIR: etc/spamassassin m 755 root wheel
  # DIR: /etc/rc.d m
  # DIR: /var/spamassassin mo
  # DIR: etc/spamassassin/sa-update-keys mo 0700 heinz heinz 
                                                 ^^^^^^^^^^^
Is this a known problem?

ciao
     Klaus