summaryrefslogtreecommitdiff
path: root/irc/bnc/files/patch-bncsetup
blob: 886c6b6879d9e91c66a2c243ea5a77cd11b04702 (plain) (blame)
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
--- bncsetup.orig	2005-02-07 01:51:06 UTC
+++ bncsetup
@@ -91,15 +91,9 @@ altconf()
 
 }
 
-if ! [ -e ./mkpasswd ]
-then
-  echo "You need to Make the package before you can use this script"
-  echo "(required ./mkpasswd)"
-  bsclean 0
-fi
 
 echo "BAD\$" > $TMPFILE
-echo "Test" | ./mkpasswd -s >> $TMPFILE
+echo "Test" | mkpasswd -s >> $TMPFILE
 CRCYS=$(cat $TMPFILE | grep '\$' | tail -1 )
 
 
@@ -244,13 +238,13 @@ ERRORLEVEL=$?
 
 if [ x$ERRORLEVEL = x0 ]
 then 
-  if [ -x ./mkpasswd ]
+  if [ -x @PREFIX@/bin/mkpasswd ]
   then
-    SUPERPASS="+"$(echo "$SUPERPASS" | ./mkpasswd -s)
-    BNCPASS="+"$(echo "$BNCPASS" | ./mkpasswd -s)
+    SUPERPASS="+"$(echo "$SUPERPASS" | mkpasswd -s)
+    BNCPASS="+"$(echo "$BNCPASS" | mkpasswd -s)
   else
     clear
-    echo "You have not did ./configure and make so there is no ./mkpasswd"
+    echo "You have not did ./configure and make so there is no mkpasswd"
     echo "This program is required to produce the encryption"
     bsclean 0
   fi