Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
flow-tools
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 17
[-]
[+]
Changed
flow-tools.spec
@@ -2,14 +2,14 @@ %define cflowver 1.053 Name: flow-tools Version: 0.68 -Release: 3 +Release: 10 License: GPL Group: Productivity/Networking -Summary: flow-tools -- Tool set for working with NetFlow data. +Summary: Flow-tools -- Tool set for working with NetFlow data URL: http://www.splintered.net/sw/flow-tools/ -Source0: %{name}-%{version}.tar.gz +Source0: %{name}-%{version}.tar.bz2 Source1: %{name}.init -Source2: %{cflowname}-%{cflowver}.tar.gz +Source2: %{cflowname}-%{cflowver}.tar.bz2 Source3: sysconfig.%{name} ##Patch0: %{name}.diff Patch0: flow-tools-0.68.ftchash.patch @@ -20,8 +20,6 @@ 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} @@ -47,8 +45,20 @@ Release: %{release} Group: Development/Libraries Requires: perl + %description -n perl-Cflow Cflow perl module, is used by flowscan + + +%package devel +Summary: Flow-tools development files +Group: Development/Libraries +Requires: %{name} + +%description devel +This package contains development headers and librarys. + + ###################################################################### %prep @@ -71,7 +81,7 @@ # build Cflow perl module cd $RPM_BUILD_DIR/%{cflowname}-%{cflowver} -perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=site +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %install mkdir -p $RPM_BUILD_ROOT/etc/init.d @@ -91,47 +101,77 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' %endif - +# strip binaries +strip %{buildroot}%{_bindir}/flow-capture +strip %{buildroot}%{_bindir}/flow-cat +strip %{buildroot}%{_bindir}/flow-dscan +strip %{buildroot}%{_bindir}/flow-expire +strip %{buildroot}%{_bindir}/flow-export +strip %{buildroot}%{_bindir}/flow-fanout +strip %{buildroot}%{_bindir}/flow-filter +strip %{buildroot}%{_bindir}/flow-gen +strip %{buildroot}%{_bindir}/flow-header +strip %{buildroot}%{_bindir}/flow-import +strip %{buildroot}%{_bindir}/flow-mask +strip %{buildroot}%{_bindir}/flow-merge +strip %{buildroot}%{_bindir}/flow-nfilter +strip %{buildroot}%{_bindir}/flow-print +strip %{buildroot}%{_bindir}/flow-receive +strip %{buildroot}%{_bindir}/flow-report +strip %{buildroot}%{_bindir}/flow-send +strip %{buildroot}%{_bindir}/flow-split +strip %{buildroot}%{_bindir}/flow-stat +strip %{buildroot}%{_bindir}/flow-tag +strip %{buildroot}%{_bindir}/flow-xlate %clean rm -rf $RPM_BUILD_ROOT/* rm -rf $RPM_BUILD_DIR/%{name}* +%preun +%stop_on_removal + +%postun +%insserv_cleanup + +%post +%fillup_and_insserv %files %defattr(-,root,root) %doc README ChangeLog +%dir %{_sysconfdir}/flow-tools %config(noreplace) %{_sysconfdir}/flow-tools/* %config %{_sysconfdir}/init.d/flow-tools +/var/adm/fillup-templates/sysconfig.%{name} %{_sbindir}/rcflow-tools %{_mandir}/man1/* %{_bindir}/* -%{_includedir}/* -%{_libdir}/libft.a %files -n perl-Cflow %defattr(-,root,root) %{_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 +%dir %{perl_vendorarch}/auto/Cflow +%{perl_vendorarch}/Cflow.pm +%{perl_vendorarch}/auto/Cflow/Cflow.bs +%{perl_vendorarch}/auto/Cflow/Cflow.so +%{perl_vendorarch}/auto/Cflow/autosplit.ix +%{perl_vendorarch}/auto/Cflow/.packlist + +%files devel +%defattr(-,root,root) +%{_includedir}/*.h +%{_libdir}/libft.a %changelog +* Sat May 02 2009 Carsten Schoene <cs@linux-administrator.com> - 0.68-10 +- change perl dir from site to vendor +- strip binaries +- added devel subpackage +- spec cleanups + * 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
Renamed
Cflow-1.053.tar.bz2
^
Renamed
flow-tools-0.68.tar.bz2
^