freebsd-ports/security/john/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

89 lines
2.8 KiB
Makefile

PORTNAME= john
# NB: starting from the next version, community-enhanced (jumbo) patch
# should be offered as an option (suggested by Solar Designer himself).
DISTVERSION= 1.9.0-jumbo-1
CATEGORIES= security
MASTER_SITES= http://www.openwall.com/john/j/ \
http://mirrors.kernel.org/openwall/projects/john/${DISTVERSION:C/-.*//}/ \
http://distro.ibiblio.org/openwall/projects/john/${DISTVERSION:C/-.*//}/
PATCH_STRIP= -p2
MAINTAINER= danfe@FreeBSD.org
COMMENT= Featureful Unix password cracker
WWW= https://www.openwall.com/john/
LICENSE= GPLv2+
LIB_DEPENDS= libgmp.so:math/gmp
USES= gmake shebangfix ssl tar:xz
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS_EXTRA="-DJOHN_SYSTEMWIDE=1" \
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
SHEBANG_FILES= ../run/*.pl ../run/*.rb ../run/benchmark-unify ../run/relbench
WRKSRC_SUBDIR= src
ALL_TARGET= default
BINARIES= SIPdump bitlocker2john calc_stat cprepair dmg2john \
eapmd5tojohn genmkvpwd hccap2john john keepass2john \
mkvcalcproba putty2john racf2john raw2dyna tgtsnarf \
uaf2john vncpcap2john wpapcap2john
BINLINKS= base64conv gpg2john rar2john unafs undrop unique \
unshadow zip2john
PORTDOCS= *
OPTIONS_DEFINE= DOCS OPENCL OPENMP
OPTIONS_DEFAULT= OPENMP
OPTIONS_SUB= yes
OPENCL_BUILD_DEPENDS= ${LOCALBASE}/include/CL/opencl.h:devel/opencl
OPENCL_LIB_DEPENDS= libOpenCL.so:devel/ocl-icd
OPENCL_CONFIGURE_OFF= --disable-opencl
OPENCL_USES= perl5
OPENCL_USE= PERL5=build
OPENMP_CONFIGURE_OFF= --disable-openmp
post-patch:
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/params.h
@${REINPLACE_CMD} -e '/^host_cpu=/s|$$| ; case $$host_cpu in\
amd64) host_cpu=x86_64 ;; esac|' ${WRKSRC}/configure
do-install:
.for b in ${BINARIES}
${INSTALL_PROGRAM} ${WRKSRC}/../run/${b} ${STAGEDIR}${PREFIX}/bin
.endfor
.for l in ${BINLINKS}
${LN} -sf john ${STAGEDIR}${PREFIX}/bin/${l}
.endfor
@${MKDIR} ${STAGEDIR}${DATADIR}/extra
cd ${WRKSRC}/../run && ${INSTALL_DATA} *.chr *.conf *.lst \
${STAGEDIR}${DATADIR}
cd ${WRKSRC}/../run && ${INSTALL_DATA} *.?? *.lua benchmark-unify \
dictionary.rfc2865 fuzz.dic john.*sh_completion mailer \
makechr oui.txt relbench stats ${STAGEDIR}${DATADIR}/extra
${CP} -a ${WRKSRC}/../run/rules ${STAGEDIR}${DATADIR}
cd ${WRKSRC}/../run && ${CP} -a dns lib ztex \
${STAGEDIR}${DATADIR}/extra
@${RM} ${STAGEDIR}${DATADIR}/extra/dns/README.txt
do-install-OPENCL-on:
${CP} -a ${WRKSRC}/../run/kernels ${STAGEDIR}${DATADIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${MV} ${WRKSRC}/../doc/extras/* ${WRKSRC}/../*.md ${WRKSRC}/../doc
@${RMDIR} ${WRKSRC}/../doc/extras
@${RM} ${WRKSRC}/../doc/COPYING ${WRKSRC}/../doc/README
${INSTALL_DATA} ${WRKSRC}/../doc/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
.if defined(PACKAGE_BUILDING) || defined(BATCH)
. if ${ARCH} == amd64 || ${ARCH} == i386
CONFIGURE_ARGS+= --enable-simd=sse2
. endif
.endif