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 10
[-]
[+]
Changed
flowscan.spec
@@ -1,21 +1,19 @@ Name: flowscan Version: 1.006 -Release: 2 +Release: 10 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 +Source0: FlowScan-%{version}.tar.bz2 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 +BuildArch: noarch 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 +Requires: perl perl-Boulder perl-Net-Patricia perl-ConfigReader perl-HTML-Table perl-Cflow %if 0%{?fedora_version} >= 7 BuildRequires: perl-ExtUtils-MakeMaker %endif @@ -40,32 +38,32 @@ %build ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --sysconfdir=/etc/flowscan --localstatedir=/etc/flowscan -perl Makefile.PL +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %__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 +%install +%__make DESTDIR=%{buildroot} install +mkdir -p %{buildroot}/etc/init.d +mkdir -p %{buildroot}/%{_sbindir} +mkdir -p %{buildroot}/%{_bindir} +mkdir -p %{buildroot}/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 +install -m 755 %SOURCE1 %{buildroot}/etc/init.d/flowscan +ln -sf ../../etc/init.d/flowscan %{buildroot}/%{_sbindir}/rcflowscan +install -m 755 flowscan %{buildroot}/%{_bindir}/ +install -m 755 util/locker %{buildroot}/%{_bindir}/ +install -m 755 util/add_ds.pl %{buildroot}/%{_bindir}/ +install -m 755 util/add_txrx %{buildroot}/%{_bindir}/ +install -m 755 util/event2vrule %{buildroot}/%{_bindir}/ +install -m 755 util/ip2hostname %{buildroot}/%{_bindir}/ +install -m 644 cf/* %{buildroot}/etc/flowscan/ +install -m 644 %{SOURCE2} %{buildroot}/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} +### Clean up buildroot +%{__rm} -rf %{buildroot}%{perl_archlib} \ + %{buildroot}%{perl_vendorarch}/auto/*{,/*{,/*}}/.packlist %post %{fillup_and_insserv flowscan} @@ -74,39 +72,37 @@ %preun %stop_on_removal flowscan +%postun +%insserv_cleanup + %clean rm -rf $RPM_BUILD_ROOT/* rm -rf $RPM_BUILD_DIR/%{name}* -%if 0%{?suse_version} %files %defattr(-,root,root) %doc CampusIO.html CampusIO.README Changes COPYING INSTALL.html README README.html SubNetIO.html SubNetIO.README TODO INSTALL +%dir /etc/flowscan %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 +%{perl_vendorlib}/CampusIO.pm +%{perl_vendorlib}/FlowScan.pm +%{perl_vendorlib}/INSTALL.pod +%{perl_vendorlib}/README.pod +%{perl_vendorlib}/SubNetIO.pm +/var/adm/fillup-templates/sysconfig.flowscan -%files -f ../file.list.%{name} -%defattr(-,root,root) - -%endif %changelog +* Sat May 02 2009 Carsten Schoene <cs@linux-administrator.com> - 1.006-10 +- spec file cleanups +- change perl dir from site to vendor + * Mon Feb 23 2007 Carsten Schoene <cs@linux-administrator.com> - initial package build of version 1.006
Renamed
FlowScan-1.006.tar.bz2
^