summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2005-04-17 12:19:54 +0000
committeradrianp <adrianp@pkgsrc.org>2005-04-17 12:19:54 +0000
commit6a62162baa871dc002cd44b70aa43375a880d943 (patch)
tree88fb6f26a1adb90331450997b136d96997059237
parentf0d66fca9a2e12feed2b3f3d608122ff9b8ad8a7 (diff)
downloadpkgsrc-6a62162baa871dc002cd44b70aa43375a880d943.tar.gz
THC-Hydra the best parallized login hacker is available: for Samba,
FTP, POP3, IMAP, Telnet, HTTP Auth, LDAP NNTP, VNC, ICQ, Socks5, PCNFS, Cisco and more. Includes SSL support and is part of Nessus.
-rw-r--r--security/hydra/DESCR3
-rw-r--r--security/hydra/Makefile70
-rw-r--r--security/hydra/PLIST3
-rw-r--r--security/hydra/PLIST.xhydra2
-rw-r--r--security/hydra/distinfo9
-rw-r--r--security/hydra/patches/patch-aa22
-rw-r--r--security/hydra/patches/patch-ab33
-rw-r--r--security/hydra/patches/patch-ac13
-rw-r--r--security/hydra/patches/patch-ad13
9 files changed, 168 insertions, 0 deletions
diff --git a/security/hydra/DESCR b/security/hydra/DESCR
new file mode 100644
index 00000000000..ed97bfc455e
--- /dev/null
+++ b/security/hydra/DESCR
@@ -0,0 +1,3 @@
+THC-Hydra the best parallized login hacker is available: for Samba,
+FTP, POP3, IMAP, Telnet, HTTP Auth, LDAP NNTP, VNC, ICQ, Socks5,
+PCNFS, Cisco and more. Includes SSL support and is part of Nessus.
diff --git a/security/hydra/Makefile b/security/hydra/Makefile
new file mode 100644
index 00000000000..c31f47b3501
--- /dev/null
+++ b/security/hydra/Makefile
@@ -0,0 +1,70 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+#
+
+DISTNAME= ${PKGNAME}-src
+PKGNAME= hydra-4.6
+CATEGORIES= security
+MASTER_SITES= http://www.thc.org/releases/
+
+MAINTAINER= adrianp@NetBSD.org
+HOMEPAGE= http://www.thc.org/thc-hydra/
+COMMENT= Login password cracker
+
+.include "../../mk/bsd.prefs.mk"
+
+GNU_CONFIGURE= YES
+BUILD_TARGET= all ssl
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+LICENSE+= hydra-license
+
+SUBST_CLASSES= build
+SUBST_STAGE.build= post-patch
+SUBST_FILES.build= Makefile.am configure hydra-gtk/src/main.c
+SUBST_SED.build= -e "s|@SSLBASE@|${BUILDLINK_PREFIX.openssl}|g" \
+ -e "s|@PREFIX@|${PREFIX}|g" \
+ -e "s|uname|${UNAME}|g" \
+ -e "s|\./hydra|${PREFIX}/bin/hydra|g" \
+ -e "s|LIBS=-lm|LIBS=-lm ${COMPILER_RPATH_FLAG}${PREFIX}/lib ${COMPILER_RPATH_FLAG}/usr/lib|g"
+SUBST_MESSAGE.build= "Patching build files."
+
+USE_OLD_DES_API= YES
+PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+BUILDLINK_DEPENDS.libssh+= libssh-0.1
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.hydra
+PKG_SUPPORTED_OPTIONS= gtkfe
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgtkfe)
+
+.include "../../devel/pkgconfig/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+
+post-configure:
+ cd ${WRKSRC}/hydra-gtk && \
+ ${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
+
+post-build:
+ cd ${WRKSRC}/hydra-gtk && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hydra-gtk/src/xhydra ${PREFIX}/bin
+
+PLIST_SRC+= ${PKGDIR}/PLIST.xhydra
+.endif
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../security/libssh/buildlink3.mk"
+
+pre-build:
+ @${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hydra ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/pw-inspector ${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/hydra/PLIST b/security/hydra/PLIST
new file mode 100644
index 00000000000..908952d06de
--- /dev/null
+++ b/security/hydra/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+bin/hydra
+bin/pw-inspector
diff --git a/security/hydra/PLIST.xhydra b/security/hydra/PLIST.xhydra
new file mode 100644
index 00000000000..b2a0eb0284a
--- /dev/null
+++ b/security/hydra/PLIST.xhydra
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.xhydra,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+bin/xhydra
diff --git a/security/hydra/distinfo b/security/hydra/distinfo
new file mode 100644
index 00000000000..0db07f074a9
--- /dev/null
+++ b/security/hydra/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+
+SHA1 (hydra-4.6-src.tar.gz) = acf0f61f8dc2a5307e266c337231dbdb3a9b9d79
+RMD160 (hydra-4.6-src.tar.gz) = 72cffce9eda1659023b74f22baabfad43ac5933d
+Size (hydra-4.6-src.tar.gz) = 171063 bytes
+SHA1 (patch-aa) = 0ca0d1f6edf7bad05050c0a76ec6601044981c5b
+SHA1 (patch-ab) = fd43082819d05368e6adc4d0295cca3d7d3f8b36
+SHA1 (patch-ac) = c9ba9d8b584ec92b940dbf2e69768dad4ff86d25
+SHA1 (patch-ad) = 3734123af4511161eee93f624b1b9dd575be0ae7
diff --git a/security/hydra/patches/patch-aa b/security/hydra/patches/patch-aa
new file mode 100644
index 00000000000..6f0cbeb9cd1
--- /dev/null
+++ b/security/hydra/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+
+--- Makefile.am.orig 2005-04-17 13:11:05.000000000 +0100
++++ Makefile.am
+@@ -28,17 +28,11 @@ EXTRA_DIST = README README.arm README.pa
+ hydra-mod.h hydra.h crc32.h d3des.h md4.h
+
+ all: pw-inspector hydra xhydra
+- @echo
+- @echo Now type "make install"
+
+ hydra: $(OBJ)
+ $(CC) $(OPTS) $(LIBS) -o $(BIN) $(OBJ) $(LIB) $(XLIBS) $(XLIBPATHS)
+- @echo
+- @echo If men could get pregnant, abortion would be a sacrament
+- @echo
+
+ xhydra:
+- -cd hydra-gtk && ./make_xhydra.sh
+
+ pw-inspector: pw-inspector.c
+ -$(CC) $(OPTS) -o pw-inspector pw-inspector.c
diff --git a/security/hydra/patches/patch-ab b/security/hydra/patches/patch-ab
new file mode 100644
index 00000000000..790578fb652
--- /dev/null
+++ b/security/hydra/patches/patch-ab
@@ -0,0 +1,33 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+
+--- configure.orig 2005-02-01 14:50:26.000000000 +0000
++++ configure
+@@ -130,7 +130,7 @@ if [ "$SAPR3_IPATH" = "/usr/include" ];
+ fi
+
+ echo "Checking for libssh (libssh/libssh.h) ..."
+-for i in $LIBDIRS /lib /usr/lib /usr/local/lib /opt/local/lib .
++for i in $LIBDIRS /lib /usr/lib /usr/local/lib /opt/local/lib /usr/pkg/lib .
+ do
+ if [ "X" = "X$SSH_PATH" ]; then
+ if [ -f "$i/libssh.so" -o -f "$i/libssh.dylib" ]; then
+@@ -144,7 +144,7 @@ do
+ fi
+ fi
+ done
+-for i in /usr/local/include /*ssl/include /usr/include .
++for i in /usr/local/include /*ssl/include /usr/include /usr/pkg/include .
+ do
+ if [ "X" = "X$SSH_IPATH" ]; then
+ if [ -f "$i/libssh/libssh.h" ]; then
+@@ -291,10 +291,3 @@ echo >> Makefile.in
+ cat Makefile.unix > Makefile
+ cat Makefile.in >> Makefile
+ cat Makefile.am >> Makefile
+-
+-echo
+-echo NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES
+-echo =======================================================================
+-echo ARM/PalmPilot users: please run ./configure-arm or ./configure-palm respectivly
+-echo
+-echo "now type \"make\""
diff --git a/security/hydra/patches/patch-ac b/security/hydra/patches/patch-ac
new file mode 100644
index 00000000000..dbee963559d
--- /dev/null
+++ b/security/hydra/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+
+--- hydra-gtk/src/main.c.orig 2005-01-05 22:31:46.000000000 +0000
++++ hydra-gtk/src/main.c 2005-01-05 22:32:41.000000000 +0000
+@@ -30,7 +30,7 @@
+ gtk_set_locale ();
+ gtk_init (&argc, &argv);
+
+- add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
++ add_pixmap_directory ("@PREFIX@/share/xhydra/pixmaps");
+
+ /* initialize the message id */
+ message_id = 0;
diff --git a/security/hydra/patches/patch-ad b/security/hydra/patches/patch-ad
new file mode 100644
index 00000000000..309dd82b325
--- /dev/null
+++ b/security/hydra/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+
+--- hydra-gtk/src/Makefile.in.orig 2005-01-05 22:33:45.000000000 +0000
++++ hydra-gtk/src/Makefile.in 2005-01-05 22:34:23.000000000 +0000
+@@ -88,7 +88,7 @@
+ xhydra_OBJECTS = main.o support.o interface.o callbacks.o
+ xhydra_DEPENDENCIES =
+ xhydra_LDFLAGS =
+-CFLAGS = @CFLAGS@
++CFLAGS = @CFLAGS@ $(INCLUDES)
+ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ CCLD = $(CC)
+ LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@