Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
nnfc
> nnfc.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nnfc.spec of Package nnfc
Summary: A portable collector of flows generated by Cisco and other routers Name: nnfc Version: 0.8.4 Release: 1 License: Copyright (c) 2004, Andrew Klyachkin <andrewk@region73.ru> Group: Applications/Network URL: http://prdownloads.sourceforge.net/nnfc/%{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2 ##Patch0: nnfc-0.8.1.patch Patch1: nnfc-0.8.1-config.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc-c++ mysql-devel postgresql-devel %description nnfc is the New Netflow Collector. nnfc is aimed to be POSIX-compliant, portable collector of flows, generated by Cisco and other routers. It understands v1, v5 and v7 flows now. Support for v8 and v9 netflow will be added soon. All flows, collected by nnfc, may be stored in databases or other places, using module interface of nnfc. %package devel Summary: nnfc include files Group: Development/Libraries %description devel Include files for the nnfc package %prep %setup ##%patch0 -p 1 %patch1 -p 1 %build %configure \ --with-mysql \ --with-postgres \ --with-megabit %{__make} %{?_smp_mflags} %install %{__make} install DESTDIR="%{buildroot}" %{__rm} -rf %{buildroot}/usr/share/nnfc %if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} mkdir -p %{buildroot}/etc/rc.d/init.d cp config/nnfc.cfg %{buildroot}%{_sysconfdir}/nnfc.cfg cp config/nnfc %{buildroot}%{_sysconfdir}/rc.d/init.d chmod 755 %{buildroot}%{_sysconfdir}/rc.d/init.d/nnfc %endif %clean %{__rm} -rf %{buildroot} %preun /sbin/chkconfig --del nnfc %post /sbin/chkconfig --add nnfc %files %defattr(-, root, root, 0755) %doc INSTALL AUTHORS ChangeLog README NEWS THANKS TODO doc/acx_pthread.license doc/createtables.sql doc/nnfc.cfg.sample %config %{_sysconfdir}/nnfc.cfg %if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} %{_sysconfdir}/rc.d/init.d/nnfc %endif %{_sbindir}/%{name} %{_libdir}/*so* %{_lbidir}/nnfc/*so* %{_mandir}/man5/* %{_mandir}/man7/* %{_mandir}/man8/* %files devel %defattr(-, root, root, 0755) %doc doc/template.c %{_includedir}/* %{_mandir}/man3/* %{_libdir}/*a %{_libdir}/nnfc/*a %changelog * Sun Nov 15 2009 Carsten Schoene <cs@linux-administrator.com> - 0.8.4-1 - initial build