diff options
author | Jeroen Roovers <jer@gentoo.org> | 2011-09-14 05:49:26 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2011-09-14 05:49:26 +0000 |
commit | 7e81193e32e6dd1dc8f4de67fecf754e13164b2b (patch) | |
tree | b472a6bcf136f31882a82bccda33c6069deb56f5 /net-analyzer | |
parent | Mask USE=oracle once more for net-analyzer/hydra. (diff) | |
download | gentoo-2-7e81193e32e6dd1dc8f4de67fecf754e13164b2b.tar.gz gentoo-2-7e81193e32e6dd1dc8f4de67fecf754e13164b2b.tar.bz2 gentoo-2-7e81193e32e6dd1dc8f4de67fecf754e13164b2b.zip |
Version bump. Add many dependencies already used, and USE flags to go with them.
(Portage version: 2.2.0_alpha55/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/hydra/ChangeLog | 8 | ||||
-rw-r--r-- | net-analyzer/hydra/hydra-7.0.ebuild | 98 | ||||
-rw-r--r-- | net-analyzer/hydra/metadata.xml | 1 |
3 files changed, 106 insertions, 1 deletions
diff --git a/net-analyzer/hydra/ChangeLog b/net-analyzer/hydra/ChangeLog index 4a26c732f29c..396d79f49812 100644 --- a/net-analyzer/hydra/ChangeLog +++ b/net-analyzer/hydra/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/hydra # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hydra/ChangeLog,v 1.62 2011/08/15 10:20:45 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hydra/ChangeLog,v 1.63 2011/09/14 05:49:26 jer Exp $ + +*hydra-7.0 (14 Sep 2011) + + 14 Sep 2011; Jeroen Roovers <jer@gentoo.org> +hydra-7.0.ebuild, metadata.xml: + Version bump. Add many dependencies already used, and USE flags to go with + them. 15 Aug 2011; Jeroen Roovers <jer@gentoo.org> -hydra-5.9.ebuild, -hydra-6.0.ebuild: diff --git a/net-analyzer/hydra/hydra-7.0.ebuild b/net-analyzer/hydra/hydra-7.0.ebuild new file mode 100644 index 000000000000..2d1d7868cb41 --- /dev/null +++ b/net-analyzer/hydra/hydra-7.0.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hydra/hydra-7.0.ebuild,v 1.1 2011/09/14 05:49:26 jer Exp $ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="Advanced parallized login hacker" +HOMEPAGE="http://www.thc.org/thc-hydra/" +SRC_URI="http://freeworld.thc.org/releases/${P}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="firebird gtk idn mysql ncp oracle pcre postgres ssl subversion" + +RDEPEND=" + dev-libs/openssl + firebird? ( dev-db/firebird ) + gtk? ( + dev-libs/atk + dev-libs/glib:2 + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:2 + ) + idn? ( net-dns/libidn ) + mysql? ( dev-db/mysql ) + ncp? ( net-fs/ncpfs ) + oracle? ( dev-db/oracle-instantclient-basic ) + pcre? ( dev-libs/libpcre ) + postgres? ( dev-db/postgresql-base ) + ssl? ( >=net-libs/libssh-0.4.0 ) + subversion? ( dev-vcs/subversion ) +" +DEPEND=" + ${RDEPEND} + dev-util/pkgconfig +" + +S=${WORKDIR}/${P}-src + +src_prepare() { + # None of the settings in Makefile.unix are useful to us + : > Makefile.unix + + sed -i \ + -e 's:-O2:$(CPPFLAGS) $(CFLAGS):g' \ + -e 's:|| echo.*$::' \ + -e '/\t-$(CC)/s:-::' \ + -e '/ -o /s:$(OPTS):& $(LDFLAGS):g' \ + Makefile.am || die "sed failed" +} + +src_configure() { + # Note: despite the naming convention, the top level script is not an + # autoconf-based script. + ./configure \ + --prefix=/usr \ + $(use gtk && echo --disable-xhydra) \ + || die "configure failed" + + sed -i \ + -e '/^XDEFINES=/s:=.*:=:' \ + -e '/^XLIBS=/s:=.*:=-lcrypto:' \ + -e '/^XLIBPATHS/s:=.*:=:' \ + -e '/^XIPATHS=/s:=.*:=:' \ + Makefile || die "pruning vars" + + if use ssl ; then + sed -i \ + -e '/^XDEFINES=/s:=:=-DLIBOPENSSLNEW -DLIBSSH:' \ + -e '/^XLIBS=/s:$: -lssl -lssh:' \ + Makefile || die "adding ssl" + fi + + if use gtk ; then + cd hydra-gtk && \ + econf || die "econf failed" + fi +} + +src_compile() { + tc-export CC + emake + if use gtk ; then + cd hydra-gtk && \ + emake + fi +} + +src_install() { + dobin hydra pw-inspector + if use gtk ; then + dobin hydra-gtk/src/xhydra + fi + dodoc CHANGES README +} diff --git a/net-analyzer/hydra/metadata.xml b/net-analyzer/hydra/metadata.xml index ce670dcb6aeb..022063110f44 100644 --- a/net-analyzer/hydra/metadata.xml +++ b/net-analyzer/hydra/metadata.xml @@ -3,4 +3,5 @@ <pkgmetadata> <herd>netmon</herd> <longdescription>Advanced parallized login hacker</longdescription> +<use><flag name="ncp">NCP protocol (NetWare) support through <pkg>net-fs/ncpfs</pkg></flag></use> </pkgmetadata> |