]> git.pld-linux.org Git - packages/ntop.git/blob - ntop.spec
e695643841ccfd7c469f6c293d08ebb59e6e4cc8
[packages/ntop.git] / ntop.spec
1 Summary:        Network monitoring tool
2 Summary(pl):    Narzêdzie do monitorowania sieci
3 Name:           ntop
4 Version:        1.3.2
5 Release:        1
6 License:        GPL
7 Group:          Networking
8 Group(de):      Netzwerkwesen
9 Group(pl):      Sieciowe
10 Source0:        ftp://ftp.ntop.org/pub/local/ntop/snapshots/%{name}-src-Oct-26-2000.tar.gz
11 Patch0:         %{name}-configure.patch
12 Patch1:         %{name}-plugins.patch
13 URL:            http://www.ntop.org/
14 BuildRequires:  libpcap-devel
15 BuildRequires:  libwrap-devel
16 BuildRequires:  ncurses-devel
17 BuildRequires:  readline-devel
18 BuildRequires:  openssl-devel
19 BuildRequires:  ucd-snmp-devel
20 BuildRequires:  tar
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 ntop is a tool that shows the network usage, similar to what the
25 popular top Unix command does.
26
27 %description -l pl
28 ntop to narzêdzie, które pokazuje u¿ycie sieci w podobny sposób jak
29 robi to popularna Unixowa komenda top.
30
31 %prep
32 %setup -q -c
33 tar xzf %{name}-*.tar.gz
34 tar xzf gdchart*.tar.gz
35 rm -f *.tar.gz
36 cd %{name}-%{version}
37 %patch0 -p1
38 %patch1 -p1
39
40 %build
41 cd gdchart*
42 %configure
43 %{__make}
44
45 cd ../%{name}-%{version}
46 libtoolize --copy --force
47 aclocal
48 autoheader
49 automake --add-missing --gnu
50 autoconf
51 %configure \
52         --with-gdchart-root=../gdchart* \
53         --with-ossl-root=%{_prefix} \
54         --enable-tcpwrap \
55         --disable-mt \
56         --localstatedir=%{_var}/%{ntop}
57         
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 cd %{name}-%{version}
63 rm -rf $RPM_BUILD_ROOT
64
65 install -d $RPM_BUILD_ROOT%{_var}/%{name}
66 %{__make} install DESTDIR=$RPM_BUILD_ROOT
67 rm -f $RPM_BUILD_ROOT%{_bindir}/*.pem
68
69 gzip -9nf AUTHORS FAQ KNOWN_BUGS NEWS README THANKS TODO
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc */*.gz
77 %dir %{_var}/%{name}
78 %attr(755,root,root) %{_bindir}/*
79 %attr(755,root,root) %{_libdir}/lib*
80 %{_libdir}/%{name}
81 %{_datadir}/%{name}
82 %{_mandir}/man*/*
This page took 0.041256 seconds and 3 git commands to generate.