diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-09-17 03:53:49 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-09-17 03:53:49 +0000 |
commit | f6bba75d2f84a457eb0a3c78cca0e8d3dc69005a (patch) | |
tree | b65267c8bdeaec882c93915db08a437fb3bb2ef2 /net-analyzer/zniper/zniper-1.0-r1.ebuild | |
parent | Fix whitespace. (diff) | |
download | gentoo-2-f6bba75d2f84a457eb0a3c78cca0e8d3dc69005a.tar.gz gentoo-2-f6bba75d2f84a457eb0a3c78cca0e8d3dc69005a.tar.bz2 gentoo-2-f6bba75d2f84a457eb0a3c78cca0e8d3dc69005a.zip |
Set RDEPEND. Respect LDFLAGS (bug #337738), CC, CFLAGS. Fix parallel make.
(Portage version: 2.2_rc82/cvs/Linux i686)
Diffstat (limited to 'net-analyzer/zniper/zniper-1.0-r1.ebuild')
-rw-r--r-- | net-analyzer/zniper/zniper-1.0-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/net-analyzer/zniper/zniper-1.0-r1.ebuild b/net-analyzer/zniper/zniper-1.0-r1.ebuild new file mode 100644 index 000000000000..dc47b3c2e381 --- /dev/null +++ b/net-analyzer/zniper/zniper-1.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zniper/zniper-1.0-r1.ebuild,v 1.1 2010/09/17 03:53:49 jer Exp $ + +EAPI="2" + +inherit toolchain-funcs + +DESCRIPTION="Displays and kill active TCP connections seen by the selected interface." +HOMEPAGE="http://www.signedness.org/tools/" +SRC_URI="http://www.signedness.org/tools/zniper.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="net-libs/libpcap + sys-libs/ncurses" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/"zniper" + +src_prepare() { + sed -i Makefile \ + -e 's| -o | $(LDFLAGS)&|g' \ + -e 's|@make|@$(MAKE)|g' \ + || die "sed Makefile" +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + CFLAGS="${CFLAGS}" \ + linux_x86 \ + || die "emake failed" +} + +src_install() { + dobin zniper + dodoc README + doman zniper.1 +} |