]> git.pld-linux.org Git - packages/ntop.git/blob - ntop.spec
- massive attack s/pld.org.pl/pld-linux.org/
[packages/ntop.git] / ntop.spec
1 %define snap    03-02-13
2 Summary:        Network monitoring tool
3 Summary(pl):    Narzêdzie do monitorowania sieci
4 Name:           ntop
5 Version:        2.2
6 Release:        0.1
7 License:        GPL
8 Group:          Networking
9 Source0:        http://snapshot.ntop.org/tgz/%{name}-%{version}.tgz
10 Patch0:         %{name}-acam.patch
11 Patch1:         %{name}-externallib.patch
12 Patch2:         %{name}-perl.patch
13 URL:            http://www.ntop.org/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  gd-devel >= 2.0.1
17 BuildRequires:  gdbm-devel >= 1.8.3
18 BuildRequires:  libpcap-devel
19 BuildRequires:  libpng-devel
20 BuildRequires:  libtiff-devel
21 BuildRequires:  libwrap-devel
22 BuildRequires:  libtool
23 BuildRequires:  ncurses-devel >= 5.2
24 BuildRequires:  openssl-devel >= 0.9.7
25 BuildRequires:  readline-devel >= 4.2
26 BuildRequires:  zlib-devel
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 ntop is a tool that shows the network usage, similar to what the
31 popular top Unix command does.
32
33 %description -l pl
34 ntop to narzêdzie, które pokazuje u¿ycie sieci w podobny sposób jak
35 robi to popularna Unixowa komenda top.
36
37 %prep
38 %setup -q 
39 #%%patch0 -p1
40 cd %{name}*
41 %patch2 -p1
42 cd ../gdchart*
43 %patch1 -p1
44
45 %build
46 cd gdchart*
47 rm -rf gd-* zlib-*
48 %{__libtoolize}
49 %{__aclocal}
50 %{__autoconf}
51 %configure
52 %{__make}
53
54 cd ../%{name}*
55 #mv -f acinclude.m4.in acinclude.m4
56 #rm -f missing
57 #%%{__libtoolize}
58 %{__aclocal}
59 %{__autoconf}
60 %{__automake}
61 %configure \
62         --with-ossl-root=%{_prefix} \
63         --with-gdchart-root=`pwd`/../gdchart0.94c \
64         --enable-tcpwrap \
65         --with-gnu-ld \
66         --localstatedir=%{_var}/lib/%{name} || true
67
68 %configure \
69         --with-ossl-root=%{_prefix} \
70         --with-gdchart-root=`pwd`/../gdchart0.94c \
71         --enable-tcpwrap \
72         --with-gnu-ld \
73         --localstatedir=%{_var}/lib/%{name}
74
75
76 %{__make}
77 cd plugins
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82 cd %{name}*
83 install -d      $RPM_BUILD_ROOT%{_var}/lib/%{name}
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 #mv $RPM_BUILD_ROOT%{_bindir}/*.pem $RPM_BUILD_ROOT%{_datadir}/%{name}
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
97 %defattr(644,root,root,755)
98 %doc ntop/AUTHORS ntop/NEWS ntop/README ntop/THANKS
99 %dir %{_var}/lib/%{name}
100 %attr(755,root,root) %{_bindir}/*
101 %attr(755,root,root) %{_libdir}/lib*
102 #%attr(755,root,root) /usr/share/ntop/*
103 %attr(755,root,root) %{_datadir}/%{name}
104 #%%{_libdir}/lib*.la
105 #%dir %{_libdir}/%{name}
106 #%dir %{_libdir}/%{name}/plugins
107 %attr(755,root,root) %{_libdir}/%{name}/plugins
108 %{_mandir}/man*/*
This page took 0.077268 seconds and 3 git commands to generate.