summaryrefslogtreecommitdiff
blob: 1b35701a128539aad1aa328a07c178c56b965d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/stone/stone-2.3e.ebuild,v 1.4 2009/03/14 19:13:49 nixnut Exp $

inherit eutils toolchain-funcs

DESCRIPTION="A simple TCP/IP packet repeater"
HOMEPAGE="http://www.gcd.org/sengoku/stone/"
SRC_URI="http://www.gcd.org/sengoku/stone/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ~sparc x86"
IUSE="ssl"

DEPEND="ssl? ( dev-libs/openssl )"

S="${WORKDIR}/${PN}-2.3d-2.3.2.7"

src_compile() {
	local myargs

	if use ssl ; then
		myargs="${myconf} SSL=/usr linux-ssl"
	else
		myargs="${myconf} linux"
	fi

	emake \
		CC="$(tc-getCC)" \
		CFLAGS="${CFLAGS} -D_GNU_SOURCE" \
		${myargs} || die
}

src_install() {
	dobin stone
	# doman stone.1
	dodoc README*
}