mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
6d0febff2b
- Use ${ECHO_CMD} instead of ${ECHO} directly Feature safe: yes
88 lines
2.2 KiB
Makefile
88 lines
2.2 KiB
Makefile
# New ports collection makefile for: John the Ripper
|
|
# Date created: Sun Mar 09, 1997
|
|
# Whom: David O'Brien <obrien@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= john
|
|
PORTVERSION= 1.7.6
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://www.openwall.com/john/g/ \
|
|
http://mirrors.kernel.org/openwall/projects/john/${PORTVERSION}/ \
|
|
http://distro.ibiblio.org/pub/linux/distributions/openwall/projects/john/${PORTVERSION}/ \
|
|
http://gd.tuwien.ac.at/opsys/linux/openwall/projects/john/${PORTVERSION}/
|
|
|
|
PATCH_SITES= ${MASTER_SITES:H:H:S/$/\/contrib\//}
|
|
PATCHFILES= john-${PORTVERSION}-jumbo-3.diff.gz
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Featureful Unix password cracker
|
|
|
|
USE_BZIP2= yes
|
|
BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
OSNAME= ${OPSYS:L}
|
|
CFLAGS+= -DJOHN_SYSTEMWIDE=1 \
|
|
-DJOHN_SYSTEMWIDE_HOME=\\"${DATADIR}\\" \
|
|
-DCFG_FULL_NAME=\\"${PREFIX}/etc/${PORTNAME}.conf\\"
|
|
|
|
PORTDOCS= CHANGES CONFIG EXAMPLES EXTERNAL FAQ MODES OPTIONS README \
|
|
RULES CONTACT CREDITS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "i386"
|
|
. if ${MACHINE_CPU:Msse2}
|
|
ALL_TARGET= ${OSNAME}-x86-sse2
|
|
. elif ${MACHINE_CPU:Mmmx}
|
|
ALL_TARGET= ${OSNAME}-x86-mmx
|
|
. else
|
|
ALL_TARGET= ${OSNAME}-x86-any
|
|
. endif
|
|
.elif ${ARCH} == "amd64"
|
|
ALL_TARGET= ${OSNAME}-x86-64
|
|
.elif ${ARCH} == "alpha"
|
|
ALL_TARGET= ${OSNAME}-alpha
|
|
.else
|
|
ALL_TARGET= generic
|
|
.endif
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
BROKEN= Does not compile on sparc64
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|= gcc|= ${CC}|g' \
|
|
-e 's|CFLAGS =.*|CFLAGS = -c ${CFLAGS}|g' \
|
|
${WRKSRC}/src/Makefile
|
|
@${REINPLACE_CMD} -i '' -e 's|/usr/bin|${LOCALBASE}/bin|' \
|
|
${WRKSRC}/run/*.rb
|
|
|
|
pre-build:
|
|
@${ECHO_CMD}
|
|
@${ECHO_CMD} "Building for ${ALL_TARGET}"
|
|
@${ECHO_CMD}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/run/john ${PREFIX}/bin
|
|
${LN} -sf john ${PREFIX}/bin/xtract
|
|
${LN} -sf john ${PREFIX}/bin/unshadow
|
|
@${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/run/*.??? ${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/run/*.?? ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/run/john.conf \
|
|
${PREFIX}/etc/john.conf.default
|
|
.if !exists(${PREFIX}/etc/john.conf)
|
|
${INSTALL_DATA} ${WRKSRC}/run/john.conf \
|
|
${PREFIX}/etc/john.conf
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|