~ubuntu-branches/ubuntu/quantal/maradns/quantal

« back to all changes in this revision

Viewing changes to build/install.darwin

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2012-01-12 23:35:38 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: package-import@ubuntu.com-20120112233538-5jkaqrh9nbqtf1ey
Tags: upstream-2.0.04+really1.4.09
ImportĀ upstreamĀ versionĀ 2.0.04+really1.4.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Since Darwin has a completely different layout, this scipt reflects
 
4
# the locations where Darwin places files.
 
5
 
 
6
# This script is called by install.sh and uninstall.sh to determine
 
7
# where the installed binaries and man pages are
 
8
 
 
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
 
12
#. ./VERSION
 
13
 
 
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.
 
18
 
 
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
 
24
        PREFIX="/usr"
 
25
fi
 
26
 
 
27
# The location of programs that the end user may wish to use
 
28
BIN="$PREFIX/bin/"
 
29
# The location of the server programs
 
30
SBIN="$PREFIX/sbin/"
 
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"
 
39
 
 
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.
 
45
 
 
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"
 
50
fi
 
51
# Do the same with the MAN5 and MAN8 directories
 
52
if [ ! -d $MAN5 ] ; then
 
53
        MAN5="/usr/local/share/man/man5"
 
54
fi
 
55
if [ ! -d $MAN8 ] ; then
 
56
        MAN8="/usr/local/share/man/man8"
 
57
fi
 
58