]>
Commit | Line | Data |
---|---|---|
fb20d4d2 | 1 | Summary: Traffic Flow Analysis Tool |
d8726646 | 2 | Summary(pl.UTF-8): Narzędzie do analizy przepływu ruchu w sieci |
a3b05e6e | 3 | Name: cflowd |
fb20d4d2 AM |
4 | Version: 2.1.b1 |
5 | Release: 1 | |
6 | Epoch: 0 | |
a3b05e6e AM |
7 | License: GPL |
8 | Group: Applications/Networking | |
fb20d4d2 AM |
9 | Source0: ftp://ftp.caida.org/pub/cflowd/%{name}-2-1-b1.tar.gz |
10 | # Source0-md5: 6f0543390e9d46c4274f6b12b6517f62 | |
11 | Source1: %{name}.init | |
12 | Patch0: %{name}-yywrap.patch | |
a464b626 | 13 | # http://net.doit.wisc.edu/~plonka/cflowd/cflowd-2-1-b1-djp.patch |
df05e00d | 14 | Patch1: http://net.doit.wisc.edu/~plonka/cflowd/%{name}-djp.patch |
53aed27c JB |
15 | Patch2: %{name}-gcc3.patch |
16 | Patch3: %{name}-link.patch | |
17 | Patch4: %{name}-printf.patch | |
535d5ff4 | 18 | URL: http://www.caida.org/tools/measurement/cflowd/ |
a3b05e6e | 19 | BuildRequires: arts++-devel |
535d5ff4 JB |
20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
fb20d4d2 | 22 | BuildRequires: bison |
535d5ff4 | 23 | BuildRequires: flex |
53aed27c | 24 | BuildRequires: libtool >= 2:1.4d-3 |
fb20d4d2 | 25 | BuildRequires: perl-base |
e68651e4 | 26 | BuildRequires: rpmbuild(macros) >= 1.268 |
535d5ff4 | 27 | Requires(post,preun): /sbin/chkconfig |
53aed27c | 28 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
df05e00d | 29 | Requires: rc-scripts |
2911281d | 30 | Obsoletes: cflowd0-devel |
a3b05e6e AM |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
fb20d4d2 AM |
33 | %define _sysconfdir /etc/%{name} |
34 | ||
a3b05e6e | 35 | %description |
fb20d4d2 AM |
36 | cflowd is a flow analysis tool currently used for analyzing Cisco's |
37 | NetFlow enabled switching method. The current release (described | |
38 | below) includes the collections, storage, and basic analysis modules | |
39 | for cflowd and for arts++ libraries. This analysis package permits | |
40 | data collection and analysis by ISPs and network engineers in support | |
41 | of capacity planning, trends analysis, and characterization of | |
42 | workloads in a network service provider environment. Other areas where | |
43 | cflowd may prove useful include usage tracking for Web hosting, | |
44 | accounting and billing, network planning and analysis, network | |
45 | monitoring, developing user profiles, data warehousing and mining, as | |
46 | well as security-related investigations. | |
47 | ||
bae5c9d6 JR |
48 | %description -l pl.UTF-8 |
49 | cflowd to narzędzie do analizy przepływu ruchu w sieci aktualnie | |
50 | używane dla switchy Cisco z włączonym mechanizmem NetFlow. Aktualne | |
51 | wydanie (opisane poniżej) zawiera kolekcje, przechowywanie danych oraz | |
52 | podstawowe moduły do analizy dla bibliotek cflowd i arts++. Ten pakiet | |
53 | do analizy pozwala na zbieranie danych i analizę przez ISP oraz | |
54 | inżynierów sieciowych wspierających planowanie możliwości sieci, | |
55 | analizę trendów oraz charakterystykę obciążeń w środowisku providera | |
56 | usług sieciowych. Inne obszary, gdzie cflowd może się okazać | |
57 | przydatny, obejmują śledzenie hostowania WWW, naliczanie rachunków, | |
58 | planowanie i analizę sieci, monitorowanie sieci, tworzenie profili | |
59 | użytkowników, magazynowanie danych, a także badania związane z | |
60 | bezpieczeństwem. | |
535d5ff4 | 61 | |
fb20d4d2 | 62 | %package libs |
2911281d | 63 | Summary: cflowd libraries |
d8726646 | 64 | Summary(pl.UTF-8): Biblioteki cflowd |
2911281d | 65 | Group: Libraries |
fb20d4d2 AM |
66 | |
67 | %description libs | |
68 | cflowd libraries. | |
69 | ||
bae5c9d6 | 70 | %description libs -l pl.UTF-8 |
535d5ff4 JB |
71 | Biblioteki cflowd. |
72 | ||
fb20d4d2 | 73 | %package devel |
2911281d | 74 | Summary: Header files and development documentation for cflowd |
d8726646 | 75 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty dla cflowd |
2911281d | 76 | Group: Development/Libraries |
77 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
fb20d4d2 AM |
78 | |
79 | %description devel | |
535d5ff4 JB |
80 | Header files and development documentation for cflowd. |
81 | ||
bae5c9d6 JR |
82 | %description devel -l pl.UTF-8 |
83 | Pliki nagłówkowe i dokumentacja programisty dla cflowd. | |
fb20d4d2 AM |
84 | |
85 | %package static | |
2911281d | 86 | Summary: Static cflowd libraries |
d8726646 | 87 | Summary(pl.UTF-8): Statyczne biblioteki cflowd |
2911281d | 88 | Group: Development/Libraries |
89 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
fb20d4d2 AM |
90 | |
91 | %description static | |
92 | Static cflowd libraries. | |
a3b05e6e | 93 | |
bae5c9d6 | 94 | %description static -l pl.UTF-8 |
535d5ff4 JB |
95 | Statyczne biblioteki cflowd. |
96 | ||
a3b05e6e AM |
97 | %prep |
98 | %setup -q -n %{name}-2-1-b1 | |
fb20d4d2 | 99 | %patch0 -p1 |
a464b626 | 100 | %patch1 -p0 |
53aed27c JB |
101 | %patch2 -p1 |
102 | %patch3 -p1 | |
103 | %patch4 -p1 | |
a3b05e6e AM |
104 | |
105 | %build | |
fb20d4d2 AM |
106 | chmod u+w *.m4 configure |
107 | %{__libtoolize} | |
108 | %{__aclocal} | |
109 | %{__autoconf} | |
110 | %configure \ | |
111 | --enable-shared | |
112 | ||
e68651e4 | 113 | sed -i -e 's#libtool#libtool --tag=CXX#g' Makefile* */Makefile* */*/Makefile* */*/*/Makefile* |
fb20d4d2 AM |
114 | |
115 | %{__make} \ | |
116 | ARTSPPINC="-I%{_includedir}/arts++" \ | |
117 | ARTSCLASSINC="-I%{_includedir}/arts++" \ | |
118 | CC="%{__cc}" \ | |
119 | CXX="%{__cxx}" | |
a3b05e6e AM |
120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
fb20d4d2 AM |
123 | install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/lib/cflowd} |
124 | ||
125 | perl -pi -e 's#/usr/include#\$\(includedir\)/%{name}#g' Makefile* */Makefile* */*/Makefile* */*/*/Makefile* */*/*/*/Makefile* | |
126 | perl -pi -e 's#\$\(includedir\)/%{name}/arts\+\+#/usr/include/arts\+\+#g' Makefile* */Makefile* */*/Makefile* */*/*/Makefile* */*/*/*/Makefile* | |
127 | perl -pi -e 's#/usr/lib#\$\(libdir\)#g' Makefile* */Makefile* */*/Makefile* */*/*/Makefile* */*/*/*/Makefile* | |
128 | perl -pi -e 's#/usr/bin#\$\(bindir\)#g' Makefile* */Makefile* */*/Makefile* */*/*/Makefile* */*/*/*/Makefile* | |
129 | perl -pi -e 's#/usr/sbin#\$\(sbindir\)#g' Makefile* */Makefile* */*/Makefile* */*/*/Makefile* */*/*/*/Makefile* | |
130 | perl -pi -e 's#/usr/share/man#\$\(mandir\)#g' Makefile* */Makefile* */*/Makefile* */*/*/Makefile* */*/*/*/Makefile* | |
131 | perl -pi -e 's#/etc/%{name}#\$\(sysconfdir\)#g' Makefile* */Makefile* */*/Makefile* */*/*/Makefile* */*/*/*/Makefile* | |
a3b05e6e | 132 | |
535d5ff4 | 133 | %makeinstall |
a3b05e6e | 134 | |
fb20d4d2 AM |
135 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
136 | ||
137 | cp -f $RPM_BUILD_ROOT%{_sysconfdir}/cfdcollect.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/cfdcollect.conf | |
138 | cp -f $RPM_BUILD_ROOT%{_sysconfdir}/cflowd.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/cflowd.conf | |
a3b05e6e AM |
139 | |
140 | %clean | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
fb20d4d2 AM |
143 | %post |
144 | /sbin/chkconfig --add %{name} | |
e68651e4 | 145 | %service %{name} restart |
fb20d4d2 AM |
146 | |
147 | %preun | |
148 | if [ "$1" = "0" ]; then | |
e68651e4 | 149 | %service %{name} stop |
2911281d | 150 | /sbin/chkconfig --del %{name} |
fb20d4d2 AM |
151 | fi |
152 | ||
535d5ff4 JB |
153 | %post libs -p /sbin/ldconfig |
154 | %postun libs -p /sbin/ldconfig | |
fb20d4d2 | 155 | |
a3b05e6e AM |
156 | %files |
157 | %defattr(644,root,root,755) | |
fb20d4d2 AM |
158 | %doc ChangeLog README doc/configuration/{*.html,*.gif} |
159 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
a3b05e6e | 160 | %attr(755,root,root) %{_bindir}/* |
fb20d4d2 AM |
161 | %attr(755,root,root) %{_sbindir}/* |
162 | %{_mandir}/man?/* | |
163 | %attr(750,root,root) %dir %{_sysconfdir} | |
164 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf | |
165 | %attr(750,root,root) /var/lib/%{name} | |
166 | ||
167 | %files libs | |
168 | %defattr(644,root,root,755) | |
535d5ff4 | 169 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
fb20d4d2 AM |
170 | |
171 | %files devel | |
172 | %defattr(644,root,root,755) | |
fb20d4d2 AM |
173 | %attr(755,root,root) %{_libdir}/lib*.so |
174 | %{_libdir}/lib*.la | |
535d5ff4 | 175 | %{_includedir}/%{name} |
fb20d4d2 AM |
176 | |
177 | %files static | |
178 | %defattr(644,root,root,755) | |
179 | %{_libdir}/lib*.a |