Blame SPECS/conntrack-tools.spec

16b1eb
Name:           conntrack-tools
16b1eb
Version:        1.4.4
16b1eb
Release:        7%{?dist}
16b1eb
Summary:        Manipulate netfilter connection tracking table and run High Availability
16b1eb
Group:          System Environment/Base
16b1eb
License:        GPLv2
16b1eb
URL:            http://netfilter.org
16b1eb
Source0:        http://netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2
16b1eb
Source1:        conntrackd.service
16b1eb
Source2:        conntrackd.conf
16b1eb
BuildRequires:  libnfnetlink-devel >= 1.0.1, libnetfilter_conntrack-devel >= 1.0.6
16b1eb
BuildRequires:  libnetfilter_cttimeout-devel >= 1.0.0, libnetfilter_cthelper-devel >= 1.0.0
16b1eb
BuildRequires:  libmnl-devel >= 1.0.3, libnetfilter_queue-devel >= 1.0.2
16b1eb
BuildRequires:  pkgconfig bison flex
16b1eb
Requires:  libnetfilter_conntrack >= 1.0.6
16b1eb
Provides:       conntrack = 1.0-1
16b1eb
Obsoletes:      conntrack < 1.0-1
16b1eb
Requires(post): systemd
16b1eb
Requires(preun): systemd
16b1eb
Requires(postun): systemd
16b1eb
BuildRequires: systemd
16b1eb
16b1eb
Patch1:		0001-conntrack-Support-IPv6-NAT.patch
16b1eb
Patch2:		0002-conntrackd-helpers-dhcpv6-Fix-potential-array-overru.patch
16b1eb
Patch3:		0003-nfct-Drop-dead-code-in-nfct_timeout_parse_params.patch
16b1eb
Patch4:		0004-src-Fix-for-implicit-fallthrough-warnings.patch
16b1eb
Patch5:		0005-conntrack-Fix-CIDR-to-mask-conversion-on-Big-Endian.patch
16b1eb
Patch6:		0006-nfct-helper-Fix-NFCTH_ATTR_PROTO_L4NUM-size.patch
16b1eb
16b1eb
%description
16b1eb
With conntrack-tools you can setup a High Availability cluster and
16b1eb
synchronize conntrack state between multiple firewalls.
16b1eb
16b1eb
The conntrack-tools package contains two programs:
16b1eb
- conntrack: the command line interface to interact with the connection
16b1eb
             tracking system.
16b1eb
- conntrackd: the connection tracking userspace daemon that can be used to
16b1eb
              deploy highly available GNU/Linux firewalls and collect
16b1eb
              statistics of the firewall use.
