Subject: Re: Package Paths Proposal v2
To: None <>
From: Todd Vierling <>
List: tech-pkg
Date: 12/17/1998 08:25:15
On Wed, 16 Dec 1998, Greg A. Woods wrote:

: > Ok. This, to my mind, blows requirement three, since you're now
: > given no way to separate the stuff the package system installs in
: > etc and var from the /etc and /var directories, but if you don't
: > have a problem with this, I don't either.
: I'm not opposed to making it trivial to share $PREFIX, though I would
: like to have an option that puts things in $PREFIX/etc and possibly even
: in $PREFIX/var too for those cases where I want to have different
: versions of the same packages installed on the same machine (though not
: necessarily all installed using pkg_add, I mean a "system" version, a
: hand-crafted version, and a "pkg" version).

So you're backing out on your earlier argument and you want the shareability

There is NO WAY to do this cleanly and uniformly for all of pkgsrc unless
you want to do the work to keep everything up to date.

We choose a path, and that's it.  Symlink whatever you want to share

: > 2. Packages are set up to place `fresh' or `example' etc and var
: > files in /usr/pkg/share/examples/<pkgname>/{etc|var}. Nothing is
: > placed in /etc or /var.
: Is it possible to rename these files to <config>.old when a pkg_add
: simply "upgrades" a package too?

pkg_add doesn't do "upgrades"--yet.

Didn't you read the rest of the proposal?  Like this part?:

: > 5. pkg_delete, when run, does not remove /usr/pkg/share/examples/<pkgname>,
: > but instead renames it to <pkgname>.old. This is so that one can
: > diff the files after uninstalling one version and installing a new one.
: Does pkg_delete remove the /etc (or $PREFIX/etc) files associcated with
: a package too?  (I think it should.)

Hell no, and it shouldn't by default.  This may be plausible for an
*option*, but I don't want it to delete httpd.conf when I'm deleting Apache
to update it.

-- Todd Vierling (Personal; Bus.