aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2026-05-06 03:32:21 +0200
committerStefano Brivio <sbrivio@redhat.com>2026-05-07 08:06:30 +0200
commit82523bc8a78c89f19de3c162aaab71bd29a239ae (patch)
treeb6e62e6825882dabf773e77dec1c6f6089632cc3
parent5335770089427746986e4f2a6304b39181393083 (diff)
downloadpasst-82523bc8a78c89f19de3c162aaab71bd29a239ae.tar
passt-82523bc8a78c89f19de3c162aaab71bd29a239ae.tar.gz
passt-82523bc8a78c89f19de3c162aaab71bd29a239ae.tar.bz2
passt-82523bc8a78c89f19de3c162aaab71bd29a239ae.tar.lz
passt-82523bc8a78c89f19de3c162aaab71bd29a239ae.tar.xz
passt-82523bc8a78c89f19de3c162aaab71bd29a239ae.tar.zst
passt-82523bc8a78c89f19de3c162aaab71bd29a239ae.zip
fedora: Install pesto, its SELinux policy, and the man page from the spec file
It's time to ship it in packages. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com>
-rw-r--r--contrib/fedora/passt.spec14
1 files changed, 11 insertions, 3 deletions
diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec
index 38b06b0..34838af 100644
--- a/contrib/fedora/passt.spec
+++ b/contrib/fedora/passt.spec
@@ -4,6 +4,9 @@
# PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode
#
+# PESTO - Programmable Extensible Socket Translation Orchestrator
+# front-end for passt(1) and pasta(1) forwarding configuration
+#
# Copyright (c) 2022 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com>
@@ -51,7 +54,8 @@ Requires(post): container-selinux
Requires(post): selinux-policy-%{selinuxtype}
%description selinux
-This package adds SELinux enforcement to passt(1), pasta(1), passt-repair(1).
+This package adds SELinux enforcement to passt(1), pasta(1), passt-repair(1),
+pesto(1).
%prep
%setup -q -n passt-%{git_hash}
@@ -90,17 +94,18 @@ install -p -m 644 -D passt.pp %{buildroot}%{_datadir}/selinux/packages/%{selinux
install -p -m 644 -D passt.if %{buildroot}%{_datadir}/selinux/devel/include/distributed/passt.if
install -p -m 644 -D pasta.pp %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp
install -p -m 644 -D passt-repair.pp %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/passt-repair.pp
+install -p -m 644 -D pesto.pp %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/pesto.pp
popd
%pre selinux
%selinux_relabel_pre -s %{selinuxtype}
%post selinux
-%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/passt.pp %{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp %{_datadir}/selinux/packages/%{selinuxtype}/passt-repair.pp
+%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/passt.pp %{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp %{_datadir}/selinux/packages/%{selinuxtype}/passt-repair.pp %{_datadir}/selinux/packages/%{selinuxtype}/pesto.pp
%postun selinux
if [ $1 -eq 0 ]; then
- %selinux_modules_uninstall -s %{selinuxtype} passt pasta passt-repair
+ %selinux_modules_uninstall -s %{selinuxtype} passt pasta passt-repair pesto
fi
%posttrans selinux
@@ -115,10 +120,12 @@ fi
%{_bindir}/pasta
%{_bindir}/qrap
%{_bindir}/passt-repair
+%{_bindir}/pesto
%{_mandir}/man1/passt.1*
%{_mandir}/man1/pasta.1*
%{_mandir}/man1/qrap.1*
%{_mandir}/man1/passt-repair.1*
+%{_mandir}/man1/pesto.1*
%ifarch x86_64
%{_bindir}/passt.avx2
%{_mandir}/man1/passt.avx2.1*
@@ -131,6 +138,7 @@ fi
%{_datadir}/selinux/devel/include/distributed/passt.if
%{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp
%{_datadir}/selinux/packages/%{selinuxtype}/passt-repair.pp
+%{_datadir}/selinux/packages/%{selinuxtype}/pesto.pp
%changelog
{{{ passt_git_changelog }}}