16b1eb
16b1eb
conntrack is used to search, list, inspect and maintain the netfilter
16b1eb
connection tracking subsystem of the Linux kernel.
16b1eb
Using conntrack, you can dump a list of all (or a filtered selection  of)
16b1eb
currently tracked connections, delete connections from the state table, 
16b1eb
and even add new ones.
16b1eb
In addition, you can also monitor connection tracking events, e.g. 
16b1eb
show an event message (one line) per newly established connection.
16b1eb
16b1eb
%prep
16b1eb
%autosetup -p1
16b1eb
16b1eb
%build
16b1eb
# do not use --enable-cthelper --enable-cttimeout, it causes disabling of these features
16b1eb
%configure --disable-static
16b1eb
%{__make} %{?_smp_mflags}
16b1eb
chmod 644 doc/sync/primary-backup.sh
16b1eb
rm -f doc/sync/notrack/conntrackd.conf.orig doc/sync/alarm/conntrackd.conf.orig doc/helper/conntrackd.conf.orig
16b1eb
16b1eb
%install
16b1eb
%{__make} install DESTDIR=%{buildroot}
16b1eb
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
16b1eb
mkdir -p %{buildroot}%{_sysconfdir}/conntrackd
16b1eb
install -d 0755 %{buildroot}%{_unitdir}
16b1eb
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
16b1eb
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/conntrackd/
16b1eb
16b1eb
%files
16b1eb
%doc COPYING AUTHORS TODO doc
16b1eb
%dir %{_sysconfdir}/conntrackd
16b1eb
%config(noreplace) %{_sysconfdir}/conntrackd/conntrackd.conf
16b1eb
%{_unitdir}/conntrackd.service
16b1eb
%{_sbindir}/conntrack
16b1eb
%{_sbindir}/conntrackd
16b1eb
%{_sbindir}/nfct
16b1eb
%{_mandir}/man8/*
16b1eb
%{_mandir}/man5/*
16b1eb
%dir %{_libdir}/conntrack-tools
16b1eb
%{_libdir}/conntrack-tools/*
16b1eb
16b1eb
%post
16b1eb
%systemd_post conntrackd.service
16b1eb
16b1eb
%preun
16b1eb
%systemd_preun conntrackd.service
16b1eb
16b1eb
%postun
16b1eb
%systemd_postun conntrackd.service 
16b1eb
16b1eb
%changelog
16b1eb
* Tue Sep 10 2019 Phil Sutter <psutter@redhat.com> - 1.4.4-7
16b1eb
- nfct: helper: Fix NFCTH_ATTR_PROTO_L4NUM size
16b1eb
16b1eb
* Wed Sep 04 2019 Phil Sutter <psutter@redhat.com> - 1.4.4-6
16b1eb
- conntrack: Fix CIDR to mask conversion on Big Endian
16b1eb
16b1eb
* Wed Mar 27 2019 Phil Sutter <psutter@redhat.com> - 1.4.4-5
16b1eb
- Add git commit info to IPv6 NAT support patch
16b1eb
- Backport: conntrackd: helpers: dhcpv6: Fix potential array overrun
16b1eb
- Backport: nfct: Drop dead code in nfct_timeout_parse_params()
16b1eb
- Backport: src: Fix for implicit-fallthrough warnings
16b1eb
16b1eb
* Fri Aug 24 2018 Paul Wouters <pwouters@redhat.com> - 1.4.4-4
16b1eb
- Resolves: rhbz#1578059 Greatest NVR version of conntrack-tools for ppc64le and x86_64 are different
16b1eb
16b1eb
* Mon Apr 03 2017 Paul Wouters <pwouters@redhat.com> - 1.4.4-3
16b1eb
- Resolves: rhbz#1425552 (explicitely Require: libnetfilter_conntrack >= 1.0.6 as it is same .so version)
16b1eb
16b1eb
* Thu Mar 16 2017 Paul Wouters <pwouters@redhat.com> - 1.4.4-2
16b1eb
- Resolves: rhbz#1425552 (conntrack cmd was missing IPv6 support as well)
16b1eb
16b1eb
* Fri Mar 03 2017 Paul Wouters <pwouters@redhat.com> - 1.4.4-1
16b1eb
- Resolves: rhbz#1425552 conntrack does not support Ipv6 NAT
16b1eb
16b1eb
* Fri Aug 12 2016 Paul Wouters <pwouters@redhat.com> - 1.4.3-1
16b1eb
- Resolves: rhbz#1351701 conntrackd -d throws "ERROR: Helper support is disabled"
16b1eb
16b1eb
* Fri Aug 21 2015 Paul Wouters <pwouters@redhat.com> - 1.4.2-9
16b1eb
- Resolves: rhbz#1255578 conntrackd could neither be started nor be stopped
16b1eb
16b1eb
* Tue Aug 18 2015 Paul Wouters <pwouters@redhat.com> - 1.4.2-8
16b1eb
- Resolves: rhbz#CVE-2015-6496
16b1eb
- Fold in upstream patches since 1.4.2 release up to git 900d7e8
16b1eb
- Fold in upstream patch set of 2015-08-18 for coverity issues
16b1eb
16b1eb
* Thu May 21 2015 Paul Wouters <pwouters@redhat.com> - 1.4.2-7
16b1eb
- Resolves: rhbz#1122611 [BNE] Add conntrack-tools package to RHEL-7