# # ebuild and patches by chris@linx.net inherit eutils DESCRIPTION="Packet sampling and analysis framework" HOMEPAGE="http://como.intel-research.net" SRC_URI="mirror://sourceforge/como/${P}.tar.gz" LICENSE="Intel" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" # these libraries are auto detected but I can't easily enable/disable them #IUSE="dag sk98 netflow libpcap" IUSE="" # build time depends DEPEND="net-libs/libpcap sys-devel/bison" src_unpack() { unpack ${A} # compile modules with -fPIC epatch ${FILESDIR}/${PN}-1.0-pic.patch # make target for sniffer-list.h real rather than phoney # so it doesn't get rebuilt at install time epatch ${FILESDIR}/${PN}-1.0-sniffer-list.patch # remove PREFIX from como.gmk as it conflicts with bison/flex builds epatch ${FILESDIR}/${PN}-1.0-prefix.patch } src_compile() { rm base/filter-syntax.c rm base/filter-lexic.c make \ WARNINGS= \ INST_BINDIR=/usr/bin \ INST_LIBDIR=/usr/lib/como \ INST_DATADIR=/var/lib/como \ INST_MANDIR=/usr/share/man/man1 \ DEFAULT_CFGFILE=/etc/como/como.conf \ || die "make failed" } src_install() { make \ WARNINGS= \ INST_BINDIR=${D}/usr/bin \ INST_LIBDIR=${D}/usr/lib/como \ INST_DATADIR=${D}/var/lib/como \ INST_MANDIR=${D}/usr/share/man/man1 \ DEFAULT_CFGFILE=${D}/etc/como/como.conf \ install \ || die "make failed" dodoc CHANGES DESCRIPTION LICENSE README insinto /etc/como doins base/example.conf }