summaryrefslogtreecommitdiff
path: root/security/hydra/Makefile
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 /security/hydra/Makefile
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.
Diffstat (limited to 'security/hydra/Makefile')
-rw-r--r--security/hydra/Makefile70
1 files changed, 70 insertions, 0 deletions
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"