2012-10-28 16:56:46 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package libdaq
|
|
|
|
|
#
|
2015-11-21 14:07:26 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-10-28 16:56:46 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2010-10-21 00:15:16 +00:00
|
|
|
|
2012-10-28 16:56:01 +00:00
|
|
|
%define soname 1
|
2010-10-21 00:15:16 +00:00
|
|
|
Name: libdaq
|
2015-11-21 14:07:26 +00:00
|
|
|
Version: 2.0.6
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Data Acquisition library, for packet I/O
|
|
|
|
|
License: GPL-2.0
|
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
Url: https://www.snort.org/
|
|
|
|
|
Source: https://snort.org/downloads/snort/daq-%{version}.tar.gz
|
2010-10-21 00:15:16 +00:00
|
|
|
BuildRequires: bison
|
|
|
|
|
BuildRequires: flex
|
2010-11-07 16:42:18 +00:00
|
|
|
BuildRequires: libdnet-devel
|
2010-10-21 00:17:12 +00:00
|
|
|
BuildRequires: libpcap-devel >= 1.0.0
|
2012-10-28 16:56:01 +00:00
|
|
|
BuildRequires: pkg-config
|
2015-11-21 14:07:26 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-07 16:42:18 +00:00
|
|
|
%if 0%{?suse_version} > 1120
|
2015-11-21 14:07:26 +00:00
|
|
|
BuildRequires: libnetfilter_queue-devel
|
2012-10-28 16:56:01 +00:00
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
|
BuildRequires: libipq-devel
|
|
|
|
|
%else
|
2010-11-07 16:47:16 +00:00
|
|
|
BuildRequires: iptables-devel
|
2012-10-28 16:56:01 +00:00
|
|
|
%endif
|
2010-11-07 16:42:18 +00:00
|
|
|
%endif
|
|
|
|
|
|
2010-10-21 00:15:16 +00:00
|
|
|
%description
|
|
|
|
|
Data Acquisition library, for packet I/O. The
|
|
|
|
|
DAQ replaces direct calls to PCAP functions with an abstraction layer that
|
|
|
|
|
facilitates operation on a variety of hardware and software interfaces without
|
|
|
|
|
requiring changes to Snort. It is possible to select the DAQ type and mode
|
|
|
|
|
when invoking Snort to perform PCAP readback or inline operation, etc. The
|
|
|
|
|
DAQ library may be useful for other packet processing applications and the
|
|
|
|
|
modular nature allows you to build new modules for other platforms.
|
|
|
|
|
|
|
|
|
|
%package -n %{name}%{soname}
|
|
|
|
|
Summary: Data Acquisition library, for packet I/O
|
2012-10-28 16:56:46 +00:00
|
|
|
Group: System/Libraries
|
2010-10-21 00:15:16 +00:00
|
|
|
|
|
|
|
|
%description -n %{name}%{soname}
|
|
|
|
|
Data Acquisition library, for packet I/O. The
|
|
|
|
|
DAQ replaces direct calls to PCAP functions with an abstraction layer that
|
|
|
|
|
facilitates operation on a variety of hardware and software interfaces without
|
|
|
|
|
requiring changes to Snort. It is possible to select the DAQ type and mode
|
|
|
|
|
when invoking Snort to perform PCAP readback or inline operation, etc. The
|
|
|
|
|
DAQ library may be useful for other packet processing applications and the
|
|
|
|
|
modular nature allows you to build new modules for other platforms.
|
|
|
|
|
|
|
|
|
|
%package devel
|
2015-11-21 14:07:26 +00:00
|
|
|
Summary: Data Acquisition library, for packet I/O
|
|
|
|
|
Group: Development/Libraries/C and C++
|
2010-10-21 00:15:16 +00:00
|
|
|
Requires: %{name}%{soname} = %{version}
|
2010-11-07 16:42:18 +00:00
|
|
|
Requires: daq-modules = %{version}
|
2010-12-02 17:58:41 +00:00
|
|
|
%if 0%{?suse_version} > 1120
|
2016-09-10 08:04:40 +00:00
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
|
Requires: libipq-devel
|
|
|
|
|
%else
|
2010-12-02 17:58:41 +00:00
|
|
|
Requires: iptables-devel
|
2016-09-10 08:04:40 +00:00
|
|
|
%endif
|
2010-12-02 17:58:41 +00:00
|
|
|
Requires: libnetfilter_queue-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
2010-10-21 00:15:16 +00:00
|
|
|
%description devel
|
|
|
|
|
Data Acquisition library, for packet I/O. The
|
|
|
|
|
DAQ replaces direct calls to PCAP functions with an abstraction layer that
|
|
|
|
|
facilitates operation on a variety of hardware and software interfaces without
|
|
|
|
|
requiring changes to Snort. It is possible to select the DAQ type and mode
|
|
|
|
|
when invoking Snort to perform PCAP readback or inline operation, etc. The
|
|
|
|
|
DAQ library may be useful for other packet processing applications and the
|
|
|
|
|
modular nature allows you to build new modules for other platforms.
|
|
|
|
|
|
2010-11-07 16:42:18 +00:00
|
|
|
%package -n daq-modules
|
|
|
|
|
Summary: Bundled DAQ modules
|
2012-10-28 16:56:46 +00:00
|
|
|
Group: System/Libraries
|
2010-11-07 16:42:18 +00:00
|
|
|
|
|
|
|
|
%description -n daq-modules
|
|
|
|
|
Contains the DAQ modules that come bundled with the base LibDAQ distribution.
|
|
|
|
|
|
2010-10-21 00:15:16 +00:00
|
|
|
%prep
|
2015-11-21 14:07:26 +00:00
|
|
|
%setup -q -n daq-%{version}
|
2010-10-21 00:15:16 +00:00
|
|
|
|
|
|
|
|
%build
|
2012-10-28 16:56:01 +00:00
|
|
|
export CPPFLAGS="$CPPFLAGS $(pkg-config --libs --cflags libipq) $(pkg-config --libs --cflags libnetfilter_queue)"
|
2010-10-21 00:15:16 +00:00
|
|
|
%configure --disable-static
|
2015-11-21 14:07:26 +00:00
|
|
|
# parallel build is broken:
|
|
|
|
|
# https://lists.macosforge.org/pipermail/macports-tickets/2015-May/186801.html
|
|
|
|
|
make #%{?_smp_mflags}
|
2010-10-21 00:15:16 +00:00
|
|
|
|
|
|
|
|
%install
|
2015-11-21 14:07:26 +00:00
|
|
|
make DESTDIR=%{buildroot} install #%{?_smp_mflags}
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2010-10-21 00:15:16 +00:00
|
|
|
|
|
|
|
|
%post -n %{name}%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -n %{name}%{soname}
|
|
|
|
|
%defattr(-,root,root)
|
2012-10-28 16:56:01 +00:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
%{_libdir}/*.so.*
|
2010-10-21 00:15:16 +00:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/daq-modules-config
|
2012-10-28 16:56:01 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/*.a
|
2010-11-07 16:42:18 +00:00
|
|
|
|
|
|
|
|
%files -n daq-modules
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/daq
|
2012-10-28 16:56:01 +00:00
|
|
|
|
|
|
|
|
%changelog
|