summaryrefslogtreecommitdiff
path: root/security/hydra
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2016-09-13 17:17:27 +0000
committerJohn Marino <marino@FreeBSD.org>2016-09-13 17:17:27 +0000
commit494f40a05fcc9ca0d39dbb97826291a96f16ab96 (patch)
tree659a96cad6be22c045021c6bc8077fe8e98f6ac2 /security/hydra
parentBump PORTREVISION for r421979. Although we usually do not update it for (diff)
security/hydra: Configure for any SSL base and IGNORE LibreSSL
Several symbols including RSA_get0_key are unreferenced while linking with LibreSSL so IGNORE this port if SSL_DEFAULT matches "libressl". Approved by: SSL blanket
Notes
Notes: svn path=/head/; revision=422041
Diffstat (limited to 'security/hydra')
-rw-r--r--security/hydra/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/security/hydra/Makefile b/security/hydra/Makefile
index fb795afa185a..97a0444ef5bf 100644
--- a/security/hydra/Makefile
+++ b/security/hydra/Makefile
@@ -23,6 +23,8 @@ PLIST_FILES= bin/hydra bin/pw-inspector bin/dpl4hydra.sh bin/hydra-wizard.sh \
man/man1/hydra.1.gz man/man1/pw-inspector.1.gz
GNU_CONFIGURE= yes
USES= gmake localbase ssl
+CONFIGURE_ARGS= --with-ssl=${OPENSSLINC} \
+ --with-ssl-lib=${OPENSSLLIB}
OPTIONS_DEFINE= FIREBIRD SSH SVN X11
OPTIONS_DEFAULT=SSH
@@ -36,6 +38,12 @@ X11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
X11_USE= gnome=atk,cairo,gdkpixbuf2,glib20,gtk20,pango
X11_PLIST_FILES= bin/xhydra man/man1/xhydra.1.gz
+.include <bsd.port.pre.mk>
+
+.if ${SSL_DEFAULT:Mlibressl*}
+IGNORE= Detected LibreSSL (missing RSA_get0_key and others)
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|CC=gcc||; s|-O3|${CFLAGS}|;' \
@@ -52,4 +60,4 @@ post-install-X11-on:
${INSTALL_PROGRAM} ${WRKSRC}/hydra-gtk/src/xhydra ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/xhydra.1 ${STAGEDIR}${MANPREFIX}/man/man1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>