3 %bcond_without tests # build without tests
5 %include /usr/lib/rpm/macros.perl
6 Summary: The flowd NetFlow collector daemon
7 Summary(pl.UTF-8): flowd - demon zbierania danych NetFlow
12 Group: Applications/Networking
13 Source0: http://www.mindrot.org/files/flowd/%{name}-%{version}.tar.gz
14 # Source0-md5: a3d0512b5e6d9c7d9e749d9894376ea4
15 URL: http://www.mindrot.org/flowd.html
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: python-devel
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.268
21 Requires(post,preun): /sbin/chkconfig
22 Requires(postun): /usr/sbin/groupdel
23 Requires(postun): /usr/sbin/userdel
24 Requires(pre): /bin/id
25 Requires(pre): /usr/bin/getgid
26 Requires(pre): /usr/sbin/groupadd
27 Requires(pre): /usr/sbin/useradd
29 Provides: group(flowd)
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 This is flowd, a NetFlow collector daemon intended to be small, fast
37 It features some basic filtering to limit or tag the flows that are
38 recorded and is privilege separated, to limit security exposure from
41 %description -l pl.UTF-8
42 Ten pakiet zawiera program flowd - demona zbierającego dane NetFlow,
43 mającego być małym, szybkim i bezpiecznym.
45 Obsługuje podstawowe filtrowanie w celu ograniczania lub znakowania
46 zapisywanych przepływów, ma rozdzielenie uprawnień w celu ograniczenia
47 wpływu własnych błedów na bezpieczeństwo.
50 Summary: Perl API to access flowd logfiles
51 Summary(pl.UTF-8): Perlowe API do dostępu do plików logów flowd
52 Group: Development/Languages/Perl
55 This is a Perl API to the binary flowd network flow log format and an
56 example reader application.
58 %description perl -l pl.UTF-8
59 Ten pakiet zawiera API Perla dla binarnego formatu plików logów
60 przepływów sieciowych flowd oraz przykładowy program czytający.
63 Summary: Python API to access flowd logfiles
64 Summary(pl.UTF-8): Pythonowe API do dostępu do plików logów flowd
65 Group: Applications/Networking
69 This is a Python API to the binary flowd network flow log format and
70 an example reader application.
72 %description python -l pl.UTF-8
73 Ten pakiet zawiera API Pythona dla binarnego formatu plików logów
74 przepływów sieciowych flowd oraz przykładowy program czytający.
77 Summary: Collection of example flowd tools
78 Summary(pl.UTF-8): Zbiór przykładowych narzędzi dla flowd
79 Group: Applications/Networking
82 A collection of tools for use with flowd.
84 %description tools -l pl.UTF-8
85 Zbiór narzędzi do używania z flowd.
88 Summary: C API to access flowd logfiles
89 Summary(pl.UTF-8): API C do dostępu do plików logów flowd
90 Group: Development/Libraries
93 This is a C API to the binary flowd network flow log format.
95 %description devel -l pl.UTF-8
96 Ten pakiet zawiera API C dla binarnego formatu plików logów przepływów
104 # --enable-gcc-warnings \
109 %{__perl} Makefile.PL \
112 %{?with_tests:%{__make} test}
114 #python setup.py install --root=$RPM_BUILD_ROOT --optimize=2
117 rm -rf $RPM_BUILD_ROOT
120 DESTDIR=$RPM_BUILD_ROOT
123 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
124 install flowd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/flowd
127 %{__make} -C Flowd-perl pure_install \
128 DESTDIR=$RPM_BUILD_ROOT
131 ./setup.py install --optimize 1 --root=$RPM_BUILD_ROOT
134 rm -rf $RPM_BUILD_ROOT
137 %groupadd -g 198 flowd
138 %useradd -u 198 -d /usr/share/empty -s /bin/false -c "flowd user" -g flowd flowd
141 /sbin/chkconfig --add flowd
142 %service flowd restart "flowd daemon"
145 if [ "$1" = "0" ]; then
147 /sbin/chkconfig --del flowd
151 if [ "$1" = "0" ]; then
157 %defattr(644,root,root,755)
158 %doc ChangeLog LICENSE README TODO
159 #%%dir %%attr(111,root,root) %{_var}/empty
160 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/flowd.conf
161 %attr(754,root,root) /etc/rc.d/init.d/flowd
162 %attr(755,root,root) %{_bindir}/flowd-reader
163 %attr(755,root,root) %{_sbindir}/flowd
164 %{_mandir}/man5/flowd.conf.5*
165 %{_mandir}/man8/flowd.8*
166 %{_mandir}/man8/flowd-reader.8*
169 %defattr(644,root,root,755)
171 %{perl_vendorarch}/Flowd.pm
172 %dir %{perl_vendorarch}/auto/Flowd
173 %{perl_vendorarch}/auto/Flowd/Flowd.bs
174 %attr(755,root,root) %{perl_vendorarch}/auto/Flowd/Flowd.so
175 %{_mandir}/man3/Flowd.3pm*
178 %defattr(644,root,root,755)
182 %defattr(644,root,root,755)
186 %defattr(644,root,root,755)
188 %{_libdir}/libflowd.a