2012-01-07 12:05:30 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2011-11-09 11:33:19 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-01-07 12:05:30 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/siphon/siphon-666-r1.ebuild,v 1.2 2012/01/03 17:53:27 jer Exp $
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
EAPI="2"
|
|
|
|
|
|
|
|
inherit toolchain-funcs
|
|
|
|
|
|
|
|
MY_P=${PN}-v.${PV}
|
|
|
|
|
|
|
|
DESCRIPTION="A portable passive network mapping suite"
|
|
|
|
SRC_URI="http://siphon.datanerds.net/${MY_P}.tar.gz"
|
|
|
|
HOMEPAGE="http://siphon.datanerds.net/"
|
|
|
|
|
|
|
|
SLOT="0"
|
|
|
|
LICENSE="as-is"
|
|
|
|
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
|
|
|
|
|
|
|
DEPEND="net-libs/libpcap"
|
2012-01-07 12:05:30 +04:00
|
|
|
RDEPEND="${DEPEND}"
|
2011-11-09 11:33:19 +04:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
sed -i log.c \
|
|
|
|
-e 's:osprints\.conf:/etc/osprints.conf:' \
|
|
|
|
|| die "sed log.c"
|
|
|
|
sed -i Makefile \
|
|
|
|
-e '/^CFLAGS/s:=.*:+= -pthread -Wall -I.:g' \
|
|
|
|
-e 's: -o : $(LDFLAGS)&:g' \
|
|
|
|
|| die "sed Makefile"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake CC=$(tc-getCC) || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin ${PN} || die "dobin ${PN}"
|
|
|
|
insinto /etc
|
|
|
|
doins osprints.conf
|
|
|
|
dodoc README
|
|
|
|
}
|