Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
softflowd
> softflowd.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File softflowd.spec of Package softflowd (Revision 5)
Currently displaying revision
5
,
show latest
Name: softflowd Summary: Network traffic analyser capable of Cisco NetFlow data export Version: 0.9.8 Release: 10 Source0: %{name}-%{version}.tar.gz Source1: %{name}.sysconfig Source2: %{name}.init Group: System/Utilities License: BSD BuildRoot: %{_tmppath}/%{name}-build URL: http://www.mindrot.org/softflowd.html %if 0%{?suse_version} >= 1030 || 0%{?centos_version} >= 5 || 0%{?rhel_version} >= 500 || 0%{?fedora_version} >= 6 BuildRequires: libpcap-devel %else BuildRequires: libpcap %endif %description softflowd is a software implementation of a flow-based network traffic monitor. softflowd reads network traffic and gathers information about active traffic flows. A "traffic flow" is communication between two IP addresses or (if the overlying protocol is TCP or UDP) address/port tuples. The intended use of softflowd is as a software implementation of Cisco’s NetFlow traffic account system. softflowd supports data export using versions 1, 5 or 9 of the NetFlow protocol. %prep %setup %build %configure %__make %install make install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/sysconfig %if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d cp %_sourcedir/softflowd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/softflowd cp %_sourcedir/softflowd.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/softflowd %endif %if 0%{?suse_version} mkdir -p $RPM_BUILD_ROOT/etc/init.d mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates/ cp %{S:1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.%{name} cp %{S:2} $RPM_BUILD_ROOT/etc/init.d/%{name} %endif %post %if 0%{?suse_version} %{fillup_and_insserv softflowd} %{fillup_only -an softflowd} %endif %preun %if 0%{?suse_version} %stop_on_removal softflowd %endif %postun %if 0%{?suse_version} %insserv_cleanup %endif %files %defattr(-,root,root) %doc ChangeLog README TODO %{_sbindir}/softflowd %{_sbindir}/softflowctl %{_mandir}/man8/softflowd.8* %{_mandir}/man8/softflowctl.8* %if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} %attr(0755,root,root) /etc/rc.d/init.d/softflowd %config(noreplace) %attr(0644,root,root) /etc/sysconfig/softflowd %endif %if 0%{?suse_version} %attr(0755,root,root) /etc/init.d/softflowd /var/adm/fillup-templates/sysconfig.%{name} %endif %clean rm -rf $RPM_BUILD_ROOT %changelog * Sat Aug 30 2008 Carsten Schoene <cs@linux-administrator.com> - 0.9.8-1 - initial build