You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/siphon/siphon-666-r1.ebuild

45 lines
931 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/siphon/siphon-666-r1.ebuild,v 1.4 2012/02/05 18:29:41 armin76 Exp $
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 x86"
DEPEND="net-libs/libpcap"
RDEPEND="${DEPEND}"
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
}