diff options
author | bouyer <bouyer@pkgsrc.org> | 1999-09-30 15:24:55 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 1999-09-30 15:24:55 +0000 |
commit | 1a3f8db7b04f1f6d711fbd401d387586be56c705 (patch) | |
tree | 5e4ed8932f04050cf03826afecf1d3f4776d6d15 /security/crack | |
parent | f0f779519e33c2e1e697153ac2846e9d92ae125b (diff) | |
download | pkgsrc-1a3f8db7b04f1f6d711fbd401d387586be56c705.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')
-rw-r--r-- | security/crack/files/patch-sum | 5 | ||||
-rw-r--r-- | security/crack/patches/patch-01 | 78 |
2 files changed, 83 insertions, 0 deletions
diff --git a/security/crack/files/patch-sum b/security/crack/files/patch-sum new file mode 100644 index 00000000000..fbf3a537b7c --- /dev/null +++ b/security/crack/files/patch-sum @@ -0,0 +1,5 @@ +$NetBSD: patch-sum,v 1.1 1999/09/30 15:24:55 bouyer Exp $ + +MD5 (patch-01) = 6282374609f0f3706232898e9edb7cfe +MD5 (patch-02) = cf49996c4849b3a5b6d44debfa7ab33e +MD5 (patch-03) = 3365731182da5260dc4918cc88f6a4fc 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 |