summaryrefslogtreecommitdiff
path: root/bootstrap/README.Darwin
blob: 1aeb9b329752ad3f1022349f2de06c7f3b47be9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: README.Darwin,v 1.1.1.1 2004/03/11 13:03:58 grant Exp $

If you are using Mac OS X:
Before you start, you will need to download and install the Mac OS X Developer
Tools from Apple's Developer Connection.  See http://developer.apple.com/macosx/
for details.  Also, make sure you install X11 for Mac OS X and the X11 SDK from
http://www.apple.com/macosx/x11/download/ if you intend to build packages
that use the X11 Window System.

Terse instructions:

$ ./ufsdiskimage create ~/Documents/NetBSD 512  # megabytes - season to taste
$ ./ufsdiskimage mount ~/Documents/NetBSD
$ sudo chown `id -u`:`id -g` /Volumes/NetBSD
$ curl -O \
    ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/pkgsrc.tar.gz
$ tar -C /Volumes/NetBSD -zxvf pkgsrc.tar.gz && rm pkgsrc.tar.gz
$ sudo ./bootstrap \
    --prefix=/Volumes/NetBSD/pkg \
    --pkgdbdir=/Volumes/NetBSD/pkgdb \
    --pkgsrcdir=/Volumes/NetBSD/pkgsrc

Note: if you already have a UFS partition, or have a spare partition[*]
that you can format as UFS, use that instead of the UFS disk image.
It'll be somewhat faster and will mount automatically at boot time.

(Why can't you just use the HFS+ filesystem you've already got?
Because pkgsrc currently requires the underlying filesystem to be
case-sensitive, and HFS+ isn't.)

[*] - If the partition you want to convert to UFS from HFS+ under
Mac OS X is on the boot disk, then the disk tools won't do anything
with it.  See "README.MacOSX".