11Summary: Linux kernel packet control tool
22Name: iptables
33Version: 1.8.10
4- Release: 3 %{?dist }
4+ Release: 4 %{?dist }
55License: GPLv2+
66Vendor: Microsoft Corporation
77Distribution: Azure Linux
@@ -13,6 +13,7 @@ Source2: iptables
1313Source3: iptables.stop
1414Source4: ip4save
1515Source5: ip6save
16+ Source6: iptables.conf
1617BuildRequires: jansson-devel
1718BuildRequires: libmnl-devel
1819BuildRequires: libnftnl-devel
@@ -54,6 +55,9 @@ It contains the libraries and header files to create applications.
5455%install
5556%make_install
5657
58+ # Create the /etc/modules-load.d directory if it doesn't exist
59+ install -vdm755 %{buildroot }/etc/modules-load.d
60+
5761# Install daemon scripts
5862install -vdm755 %{buildroot }%{_unitdir }
5963install -m 644 %{SOURCE1 } %{buildroot }%{_unitdir }
@@ -62,6 +66,7 @@ install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/systemd/scripts
6266install -m 755 %{SOURCE3 } %{buildroot }%{_sysconfdir }/systemd/scripts
6367install -m 644 %{SOURCE4 } %{buildroot }%{_sysconfdir }/systemd/scripts
6468install -m 644 %{SOURCE5 } %{buildroot }%{_sysconfdir }/systemd/scripts
69+ install -m 644 %{SOURCE6 } %{buildroot }/etc/modules-load.d
6570
6671find %{buildroot } -name '*.a' -delete
6772find %{buildroot } -type f -name "*.la" -delete -print
123128/usr/share/xtables/iptables.xslt
124129%ghost %{_sbindir }/ip{,6}tables{,-save,-restore}
125130%ghost %{_sbindir }/{eb,arp}tables{,-save,-restore}
131+ /etc/modules-load.d/iptables.conf
126132
127133%files devel
128134%{_libdir }/* .so
131137%{_mandir }/man3/*
132138
133139%changelog
140+ * Thu Jan 16 2025 Dallas Delaney <dadelan@microsoft.com> - 1.8.10-4
141+ - Add back kernel modules that were removed by enabling nftables
142+
134143* Tue Nov 12 2024 Sumedh Sharma <sumsharma@microsoft.com> - 1.8.10-3
135144- Enable nftables and use alternatives.
136145
0 commit comments