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

« back to all changes in this revision

Viewing changes to update/2.0.02/maradns-2.0.01-install_locations.patch

  • 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
 
--- maradns-2.0.01/build/install.locations      2002-05-05 06:11:47.000000000 -0600
2
 
+++ maradns-2.0.02/build/install.locations      2011-02-05 07:34:06.000000000 -0700
3
 
@@ -44,13 +44,22 @@
4
 
 # If the directory that MAN1 points to does not exist
5
 
 if [ ! -d $MAN1 ] ; then
6
 
         # Then try this location instead
7
 
-       MAN1="/usr/local/share/man/man1"
8
 
+       MAN1="$PREFIX/share/man/man1"
9
 
+       if [ ! -d $MAN1 ] ; then
10
 
+               MAN1="/usr/local/share/man/man1"
11
 
+       fi
12
 
 fi
13
 
 # Do the same with the MAN5 and MAN8 directories
14
 
 if [ ! -d $MAN5 ] ; then
15
 
-       MAN5="/usr/local/share/man/man5"
16
 
+       MAN5="$PREFIX/share/man/man5"
17
 
+       if [ ! -d $MAN5 ] ; then
18
 
+               MAN5="/usr/local/share/man/man5"
19
 
+       fi
20
 
 fi
21
 
 if [ ! -d $MAN8 ] ; then
22
 
-       MAN8="/usr/local/share/man/man8"
23
 
+       MAN8="$PREFIX/share/man/man8"
24
 
+       if [ ! -d $MAN8 ] ; then
25
 
+               MAN8="/usr/local/share/man/man8"
26
 
+       fi
27
 
 fi
28