aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2003-01-07 05:33:36 +0800
committerarved <arved@FreeBSD.org>2003-01-07 05:33:36 +0800
commitb8a17cc5e6a4226be3b848d8159686e316e50c60 (patch)
tree6b290d2b59548062e7e398b0ba9a8c5fe2ab9188
parent4ad9d36564c71c5f9fe12f88cfa2196328f71720 (diff)
downloadfreebsd-ports-gnome-b8a17cc5e6a4226be3b848d8159686e316e50c60.tar.gz
freebsd-ports-gnome-b8a17cc5e6a4226be3b848d8159686e316e50c60.tar.zst
freebsd-ports-gnome-b8a17cc5e6a4226be3b848d8159686e316e50c60.zip
Fix build on !i386
PR: 46801 Submitted by: Dominic Marks <dom@cus.org.uk>
-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}