summaryrefslogtreecommitdiff
path: root/security/crack/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2003-10-06 08:19:45 +0000
committerjlam <jlam>2003-10-06 08:19:45 +0000
commitef156f3e122955c2ed9d441ecf825c8341281739 (patch)
tree8d5d65df00ec601c77aaefc256716bc88c9dd892 /security/crack/Makefile
parentcc7a364a5882bed8c4d121c839e000b80d77615c (diff)
downloadpkgsrc-ef156f3e122955c2ed9d441ecf825c8341281739.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/Makefile')
-rw-r--r--security/crack/Makefile18
1 files changed, 9 insertions, 9 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"