tech-pkg archive

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

Re: Making syspkgs and makefs play nice together

On Mon, 11 May 2009, Joerg Sonnenberger wrote:
> @pkgdir is in -current and will be pulled up to netbsd-5 soon. @exec
> should otherwise be replaced by explicit scripts. If there are any
> non-directory/non-file entries, please report this as well, I might be
> inclined to add support for them at some point as well.

At present, syspkgs contain the following for directories:

    * the directory itself in the tarball with correct ownership
      and mode;
    * "@exec install" lines in +CONTENTS to create the directory
      with the correct ownership and mode.  This was added to work around
      a pkg_add bug ni which it ignored permissions from the tarball's
      entry for the directory itself.
    * "@dirrm" lines in +CONTENTS to remove the directory.

Current versions of pkg_add seem to be unhappy about the presence of the
directory itself in the tarball without a corresponding entry in +CONTENTS.
I haven't tested just adding the dir name to +CONTENTS.

How do you suggest I use @pkgdir to create directories with the correct
ownership and permissions?

--apb (Alan Barrett)

Home | Main Index | Thread Index | Old Index