# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs DESCRIPTION="A tiny network sniffer" HOMEPAGE="http://www.ularx.de/dietsniff/" SRC_URI="http://www.ularx.de/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="dns pcap" DEPEND="dev-libs/dietlibc dev-libs/libowfat" src_compile() { useq dns && CFLAGS="${CFLAGS} -DUSE_REV_RES" useq pcap && CFLAGS="${CFLAGS} -DUSE_PCAP" emake \ CC="diet $(tc-getCC)" \ CFLAGS="${CFLAGS} -I/usr/include/libowfat" \ || die "emake failed" } src_install() { make \ prefix=/usr \ DESTDIR="${D}" \ install || die "make install failed" dodoc AUTHORS ChangeLog README }