daq-vl.spec 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. %define version 0.6.2
  2. Summary: Data Acquisition Library
  3. License: GPLv2
  4. Group: Libraries/Network
  5. Name: daq
  6. Prefix: %{_prefix}
  7. Provides: daq
  8. Release: 2%{?_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. %description
  19. Snort 2.9 introduces the DAQ, or Data Acquisition library, for packet I/O. The
  20. DAQ replaces direct calls to PCAP functions with an abstraction layer that
  21. facilitates operation on a variety of hardware and software interfaces without
  22. requiring changes to Snort. It is possible to select the DAQ type and mode
  23. when invoking Snort to perform PCAP readback or inline operation, etc. The
  24. DAQ library may be useful for other packet processing applications and the
  25. modular nature allows you to build new modules for other platforms.
  26. %prep
  27. %setup -q
  28. %build
  29. %configure
  30. make
  31. %install
  32. rm -rf %{buildroot}
  33. make install DESTDIR=%{buildroot}
  34. rm -f %{buildroot}%{_libdir}/*.la
  35. rm -f %{buildroot}%{_libdir}/daq/*.la
  36. %clean
  37. rm -rf %{buildroot}
  38. %post -p /sbin/ldconfig
  39. %postun -p /sbin/ldconfig
  40. %files
  41. %defattr(-,root,root)
  42. %{_includedir}/*.h
  43. %{_libdir}/*.so
  44. %{_libdir}/*.so.*
  45. %{_libdir}/*.a
  46. %dir %{_libdir}/daq
  47. %{_libdir}/daq/*.so
  48. %{_bindir}/daq-modules-config
  49. %changelog
  50. * Sun Mar 18 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.6.2-2
  51. - fix post and postun scripts
  52. * Wed Mar 14 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.6.2-1
  53. - initial build for Vine Linux