Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 215654
Collapse All | Expand All

(-)file_not_specified_in_diff (-16 / +36 lines)
Line  Link Here
0
-- ntop-3.3.6.ebuild.bak       2008-07-07 19:33:09.000000000 +0100
0
++ ntop-9999.ebuild    2008-07-07 21:54:23.000000000 +0100
Lines 1-19 Link Here
1
# Copyright 1999-2008 Gentoo Foundation
1
# Copyright 1999-2008 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-analyzer/ntop/ntop-3.3.6.ebuild,v 1.2 2008/07/05 15:03:09 loki_val Exp $
3
# $Header:
4
inherit eutils autotools
4
if [[ ${PV} == *9999* ]]
5
then
6
       inherit eutils autotools subversion
7
       ESVN_REPO_URI="https://svn.ntop.org/svn/ntop/trunk/ntop"
8
#      ESVN_BOOTSTRAP="./autogen.sh --noconfig"
9
#      S="${WORKDIR}/${PN}"
10
else
11
       inherit eutils autotools
12
       SRC_URI="mirror://sourceforge/ntop/${P}.tar.gz"
13
       S="${WORKDIR}/${PN}"
14
fi
5
DESCRIPTION="tool that shows network usage like top"
15
DESCRIPTION="tool that shows network usage like top"
6
HOMEPAGE="http://www.ntop.org/ntop.html"
16
HOMEPAGE="http://www.ntop.org/ntop.html"
7
SRC_URI="mirror://sourceforge/ntop/${P}.tar.gz"
8
LICENSE="GPL-2"
17
LICENSE="GPL-2"
9
SLOT="0"
18
SLOT="0"
10
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
19
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
11
IUSE="ipv6 nls ssl tcpd zlib"
20
IUSE="ipv6 nls ssl tcpd"
12
#IUSE="ipv6 nls snmp ssl tcpd zlib"
21
#IUSE="ipv6 nls snmp ssl tcpd zlib"
22
#zlib? ( sys-libs/zlib )
13
#snmp? ( net-analyzer/net-snmp )
23
#snmp? ( net-analyzer/net-snmp )
14
COMMON_DEPEND="sys-apps/gawk
24
COMMON_DEPEND="sys-apps/gawk
15
       >=sys-libs/gdbm-1.8.0
25
       >=sys-libs/gdbm-1.8.0
Lines 23-29 Link Here
23
       net-analyzer/rrdtool
33
       net-analyzer/rrdtool
24
       ssl? ( >=dev-libs/openssl-0.9.6 )
34
       ssl? ( >=dev-libs/openssl-0.9.6 )
25
       tcpd? ( >=sys-apps/tcp-wrappers-7.6-r4 )
35
       tcpd? ( >=sys-apps/tcp-wrappers-7.6-r4 )
26
       zlib? ( sys-libs/zlib )"
36
       sys-libs/zlib"
37
27
DEPEND="${COMMON_DEPEND}
38
DEPEND="${COMMON_DEPEND}
28
       >=sys-devel/libtool-1.4"
39
       >=sys-devel/libtool-1.4"
Lines 33-40 Link Here
33
RDEPEND="${COMMON_DEPEND}
44
RDEPEND="${COMMON_DEPEND}
34
       media-gfx/graphviz"
45
       media-gfx/graphviz"
35
S="${WORKDIR}/${PN}"
36
37
pkg_setup() {
46
pkg_setup() {
38
       # snmp doesn't compile in this release, disabled for now
47
       # snmp doesn't compile in this release, disabled for now
Lines 62-74 Link Here
62
}
71
}
63
src_unpack() {
72
src_unpack() {
64
       unpack ${A}
73
       if [[ ${PV} == *9999* ]]
74
       then
75
               subversion_src_unpack
76
       else
77
               unpack ${A}
78
       fi
65
       cd "${S}"
79
       cd "${S}"
66
       epatch "${FILESDIR}"/${P}-gentoo.patch
80
#      epatch "${FILESDIR}"/${P}-gentoo.patch
67
       cat acinclude.m4.in acinclude.m4.ntop > acinclude.m4
81
       epatch "${FILESDIR}"/ntop-gentoo.patch
68
       eautoreconf
82
#      at acinclude.m4.in acinclude.m4.ntop > acinclude.m4
69
       touch libtool.m4.in
83
       ./autogen.sh --noconfig
84
#      eautoreconf
85
#      touch libtool.m4.in
70
}
86
}
71
src_compile() {
87
src_compile() {
Lines 84-96 Link Here
84
       econf \
100
       econf \
85
               $(use_enable ipv6) \
101
               $(use_enable ipv6) \
86
               $(use_enable nls i18n) \
102
               $(use_enable nls i18n) \
87
               $(use_with ssl) $(use_enable ssl sslv3) $(use_enable ssl sslwatchdog) \
103
               $(use_with ssl) $(use_enable ssl sslwatchdog) \
88
               $(use_with tcpd) \
104
               $(use_with tcpd tcpwrap) \
89
               $(use_with zlib) \
90
               --with-rrd-home=/usr/lib \
105
               --with-rrd-home=/usr/lib \
91
               --disable-snmp \
106
               --disable-snmp \
92
               || die "configure problem"
107
               || die "configure problem"
93
               # $(use_enable snmp)
108
               # $(use_enable snmp)
109
               # ----------------------------------
110
               # $(use_enable ssl sslv3)       - # Unrecognized options # -> $(use_with ssl) | sslv3 enabled by default
111
               # $(use_with tcpd)              - # Unrecognized options # -> $(use_with tcpd tcpwrap)
112
               # $(use_with zlib)              - # Unrecognized options # -> not needed
113
               # ----------------------------------
94
       emake || die "compile problem"
114
       emake || die "compile problem"
95
}
115
}

Return to bug 215654