Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
flow-tools
> flow-tools.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File flow-tools.spec of Package flow-tools (Revision 15)
Currently displaying revision
15
,
show latest
%define cflowname Cflow %define cflowver 1.053 Name: flow-tools Version: 0.68 Release: 3 License: GPL Group: Productivity/Networking Summary: flow-tools -- Tool set for working with NetFlow data. URL: http://www.splintered.net/sw/flow-tools/ Source0: %{name}-%{version}.tar.gz Source1: %{name}.init Source2: %{cflowname}-%{cflowver}.tar.gz Source3: sysconfig.%{name} ##Patch0: %{name}.diff Patch0: flow-tools-0.68.ftchash.patch #Patch1: flow-tools-0.68.ftfile.64bit.patch Patch1: flow-tools_time_t.diff Patch2: flow-tools-0.68.ftio.patch Patch3: flow-tools-0.68.fttlv.patch Patch4: flow-tools-0.68.python.patch Patch5: %{name}-declares.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build Packager: Carsten Schoene <cs@linux-administrator.com> Vendor: linux-administrator.com BuildRequires: glibc-devel libgcc gcc gcc-c++ flex mysql-devel postgresql-devel python-devel tar openssl-devel %if 0%{?suse_version} BuildRequires: mysql-client %endif %if 0%{?fedora_version} >= 7 BuildRequires: perl-ExtUtils-MakeMaker rrdtool-perl %endif %description Flow-tools is library and a collection of programs used to collect, send, process, and generate reports from NetFlow data. The tools can be used together on a single server or distributed to multiple servers for large deployments. The flow-toools library provides an API for development of custom applications for NetFlow export versions 1,5,6 and the 14 currently defined version 8 subversions. A Perl and Python interface have been contributed and are included in the distribution. %package -n perl-Cflow Summary: Cflow perl module Version: %{cflowver} Release: %{release} Group: Development/Libraries Requires: perl %description -n perl-Cflow Cflow perl module, is used by flowscan ###################################################################### %prep %setup -b 0 -b 2 %patch0 %patch1 -p1 %patch2 %patch3 %patch4 -p1 %patch5 -p1 %build ./configure --prefix=%{_prefix} \ --libdir=%{_libdir} \ --mandir=%{_mandir} \ --sysconfdir=%{_sysconfdir}/flow-tools \ --localstatedir=%{_sysconfdir}/flow-tools \ --with-openssl=%{_libdir} %__make # build Cflow perl module cd $RPM_BUILD_DIR/%{cflowname}-%{cflowver} perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=site %install mkdir -p $RPM_BUILD_ROOT/etc/init.d mkdir -p $RPM_BUILD_ROOT/%{_sbindir} mkdir -p ${RPM_BUILD_ROOT}/var/adm/fillup-templates make install DESTDIR=$RPM_BUILD_ROOT cd $RPM_BUILD_DIR/%{cflowname}-%{cflowver} make install DESTDIR=$RPM_BUILD_ROOT install -m 755 %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/flow-tools ln -sf ../../etc/init.d/flow-tools $RPM_BUILD_ROOT/%{_sbindir}/rcflow-tools install -m 700 %{SOURCE3} ${RPM_BUILD_ROOT}/var/adm/fillup-templates %if 0%{?suse_version} %perl_process_packlist %endif %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} rm -f ${RPM_BUILD_ROOT}/%{perl_archlib}/perllocal.pod find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' %endif %clean rm -rf $RPM_BUILD_ROOT/* rm -rf $RPM_BUILD_DIR/%{name}* %files %doc README ChangeLog %config(noreplace) %{_sysconfdir}/flow-tools/* %config %{_sysconfdir}/init.d/flow-tools %{_sbindir}/rcflow-tools %{_mandir}/man1/* %{_bindir}/* %{_includedir}/* %{_libdir}/libft.a %files -n perl-Cflow %{_mandir}/man3/* /var/adm/fillup-templates/sysconfig.%{name} %if 0%{?suse_version} /var/adm/perl-modules/flow-tools %ifarch %ix86 %{perl_sitelib}/i586-linux-thread-multi %endif %ifarch x86_64 %{perl_sitelib}/x86_64-linux-thread-multi %endif %endif %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} %ifarch %ix86 %{perl_sitelib}/i386-linux-thread-multi %endif %ifarch x86_64 ##%{_libdir}/perl5/site_perl/*/x86_64-linux-thread-multi %{perl_sitelib}/x86_64-linux-thread-multi %endif %endif %changelog * Fri Mar 14 2008 Carsten Schoene <cs@linux-administrator.com> - added patches from http://www.tuhh.de/rzt/rzt/su/netflow/flow-tools-compiling-64bit.html - added patch for python path * Fri Feb 23 2007 Carsten Schoene <cs@linux-administrator.com> - changed group of mainpackage * Mon Feb 19 2007 Carsten Schoene <cs@linux-administrator.com> - initial package build of version 0.68