Skip to content

Commit

Permalink
rpm: gvforwarder subpackage
Browse files Browse the repository at this point in the history
This commit places the gvforwarder binary in a new gvforwarder
subpackage. This subpackage will be a hard dependency for podman as its
required in FCOS. This subpackage will also be a hard dependency for the
main package to preserve upgrade path.

Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Sep 12, 2023
1 parent 507f568 commit a485232
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rpm/gvisor-tap-vsock.spec
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,18 @@ Obsoletes: podman-gvproxy < 102:4.7.0-1
Obsoletes: podman-gvproxy < 5:4.7.0-1
%endif
Provides: podman-gvproxy = %{epoch}:%{version}-%{release}
Requires: %{name}-gvforwarder = %{epoch}:%{version}-%{release}

%description
A replacement for libslirp and VPNKit, written in pure Go.
It is based on the network stack of gVisor. Compared to libslirp,
gvisor-tap-vsock brings a configurable DNS server and
dynamic port forwarding.

%package gvforwarder
Summary: Forward traffic from a tap interface over vsock
Provides: gvforwarder = %{epoch}:%{version}-%{release}

%prep
%autosetup -Sgit -n %{name}-%{version}

Expand Down Expand Up @@ -101,6 +106,9 @@ install -p -m0755 bin/gvforwarder %{buildroot}%{_gvisor_installdir}
%doc README.md
%dir %{_gvisor_installdir}
%{_gvisor_installdir}/gvproxy

%files gvforwarder
%dir %{_gvisor_installdir}
%{_gvisor_installdir}/gvforwarder

%changelog
Expand Down

0 comments on commit a485232

Please sign in to comment.