tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

install and metalog



I have known for a long time -- perhaps incorrectly -- that during the
install stage, the install program is called with -M and a metalog and
that pkg_create then reads that, so that an unpriv package build that
e.g. installs a mode 4755 user=root file ends up with that in the
package.  Just like in NetBSD base.

I have just looked in pkgsrc mk/ and pkgtools/cwrappers, perhaps not
well enough, and I can't find this.

So:

  Am I right that the package install phase uses metalog, in a way that
  works with random upstream install invocations?

  Where is the code that make this work?

  If I'm wrong, how does 'make package' as non-root end up with a
  correct package?  Do we really have to set SPECIAL_PERMS on every
  file that isn't supposed to be root/wheel, or is supposed to have any
  mode bits other than ugo?
  
 


Home | Main Index | Thread Index | Old Index