blob: c09eec2bc8ee3b49bd3279a998ad8fa75f35a665 (
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
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/switzerland/switzerland-0.1.0.ebuild,v 1.1 2011/05/08 20:31:28 jer Exp $
EAPI="3"
PYTHON_DEPEND="2"
inherit distutils toolchain-funcs
DESCRIPTION="Switzerland Network Testing Tool"
HOMEPAGE="http://www.eff.org/testyourisp/switzerland/"
SRC_URI="mirror://sourceforge/switzerland/${P}.tgz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="net-libs/libpcap"
RDEPEND=${DEPEND}
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
cp "${FILESDIR}"/Makefile switzerland/client
sed -i \
-e "s/= find_binary()/= dest/" \
setup.py
}
src_compile() {
cd switzerland/client
emake CC=$(tc-getCC) || die "emake failed"
cd "${S}"
distutils_src_compile
}
src_install() {
distutils_src_install
dodoc BUGS.txt CREDITS
keepdir /var/log/switzerland-pcaps
keepdir /var/log/switzerland
}
|