Skip to content

Commit

Permalink
security/john: allow to build JtR with OpenMPI support
Browse files Browse the repository at this point in the history
PR:	254922
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Oct 29, 2022
1 parent e242c1d commit fae646e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion security/john/Makefile
Expand Up @@ -35,7 +35,7 @@ BINLINKS= base64conv gpg2john rar2john unafs undrop unique \

PORTDOCS= *

OPTIONS_DEFINE= DOCS OPENCL OPENMP
OPTIONS_DEFINE= DOCS OPENCL OPENMP OPENMPI
OPTIONS_DEFAULT= OPENMP
OPTIONS_SUB= yes

Expand All @@ -47,6 +47,11 @@ OPENCL_USE= PERL5=build

OPENMP_CONFIGURE_OFF= --disable-openmp

OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi
OPENMPI_CONFIGURE_ON= --enable-mpi
OPENMPI_CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/mpi/openmpi/include" \
LDFLAGS="-L${LOCALBASE}/mpi/openmpi/lib"

post-patch:
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/params.h
@${REINPLACE_CMD} -e '/^host_cpu=/s|$$| ; case $$host_cpu in\
Expand Down

0 comments on commit fae646e

Please sign in to comment.