Add files from parent branch HEAD:
[pkgsrc.git] / bootstrap / README.OpenBSD
1 $NetBSD: README.OpenBSD,v 1.2 2004/07/31 04:07:03 xtraeme Exp $
2
3 Please read the general README file as well.
4
5 Care should be taken so that the tools that this kit installs do not conflict
6 with the OpenBSD userland tools. There are several steps:
7
8 1. OpenBSD stores its ports pkg database in /var/db/pkg. It is therefore
9 recommended that you choose a different location (e.g. /usr/pkgdb) by
10 using the --pkgdbdir option to the bootstrap script.
11
12 2. If you do not intend to use the OpenBSD ports tools, it's probably a
13 good idea to move them out of the way to avoid confusion, e.g.:
14         cd /usr/sbin
15         mv pkg_add pkg_add.orig
16         mv pkg_create pkg_create.orig
17         mv pkg_delete pkg_delete.orig
18         mv pkg_info pkg_info.orig
19
20 3. An example /etc/mk.conf file will be placed in mk.conf.example file
21 when you use the bootstrap script. OpenBSD's make program uses /etc/mk.conf
22 as well. You can work around this by enclosing all the pkgsrc specific parts
23 of the mk.conf file with:
24
25 .ifdef BSD_PKG_MK
26 # Pkgsrc stuff, e.g. insert mk.conf.example or similar here
27 .else
28 # OpenBSD stuff
29 .endif
30
31 bootstrap-pkgsrc has been tested on OpenBSD 3.2 and 3.5 (i386). Some testing has
32 been done on 3.0 as well.