$NetBSD: patch-aa,v 1.5 2012/02/28 21:55:28 cheusov Exp $ --- build/install.locations.orig 2011-02-06 02:21:31.000000000 +0000 +++ build/install.locations @@ -23,43 +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="$PREFIX/share/man/man1" - if [ ! -d $MAN1 ] ; then - MAN1="/usr/local/share/man/man1" - fi -fi -# Do the same with the MAN5 and MAN8 directories -if [ ! -d $MAN5 ] ; then - MAN5="$PREFIX/share/man/man5" - if [ ! -d $MAN5 ] ; then - MAN5="/usr/local/share/man/man5" - fi -fi -if [ ! -d $MAN8 ] ; then - MAN8="$PREFIX/share/man/man8" - if [ ! -d $MAN8 ] ; then - MAN8="/usr/local/share/man/man8" - fi -fi - +DOCS="${DESTDIR}$PREFIX/share/doc/maradns"