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

(-)a/ipsorcery-2.0.9.ebuild (-6 / +13 lines)
Lines 2-7 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-misc/ipsorcery/ipsorcery-2.0.9.ebuild,v 1.3 2007/07/12 02:52:16 mr_bones_ Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-misc/ipsorcery/ipsorcery-2.0.9.ebuild,v 1.3 2007/07/12 02:52:16 mr_bones_ Exp $
4
4
5
EAPI="2"
6
7
inherit toolchain-funcs
8
5
DESCRIPTION="Ipsorcery allows you to generate IP, TCP, UDP, ICMP, and IGMP packets."
9
DESCRIPTION="Ipsorcery allows you to generate IP, TCP, UDP, ICMP, and IGMP packets."
6
SRC_URI="http://www.legions.org/~phric/ipsorc-${PV}.tar.gz"
10
SRC_URI="http://www.legions.org/~phric/ipsorc-${PV}.tar.gz"
7
HOMEPAGE="http://www.legions.org/~phric/ipsorcery.html"
11
HOMEPAGE="http://www.legions.org/~phric/ipsorcery.html"
Lines 13-35 Link Here
13
RDEPEND="${DEPEND}"
17
RDEPEND="${DEPEND}"
14
S=${WORKDIR}/ipsorc-${PV}
18
S=${WORKDIR}/ipsorc-${PV}
15
19
16
src_unpack() {
20
src_prepare() {
17
	unpack ${A}
21
	sed -i \
18
	sed -i -e "s:-O2:$CFLAGS:g" ${S}/Makefile
22
		-e '/^CC =/d' \
23
		-e "s:-O2:$CPPFLAGS $CFLAGS $LDFLAGS:g" \
24
		${S}/Makefile || die
19
}
25
}
20
26
21
src_compile () {
27
src_compile () {
28
	tc-export CC
22
	if use gtk; then
29
	if use gtk; then
23
		emake all || die
30
		emake all || die
24
	else
31
	else
25
		make con || die
32
		emake con || die
26
	fi
33
	fi
27
}
34
}
28
35
29
src_install () {
36
src_install () {
30
	if use gtk; then
37
	if use gtk; then
31
		dosbin magic
38
		dosbin magic || die
32
	fi
39
	fi
33
	dosbin ipmagic
40
	dosbin ipmagic || die
34
	dodoc README HOWTO
41
	dodoc README HOWTO
35
}
42
}

Return to bug 333811