File cmsfs-1.1.8-mandir.patch of Package cmsfs

--- cmsfs-1.1.8/cmsfs.makefile.orig	2004-03-23 12:56:44.000000000 +0100
+++ cmsfs-1.1.8/cmsfs.makefile	2004-03-23 12:59:31.000000000 +0100
@@ -24,6 +24,7 @@
 DEFINES         =       %DEFINES%
 INCLUDES        =       %INCLUDES%
 PREFIX          =       %PREFIX%
+MANDIR          =       %MANDIR%
 LINUX_RELEASE   =       %LINUX_RELEASE%
 DRIVER_SOURCE   =	%DRIVER_SOURCE%
 MODULES_DIRECTORY  =    %MODULES_DIRECTORY%
@@ -244,8 +245,8 @@
                 cp -p libcmsfs.a $(PREFIX)/lib/.
 ###             $(MAKE) /sbin/fsck.cms
 #               touch install
-		mkdir -p $(PREFIX)/man/man8
-		cp -p *.8 $(PREFIX)/man/man8/.
+		mkdir -p $(MANDIR)/man8
+		cp -p *.8 $(MANDIR)/man8/.
 
 #
 #
--- cmsfs-1.1.8/configure.orig	2004-03-23 13:01:31.000000000 +0100
+++ cmsfs-1.1.8/configure	2004-03-23 13:02:33.000000000 +0100
@@ -42,6 +42,7 @@
 # 
 # retrieve substitutions from the 'sed' operation 
 sh -c ' echo "PREFIX=%PREFIX%" ; \
+	echo "MANDIR=%MANDIR%" ; \
 	echo "MODULES_DIRECTORY=%MODULES_DIRECTORY%" ; \
 	echo "DRIVER_SOURCE=%DRIVER_SOURCE%"' \
 	| sed -f cmsfscfg.sed > cmsfscfg.tmp 
@@ -55,6 +56,8 @@
 # report 
 if [ ! -z "$PREFIX" ] ; then 
 	echo "*** will install utilities to '$PREFIX'" ; fi 
+if [ ! -z "$MANDIR" ] ; then 
+	echo "*** will install man-pages to '$MANDIR'" ; fi 
 if [ ! -z "$MODULES_DIRECTORY" ] ; then 
 	echo "*** will install module to '$MODULES_DIRECTORY'" ; fi 
 if [ ! -z "$DRIVER_SOURCE" ] ; then 
--- cmsfs-1.1.8/cmsfssed.sh.orig	2004-03-23 12:58:39.000000000 +0100
+++ cmsfs-1.1.8/cmsfssed.sh	2004-03-23 13:12:18.000000000 +0100
@@ -24,6 +24,7 @@
 #
 #
 PREFIX="/usr"
+MANDIR="${PREFIX}/man"
 DEFINES=""
 INCLUDES=""
 LINUX_RELEASE=""
@@ -39,6 +40,11 @@
             if [ -z "$PREFIX" ] ; then PREFIX="/usr" ; fi
             shift
             ;;
+        --mand*)
+            MANDIR=`echo "$1" | awk -F'=' '{print $2}'`
+            if [ -z "$MANDIR" ] ; then MANDIR="/usr/man" ; fi
+            shift
+            ;;
         --debug)
             DEFINES="$DEFINES -DCMSFS_DEBUG"
             shift
@@ -109,6 +115,7 @@
 #
 # platform-specific substutions ...
 echo "s#%PREFIX%#$PREFIX#g"
+echo "s#%MANDIR%#$MANDIR#g"
 echo "s#%DEFINES%#$DEFINES#g"
 echo "s#%INCLUDES%#$INCLUDES#g"
 echo "s#%LINUX_RELEASE%#$LINUX_RELEASE#g"