blob: eb36913f131eb3cf40d36ad86d4fcda3f6736c93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndsad/ndsad-1.33.ebuild,v 1.3 2006/02/19 22:56:19 tsunam Exp $
DESCRIPTION="Cisco netflow probe from libpcap, ULOG, tee/divert sources."
HOMEPAGE="http://sourceforge.net/projects/ndsad"
SRC_URI="mirror://sourceforge/ndsad/ndsad-${PV}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RDEPEND=">=net-libs/libpcap-0.8"
DEPEND="${RDEPEND}
=sys-devel/automake-1.7*
=sys-devel/autoconf-2.5*"
src_unpack() {
einfo "Regenerating autotools files..."
export WANT_AUTOCONF=2.5
export WANT_AUTOMAKE=1.7
unpack ${A}
cd ${S}
# Puttind ndsad binary in sbin.
sed -i "s/bin_PROGRAMS = ndsad/sbin_PROGRAMS = ndsad/" Makefile.am || \
die "Can not change bin->sbin in Makefile.am... sed failed"
sed -i \
"s:^#define conf_path \"/netup/utm5/ndsad.cfg\":#define conf_path \"/etc/ndsad.conf\":" \
ndsad.cc || die "Can not change default config path... sed failed"
sed -i "s:log /tmp/ndsad.log:log /var/log/ndsad.log:" ndsad.conf || \
die "Can not fix logging path in ndsad.conf... sed failed"
./preconf
}
src_compile() {
econf --with-ulog=yes || die "configure failed"
emake || die "compilation failed"
}
src_install() {
make DESTDIR="${D}" install || die "install failed"
doman ndsad.conf.5
insinto /etc
newins ndsad.conf ndsad.conf
exeinto /etc/init.d
newexe ${FILESDIR}/ndsad.init ndsad
insinto /etc/conf.d
newins ${FILESDIR}/ndsad.conf.d ndsad
dodoc ChangeLog AUTHORS README
}
|