Fix build on !i386
PR: 46801 Submitted by: Dominic Marks <dom@cus.org.uk>
This commit is contained in:
parent
0707296cce
commit
7285b797f0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=72650
1 changed files with 11 additions and 7 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue