diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..087a846 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/vios-proxy-0.1.tar.gz +/vios-proxy-0.2.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 213b58a..0000000 --- a/dead.package +++ /dev/null @@ -1,3 +0,0 @@ -2015-07-30: Retired orphaned package, because it was orphaned for -more than six weeks. - diff --git a/sources b/sources new file mode 100644 index 0000000..77c8ccb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +44ae7be44749691dc69d4e2b3049371e vios-proxy-0.2.tar.gz diff --git a/unistd.patch b/unistd.patch new file mode 100644 index 0000000..bf2e13c --- /dev/null +++ b/unistd.patch @@ -0,0 +1,48 @@ +diff --git a/src/vios_gchannel.cpp b/src/vios_gchannel.cpp +index 0b05b71..73f5b67 100644 +--- a/src/vios_gchannel.cpp ++++ b/src/vios_gchannel.cpp +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + + #include "vios_gchannel.h" + #include "vios_framing.h" +diff --git a/src/vios_ghost.cpp b/src/vios_ghost.cpp +index 9be2291..8047d30 100644 +--- a/src/vios_ghost.cpp ++++ b/src/vios_ghost.cpp +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include + + #include "vios_ghost.h" + #include "vios_gchannel.h" +diff --git a/src/vios_hchannel.cpp b/src/vios_hchannel.cpp +index d75356a..6ca069c 100644 +--- a/src/vios_hchannel.cpp ++++ b/src/vios_hchannel.cpp +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #include "vios_hchannel.h" + #include "vios_hguest.h" +diff --git a/src/vios_hguest.cpp b/src/vios_hguest.cpp +index d255388..2061bfb 100644 +--- a/src/vios_hguest.cpp ++++ b/src/vios_hguest.cpp +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + + #include "vios_hguest.h" + #include "vios_hchannel.h" diff --git a/vios-proxy.spec b/vios-proxy.spec new file mode 100644 index 0000000..9f54747 --- /dev/null +++ b/vios-proxy.spec @@ -0,0 +1,111 @@ +Name: vios-proxy +Version: 0.2 +Release: 4%{?dist} +Summary: Network proxy between a QEMU host and QEMU guests using virtioserial channels + +Group: System Environment/Daemons +License: ASL 2.0 +URL: http://git.fedorahosted.org/git/?p=vios-proxy.git +Source0: http://fedorahosted.org/released/vios-proxy/%{name}-%{version}.tar.gz +Patch0: unistd.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: boost-devel +BuildRequires: gcc-c++ +BuildRequires: cmake >= 2.6.0 + +%description +The vios-proxy program suite creates a network tunnel between +a server in the QEMU host and a client in a QEMU guest. +The proxy server and client programs open normal TCP network +ports on localhost and the vios-proxy tunnel connects them using +QEMU virtioserial channels. + +%package host + +Summary: Network proxy using virtioserial for QEMU host +Group: System Environment/Daemons + +%description host +The vios-proxy-host daemon runs on a QEMU host. A vios-proxy-host daemon +manages all the proxy connections for a single proxy service on the host. +Multiple vios-proxy-host daemons are required to provide proxy access to +multiple services on the host. A single vios-proxy-host daemon may open +multiple proxy channels to multiple QEMU guests limited only by the +number of virtioserial connections available to each guest. + +%package guest + +Summary: Network proxy using virtioserial for QEMU guest +Group: System Environment/Daemons + +%description guest +The vios-proxy-guest daemon runs on a QEMU client. A vios-proxy-guest daemon +creates a listening network socket on the guest's localhost interface. When +client programs connect to this socket then the vios-proxy-guest daemon opens +a proxy channel to the host through the tunnel. + +%package doc + +Summary: Documentation for vios-proxy +Group: System Environment/Daemons + +%description doc +The vios-proxy program suite creates a network tunnel between +a server in the QEMU host and a client in a QEMU guest. +The proxy server and client programs open normal TCP network +ports on localhost and the vios-proxy tunnel connects them using +QEMU virtioserial channels. + +%prep +%setup -q +%patch0 -p1 +pushd src +cmake -D CMAKE_INSTALL_PREFIX:STRING="%{_prefix}" -D CMAKE_CXX_FLAGS:STRING="%{optflags}" . +popd + +%build +pushd src +make %{?_smp_mflags} +popd + +%install +rm -rf $RPM_BUILD_ROOT +pushd src +make install DESTDIR=$RPM_BUILD_ROOT +popd + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files doc +%defattr(-,root,root,-) +%doc README.txt LICENSE NOTICE +%doc doc/ + +%files host +%defattr(-,root,root,-) +%{_bindir}/vios-proxy-host +%doc %{_mandir}/man1/vios-proxy-host.1.gz + +%files guest +%defattr(-,root,root,-) +%{_bindir}/vios-proxy-guest +%doc %{_mandir}/man1/vios-proxy-guest.1.gz + +%changelog +* Thu Jun 14 2012 Nuno Santos - 0.2-4 +- Patch from upstream to include unistd + +* Tue Feb 28 2012 Fedora Release Engineering - 0.2-3 +- Rebuilt for c++ ABI breakage + +* Sat Jan 14 2012 Fedora Release Engineering - 0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Oct 18 2011 Nuno Santos - 0.2-1 +- Added man pages + +* Mon Sep 19 2011 Chuck Rolke 0.1-1 +- Initial revision