mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
security/hydra: update to 8.2
- update to 8.2 - switch to option helpers - kick off WANT_GNOME and define all the deps explicitly - regenerate patches with make makepatch Changes: https://www.thc.org/thc-hydra/CHANGES
This commit is contained in:
parent
68a6edf6c4
commit
c148cbfcf7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418930
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= hydra
|
||||
PORTVERSION= 8.1
|
||||
PORTVERSION= 8.2
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= https://www.thc.org/releases/ \
|
||||
PACKETSTORM/groups/thc/
|
||||
@ -11,6 +11,7 @@ MAINTAINER= rm@FreeBSD.org
|
||||
COMMENT= Brute force attack utility working on multiple network services
|
||||
|
||||
LICENSE= AGPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
LIB_DEPENDS= libidn.so:dns/libidn \
|
||||
libpcre.so:devel/pcre \
|
||||
@ -21,30 +22,19 @@ CONFLICTS_INSTALL= hydra-web-[0-9]*
|
||||
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
|
||||
USE_OPENSSL= yes
|
||||
WANT_GNOME= yes
|
||||
USES= gmake localbase ssl
|
||||
|
||||
OPTIONS_DEFINE= FIREBIRD SSH SVN X11
|
||||
OPTIONS_DEFAULT=SSH
|
||||
OPTIONS_EXCLUDE=NLS DOCS
|
||||
FIREBIRD_USES= firebird
|
||||
SVN_LIB_DEPENDS= libsvn_client-1.so:devel/subversion
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MSSH}
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
LIB_DEPENDS+= libssh.so.4:security/libssh
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MX11}
|
||||
USES+= pkgconfig
|
||||
USE_GNOME= gtk20
|
||||
PLIST_FILES+= bin/xhydra man/man1/xhydra.1.gz
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-xhydra
|
||||
.endif
|
||||
SSH_LIB_DEPENDS= libssh.so.4:security/libssh
|
||||
X11_USES= gettext pkgconfig
|
||||
X11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
|
||||
libfreetype.so:print/freetype2
|
||||
X11_USE= gnome=atk,cairo,gdkpixbuf2,glib20,gtk20,pango
|
||||
X11_PLIST_FILES= bin/xhydra man/man1/xhydra.1.gz
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure
|
||||
@ -56,11 +46,10 @@ do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/pw-inspector ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/dpl4hydra.sh ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/hydra-wizard.sh ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/hydra.1 ${STAGEDIR}${MANPREFIX}/man/man1/hydra.1
|
||||
${INSTALL_MAN} ${WRKSRC}/pw-inspector.1 ${STAGEDIR}${MANPREFIX}/man/man1/pw-inspector.1
|
||||
.if ${PORT_OPTIONS:MX11}
|
||||
${INSTALL_MAN} ${WRKSRC}/hydra.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/pw-inspector.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
||||
post-install-X11-on:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/hydra-gtk/src/xhydra ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/xhydra.1 ${STAGEDIR}${MANPREFIX}/man/man1/xhydra.1
|
||||
.endif
|
||||
${INSTALL_MAN} ${WRKSRC}/xhydra.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,3 @@
|
||||
SHA256 (hydra-8.1.tar.gz) = e4bc2fd11f97a8d985a38a31785c86d38cc60383e47a8f4a5c436351e5135f19
|
||||
SIZE (hydra-8.1.tar.gz) = 559031
|
||||
TIMESTAMP = 1469203290
|
||||
SHA256 (hydra-8.2.tar.gz) = 9e88496aca1d7ee94410cf3e3d87bc8cbaa91e37fd5ef700cab2f55ce92b4ac4
|
||||
SIZE (hydra-8.2.tar.gz) = 578596
|
||||
|
@ -1,21 +1,21 @@
|
||||
--- ./configure.orig 2012-12-23 01:34:25.000000000 +0400
|
||||
+++ ./configure 2012-12-31 11:58:51.000000000 +0400
|
||||
@@ -801,7 +801,7 @@
|
||||
--- configure.orig 2016-06-16 14:57:15 UTC
|
||||
+++ configure
|
||||
@@ -1009,7 +1009,7 @@ XLIBPATHS=""
|
||||
XIPATHS=""
|
||||
|
||||
if [ -n "$FIREBIRD_PATH" -o -n "$PCRE_PATH" -o -n "$IDN_PATH" -o -n "$SSL_PATH" -o -n "$CRYPTO_PATH" -o -n "$NSL_PATH" -o -n "$SOCKET_PATH" -o -n "$RESOLV_PATH" -o -n "$SAPR3_PATH" -o -n "$SSH_PATH" -o -n "$POSTGRES_PATH" -o -n "$SVN_PATH" -o -n "$NCP_PATH" -o -n "$CURSES_PATH" -o -n "$ORACLE_PATH" -o -n "$AFP_PATH" -o -n "$MYSQL_PATH" ]; then
|
||||
- XLIBPATHS="-L/usr/lib -L/usr/local/lib -L/lib"
|
||||
+ XLIBPATHS="-L/usr/local/lib -L/usr/lib -L/lib"
|
||||
fi
|
||||
if [ -n "$SSL_PATH" ]; then
|
||||
XDEFINES="$XDEFINES -DLIBOPENSSL"
|
||||
@@ -857,6 +857,9 @@
|
||||
if [ -n "$SSL_IPATH" ]; then
|
||||
XIPATHS="-I$SSL_IPATH"
|
||||
if [ -n "$MYSQL_IPATH" ]; then
|
||||
XIPATHS="$XIPATHS -I$MYSQL_IPATH"
|
||||
@@ -1024,6 +1024,9 @@ if [ -n "$SSL_PATH" ]; then
|
||||
XDEFINES="$XDEFINES -DLIBOPENSSL"
|
||||
fi
|
||||
fi
|
||||
+if [ -d $PREFIX/include ];then
|
||||
+ XIPATHS="$XIPATHS -I$PREFIX/include"
|
||||
+fi
|
||||
if [ -n "$CURSES_PATH" ]; then
|
||||
XLIBS="$XLIBS -lcurses"
|
||||
XDEFINES="$XDEFINES -DLIBNCURSES"
|
||||
fi
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- hydra-gtk/make_xhydra.sh.orig Fri May 20 17:03:45 2005
|
||||
+++ hydra-gtk/make_xhydra.sh Fri May 20 17:04:06 2005
|
||||
@@ -8,7 +8,7 @@
|
||||
--- hydra-gtk/make_xhydra.sh.orig 2016-06-16 14:57:15 UTC
|
||||
+++ hydra-gtk/make_xhydra.sh
|
||||
@@ -8,7 +8,7 @@ test -e Makefile || {
|
||||
cat errors
|
||||
exit 1
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- hydra.h.orig 2011-10-02 12:06:16.000000000 +0400
|
||||
+++ hydra.h 2011-10-13 15:08:39.000000000 +0400
|
||||
@@ -30,10 +30,6 @@
|
||||
--- hydra.h.orig 2016-06-16 14:57:15 UTC
|
||||
+++ hydra.h
|
||||
@@ -31,10 +31,6 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -8,6 +8,6 @@
|
||||
-#include <libssh/libssh.h>
|
||||
-#endif
|
||||
-
|
||||
#define OPTION_SSL 1
|
||||
|
||||
#define PORT_NOPORT -1
|
||||
#ifdef HAVE_ZLIB
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user