3
# Since Darwin has a completely different layout, this scipt reflects
4
# the locations where Darwin places files.
6
# This script is called by install.sh and uninstall.sh to determine
7
# where the installed binaries and man pages are
9
# First, we set the version number of MaraDNS.
10
# Disabled for 1.0.24 release: We now determine the version number by
11
# looking at the path in the ./configure script
14
# Yes, I know, some Mac OS X users don't like /usr. Well, since X
15
# does not come with a "/usr/local" path out of the box, this is
16
# the most portable place to put the MaraDNS binary. Fix this here or
17
# use PREFIX if this bothers you.
19
# Note that the script will break if PREFIX is not an absolute path
20
# We allow the user to supply the prefix on the command line, e.g.
21
# PREFIX=/usr/ ; make install
22
# Thanks to D Richard Felker III for this suggestion
23
if [ -z "$PREFIX" ]; then
27
# The location of programs that the end user may wish to use
29
# The location of the server programs
31
# The directory to put man pages which describe the end-user programs
32
MAN1="$PREFIX/share/man/man1/"
33
# The directory to put man pages which describe configuration file formats
34
MAN5="$PREFIX/share/man/man5/"
35
# The directory to put man pages which describe the server programs
36
MAN8="$PREFIX/share/man/man8/"
37
# The directory to put a copy of the MaraDNS documents on the system
38
DOCS="$PREFIX/maradns-$VERSION"
40
# Mandrake does not have a /usr/local/man. Ugh.
41
# As a result, we need the following kludge to get this to
42
# install correctly on Mandrake
43
# Thanks to Ole Tange for pointing this out to me.
44
# Ignore or erase the following lines if editing this by hand.
46
# If the directory that MAN1 points to does not exist
47
if [ ! -d $MAN1 ] ; then
48
# Then try this location instead
49
MAN1="/usr/local/share/man/man1"
51
# Do the same with the MAN5 and MAN8 directories
52
if [ ! -d $MAN5 ] ; then
53
MAN5="/usr/local/share/man/man5"
55
if [ ! -d $MAN8 ] ; then
56
MAN8="/usr/local/share/man/man8"