aboutsummaryrefslogtreecommitdiff
path: root/security/john
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2003-01-06 21:33:36 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2003-01-06 21:33:36 +0000
commit7285b797f0c01069149f80bb54159be2acd81685 (patch)
tree813ea0a39fdfdc0f0623a0e6bd5b20bdc408d8de /security/john
parent0707296cced14f8f1bf12bbcf2ea8eb85dbdb341 (diff)
downloadports-7285b797f0c01069149f80bb54159be2acd81685.tar.gz
ports-7285b797f0c01069149f80bb54159be2acd81685.zip
Fix build on !i386
PR: 46801 Submitted by: Dominic Marks <dom@cus.org.uk>
Notes
Notes: svn path=/head/; revision=72650
Diffstat (limited to 'security/john')
-rw-r--r--security/john/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/security/john/Makefile b/security/john/Makefile
index 4cc2cfd36a52..746aa7ca66fa 100644
--- a/security/john/Makefile
+++ b/security/john/Makefile
@@ -15,6 +15,7 @@ MASTER_SITES= ftp://ftp.ca.openwall.com/pub/projects/john/ \
ftp://ftp.false.com/pub/security/projects/ \
http://www.false.com/security/john/
+USE_REINPLACE= yes
MAINTAINER= d.marks@student.umist.ac.uk
.include <bsd.port.pre.mk>
@@ -30,8 +31,11 @@ ALL_TARGET= ${OSNAME}-${ARCHNAME}-mmx-elf
. else
ALL_TARGET= ${OSNAME}-${ARCHNAME}-any-elf
. endif
+.elif ${MACHINE_ARCH} == "alpha"
+ARCHNAME= alpha
+ALL_TARGET= ${OSNAME}-${ARCHNAME}-any-elf
.else
-ARCHNAME= ${MACHINE_ARCH}
+ALL_TARGET= generic
.endif
WRKSRC= ${WRKDIR}/${DISTNAME}/src
@@ -40,12 +44,12 @@ pre-fetch:
@${ECHO} "Building for ${ALL_TARGET}"
do-configure:
- @${MV} ${WRKDIR}/${DISTNAME}/run/john.ini ${WRKDIR}/${DISTNAME}/run/john.ini.in
- @${SED} -e "s:~/all.chr:${PREFIX}/share/john/all.chr:" \
- -e "s:~/alpha.chr:${PREFIX}/share/john/alpha.chr:" \
- -e "s:~/digits.chr:${PREFIX}/share/john/digits.chr:" \
- -e "s:~/lanman.chr:${PREFIX}/share/john/lanman.chr:" \
- ${WRKDIR}/${DISTNAME}/run/john.ini.in > ${WRKDIR}/${DISTNAME}/run/john.ini
+ @${REINPLACE_CMD} \
+ -e 's,~/all.chr,${PREFIX}/share/john/all.chr,' \
+ -e 's,~/alpha.chr,${PREFIX}/share/john/alpha.chr,' \
+ -e 's,~/digits.chr,${PREFIX}/share/john/digits.chr,' \
+ -e 's,~/lanman.chr,${PREFIX}/share/john/lanman.chr,' \
+ ${WRKDIR}/${DISTNAME}/run/john.ini
do-install:
@${MKDIR} ${DATADIR}