4490a9f031
Conflicts: conntrack-tools.spec
178 lines
6.1 KiB
RPMSpec
178 lines
6.1 KiB
RPMSpec
Name: conntrack-tools
|
|
Version: 1.4.1
|
|
Release: 1%{?dist}
|
|
Summary: Manipulate netfilter connection tracking table and run High Availability
|
|
Group: System Environment/Base
|
|
License: GPLv2
|
|
URL: http://netfilter.org
|
|
Source0: http://netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2
|
|
Source1: conntrackd.service
|
|
Source2: conntrackd.conf
|
|
BuildRequires: libnfnetlink-devel >= 1.0.1, libnetfilter_conntrack-devel >= 1.0.2
|
|
BuildRequires: libnetfilter_cttimeout-devel >= 1.0.0, libnetfilter_cthelper-devel >= 1.0.0
|
|
BuildRequires: libmnl-devel >= 1.0.3, libnetfilter_queue-devel >= 1.0.2
|
|
BuildRequires: pkgconfig bison flex
|
|
Provides: conntrack = 1.0-1
|
|
Obsoletes: conntrack < 1.0-1
|
|
BuildRequires: systemd-units
|
|
Requires(post): systemd-sysv
|
|
Requires(post): systemd-units
|
|
Requires(preun): systemd-units
|
|
Requires(postun): systemd-units
|
|
|
|
%description
|
|
With conntrack-tools you can setup a High Availability cluster and
|
|
synchronize conntrack state between multiple firewalls.
|
|
|
|
The conntrack-tools package contains two programs:
|
|
- conntrack: the command line interface to interact with the connection
|
|
tracking system.
|
|
- conntrackd: the connection tracking userspace daemon that can be used to
|
|
deploy highly available GNU/Linux firewalls and collect
|
|
statistics of the firewall use.
|
|
|
|
conntrack is used to search, list, inspect and maintain the netfilter
|
|
connection tracking subsystem of the Linux kernel.
|
|
Using conntrack, you can dump a list of all (or a filtered selection of)
|
|
currently tracked connections, delete connections from the state table,
|
|
and even add new ones.
|
|
In addition, you can also monitor connection tracking events, e.g.
|
|
show an event message (one line) per newly established connection.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --disable-static
|
|
%{__make} %{?_smp_mflags}
|
|
chmod 644 doc/sync/primary-backup.sh
|
|
|
|
%install
|
|
%{__make} install DESTDIR=%{buildroot}
|
|
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
mkdir -p %{buildroot}%{_sysconfdir}/conntrackd
|
|
install -d 0755 %{buildroot}%{_unitdir}
|
|
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
|
|
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/conntrackd/
|
|
|
|
%files
|
|
%doc COPYING AUTHORS TODO doc
|
|
%dir %{_sysconfdir}/conntrackd
|
|
%config(noreplace) %{_sysconfdir}/conntrackd/conntrackd.conf
|
|
%{_unitdir}/conntrackd.service
|
|
%{_sbindir}/conntrack
|
|
%{_sbindir}/conntrackd
|
|
%{_sbindir}/nfct
|
|
%{_mandir}/man8/*
|
|
%dir %{_libdir}/conntrack-tools
|
|
%{_libdir}/conntrack-tools/*
|
|
|
|
%preun
|
|
if [ $1 -eq 0 ]; then
|
|
# Package removal, not upgrade
|
|
/bin/systemctl --no-reload disable conntrackd.service > /dev/null 2>&1 || :
|
|
/bin/systemctl stop conntrackd.service > /dev/null 2>&1 || :
|
|
fi
|
|
|
|
%postun
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
if [ $1 -ge 1 ] ; then
|
|
# Package upgrade, not uninstall
|
|
/bin/systemctl try-restart conntrackd.service >/dev/null 2>&1 || :
|
|
fi
|
|
|
|
%changelog
|
|
* Sun Mar 24 2013 Paul P. Komkoff Jr <i@stingr.net> - 1.4.1-1
|
|
- new upstream version
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Fri Feb 08 2013 Paul Komkoff <i@stingr.net> - 1.4.0-2
|
|
- fix bz#909128
|
|
|
|
* Mon Nov 26 2012 Paul P. Komkoff Jr <i@stingr.net> - 1.4.0-1
|
|
- new upstream version
|
|
|
|
* Tue Jul 24 2012 Paul P. Komkoff Jr <i@stingr.net> - 1.2.1
|
|
- new upstream version
|
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Mon May 07 2012 Paul Wouters <pwouters@redhat.com> - 1.0.1-1
|
|
- Updated to 1.0.1
|
|
- Added daemon using systemd and configuration file
|
|
- Removed legacy spec requirements
|
|
- Patch for: parse.c:240:34: error: 'NULL' undeclared
|
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Thu May 5 2011 Paul P. Komkoff Jr <i@stingr.net> - 1.0.0
|
|
- new upstream version
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.15-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Fri Nov 19 2010 Paul P. Komkoff Jr <i@stingr.net> - 0.9.15-1
|
|
- new upstream version
|
|
|
|
* Thu Mar 25 2010 Paul P. Komkoff Jr <i@stingr.net> - 0.9.14-1
|
|
- update, at last
|
|
|
|
* Tue Nov 10 2009 Paul P. Komkoff Jr <i@stingr.net> - 0.9.13-2
|
|
- failed to properly commit the package :(
|
|
|
|
* Tue Oct 13 2009 Paul P. Komkoff Jr <i@stingr.net> - 0.9.13-1
|
|
- new upstream version
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.12-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Sun May 24 2009 Paul P. Komkoff Jr <i@stingr.net> - 0.9.12-3
|
|
- new upstream version
|
|
|
|
* Sun May 24 2009 Paul P. Komkoff Jr <i@stingr.net> - 0.9.12-2
|
|
- versioning screwup
|
|
|
|
* Sun May 24 2009 Paul P. Komkoff Jr <i@stingr.net> - 0.9.12-1
|
|
- new upstream version
|
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Tue Jan 13 2009 Paul P. Komkoff Jr <i@stingr.net> - 0.9.9-1
|
|
- new upstream version
|
|
|
|
* Sun Oct 26 2008 Paul P. Komkoff Jr <i@stingr.net> - 0.9.8-1
|
|
- new upstream version
|
|
- remove rollup patch
|
|
|
|
* Wed Jul 16 2008 Paul P. Komkoff Jr <i@stingr.net> - 0.9.7-2
|
|
- fix Patch0/%%patch.
|
|
|
|
* Wed Jul 16 2008 Paul P. Komkoff Jr <i@stingr.net> - 0.9.7-1
|
|
- new upstream version
|
|
|
|
* Sat Feb 23 2008 Paul P. Komkoff Jr <i@stingr.net> - 0.9.6-0.1.svn7382
|
|
- new version from svn
|
|
|
|
* Fri Feb 22 2008 Paul P. Komkoff Jr <i@stingr.net> - 0.9.5-5
|
|
- fix the PATH_MAX-related compilation problem
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.5-4
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Tue Oct 23 2007 Paul P. Komkoff Jr <i@stingr.net> - 0.9.5-3
|
|
- review fixes
|
|
|
|
* Sun Oct 21 2007 Paul P. Komkoff Jr <i@stingr.net> - 0.9.5-2
|
|
- review fixes
|
|
|
|
* Fri Oct 19 2007 Paul P. Komkoff Jr <i@stingr.net> - 0.9.5-1
|
|
- new upstream version
|
|
|
|
* Sun Jul 22 2007 Paul P. Komkoff Jr <i@stingr.net> - 0.9.4-1
|
|
- replace conntrack with conntrack-tools
|