Blob Blame Raw
diff -up c50a/Crack.FHS c50a/Crack
--- c50a/Crack.FHS	2008-11-25 14:21:34.000000000 -0500
+++ c50a/Crack	2008-11-25 14:25:49.000000000 -0500
@@ -36,7 +36,8 @@ node=`uname -n`                         
 
 old_wd=`pwd`
 
-CRACK_HOME=${CRACK_HOME:-"/var/lib/crack"}
+CRACK_HOME=${CRACK_HOME:-"/usr/share/crack"}
+CRACK_BIN_HOME=${CRACK_BIN_HOME:-"/usr/libexec/crack/"}
 
 if cd $CRACK_HOME
 then
@@ -47,6 +48,7 @@ else
 fi
 
 export CRACK_HOME
+export CRACK_BIN_HOME
 
 ###
 # Flagwaving
@@ -56,6 +58,7 @@ echo "Crack $version: The Password Crack
 echo "(c) Alec Muffett, 1991, 1992, 1993, 1994, 1995, 1996"
 echo "System:" `uname -a 2>/dev/null`
 echo "Home: $CRACK_HOME"
+echo "Script Home: $CRACK_BIN_HOME"
 echo "Invoked: $0 $*"
 
 ###
@@ -205,7 +208,7 @@ fi
 # Reset PATH in advance
 ###
 
-PATH=$CRACK_HOME/scripts:$CRACK_HOME/$bindir:$PATH
+PATH=$CRACK_HOME/scripts:$CRACK_BIN_HOME/$bindir:$PATH
 export PATH
 
 ###
@@ -222,7 +225,7 @@ fi
 # Make the dictionary passes
 ###
 
-dp=run/dict
+dp=$CRACK_HOME/run/dict
 dplf=$dp/.dictmade
 
 if [ ! -f $dplf ]
@@ -253,21 +256,21 @@ fi
 ###
 
 # F-files are feedback
-crackin=run/I$node.$$           # I-files are input to the cracker
-crackfb=run/D.boot.$$           # D-files are data from the cracker/fb
-crackout=run/D$node.$$
-crackerr=run/E$node.$$          # E-files are errors from the cracker
+crackin=$CRACK_HOME/run/I$node.$$           # I-files are input to the cracker
+crackfb=$CRACK_HOME/run/D.boot.$$           # D-files are data from the cracker/fb
+crackout=$CRACK_HOME/run/D$node.$$
+crackerr=$CRACK_HOME/run/E$node.$$          # E-files are errors from the cracker
 
 if [ "x$killflag" = "x" ]
 then
-	crackkf=run/K$node.$$   # K-files are kill file for 'plaster'
+	crackkf=$CRACK_HOME/run/K$node.$$   # K-files are kill file for 'plaster'
 else
 	crackkf=$killflag
 fi
 
 if [ "x$mailflag" != "x" ]
 then
-	crackmf=run/M$node.$$   # M-files are for mail commands
+	crackmf=$CRACK_HOME/run/M$node.$$   # M-files are for mail commands
 fi
 
 
@@ -302,7 +305,7 @@ then
 	echo "Crack: Merging password files..."
 
 	(
-		cat run/F-merged        # first the feedback
+		cat $CRACK_HOME/run/F-merged        # first the feedback
 
 		while [ "x$1" != "x" ]
 		do
diff -up c50a/Reporter.FHS c50a/Reporter
--- c50a/Reporter.FHS	2008-11-25 14:36:48.000000000 -0500
+++ c50a/Reporter	2008-11-25 14:36:30.000000000 -0500
@@ -10,7 +10,7 @@
 # document which accompanies distributions of Crack v5.0 and upwards.
 ###
 
-CRACK_HOME=${CRACK_HOME:-"/var/lib/crack"}
+CRACK_HOME=${CRACK_HOME:-"/usr/share/crack"}
 cd $CRACK_HOME
 
 tfile=run/T$$