diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2002-11-08 13:07:26 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2002-11-08 13:07:26 +0000 |
commit | 8db734f45b3855c61e47462b7a2b800ce967f516 (patch) | |
tree | d93dddac77828097c5676a40f69ee3ee21fb1811 /net-analyzer/trafd/trafd-3.0.1.ebuild | |
parent | version bump (diff) | |
download | gentoo-2-8db734f45b3855c61e47462b7a2b800ce967f516.tar.gz gentoo-2-8db734f45b3855c61e47462b7a2b800ce967f516.tar.bz2 gentoo-2-8db734f45b3855c61e47462b7a2b800ce967f516.zip |
Initial import
Diffstat (limited to 'net-analyzer/trafd/trafd-3.0.1.ebuild')
-rw-r--r-- | net-analyzer/trafd/trafd-3.0.1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net-analyzer/trafd/trafd-3.0.1.ebuild b/net-analyzer/trafd/trafd-3.0.1.ebuild new file mode 100644 index 000000000000..ce78e3c9a90e --- /dev/null +++ b/net-analyzer/trafd/trafd-3.0.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/trafd/trafd-3.0.1.ebuild,v 1.1 2002/11/08 13:07:26 aliz Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="The BPF Traffic Collector" +SRC_URI="ftp://ftp.riss-telecom.ru/pub/dev/trafd/${P}.tgz + http://metalab.unc.edu/pub/Linux/system/network/management/tcpdump-richard-1.7.tar.gz" +HOMEPAGE="ftp://ftp.riss-telecom.ru/pub/dev/trafd/" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" + +# -lbpft/*Ó×ÏÑ*/ -lpcap -lcurses -ltermcap -lfl +DEPEND="net-libs/libpcap + sys-libs/ncurses + sys-devel/flex" + +RDEPEND=$DEPEND + +src_unpack() { + unpack ${A} + cd ${S} + patch -p0 < ${FILESDIR}/${PF}-gentoo.diff + + mv Makefile Makefile.orig + sed "44s/-O2$/${CFLAGS}/" Makefile.orig >Makefile +} + +src_compile() { + emake || die +} + +src_install () { + dodir /usr/bin /etc /usr/share/doc/trafd-3.0.1 /var/trafd + make install DESTDIR=${D} || die + exeinto /etc/init.d ; newexe ${FILESDIR}/trafd.init trafd + insinto /etc/conf.d ; newins ${FILESDIR}/trafd.conf trafd +} + +pkg_postinst() { + ewarn "NOTE: if you want to run trafd on boot then execute" + ewarn "rc-update add trafd default" + ewarn "change interfaces in /etc/conf.d/trafd (default is eth0)" +} |