blob: d8b21a43b05b4230438093b66de8b4405195162c (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ntopng/ntopng-2.0.ebuild,v 1.1 2015/07/31 05:17:05 slis Exp $
EAPI=5
inherit autotools user
DESCRIPTION="Network traffic analyzer with web interface"
HOMEPAGE="http://www.ntop.org/"
SRC_URI="mirror://sourceforge/ntop/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-db/sqlite:3
dev-libs/geoip
dev-libs/glib:2
net-libs/libpcap
dev-libs/libxml2"
RDEPEND="${DEPEND}
dev-db/redis"
src_prepare() {
cat "${S}/configure.seed" | sed "s/@VERSION@/${PV}/g" | sed "s/@SHORT_VERSION@/${PV}/g" > "${S}/configure.ac"
eautoreconf
}
src_install() {
SHARE_NTOPNG_DIR="${EPREFIX}/usr/share/${PN}"
dodir ${SHARE_NTOPNG_DIR}
insinto ${SHARE_NTOPNG_DIR}
doins -r httpdocs
doins -r scripts
exeinto /usr/bin
doexe ${PN}
doman ${PN}.8
newinitd "${FILESDIR}/ntopng.init.d" ntopng
newconfd "${FILESDIR}/ntopng.conf.d" ntopng
dodir "/var/lib/ntopng"
fowners ntopng "${EPREFIX}/var/lib/ntopng"
}
pkg_setup() {
enewuser ntopng
}
pkg_postinst() {
elog "ntopng default creadential are user='admin' password='admin'"
}
|