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.
This commit is contained in:
parent
2a65d41083
commit
14882b76b8
7 changed files with 21 additions and 41 deletions
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: README,v 1.12 2012/01/11 01:15:17 riz Exp $
|
||||
$NetBSD: README,v 1.13 2016/11/15 11:19:09 jperkin Exp $
|
||||
|
||||
To try to get pkgsrc working on your system, please try the following
|
||||
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
|
||||
--sysconfdir /usr/pkg/etc
|
||||
--varbase /var
|
||||
--workdir work
|
||||
|
||||
It is perfectly acceptable to place 'pkgdbdir' under 'prefix'.
|
||||
|
||||
The working directory will be created if it doesn't exist and has to be
|
||||
writable by the user executing ./bootstrap.
|
||||
|
||||
|
|
|
@ -1,16 +1,11 @@
|
|||
$NetBSD: README.Bitrig,v 1.1 2015/06/04 15:48:45 sevan Exp $
|
||||
$NetBSD: README.Bitrig,v 1.2 2016/11/15 11:19:09 jperkin Exp $
|
||||
|
||||
Please read the general README file as well.
|
||||
|
||||
Care should be taken so that the tools that this kit installs do not conflict
|
||||
with the Bitrig userland tools. There are several steps:
|
||||
|
||||
1. Bitrig stores its ports pkg database in /var/db/pkg. Therefore, you must
|
||||
choose a different location (e.g. /var/db/pkgsrc) by using the --pkgdbdir
|
||||
option to the bootstrap script. If you don't do this, installing pkgsrc
|
||||
packages will result in numerous PLIST errors upon install.
|
||||
|
||||
2. If you do not intend to use the Bitrig ports tools, it's probably a
|
||||
1. If you do not intend to use the Bitrig ports tools, it's probably a
|
||||
good idea to move them out of the way to avoid confusion, e.g.:
|
||||
cd /usr/sbin
|
||||
mv pkg_add pkg_add.orig
|
||||
|
@ -18,7 +13,7 @@ good idea to move them out of the way to avoid confusion, e.g.:
|
|||
mv pkg_delete pkg_delete.orig
|
||||
mv pkg_info pkg_info.orig
|
||||
|
||||
3. The bootstrap script will create an example mk.conf file located in
|
||||
2. The bootstrap script will create an example mk.conf file located in
|
||||
pkgsrc/bootstrap/work/mk.conf.example. It contains the settings you provided to
|
||||
bootstrap. Copy it to your $sysconfdir directory. If $sysconfdir/mk.conf doesn't
|
||||
exist, the example is copied into place.
|
||||
|
|
|
@ -1,15 +1,11 @@
|
|||
$NetBSD: README.FreeBSD,v 1.6 2013/12/16 10:43:09 asau Exp $
|
||||
$NetBSD: README.FreeBSD,v 1.7 2016/11/15 11:19:09 jperkin Exp $
|
||||
|
||||
Please read the general README file as well.
|
||||
|
||||
Care should be taken so that the tools that this kit installs do not conflict
|
||||
with the FreeBSD userland tools. There are several steps:
|
||||
with the FreeBSD userland tools.
|
||||
|
||||
1. FreeBSD stores its ports pkg database in /var/db/pkg. It is therefore
|
||||
recommended that you choose a different location (e.g. /usr/pkg/pkgdb) by
|
||||
using the --pkgdbdir option to the bootstrap script.
|
||||
|
||||
2. If you do not intend to use the FreeBSD ports tools, it may be a
|
||||
If you do not intend to use the FreeBSD ports tools, it may be a
|
||||
good idea to move them out of the way to avoid confusion, e.g.:
|
||||
cd /usr/sbin
|
||||
mv pkg_add pkg_add.orig
|
||||
|
@ -19,6 +15,5 @@ good idea to move them out of the way to avoid confusion, e.g.:
|
|||
|
||||
Alternatively, take care to get pkgsrc tools first in PATH.
|
||||
|
||||
|
||||
bootstrap-pkgsrc has been tested on FreeBSD 4.x and 5.x (i386).
|
||||
pkgsrc works well on FreeBSD 6.2-6.4, 7.1-7.3 (i386), 9.0-9.1 (amd64).
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: README.Interix,v 1.17 2016/07/10 01:25:16 sevan Exp $
|
||||
$NetBSD: README.Interix,v 1.18 2016/11/15 11:19:09 jperkin Exp $
|
||||
|
||||
Interix is a POSIX-compatible subsystem for the Windows NT kernel, providing a
|
||||
Unix-like environment with a tighter kernel integration than available with
|
||||
|
@ -95,7 +95,7 @@ requirement of "root".
|
|||
|
||||
The package manager should use a umask of 002. "make install" will automatically
|
||||
complain if this is not the case. This ensures that directories written in
|
||||
/var/db/pkg are Administrators-group writeable.
|
||||
/usr/pkg/pkgdb are Administrators-group writeable.
|
||||
|
||||
The popular Interix binary packages from http://www.interopsystems.com/ use an
|
||||
older version of pkgsrc's pkg_* tools. Ideally, these should NOT be used in
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: README.MirBSD,v 1.2 2016/07/03 14:47:05 sevan Exp $
|
||||
$NetBSD: README.MirBSD,v 1.3 2016/11/15 11:19:09 jperkin Exp $
|
||||
|
||||
Please read the general README file as well.
|
||||
|
||||
|
@ -11,16 +11,12 @@ be used to gain root privileges.
|
|||
MirPorts and pkgsrc can be installed in parallel. The MirPorts framework
|
||||
uses /usr/mpkg as its default prefix and /usr/mpkg/db/pkg as its package
|
||||
database directory. Thus, its paths do not clash with the default
|
||||
choices of pkgsrc, which are /usr/pkg and /var/db/pkg respectively. We
|
||||
suggest however that you place the package database for pkgsrc below its
|
||||
prefix, for example by specifying the
|
||||
choices of pkgsrc, which are /usr/pkg and /usr/pkg/pkgdb respectively.
|
||||
|
||||
--pkgdbdir /usr/pkg/db
|
||||
|
||||
option to bootstrap. Please note that the package tools from MirPorts
|
||||
and pkgsrc have the same names (e.g. pkg_add) but are incompatible. This
|
||||
leads to strage behavior when building or installing packages if both
|
||||
frameworks are in your PATH.
|
||||
Please note that the package tools from MirPorts and pkgsrc have the
|
||||
same names (e.g. pkg_add) but are incompatible. This leads to strage
|
||||
behavior when building or installing packages if both frameworks are in
|
||||
your PATH.
|
||||
|
||||
Thus, before you start the bootstrap, you must make sure that
|
||||
/usr/mpkg/bin and /usr/mpkg/sbin are NOT in your PATH if MirPorts is
|
||||
|
|
|
@ -1,15 +1,11 @@
|
|||
$NetBSD: README.OpenBSD,v 1.4 2015/04/05 00:40:07 rodent Exp $
|
||||
$NetBSD: README.OpenBSD,v 1.5 2016/11/15 11:19:09 jperkin Exp $
|
||||
|
||||
Please read the general README file as well.
|
||||
|
||||
Care should be taken so that the tools that this kit installs do not conflict
|
||||
with the OpenBSD userland tools. There are several steps:
|
||||
|
||||
1. OpenBSD stores its ports pkg database in /var/db/pkg. It is therefore
|
||||
recommended that you choose a different location (e.g. /usr/pkgdb) by
|
||||
using the --pkgdbdir option to the bootstrap script.
|
||||
|
||||
2. If you do not intend to use the OpenBSD ports tools, it's probably a
|
||||
1. If you do not intend to use the OpenBSD ports tools, it's probably a
|
||||
good idea to move them out of the way to avoid confusion, e.g.:
|
||||
cd /usr/sbin
|
||||
mv pkg_add pkg_add.orig
|
||||
|
@ -17,7 +13,7 @@ good idea to move them out of the way to avoid confusion, e.g.:
|
|||
mv pkg_delete pkg_delete.orig
|
||||
mv pkg_info pkg_info.orig
|
||||
|
||||
3. The bootstrap script will create an example mk.conf file located in
|
||||
2. The bootstrap script will create an example mk.conf file located in
|
||||
pkgsrc/bootstrap/work/mk.conf.example. It contains the settings you provided to
|
||||
bootstrap. Copy it to your $sysconfdir directory. If $sysconfdir/mk.conf doesn't
|
||||
exist, the example is copied into place.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
|
||||
# $NetBSD: bootstrap,v 1.233 2016/11/01 20:44:22 jperkin Exp $
|
||||
# $NetBSD: bootstrap,v 1.234 2016/11/15 11:19:09 jperkin Exp $
|
||||
#
|
||||
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
|
||||
# All rights reserved.
|
||||
|
@ -487,7 +487,7 @@ elif [ -z "$prefix" -o "$prefix" = "/usr/pkg" ]; then
|
|||
fi
|
||||
|
||||
[ -z "$varbase" ] && varbase=${prefix}/var
|
||||
[ -z "$pkgdbdir" ] && pkgdbdir=${varbase}/db/pkg
|
||||
[ -z "$pkgdbdir" ] && pkgdbdir=${prefix}/pkgdb
|
||||
|
||||
if [ "$prefix" = "/usr" ]; then
|
||||
[ -z "$pkginfodir" ] && pkginfodir=share/info
|
||||
|
|
Loading…
Reference in a new issue