summaryrefslogtreecommitdiff
path: root/security/crack/patches
diff options
context:
space:
mode:
authorbouyer <bouyer>1999-09-30 15:24:55 +0000
committerbouyer <bouyer>1999-09-30 15:24:55 +0000
commitc8cf63baa966962ed683493418fce4ce69d89760 (patch)
tree5e4ed8932f04050cf03826afecf1d3f4776d6d15 /security/crack/patches
parent54d05a35fcce383a624ee29657357054e93baf86 (diff)
downloadpkgsrc-c8cf63baa966962ed683493418fce4ce69d89760.tar.gz
Don't attempt to rebuild binaries and dictionaries at each run, but only when
-makeonly or -makedict was specified. While I'm there add the patch-sum file I forgot yesterday.
Diffstat (limited to 'security/crack/patches')
-rw-r--r--security/crack/patches/patch-0178
1 files changed, 78 insertions, 0 deletions
diff --git a/security/crack/patches/patch-01 b/security/crack/patches/patch-01
new file mode 100644
index 00000000000..69513c8d096
--- /dev/null
+++ b/security/crack/patches/patch-01
@@ -0,0 +1,78 @@
+$NetBSD: patch-01,v 1.1 1999/09/30 15:24:55 bouyer Exp $
+
+--- Crack.orig Sat Dec 21 02:09:41 1996
++++ Crack Thu Sep 30 17:18:29 1999
+@@ -336,23 +336,23 @@
+ # Make the binaries
+ ###
+
+-echo "Crack: making utilities in $bindir"
+-
+-if [ ! -d $bindir ] # small redundancy, big benefit
+-then
+- mkdir $bindir || exit 1
+-fi
+-
+-make clean || exit 1
+-
+-make ARGS="\"XDIR=../../$bindir\" \"XCFLAGS=$CFLAGS\" \"XCC=$CC\" \"XLIBS=$LIBS\"" utils || exit 1
+-
+ ###
+ # Make Only ?
+ ###
+
+ if [ "x$makeonlyflag" != "x" ]
+ then
++ echo "Crack: making utilities in $bindir"
++
++ if [ ! -d $bindir ] # small redundancy, big benefit
++ then
++ mkdir $bindir || exit 1
++ fi
++
++ make clean || exit 1
++
++ make ARGS="\"XDIR=../../$bindir\" \"XCFLAGS=$CFLAGS\" \"XCC=$CC\" \"XLIBS=$LIBS\"" utils || exit 1
++
+ echo "Crack: makeonly done"
+ exit 0
+ fi
+@@ -364,25 +364,25 @@
+ dp=run/dict
+ dplf=$dp/.dictmade
+
+-if [ ! -f $dplf ]
+-then
+- test -d $dp && rm -rf $dp
+-
+- echo "Crack: making dictionary groups, please be patient..."
+- mkdictgrps $dp || exit 1
+-
+- echo "Crack: Created new dictionaries..."
+- date > $dplf
+-else
+- echo "Crack: The dictionaries seem up to date..."
+-fi
+-
+ ###
+ # Make Dict Only ?
+ ###
+
+ if [ "x$makedictflag" != "x" ]
+ then
++ if [ ! -f $dplf ]
++ then
++ test -d $dp && rm -rf $dp
++
++ echo "Crack: making dictionary groups, please be patient..."
++ mkdictgrps $dp || exit 1
++
++ echo "Crack: Created new dictionaries..."
++ date > $dplf
++ else
++ echo "Crack: The dictionaries seem up to date..."
++ fi
++
+ echo "Crack: makedict done"
+ exit 0
+ fi