Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
flowscan
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Added
flowscan.spec
@@ -0,0 +1,106 @@ +Name: flowscan +Version: 1.006 +Release: 2 +License: GPL +Group: Productivity/Networking +Summary: FlowScan - Network Traffic Flow Visualization and Reporting Tool +URL: http://www.caida.org/tools/utilities/flowscan/ +Source0: FlowScan-%{version}.tar.gz +Source1: %{name}.init +Source2: sysconfig.%{name} +Patch0: %{name}.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Packager: Carsten Schoene <cs@linux-administrator.com> +Vendor: linux-administrator.com + +BuildRequires: glibc-devel libgcc gcc gcc-c++ rrdtool ksh perl-Boulder perl-Net-Patricia perl-ConfigReader perl-HTML-Table perl-Cflow perl +Requires: perl-Boulder perl-Net-Patricia perl-ConfigReader perl-HTML-Table perl-Cflow +#PreReq: %fillup_prereq +%if 0%{?fedora_version} >= 7 +BuildRequires: perl-ExtUtils-MakeMaker rrdtool-perl +%endif + +%description +FlowScan analyzes and reports on Internet Protocol (IP) flow data exported by routers. +Consisting of Perl scripts and modules, FlowScan binds together +(1) a flow collection engine (a patched version of cflowd), +(2) a high performance database (Round Robin Database - RRD), and +(3) a visualization tool (RRDtool). +FlowScan produces graph images that provide a continuous, near real-time view of the network border traffic. + + +%prep + +%setup -q -n FlowScan-%{version} +%patch -p1 + +%build +./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --sysconfdir=/etc/flowscan --localstatedir=/etc/flowscan +perl Makefile.PL +%__make + +%makeinstall DESTDIR=$RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/etc/init.d +mkdir -p $RPM_BUILD_ROOT/%{_sbindir} +mkdir -p $RPM_BUILD_ROOT/%{_bindir} +mkdir -p $RPM_BUILD_ROOT/etc/flowscan +mkdir -p ${RPM_BUILD_ROOT}/var/adm/fillup-templates +install -m 755 %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/flowscan +ln -sf ../../etc/init.d/flowscan $RPM_BUILD_ROOT/%{_sbindir}/rcflowscan +install -m 755 flowscan $RPM_BUILD_ROOT/%{_bindir}/ +install -m 755 util/locker $RPM_BUILD_ROOT/%{_bindir}/ +install -m 755 util/add_ds.pl $RPM_BUILD_ROOT/%{_bindir}/ +install -m 755 util/add_txrx $RPM_BUILD_ROOT/%{_bindir}/ +install -m 755 util/event2vrule $RPM_BUILD_ROOT/%{_bindir}/ +install -m 755 util/ip2hostname $RPM_BUILD_ROOT/%{_bindir}/ +install -m 644 cf/* $RPM_BUILD_ROOT/etc/flowscan/ +install -m 700 %{SOURCE2} ${RPM_BUILD_ROOT}/var/adm/fillup-templates +%if 0%{?suse_version} +%perl_process_packlist +%endif +cd $RPM_BUILD_ROOT +find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name} +find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} +find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} + +%post +%{fillup_and_insserv flowscan} +%{fillup_only -an flowscan} + +%preun +%stop_on_removal flowscan + +%clean +rm -rf $RPM_BUILD_ROOT/* +rm -rf $RPM_BUILD_DIR/%{name}* + + +%if 0%{?suse_version} +%files +%doc CampusIO.html CampusIO.README Changes COPYING INSTALL.html README README.html SubNetIO.html SubNetIO.README TODO INSTALL +%config(noreplace) /etc/flowscan/* +%config /etc/init.d/flowscan +%{_sbindir}/rcflowscan +%{_mandir}/*/* +%{_bindir}/* +/var/adm/perl-modules/%{name} +%ifarch %ix86 +%{perl_sitelib}/i586-linux-thread-multi +%endif +%ifarch x86_64 +%{perl_sitelib}/x86_64-linux-thread-multi +%endif +/var/adm/fillup-templates/sysconfig.%{name} +%{perl_sitelib}/*.pm +%{perl_sitelib}/*.pod + +%else + +%files -f ../file.list.%{name} + +%endif + +%changelog +* Mon Feb 23 2007 Carsten Schoene <cs@linux-administrator.com> +- initial package build of version 1.006 +