blob: 746066183054431c095d96de4b4b95fc890c5f06 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
inherit eutils
DESCRIPTION="NetAMS Traffic Accounting"
SRC_URI="http://www.netams.com/files/netams-${PV}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 amd64"
RDEPEND="dev-db/mysql net-libs/libpcap"
src_unpack() {
unpack ${P}.tar.gz
# epatch ${FILESDIR}/netams-ds-compile.patch || die
}
src_compile() {
./configure.sh || die
FLAGS=-DHAVE_BW make || die
}
src_install() {
into /usr
mkdir -p ${D}/usr/sbin
mkdir -p ${D}/etc/init.d
mkdir -p ${D}/usr/share/man/man8/
install -m 0755 ${FILESDIR}/netams33.init ${D}/etc/init.d/netams
# install -m 0755 addon/netams-gentoo.sh ${D}/etc/init.d/netams
install -m 0755 src/flowprobe ${D}/usr/sbin/
install -m 0755 src/ipfw2netflow ${D}/usr/sbin/
install -m 0755 src/ulog2netflow ${D}/usr/sbin/
install -m 0755 src/netams ${D}/usr/sbin/
install -m 0755 src/netamsctl ${D}/usr/sbin/
install -m 0644 doc/*.8 ${D}/usr/share/man/man8/
}
|