summaryrefslogtreecommitdiff
path: root/net/maradns/patches/patch-aa
blob: a49513ec445f3dd49b4a5cdc858e23deda7af9ea (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
34
35
36
37
38
39
40
41
42
43
44
45
$NetBSD: patch-aa,v 1.4 2007/08/12 01:14:31 joerg Exp $

--- build/install.locations.orig	2007-08-12 02:02:22.000000000 +0200
+++ build/install.locations
@@ -23,34 +23,14 @@ if [ ! -d doc/$LANGUAGE/man ]; then
 fi
 
 # The location of programs that the end user may wish to use
-BIN="$PREFIX/bin/"
+BIN="${DESTDIR}$PREFIX/bin/"
 # The location of the server programs
-SBIN="$PREFIX/sbin/"
+SBIN="${DESTDIR}$PREFIX/sbin/"
 # The directory to put man pages which describe the end-user programs
-MAN1="$PREFIX/man/man1/"
+MAN1="${DESTDIR}$PREFIX/${PKGMANDIR}/man1/"
 # The directory to put man pages which describe configuration file formats
-MAN5="$PREFIX/man/man5/"
+MAN5="${DESTDIR}$PREFIX/${PKGMANDIR}/man5/"
 # The directory to put man pages which describe the server programs
-MAN8="$PREFIX/man/man8/"
+MAN8="${DESTDIR}$PREFIX/${PKGMANDIR}/man8/"
 # The directory to put a copy of the MaraDNS documents on the system
-DOCS="$PREFIX/doc/maradns-$VERSION"
-
-# Mandrake does not have a /usr/local/man.  Ugh.
-# As a result, we need the following kludge to get this to
-# install correctly on Mandrake
-# Thanks to Ole Tange for pointing this out to me.
-# Ignore or erase the following lines if editing this by hand.
-
-# If the directory that MAN1 points to does not exist
-if [ ! -d $MAN1 ] ; then
-        # Then try this location instead
-	MAN1="/usr/local/share/man/man1"
-fi
-# Do the same with the MAN5 and MAN8 directories
-if [ ! -d $MAN5 ] ; then
-	MAN5="/usr/local/share/man/man5"
-fi
-if [ ! -d $MAN8 ] ; then
-	MAN8="/usr/local/share/man/man8"
-fi
-
+DOCS="${DESTDIR}$PREFIX/share/doc/maradns"