pkgsrc-Users archive

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

Re: HEADSUP: bootstrap PKG_DBDIR default changed



On 11/20/16 04:42, Reinoud Zandijk wrote:
Hi Jonathan,

On Tue, Nov 15, 2016 at 11:26:45AM +0000, Jonathan Perkin wrote:
Modified Files:
	pkgsrc/bootstrap: README README.Bitrig README.FreeBSD README.Interix
	    README.MirBSD README.OpenBSD bootstrap

Log Message:
Change the default PKG_DBDIR to be ${LOCALBASE}/pkgdb.  Resolves issues on
other BSDs which already use /var/db/pkg for the native package manager.
...
  as root:
@@ -17,13 +17,11 @@ as root:
  The defaults for the arguments are as follows:
--prefix /usr/pkg
-	--pkgdbdir	/var/db/pkg
+	--pkgdbdir	/usr/pkg/pkgdb
Chosing this directory has side effects. Some installations share /usr between
multiple machines. Having the DB next to the packages is thus a good bonus. As
for naming and directory conventions, wouldn't /usr/pkg/var/db be a better
place?

Reinoud

I explored this issue when developing auto-pkgsrc-setup (http://acadix.biz/pkgsrc.php) and eventually settled on a default location of $LOCALBASE/var/db (LOCALBASE is typically /usr/pkg[-snapshot] or ~/Pkgsrc/pkg[-snapshot]). This cleanly supports having multiple pkgsrc trees on the same machine and otherwise follows naming conventions.

Cheers,

    JB

--
Earth is a beta site.



Home | Main Index | Thread Index | Old Index