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