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