summaryrefslogtreecommitdiffstats
path: root/net-analyzer/netams/netams-3.4.5.ebuild
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /net-analyzer/netams/netams-3.4.5.ebuild
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'net-analyzer/netams/netams-3.4.5.ebuild')
-rw-r--r--net-analyzer/netams/netams-3.4.5.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/net-analyzer/netams/netams-3.4.5.ebuild b/net-analyzer/netams/netams-3.4.5.ebuild
new file mode 100644
index 0000000..8a195c5
--- /dev/null
+++ b/net-analyzer/netams/netams-3.4.5.ebuild
@@ -0,0 +1,41 @@
+# 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 net-libs/libnetfilter_queue"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ epatch ${FILESDIR}/netams-3.4.5-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/
+ mkdir -p ${D}/var/www/localhost/htdocs/netams/images
+
+ install -m 0755 ${FILESDIR}/netams33.init ${D}/etc/init.d/netams || die
+# install -m 0755 addon/netams-gentoo.sh ${D}/etc/init.d/netams || die
+ install -m 0755 src/flowprobe ${D}/usr/sbin/ || die
+# install -m 0755 src/ipfw2netflow ${D}/usr/sbin/ || die
+# install -m 0755 src/ulog2netflow ${D}/usr/sbin/ || die
+ install -m 0755 src/netams ${D}/usr/sbin/ || die
+ install -m 0755 src/netamsctl ${D}/usr/sbin/ || die
+ install -m 0644 doc/*.8 ${D}/usr/share/man/man8/ || die
+ install -m 0644 addon/netams.js ${D}/var/www/localhost/htdocs/netams/ || die
+ install -m 0644 cgi-bin/images/* ${D}/var/www/localhost/htdocs/netams/images/ || die
+}