softflowd.spec 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # $Id: softflowd.spec,v 1.1 2006/03/14 23:15:41 djm Exp $
  2. # Figure out release tag (e.g. rhel3, fc1) based on redhat-release file
  3. %global _RHTAG %(sed 's/(.*)//;s/ [A-Z]* //;s/[a-z ]*//g' /etc/redhat-release | tr '[:upper:]' '[:lower:]')
  4. Name: softflowd
  5. Summary: Network traffic analyser capable of Cisco NetFlow data export
  6. Version: 0.9.8
  7. Release: 1.%{_RHTAG}
  8. Source: softflowd-%{version}.tar.gz
  9. Group: System/Utilities
  10. License: BSD
  11. BuildRoot: %{_tmppath}/%{name}-root
  12. URL: http://www.mindrot.org/softflowd.html
  13. Vendor: mindrot.org
  14. %description
  15. softflowd is a software implementation of a flow-based network traffic
  16. monitor. softflowd reads network traffic and gathers information about
  17. active traffic flows. A "traffic flow" is communication between two IP
  18. addresses or (if the overlying protocol is TCP or UDP) address/port tuples.
  19. The intended use of softflowd is as a software implementation of Cisco’s
  20. NetFlow traffic account system. softflowd supports data export using
  21. versions 1, 5 or 9 of the NetFlow protocol.
  22. %prep
  23. %setup
  24. %build
  25. %configure
  26. make
  27. %install
  28. rm -rf $RPM_BUILD_ROOT
  29. make install DESTDIR=$RPM_BUILD_ROOT
  30. mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
  31. mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
  32. cp %_sourcedir/softflowd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/softflowd
  33. cp %_sourcedir/softflowd.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/softflowd
  34. %files
  35. %defattr(-,root,root)
  36. /usr/sbin/*
  37. /usr/share/man/*
  38. %attr(0755,root,root) /etc/rc.d/init.d/softflowd
  39. %config(noreplace) %attr(0644,root,root) /etc/sysconfig/softflowd
  40. %doc ChangeLog README TODO
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT