summaryrefslogtreecommitdiff
path: root/security/crack
diff options
context:
space:
mode:
authorjlam <jlam>2003-10-06 08:19:45 +0000
committerjlam <jlam>2003-10-06 08:19:45 +0000
commit931063e82e6640b4c860c7660f2f35cdc776ef75 (patch)
tree8d5d65df00ec601c77aaefc256716bc88c9dd892 /security/crack
parent21bf9b0faf6ce42505cc1ce342e9249d7f2c8ff0 (diff)
downloadpkgsrc-931063e82e6640b4c860c7660f2f35cdc776ef75.tar.gz
Only create one directory per invocation of install(1), and run the Crack
script with ${SH} instead of /bin/sh since some OSes have dumb /bin/sh, e.g. Solaris. From pkg/22914 by Jonathan Perkin.
Diffstat (limited to 'security/crack')
-rw-r--r--security/crack/Makefile18
-rw-r--r--security/crack/distinfo4
-rw-r--r--security/crack/patches/patch-aa16
3 files changed, 22 insertions, 16 deletions
diff --git a/security/crack/Makefile b/security/crack/Makefile
index 120f89255a1..3504c28d1ff 100644
--- a/security/crack/Makefile
+++ b/security/crack/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2003/07/17 22:52:52 grant Exp $
+# $NetBSD: Makefile,v 1.15 2003/10/06 08:19:45 jlam Exp $
# FreeBSD Id: ports/security/crack/Makefile,v 1.11 1999/09/04 19:24:50 obrien Exp
DISTNAME= crack5.0
@@ -21,12 +21,12 @@ pre-build:
${ECHO_MSG} "You may want to install the dict distribution into /usr/share/dict" ; \
${ECHO_MSG} "to increase the size of the cracking dictionary." ; \
fi)
- @${SED} 's|@@PREFIX@@|${PREFIX}|g' < ${WRKSRC}/Crack > ${WRKSRC}/Crack.new
+ @${SED} 's|@@PREFIX@@|${PREFIX}|g;s|@@SH@@|${SH}|g' < ${WRKSRC}/Crack > ${WRKSRC}/Crack.new
@${RM} -f ${WRKSRC}/Crack && ${MV} ${WRKSRC}/Crack.new ${WRKSRC}/Crack
@${CHMOD} a+rx ${WRKSRC}/Crack
do-build:
- (cd ${WRKSRC} ; ./Crack -makeonly)
+ cd ${WRKSRC} ; ./Crack -makeonly
do-install:
@${INSTALL_DATA_DIR} ${PREFIX}/libexec/crack
@@ -35,12 +35,12 @@ do-install:
@${CHMOD} go-rwx ${PREFIX}/share/crack
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/dict
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/crack
- @${INSTALL_DATA_DIR} ${PREFIX}/share/crack/extra \
- ${PREFIX}/share/crack/run
+ @${INSTALL_DATA_DIR} ${PREFIX}/share/crack/extra
+ @${INSTALL_DATA_DIR} ${PREFIX}/share/crack/run
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/scripts
- @${INSTALL_DATA_DIR} ${PREFIX}/share/crack/dict/1\
- ${PREFIX}/share/crack/dict/2 \
- ${PREFIX}/share/crack/dict/3
+ @${INSTALL_DATA_DIR} ${PREFIX}/share/crack/dict/1
+ @${INSTALL_DATA_DIR} ${PREFIX}/share/crack/dict/2
+ @${INSTALL_DATA_DIR} ${PREFIX}/share/crack/dict/3
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/run
@${INSTALL_DATA_DIR} ${PREFIX}/crack/run/dict
${INSTALL_SCRIPT} ${WRKSRC}/Crack ${PREFIX}/sbin
@@ -207,6 +207,6 @@ do-install:
done
post-install:
- (${PREFIX}/sbin/Crack -makedict)
+ ${PREFIX}/sbin/Crack -makedict
.include "../../mk/bsd.pkg.mk"
diff --git a/security/crack/distinfo b/security/crack/distinfo
index e9db9814edd..670291efa48 100644
--- a/security/crack/distinfo
+++ b/security/crack/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.3 2003/07/02 17:33:17 jmmv Exp $
+$NetBSD: distinfo,v 1.4 2003/10/06 08:19:45 jlam Exp $
SHA1 (crack5.0.tar.gz) = e5e59d1e5e9e42c816a4dbd3f24cc13e16a31365
Size (crack5.0.tar.gz) = 2964507 bytes
-SHA1 (patch-aa) = 014a04ba7aa50f8514d5219a3269feeccc684708
+SHA1 (patch-aa) = e05ef9f571f7e695790eb7a350f2eb320d68569e
SHA1 (patch-ab) = a60df3b47288abf28e44400e4035580da765e279
SHA1 (patch-ac) = efa6903c59be394db1282d0760d55953a955e1ee
SHA1 (patch-ad) = 49387a2aa147ff543d57e660dbe0d8b2861d8f52
diff --git a/security/crack/patches/patch-aa b/security/crack/patches/patch-aa
index 1f38cb6cfbe..2a98f61d95d 100644
--- a/security/crack/patches/patch-aa
+++ b/security/crack/patches/patch-aa
@@ -1,7 +1,13 @@
-$NetBSD: patch-aa,v 1.2 2003/07/02 17:33:18 jmmv Exp $
+$NetBSD: patch-aa,v 1.3 2003/10/06 08:19:45 jlam Exp $
---- Crack.orig Sat Dec 21 02:09:41 1996
-+++ Crack Sat Oct 2 19:53:07 1999
+--- Crack.orig Fri Dec 20 17:09:41 1996
++++ Crack
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!@@SH@@
+ ###
+ # This program was written by and is copyright Alec Muffett 1991,
+ # 1992, 1993, 1994, 1995, and 1996, and is provided as part of the
@@ -12,8 +12,8 @@
# User-configurable junk for Crack
###
@@ -13,7 +19,7 @@ $NetBSD: patch-aa,v 1.2 2003/07/02 17:33:18 jmmv Exp $
# compiler options for crack 5.0
#
-@@ -108,41 +108,11 @@
+@@ -108,41 +108,11 @@ node=`uname -n`
# home base
###
@@ -57,7 +63,7 @@ $NetBSD: patch-aa,v 1.2 2003/07/02 17:33:18 jmmv Exp $
###
# Flagwaving
-@@ -279,110 +249,76 @@
+@@ -279,110 +249,76 @@ fi
# Sanity test bindir - written in gruntscript for clarity.
###