diff options
Diffstat (limited to 'net-misc/switzerland/switzerland-0.1.0.ebuild')
-rw-r--r-- | net-misc/switzerland/switzerland-0.1.0.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net-misc/switzerland/switzerland-0.1.0.ebuild b/net-misc/switzerland/switzerland-0.1.0.ebuild new file mode 100644 index 000000000000..592ded400698 --- /dev/null +++ b/net-misc/switzerland/switzerland-0.1.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 toolchain-funcs + +DESCRIPTION="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" + +DEPEND="net-libs/libpcap" +RDEPEND=${DEPEND} + +src_prepare() { + cp "${FILESDIR}"/Makefile switzerland/client + + sed -i \ + -e "s/= find_binary()/= dest/" \ + setup.py + distutils-r1_src_prepare +} + +src_compile() { + cd switzerland/client + emake CC=$(tc-getCC) + + cd "${S}" + distutils-r1_src_compile +} + +src_install() { + distutils-r1_src_install + + dodoc BUGS.txt CREDITS + + keepdir /var/log/switzerland-pcaps + keepdir /var/log/switzerland +} |