diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2003-01-06 21:33:36 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2003-01-06 21:33:36 +0000 |
commit | 7285b797f0c01069149f80bb54159be2acd81685 (patch) | |
tree | 813ea0a39fdfdc0f0623a0e6bd5b20bdc408d8de /security | |
parent | Update to 2.1pre7 (diff) |
Fix build on !i386
PR: 46801
Submitted by: Dominic Marks <dom@cus.org.uk>
Diffstat (limited to 'security')
-rw-r--r-- | security/john/Makefile | 18 |
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} |