2010-03-02 12:26:39 +01:00
|
|
|
#
|
2011-08-12 23:34:26 +02:00
|
|
|
# spec file for package conntrack-tools
|
2010-03-02 12:26:39 +01:00
|
|
|
#
|
2023-09-29 13:33:27 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2010-03-02 12:26:39 +01: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.
|
|
|
|
|
2019-08-11 14:32:38 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-03-02 12:26:39 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-01-31 16:56:47 +01:00
|
|
|
%if !%{defined _fillupdir}
|
|
|
|
# Leap/TW 15+
|
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
2010-03-02 12:26:39 +01:00
|
|
|
Name: conntrack-tools
|
2023-09-29 13:33:27 +02:00
|
|
|
Version: 1.4.8
|
2012-05-26 20:47:50 +02:00
|
|
|
Release: 0
|
2012-06-30 15:30:54 +02:00
|
|
|
Summary: Userspace tools for interacting with the Connection Tracking System
|
2018-03-17 00:53:34 +01:00
|
|
|
License: GPL-2.0-or-later
|
2012-06-30 15:30:54 +02:00
|
|
|
Group: Productivity/Networking/Security
|
2020-04-01 20:59:38 +02:00
|
|
|
URL: http://conntrack-tools.netfilter.org/
|
2012-01-04 21:18:10 +01:00
|
|
|
|
|
|
|
#Git-Clone: git://git.netfilter.org/conntrack-tools
|
2023-09-29 13:33:27 +02:00
|
|
|
Source: https://www.netfilter.org/projects/conntrack-tools/files/conntrack-tools-%version.tar.xz
|
|
|
|
Source2: https://www.netfilter.org/projects/conntrack-tools/files/conntrack-tools-%version.tar.xz.sig
|
2012-12-10 15:22:38 +01:00
|
|
|
Source3: %name.keyring
|
2018-01-31 16:56:47 +01:00
|
|
|
Source5: conntrackd.service
|
|
|
|
Source6: conntrackd.README.SUSE
|
|
|
|
Source7: conntrackd.logrotate
|
|
|
|
Source8: conntrackd.sysconfig
|
|
|
|
Source9: conntrackd.conf
|
2012-06-30 15:30:54 +02:00
|
|
|
|
2015-01-08 20:15:25 +01:00
|
|
|
BuildRequires: automake
|
2012-05-26 20:47:50 +02:00
|
|
|
BuildRequires: bison
|
2012-05-26 21:33:45 +02:00
|
|
|
BuildRequires: flex >= 2.5.33
|
2015-01-08 17:28:41 +01:00
|
|
|
BuildRequires: libtool
|
2015-01-09 21:35:05 +01:00
|
|
|
BuildRequires: pkg-config >= 0.21
|
2018-01-31 16:56:47 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2015-01-09 21:35:05 +01:00
|
|
|
BuildRequires: xz
|
2016-08-22 13:39:01 +02:00
|
|
|
BuildRequires: pkgconfig(libmnl) >= 1.0.3
|
2022-10-06 21:20:37 +02:00
|
|
|
BuildRequires: pkgconfig(libnetfilter_conntrack) >= 1.0.9
|
2012-10-08 15:02:51 +02:00
|
|
|
BuildRequires: pkgconfig(libnetfilter_cthelper) >= 1.0.0
|
2012-05-26 20:47:50 +02:00
|
|
|
BuildRequires: pkgconfig(libnetfilter_cttimeout) >= 1.0.0
|
2012-10-08 15:02:51 +02:00
|
|
|
BuildRequires: pkgconfig(libnetfilter_queue) >= 1.0.2
|
|
|
|
BuildRequires: pkgconfig(libnfnetlink) >= 1.0.1
|
2016-08-22 13:39:01 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd) >= 227
|
2018-03-17 00:53:34 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
BuildRequires: pkgconfig(libtirpc)
|
|
|
|
%endif
|
2010-03-02 12:26:39 +01:00
|
|
|
|
|
|
|
%description
|
2018-01-31 16:56:47 +01:00
|
|
|
The conntrack/nfct utilities provide the userspace interface to the
|
|
|
|
Netfilter connection tracking, replacing
|
|
|
|
/proc/net/ip_conntrack. The tools can be used to search, list,
|
|
|
|
inspect and maintain the connection tracking subsystem of the Linux
|
|
|
|
kernel.
|
|
|
|
|
|
|
|
%package -n conntrackd
|
|
|
|
Summary: Connection tracking daemon
|
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
Provides: conntrack-tools:/usr/sbin/conntrackd
|
|
|
|
Requires: conntrack-tools = %version-%release
|
2018-01-31 17:32:02 +01:00
|
|
|
Requires(post): fillup
|
2018-01-31 16:56:47 +01:00
|
|
|
Recommends: logrotate
|
|
|
|
|
|
|
|
%description -n conntrackd
|
|
|
|
conntrackd is the user-space daemon for the Netfilter connection tracking
|
|
|
|
system. This daemon synchronizes connection tracking states between several
|
|
|
|
replica firewalls.
|
2010-03-02 12:26:39 +01:00
|
|
|
|
|
|
|
%prep
|
2015-09-09 19:46:30 +02:00
|
|
|
%setup -q
|
2018-01-31 16:56:47 +01:00
|
|
|
find doc -type f -name "*.orig" -delete
|
|
|
|
find doc -type f -exec chmod -x "{}" "+"
|
2010-03-02 12:26:39 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-11 14:32:38 +02:00
|
|
|
autoreconf -vif
|
2018-01-31 16:56:47 +01:00
|
|
|
%configure --disable-static --enable-systemd
|
2015-01-09 21:44:59 +01:00
|
|
|
# CC read_config_lex.o
|
|
|
|
#read_config_lex.l:24:28: fatal error: read_config_yy.h: No such file or
|
|
|
|
#directory
|
2023-09-29 13:33:27 +02:00
|
|
|
%make_build -j1
|
2018-01-31 16:56:47 +01:00
|
|
|
|
2018-01-31 17:27:22 +01:00
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
b="%buildroot"
|
|
|
|
ln -s service "$b/%_sbindir/rcconntrackd"
|
|
|
|
find "$b/%_libdir" -type f -name "*.la" -delete
|
|
|
|
install -Dpm0644 "%_sourcedir"/conntrackd.service "$b/%_unitdir/conntrackd.service"
|
|
|
|
install -Dpm0644 "%_sourcedir/conntrackd.sysconfig" "$b/%_fillupdir/sysconfig.conntrackd"
|
|
|
|
install -Dpm0644 "%_sourcedir/conntrackd.logrotate" "$b/%_sysconfdir/logrotate.d/conntrackd"
|
|
|
|
b="%buildroot/%_docdir/%name"
|
|
|
|
mkdir -p "$b"
|
|
|
|
cp -a "%_sourcedir/conntrackd.README.SUSE" "%_sourcedir/conntrackd.conf" "$b/"
|
|
|
|
|
2018-01-31 16:56:47 +01:00
|
|
|
%pre -n conntrackd
|
|
|
|
%service_add_pre conntrackd.service
|
|
|
|
|
|
|
|
%post -n conntrackd
|
2018-01-31 17:39:49 +01:00
|
|
|
%fillup_only -n conntrackd
|
2018-01-31 18:09:07 +01:00
|
|
|
if [ "$1" -eq 1 -a ! -e "%_sysconfdir/conntrackd/conntrackd.conf" ]; then
|
|
|
|
install -Dpm0644 "%_docdir/%name/conntrackd.conf" "%_sysconfdir/conntrackd/conntrackd.conf"
|
|
|
|
fi
|
2018-01-31 16:56:47 +01:00
|
|
|
%service_add_post conntrackd.service
|
|
|
|
|
2023-09-29 13:33:27 +02:00
|
|
|
%preun -n conntrackd
|
2018-01-31 16:56:47 +01:00
|
|
|
%service_del_preun conntrackd.service
|
|
|
|
|
|
|
|
%postun -n conntrackd
|
|
|
|
%service_del_postun conntrackd.service
|
2010-03-02 12:26:39 +01:00
|
|
|
|
|
|
|
%files
|
2011-08-04 10:20:43 +02:00
|
|
|
%_sbindir/conntrack
|
2012-05-26 21:33:45 +02:00
|
|
|
%_sbindir/nfct
|
2018-01-31 16:56:47 +01:00
|
|
|
%_mandir/man8/conntrack.8*
|
|
|
|
%_mandir/man8/nfct.8*
|
|
|
|
# Shared betweenn nfct and conntrackd:
|
2023-09-29 13:33:27 +02:00
|
|
|
%_libdir/%name/
|
2018-01-31 16:56:47 +01:00
|
|
|
|
|
|
|
%files -n conntrackd
|
|
|
|
%_sysconfdir/logrotate.d/conntrackd*
|
|
|
|
%_sbindir/conntrackd
|
|
|
|
%_sbindir/rcconntrackd
|
|
|
|
%_mandir/man5/conntrackd*
|
|
|
|
%_mandir/man8/conntrackd*
|
|
|
|
%dir %_docdir/%name
|
|
|
|
%_docdir/%name/conntrackd*
|
|
|
|
%_unitdir/conntrackd*
|
2018-01-31 17:27:22 +01:00
|
|
|
%_fillupdir/*conntrackd
|
2010-03-02 12:26:39 +01:00
|
|
|
|
|
|
|
%changelog
|