File project.diff of Package conntrack-tools
--- conntrack-tools.changes.orig
+++ conntrack-tools.changes
@@ -35,6 +35,11 @@ Mon Aug 30 08:34:07 UTC 2021 - Johannes
* conntrackd.service
-------------------------------------------------------------------
+Thu Feb 11 20:38:20 UTC 2021 - Michal Kubecek <mkubecek@suse.cz>
+
+- undo specfile "modernization" breaking build on older systems
+
+-------------------------------------------------------------------
Wed Apr 1 18:55:00 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Update to release 1.4.6
@@ -69,6 +74,12 @@ Mon Jul 15 11:20:59 UTC 2019 - Michal Ku
conntrackd-use-correct-max-unix-path-length.patch
-------------------------------------------------------------------
+Sun May 27 17:59:59 UTC 2018 - mkubecek@suse.cz
+
+- do not require systemd machinery unless necessary
+- use compatible SPDX identifier
+
+-------------------------------------------------------------------
Tue May 1 12:39:52 UTC 2018 - jengelh@inai.de
- Update to new upstream release 1.4.5
@@ -108,6 +119,17 @@ Mon Aug 22 11:33:28 UTC 2016 - jengelh@i
to usage output.
-------------------------------------------------------------------
+Tue Jan 12 09:12:20 UTC 2016 - mkubecek@suse.cz
+
+- move closer to security:netfilter package (SLE11-SP1 build no
+ longer needed)
+
+-------------------------------------------------------------------
+Wed Sep 30 06:39:50 UTC 2015 - mkubecek@suse.cz
+
+- fix SLE11 SP1 build (we are not using xz compressed tarball)
+
+-------------------------------------------------------------------
Wed Sep 9 16:27:05 UTC 2015 - jengelh@inai.de
- Update to new upstream release 1.4.3
@@ -118,6 +140,11 @@ Wed Sep 9 16:27:05 UTC 2015 - jengelh@i
* conntrack: fix setting labels in updates
-------------------------------------------------------------------
+Mon Jun 29 12:21:45 UTC 2015 - mkubecek@suse.cz
+
+- fix build on SLE11
+
+-------------------------------------------------------------------
Thu Jan 8 19:14:05 UTC 2015 - jengelh@inai.de
- Update to new git snapshot 1.4.2.g26
@@ -125,9 +152,6 @@ Thu Jan 8 19:14:05 UTC 2015 - jengelh@i
* TFTP userspace helper support
* Support for attaching expectations via nfqueue
* Fix directory lookup for helper plugins
-* Fixes a possible crash if conntrackd sees DCCP, SCTP and ICMPv6
- traffic and the corresponding kernel modules that track this
- traffic are not available. [bnc#942419, CVE-2015-6496]
-------------------------------------------------------------------
Tue Sep 23 15:16:24 UTC 2014 - jengelh@inai.de
--- conntrack-tools.spec.orig
+++ conntrack-tools.spec
@@ -1,7 +1,7 @@
#
# spec file for package conntrack-tools
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,11 @@
#
-%if !%{defined _fillupdir}
+%if 0%{?suse_version} < 1130
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+%endif
+
+%if 0%{!?_fillupdir:1}
# Leap/TW 15+
%define _fillupdir /var/adm/fillup-templates
%endif
@@ -42,16 +46,25 @@ BuildRequires: bison
BuildRequires: flex >= 2.5.33
BuildRequires: libtool
BuildRequires: pkg-config >= 0.21
-BuildRequires: systemd-rpm-macros
BuildRequires: xz
+%if %{?suse_version} > 1110
BuildRequires: pkgconfig(libmnl) >= 1.0.3
BuildRequires: pkgconfig(libnetfilter_conntrack) >= 1.0.9
BuildRequires: pkgconfig(libnetfilter_cthelper) >= 1.0.0
BuildRequires: pkgconfig(libnetfilter_cttimeout) >= 1.0.0
BuildRequires: pkgconfig(libnetfilter_queue) >= 1.0.2
BuildRequires: pkgconfig(libnfnetlink) >= 1.0.1
-BuildRequires: pkgconfig(libsystemd) >= 227
+%else
+BuildRequires: libmnl-devel >= 1.0.3
+BuildRequires: libnetfilter_conntrack-devel >= 1.0.8
+BuildRequires: libnetfilter_cthelper-devel >= 1.0.0
+BuildRequires: libnetfilter_cttimeout-devel >= 1.0.0
+BuildRequires: libnetfilter_queue-devel >= 1.0.2
+BuildRequires: libnfnetlink-devel >= 1.0.1
+%endif
%if 0%{?suse_version} >= 1500
+BuildRequires: systemd-rpm-macros
+BuildRequires: pkgconfig(libsystemd) >= 227
BuildRequires: pkgconfig(libtirpc)
%endif
@@ -69,6 +82,7 @@ Provides: conntrack-tools:/usr/sbi
Requires: conntrack-tools = %version-%release
Requires(post): fillup
Recommends: logrotate
+%{?systemd_requires}
%description -n conntrackd
conntrackd is the user-space daemon for the Netfilter connection tracking
@@ -82,23 +96,30 @@ find doc -type f -exec chmod -x "{}" "+"
%build
autoreconf -vif
+%if 0%{?suse_version} >= 1500
%configure --disable-static --enable-systemd
+%else
+%configure --disable-static --disable-systemd
+%endif
# CC read_config_lex.o
#read_config_lex.l:24:28: fatal error: read_config_yy.h: No such file or
#directory
%make_build -j1
%install
-%make_install
+%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}}
b="%buildroot"
find "$b/%_libdir" -type f -name "*.la" -delete
+%if 0%{?suse_version} >= 1200
install -Dpm0644 "%_sourcedir"/conntrackd.service "$b/%_unitdir/conntrackd.service"
+%endif
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/"
+%if 0
%pre -n conntrackd
%service_add_pre conntrackd.service
@@ -114,8 +135,10 @@ fi
%postun -n conntrackd
%service_del_postun conntrackd.service
+%endif
%files
+%defattr(-,root,root)
%_sbindir/conntrack
%_sbindir/nfct
%_mandir/man8/conntrack.8*
@@ -124,13 +147,16 @@ fi
%_libdir/%name/
%files -n conntrackd
+%defattr(-,root,root)
%_sysconfdir/logrotate.d/conntrackd*
%_sbindir/conntrackd
%_mandir/man5/conntrackd*
%_mandir/man8/conntrackd*
%dir %_docdir/%name
%_docdir/%name/conntrackd*
+%if 0%{?suse_version} >= 1200
%_unitdir/conntrackd*
+%endif
%_fillupdir/*conntrackd
%changelog