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