-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: build host iptables with nftables support
Build iptables with nftables support, and force to use nft version. See siderolabs/talos#9883 Signed-off-by: Andrey Smirnov <[email protected]>
- Loading branch information
Showing
6 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,8 @@ spec: | |
- libinih | ||
- libjson-c | ||
- liblzma | ||
- libmnl | ||
- libnftnl | ||
- libpopt | ||
- libseccomp | ||
- libselinux | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: libmnl | ||
variant: scratch | ||
shell: /toolchain/bin/bash | ||
dependencies: | ||
- stage: base | ||
steps: | ||
- sources: | ||
- url: https://www.netfilter.org/projects/libmnl/files/libmnl-{{ .libmnl_version }}.tar.bz2 | ||
destination: libmnl.tar.bz2 | ||
sha256: "{{ .libmnl_sha256 }}" | ||
sha512: "{{ .libmnl_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xjf libmnl.tar.bz2 --strip-components=1 | ||
./configure \ | ||
--prefix=/usr | ||
build: | ||
- | | ||
make -j $(nproc) | ||
install: | ||
- | | ||
make install DESTDIR=/rootfs | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: libnftnl | ||
variant: scratch | ||
shell: /toolchain/bin/bash | ||
dependencies: | ||
- stage: base | ||
- stage: libmnl | ||
steps: | ||
- sources: | ||
- url: https://netfilter.org/projects/libnftnl/files/libnftnl-{{ .libnftnl_version }}.tar.xz | ||
destination: libnftnl.tar.bz2 | ||
sha256: "{{ .libnftnl_sha256 }}" | ||
sha512: "{{ .libnftnl_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xf libnftnl.tar.bz2 --strip-components=1 | ||
export PKG_CONFIG_PATH=/usr/lib/pkgconfig | ||
./configure \ | ||
--prefix=/usr | ||
build: | ||
- | | ||
make -j $(nproc) | ||
install: | ||
- | | ||
make install DESTDIR=/rootfs | ||
finalize: | ||
- from: /rootfs | ||
to: / |