1997-03-09 21:34:26 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: ufcjohn
|
|
|
|
# Version required: 1.4
|
|
|
|
# Date created: Sun Mar 09, 1997
|
|
|
|
# Whom: David O'Brien (obrien@FreeBSD.org)
|
|
|
|
#
|
1998-07-28 01:56:02 +00:00
|
|
|
# $Id: Makefile,v 1.5 1998/07/28 01:49:59 obrien Exp $
|
1997-03-09 21:34:26 +00:00
|
|
|
#
|
|
|
|
|
1998-07-28 01:50:01 +00:00
|
|
|
DISTNAME= john-1.5
|
1997-03-09 21:34:26 +00:00
|
|
|
CATEGORIES= security
|
1998-07-28 01:50:01 +00:00
|
|
|
MASTER_SITES= http://www.false.com/security/john/ \
|
|
|
|
ftp://ftp.false.com/pub/security/john/
|
1997-03-09 21:34:26 +00:00
|
|
|
|
1998-07-28 01:50:01 +00:00
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
1997-03-09 21:34:26 +00:00
|
|
|
|
1998-07-28 01:56:02 +00:00
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
|
|
PATCHFILES= john-1.5-bugfix.diff
|
|
|
|
|
1997-03-10 17:39:35 +00:00
|
|
|
RESTRICTED= "contains crypto (crypt())"
|
|
|
|
|
1998-07-28 01:50:01 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
.if defined(HAVE_K6)
|
|
|
|
ALL_TARGET= ${OSNAME}-${ARCHNAME}-k6
|
1997-03-09 21:34:26 +00:00
|
|
|
.else
|
1998-07-28 01:50:01 +00:00
|
|
|
ALL_TARGET= ${OSNAME}-${ARCHNAME}-any
|
1997-03-09 21:34:26 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-configure:
|
1998-07-28 01:56:02 +00:00
|
|
|
@${MV} ${WRKDIR}/${DISTNAME}/run/john.ini ${WRKDIR}/${DISTNAME}/run/john.ini.in
|
|
|
|
@${SED} -e "s:~/all.chr:${PREFIX}/share/john/all.chr:" \
|
1998-07-28 01:50:01 +00:00
|
|
|
-e "s:~/alpha.chr:${PREFIX}/share/john/alpha.chr:" \
|
|
|
|
-e "s:~/digits.chr:${PREFIX}/share/john/digits.chr:" \
|
|
|
|
${WRKDIR}/${DISTNAME}/run/john.ini.in > ${WRKDIR}/${DISTNAME}/run/john.ini
|
1997-03-09 21:34:26 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/john
|
1998-07-28 01:50:01 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/run/john ${PREFIX}/bin
|
1997-03-09 21:34:26 +00:00
|
|
|
@(cd ${PREFIX}/bin ; /bin/ln -sf john xtract)
|
|
|
|
@(cd ${PREFIX}/bin ; /bin/ln -sf john unshadow)
|
1998-07-28 01:50:01 +00:00
|
|
|
@${INSTALL_DATA} \
|
|
|
|
${WRKDIR}/${DISTNAME}/run/all.chr \
|
|
|
|
${WRKDIR}/${DISTNAME}/run/alpha.chr \
|
|
|
|
${WRKDIR}/${DISTNAME}/run/digits.chr \
|
|
|
|
${WRKDIR}/${DISTNAME}/run/password.lst \
|
|
|
|
${WRKDIR}/${DISTNAME}/run/john.ini \
|
|
|
|
${PREFIX}/share/john
|
1997-03-09 21:34:26 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/john
|
1998-07-28 01:50:01 +00:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/* ${PREFIX}/share/doc/john
|
1997-03-09 21:34:26 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
1998-07-28 01:50:01 +00:00
|
|
|
|
|
|
|
OSNAME!= /usr/bin/uname -s | ${TR} [A-Z] [a-z]
|
|
|
|
.if (${ARCH} == "i386")
|
|
|
|
ARCHNAME= x86
|
|
|
|
.else
|
|
|
|
ARCHNAME= ${ARCH}
|
|
|
|
.endif
|