Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 333803
Collapse All | Expand All

(-)a/hydra-5.4-r3.ebuild (-5 / +15 lines)
Lines 3-9 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hydra/hydra-5.4-r3.ebuild,v 1.4 2010/05/21 15:53:49 pva Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hydra/hydra-5.4-r3.ebuild,v 1.4 2010/05/21 15:53:49 pva Exp $
4
4
5
EAPI="2"
5
EAPI="2"
6
inherit eutils
6
inherit eutils toolchain-funcs
7
7
8
DESCRIPTION="Advanced parallized login hacker"
8
DESCRIPTION="Advanced parallized login hacker"
9
HOMEPAGE="http://www.thc.org/thc-hydra/"
9
HOMEPAGE="http://www.thc.org/thc-hydra/"
Lines 15-35 Link Here
15
IUSE="gtk ssl"
15
IUSE="gtk ssl"
16
16
17
DEPEND="gtk? ( >=x11-libs/gtk+-1.2 )
17
DEPEND="gtk? ( >=x11-libs/gtk+-1.2 )
18
	dev-libs/openssl
18
	ssl? (
19
	ssl? (
19
		dev-libs/openssl
20
		>=net-libs/libssh-0.4.0
20
		>=net-libs/libssh-0.4.0
21
	)"
21
	)"
22
22
23
S=${WORKDIR}/${P}-src
23
S=${WORKDIR}/${P}-src
24
24
25
src_prepare() {
25
src_prepare() {
26
	sed -i "s:-O2:${CFLAGS}:" Makefile.am || die "sed failed"
26
	sed -i \
27
		-e "s:-O2:${CPPFLAGS} ${CFLAGS}:" \
28
		-e 's:|| echo.*$::' \
29
		-e '/\t-$(CC)/s/-//' \
30
		-e "/ -o /s:\$(OPTS):& ${LDFLAGS}:" \
31
		Makefile.am || die "sed failed"
27
	epatch "${FILESDIR}/${P}-_FORTIFY_SOURCE.patch"
32
	epatch "${FILESDIR}/${P}-_FORTIFY_SOURCE.patch"
28
	epatch "${FILESDIR}/${P}-free-without-malloc.patch"
33
	epatch "${FILESDIR}/${P}-free-without-malloc.patch"
29
	epatch "${FILESDIR}/${P}-libssh-0.4.0.patch"
34
	epatch "${FILESDIR}/${P}-libssh-0.4.0.patch"
35
	# None of the settings in Makefile.unix are useful to us
36
	: > Makefile.unix
30
}
37
}
31
38
32
src_configure() {
39
src_configure() {
40
	# Note: despite the naming convention, the top level script is not an
41
	# autoconf-based script.
33
	./configure \
42
	./configure \
34
		--prefix=/usr \
43
		--prefix=/usr \
35
		$(use gtk && echo --disable-xhydra) \
44
		$(use gtk && echo --disable-xhydra) \
Lines 37-43 Link Here
37
46
38
	sed -i \
47
	sed -i \
39
		-e '/^XDEFINES=/s:=.*:=:' \
48
		-e '/^XDEFINES=/s:=.*:=:' \
40
		-e '/^XLIBS=/s:=.*:=:' \
49
		-e '/^XLIBS=/s:=.*:=-lcrypto:' \
41
		-e '/^XLIBPATHS/s:=.*:=:' \
50
		-e '/^XLIBPATHS/s:=.*:=:' \
42
		-e '/^XIPATHS=/s:=.*:=:' \
51
		-e '/^XIPATHS=/s:=.*:=:' \
43
		Makefile || die "pruning vars"
52
		Makefile || die "pruning vars"
Lines 45-51 Link Here
45
	if use ssl ; then
54
	if use ssl ; then
46
		sed -i \
55
		sed -i \
47
			-e '/^XDEFINES=/s:=:=-DLIBOPENSSL -DLIBSSH:' \
56
			-e '/^XDEFINES=/s:=:=-DLIBOPENSSL -DLIBSSH:' \
48
			-e '/^XLIBS=/s:=:=-lcrypto -lssl -lssh:' \
57
			-e '/^XLIBS=/s:$: -lssl -lssh:' \
49
			Makefile || die "adding ssl"
58
			Makefile || die "adding ssl"
50
	fi
59
	fi
51
60
Lines 56-61 Link Here
56
}
65
}
57
66
58
src_compile() {
67
src_compile() {
68
	tc-export CC
59
	emake || die "make failed"
69
	emake || die "make failed"
60
	if use gtk ; then
70
	if use gtk ; then
61
		cd hydra-gtk && \
71
		cd hydra-gtk && \

Return to bug 333803