daq-vl.spec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. %define version 2.0.1
  2. Summary: Data Acquisition Library
  3. License: GPLv2
  4. Group: Libraries/Network
  5. Name: daq
  6. Prefix: %{_prefix}
  7. Provides: daq
  8. Release: 1%{?_dist_release}
  9. Source: daq-%{version}.tar.gz
  10. URL: http://www.snort.org/
  11. Version: %{version}
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: autoconf, automake, flex, bison
  14. BuildRequires: libnetfilter_queue-devel
  15. BuildRequires: libdnet-devel
  16. BuildRequires: libpcap-devel >= 1.0.0
  17. BuildRequires: iptables-devel
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. Snort 2.9 introduces the DAQ, or Data Acquisition library, for packet I/O. The
  22. DAQ replaces direct calls to PCAP functions with an abstraction layer that
  23. facilitates operation on a variety of hardware and software interfaces without
  24. requiring changes to Snort. It is possible to select the DAQ type and mode
  25. when invoking Snort to perform PCAP readback or inline operation, etc. The
  26. DAQ library may be useful for other packet processing applications and the
  27. modular nature allows you to build new modules for other platforms.
  28. %prep
  29. %setup -q
  30. %build
  31. %configure
  32. make
  33. %install
  34. rm -rf %{buildroot}
  35. make install DESTDIR=%{buildroot}
  36. rm -f %{buildroot}%{_libdir}/*.la
  37. rm -f %{buildroot}%{_libdir}/daq/*.la
  38. %clean
  39. rm -rf %{buildroot}
  40. %post -p /sbin/ldconfig
  41. %postun -p /sbin/ldconfig
  42. %files
  43. %defattr(-,root,root)
  44. %{_includedir}/*.h
  45. %{_libdir}/*.so
  46. %{_libdir}/*.so.*
  47. %{_libdir}/*.a
  48. %dir %{_libdir}/daq
  49. %{_libdir}/daq/*.so
  50. %{_bindir}/daq-modules-config
  51. %changelog
  52. * Wed Jan 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.0.1-1
  53. - new upstream release
  54. * Sun Mar 18 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.6.2-2
  55. - fix post and postun scripts
  56. * Wed Mar 14 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.6.2-1
  57. - initial build for Vine Linux