xref: /netbsd-src/external/bsd/am-utils/dist/README.osx (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1Here some unconfirmed instructions for how to setup Amd on a MAC OS-X
2machine.  Please direct all comments about this information, as well fixes,
3updates, and corrections to the am-utils mailing list (see
4www.am-utils.org).
5
6Thanks,
7Erez.
8
9--cut--here----cut--here----cut--here----cut--here----cut--here----cut--here--
10
11
12Date: Fri, 28 Jan 2005 06:53:50 -0800
13From: Kevin Layer
14
15The stock amd didn't work for us in Mac OS X 10.3.
16Here's how we installed am-utils-6.1-20031025:
17
18./configure --prefix=/usr
19make
20make install
21
22Create /System/Library/StartupItems/AMD with the files:
23
24AMD
25Resources/	-- copy from other directories in ..
26StartupParameters.plist
27
28Then, make sure that AMDSERVER=-YES- is added to /etc/hostconfig.
29
30******************* the file AMD:
31
32#!/bin/sh
33
34##
35# Start AMD
36##
37
38. /etc/rc.common
39
40if [ "${AMDSERVER:=-NO-}" = "-YES-" ]; then
41    ConsoleMessage "Starting AMD server"
42
43    if [ ! -f /etc/amd.conf -a -r /etc/amd.conf.template ]; then
44        cp /etc/amd.conf.template /etc/amd.conf
45    fi
46    if [ ! -f /etc/amd.map -a -r /etc/amd.map.template ]; then
47        cp /etc/amd.map.template /etc/amd.map
48    fi
49    /usr/sbin/amd
50fi
51
52******************* the file StartupParameters.plist:
53
54{
55  Description     = "AMD server";
56  Provides        = ("AMD");
57  Requires        = ("Resolver");
58  OrderPreference = "None";
59  Messages =
60  {
61    start = "Starting AMD server";
62    stop  = "Stopping AMD server";
63  };
64}
65
66*******************
67
68With the beta's of 10.4 (64-bit) we're having issues with realpath()
69and amd mounted directories, but hopefully this is just a bug that
70they'll fix.
71
72--
73Kevin Layer                     http://www.franz.com/
74
75