]> git.pld-linux.org Git - packages/flowd.git/blame - flowd.spec
- release 6 (by relup.sh)
[packages/flowd.git] / flowd.spec
CommitLineData
f51ce8dd
MP
1#
2# Conditional build:
f51ce8dd
MP
3%bcond_without tests # build without tests
4#
0ead87ef 5%include /usr/lib/rpm/macros.perl
f51ce8dd 6Summary: The flowd NetFlow collector daemon
310b3877 7Summary(pl.UTF-8): flowd - demon zbierania danych NetFlow
f51ce8dd 8Name: flowd
7fd2a1fe 9Version: 0.9.1
251d426e 10Release: 6
f51ce8dd
MP
11License: BSD
12Group: Applications/Networking
f51ce8dd 13Source0: http://www.mindrot.org/files/flowd/%{name}-%{version}.tar.gz
7fd2a1fe 14# Source0-md5: a3d0512b5e6d9c7d9e749d9894376ea4
f737cb71 15Patch0: %{name}-username.patch
7174eac4 16Patch1: format-error.patch
0ead87ef 17URL: http://www.mindrot.org/flowd.html
5df1ef9a 18BuildRequires: byacc
f51ce8dd 19BuildRequires: perl-devel >= 1:5.8.0
630669ec 20BuildRequires: python-devel
7f4dbfa4 21BuildRequires: python-modules
f51ce8dd 22BuildRequires: rpm-perlprov >= 4.1-13
7f4dbfa4 23BuildRequires: rpm-pythonprov
0ead87ef 24BuildRequires: rpmbuild(macros) >= 1.268
630669ec 25Requires(post,preun): /sbin/chkconfig
26Requires(postun): /usr/sbin/groupdel
27Requires(postun): /usr/sbin/userdel
0ead87ef
JB
28Requires(pre): /bin/id
29Requires(pre): /usr/bin/getgid
30Requires(pre): /usr/sbin/groupadd
31Requires(pre): /usr/sbin/useradd
0ead87ef 32Requires: rc-scripts
a128c2e5 33Provides: group(flowd)
34Provides: user(flowd)
f51ce8dd
MP
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
f51ce8dd
MP
37%description
38This is flowd, a NetFlow collector daemon intended to be small, fast
39and secure.
40
41It features some basic filtering to limit or tag the flows that are
42recorded and is privilege separated, to limit security exposure from
43bugs in flowd itself.
44
2b90fc17
JR
45%description -l pl.UTF-8
46Ten pakiet zawiera program flowd - demona zbierającego dane NetFlow,
47mającego być małym, szybkim i bezpiecznym.
0ead87ef 48
2b90fc17
JR
49Obsługuje podstawowe filtrowanie w celu ograniczania lub znakowania
50zapisywanych przepływów, ma rozdzielenie uprawnień w celu ograniczenia
51wpływu własnych błedów na bezpieczeństwo.
0ead87ef 52
94149db5 53%package -n perl-Flowd
0ead87ef 54Summary: Perl API to access flowd logfiles
310b3877 55Summary(pl.UTF-8): Perlowe API do dostępu do plików logów flowd
0ead87ef 56Group: Development/Languages/Perl
94149db5 57Obsoletes: flowd-perl
0ead87ef 58
94149db5 59%description -n perl-Flowd
f51ce8dd 60This is a Perl API to the binary flowd network flow log format and an
0ead87ef
JB
61example reader application.
62
94149db5 63%description -n perl-Flowd -l pl.UTF-8
2b90fc17
JR
64Ten pakiet zawiera API Perla dla binarnego formatu plików logów
65przepływów sieciowych flowd oraz przykładowy program czytający.
0ead87ef 66
94149db5 67%package -n python-flowd
0ead87ef 68Summary: Python API to access flowd logfiles
310b3877 69Summary(pl.UTF-8): Pythonowe API do dostępu do plików logów flowd
0ead87ef 70Group: Applications/Networking
361839b2 71Obsoletes: flowd-python
f51ce8dd 72
94149db5 73%description -n python-flowd
f51ce8dd 74This is a Python API to the binary flowd network flow log format and
0ead87ef
JB
75an example reader application.
76
94149db5 77%description -n python-flowd -l pl.UTF-8
2b90fc17
JR
78Ten pakiet zawiera API Pythona dla binarnego formatu plików logów
79przepływów sieciowych flowd oraz przykładowy program czytający.
0ead87ef
JB
80
81%package tools
82Summary: Collection of example flowd tools
310b3877 83Summary(pl.UTF-8): Zbiór przykładowych narzędzi dla flowd
0ead87ef 84Group: Applications/Networking
f51ce8dd
MP
85
86%description tools
0ead87ef
JB
87A collection of tools for use with flowd.
88
2b90fc17
JR
89%description tools -l pl.UTF-8
90Zbiór narzędzi do używania z flowd.
0ead87ef
JB
91
92%package devel
93Summary: C API to access flowd logfiles
310b3877 94Summary(pl.UTF-8): API C do dostępu do plików logów flowd
0ead87ef 95Group: Development/Libraries
f51ce8dd
MP
96
97%description devel
98This is a C API to the binary flowd network flow log format.
99
2b90fc17
JR
100%description devel -l pl.UTF-8
101Ten pakiet zawiera API C dla binarnego formatu plików logów przepływów
0ead87ef
JB
102sieciowych flowd.
103
f51ce8dd
MP
104%prep
105%setup -q
f737cb71 106%patch0 -p1
7174eac4 107%patch1 -p1
f737cb71 108
f51ce8dd
MP
109%build
110%configure
f51ce8dd
MP
111%{__make}
112
94149db5
ER
113CFLAGS="%{rpmcflags}" \
114%{__python} setup.py build
115
630669ec 116cd Flowd-perl
f51ce8dd
MP
117%{__perl} Makefile.PL \
118 INSTALLDIRS=vendor
630669ec 119%{__make}
f51ce8dd
MP
120%{?with_tests:%{__make} test}
121
f51ce8dd
MP
122%install
123rm -rf $RPM_BUILD_ROOT
124
125%{__make} install \
126 DESTDIR=$RPM_BUILD_ROOT
127
128# Misc stuff
129install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
94149db5 130install -p flowd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/flowd
f51ce8dd
MP
131
132# Perl module
0ead87ef 133%{__make} -C Flowd-perl pure_install \
f51ce8dd 134 DESTDIR=$RPM_BUILD_ROOT
f51ce8dd 135
94149db5
ER
136rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Flowd/.packlist
137
f51ce8dd 138# Python module
94149db5
ER
139%{__python} setup.py install \
140 --optimize=2 \
141 --root=$RPM_BUILD_ROOT
f51ce8dd
MP
142
143%clean
144rm -rf $RPM_BUILD_ROOT
145
146%pre
a128c2e5 147%groupadd -g 198 flowd
148%useradd -u 198 -d /usr/share/empty -s /bin/false -c "flowd user" -g flowd flowd
f51ce8dd
MP
149
150%post
151/sbin/chkconfig --add flowd
0ead87ef 152%service flowd restart "flowd daemon"
f51ce8dd
MP
153
154%preun
0ead87ef
JB
155if [ "$1" = "0" ]; then
156 %service flowd stop
f51ce8dd
MP
157 /sbin/chkconfig --del flowd
158fi
159
0ead87ef
JB
160%postun
161if [ "$1" = "0" ]; then
a128c2e5 162 %userremove flowd
163 %groupremove flowd
0ead87ef
JB
164fi
165
f51ce8dd
MP
166%files
167%defattr(644,root,root,755)
168%doc ChangeLog LICENSE README TODO
0ead87ef
JB
169%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/flowd.conf
170%attr(754,root,root) /etc/rc.d/init.d/flowd
f51ce8dd 171%attr(755,root,root) %{_bindir}/flowd-reader
f51ce8dd 172%attr(755,root,root) %{_sbindir}/flowd
0ead87ef
JB
173%{_mandir}/man5/flowd.conf.5*
174%{_mandir}/man8/flowd.8*
175%{_mandir}/man8/flowd-reader.8*
f51ce8dd 176
94149db5 177%files -n perl-Flowd
f51ce8dd 178%defattr(644,root,root,755)
94149db5 179%doc reader.pl
f51ce8dd 180%{perl_vendorarch}/Flowd.pm
0ead87ef 181%dir %{perl_vendorarch}/auto/Flowd
0ead87ef 182%attr(755,root,root) %{perl_vendorarch}/auto/Flowd/Flowd.so
a128c2e5 183%{_mandir}/man3/Flowd.3pm*
f51ce8dd 184
94149db5 185%files -n python-flowd
f51ce8dd
MP
186%defattr(644,root,root,755)
187%doc reader.py
94149db5
ER
188%attr(755,root,root) %{py_sitedir}/flowd.so
189%if "%{py_ver}" > "2.4"
190%{py_sitedir}/flowd-*.egg-info
191%endif
f51ce8dd
MP
192
193%files tools
194%defattr(644,root,root,755)
195%doc tools/*
196
197%files devel
198%defattr(644,root,root,755)
0ead87ef
JB
199%{_includedir}/flowd
200%{_libdir}/libflowd.a
This page took 0.30394 seconds and 4 git commands to generate.