You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/switzerland/switzerland-0.1.0.ebuild

51 lines
985 B

# 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
}