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