From e6ee22fac9f035be236bd5872e66dacb7703e7f4 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 18:16:29 +0100 Subject: [PATCH] automatic version update by autodist [release 1.4.12-1mamba;Sat Aug 31 2013] --- README.md | 3 + synergy-1.4.12-cryptopp-5.6.2.patch | 74 +++++++++++++++++ synergy-implicit-declaration.patch | 123 ++++++++++++++++++++++++++++ synergy-noignoreretval.diff | 48 +++++++++++ synergy.spec | 69 ++++++++++++++++ 5 files changed, 317 insertions(+) create mode 100644 synergy-1.4.12-cryptopp-5.6.2.patch create mode 100644 synergy-implicit-declaration.patch create mode 100644 synergy-noignoreretval.diff create mode 100644 synergy.spec diff --git a/README.md b/README.md index 75398fa..a9ee495 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # synergy +Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It's intended for users with multiple computers on their desk since each system uses its own monitor(s). +Redirecting the mouse and keyboard is as simple as moving the mouse off the edge of your screen. Synergy also merges the clipboards of all the systems into one, allowing cut-and-paste between systems. Furthermore, it synchronizes screen savers so they all start and stop together and, if screen locking is enabled, only one screen requires a password to unlock them all. Learn more about how it works. + diff --git a/synergy-1.4.12-cryptopp-5.6.2.patch b/synergy-1.4.12-cryptopp-5.6.2.patch new file mode 100644 index 0000000..3ed5b18 --- /dev/null +++ b/synergy-1.4.12-cryptopp-5.6.2.patch @@ -0,0 +1,74 @@ +--- a/tools/CMakeLists.txt ++++ b/tools/CMakeLists.txt +@@ -13,24 +13,6 @@ + # You should have received a copy of the GNU General Public License + # along with this program. If not, see . + +-set(cpp_dir cryptopp562) +- +-file(GLOB cpp_src ${cpp_dir}/*.cpp) +- +-if (WIN32) +- file(GLOB cpp_hdr ${cpp_dir}/*.h) +- list(APPEND cpp_src ${cpp_hdr}) +-endif() +- +-file(GLOB cpp_ignore +- ${cpp_dir}/simple.cpp +- ${cpp_dir}/strciphr.cpp +- ${cpp_dir}/polynomi.cpp +- ${cpp_dir}/eprecomp.cpp +- ${cpp_dir}/eccrypto.cpp +- ${cpp_dir}/algebra.cpp) +-list(REMOVE_ITEM cpp_src ${cpp_ignore}) +- + # if 64-bit windows, compile asm file. + if (CMAKE_CL_64) + list(APPEND cpp_src ${cpp_dir}/x64dll.asm ${cpp_dir}/x64masm.asm) +@@ -60,5 +42,3 @@ + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") + endif() + endif() +- +-add_library(cryptopp STATIC ${cpp_src}) +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -128,6 +128,10 @@ + + endif() + ++ set(CMAKE_REQUIRED_LIBRARIES crypto++) ++ set(CMAKE_REQUIRED_LIBRARIES) ++ set(CMAKE_INCLUDE_DIRECTORIES) ++ + check_type_size(char SIZEOF_CHAR) + check_type_size(int SIZEOF_INT) + check_type_size(long SIZEOF_LONG) +--- a/src/lib/synergy/CCryptoMode.h ++++ b/src/lib/synergy/CCryptoMode.h +@@ -17,9 +17,9 @@ + + #pragma once + +-#include +-#include +-#include ++#include ++#include ++#include + #include "ECryptoMode.h" + #include "CString.h" + +--- a/src/lib/synergy/CCryptoStream.h ++++ b/src/lib/synergy/CCryptoStream.h +@@ -20,8 +20,8 @@ + #include "BasicTypes.h" + #include "CStreamFilter.h" + #include "CCryptoMode.h" +-#include +-#include ++#include ++#include + + class CCryptoOptions; + diff --git a/synergy-implicit-declaration.patch b/synergy-implicit-declaration.patch new file mode 100644 index 0000000..f75bc10 --- /dev/null +++ b/synergy-implicit-declaration.patch @@ -0,0 +1,123 @@ +--- synergy-1.3.1/lib/arch/CArchDaemonUnix.cpp ++++ synergy-1.3.1/lib/arch/CArchDaemonUnix.cpp +@@ -14,6 +14,7 @@ + + #include "CArchDaemonUnix.h" + #include "XArchUnix.h" ++#include + #include + #include + #include +--- synergy-1.3.1/lib/arch/CMultibyte.cpp ++++ synergy-1.3.1/lib/arch/CMultibyte.cpp +@@ -19,6 +19,7 @@ + #include "CArch.h" + #include + #include ++#include + #if HAVE_LOCALE_H + # include + #endif +--- synergy-1.3.1/lib/base/CStringUtil.cpp ++++ synergy-1.3.1/lib/base/CStringUtil.cpp +@@ -16,6 +16,7 @@ + #include "CArch.h" + #include "common.h" + #include "stdvector.h" ++#include + #include + #include + #include +--- synergy-1.3.1/lib/client/CClient.cpp ++++ synergy-1.3.1/lib/client/CClient.cpp +@@ -12,6 +12,8 @@ + * GNU General Public License for more details. + */ + ++#include ++#include + #include "CClient.h" + #include "CServerProxy.h" + #include "CScreen.h" +--- synergy-1.3.1/lib/client/CserverProxy.cpp ++++ synergy-1.3.1/lib/client/CServerProxy.cpp +@@ -12,6 +12,7 @@ + * GNU General Public License for more details. + */ + ++#include + #include "CServerProxy.h" + #include "CClient.h" + #include "CClipboard.h" +--- synergy-1.3.1/lib/net/CTCPSocket.cpp ++++ synergy-1.3.1/lib/net/CTCPSocket.cpp +@@ -24,6 +24,7 @@ + #include "CArch.h" + #include "XArch.h" + #include ++#include + + // + // CTCPSocket +--- synergy-1.3.1/lib/platform/CXWindowsScreen.cpp ++++ synergy-1.3.1/lib/platform/CXWindowsScreen.cpp +@@ -12,6 +12,7 @@ + * GNU General Public License for more details. + */ + ++#include + #include "CXWindowsScreen.h" + #include "CXWindowsClipboard.h" + #include "CXWindowsEventQueueBuffer.h" +--- synergy-1.3.1/lib/server/CClientProxy1_3.cpp ++++ synergy-1.3.1/lib/server/CClientProxy1_3.cpp +@@ -12,6 +12,7 @@ + * GNU General Public License for more details. + */ + ++#include + #include "CClientProxy1_3.h" + #include "CProtocolUtil.h" + #include "CLog.h" +--- synergy-1.3.1/lib/server/CServer.cpp ++++ synergy-1.3.1/lib/server/CServer.cpp +@@ -29,6 +29,7 @@ + #include "TMethodEventJob.h" + #include "CArch.h" + #include ++#include + + // + // CServer +--- synergy-1.3.1/lib/synergy/CPacketStreamFilter.cpp ++++ synergy-1.3.1/lib/synergy/CPacketStreamFilter.cpp +@@ -12,6 +12,7 @@ + * GNU General Public License for more details. + */ + ++#include + #include "CPacketStreamFilter.h" + #include "IEventQueue.h" + #include "CLock.h" +--- synergy-1.3.1/lib/synergy/IKeyState.cpp ++++ synergy-1.3.1/lib/synergy/IKeyState.cpp +@@ -14,6 +14,7 @@ + + #include "IKeyState.h" + #include ++#include + + // + // IKeyState +--- synergy-1.3.1/lib/synergy/IPrimaryScreen.cpp ++++ synergy-1.3.1/lib/synergy/IPrimaryScreen.cpp +@@ -12,6 +12,7 @@ + * GNU General Public License for more details. + */ + ++#include + #include "IPrimaryScreen.h" + + // + + diff --git a/synergy-noignoreretval.diff b/synergy-noignoreretval.diff new file mode 100644 index 0000000..e58cc3c --- /dev/null +++ b/synergy-noignoreretval.diff @@ -0,0 +1,48 @@ +--- synergy-1.3.1/lib/arch/CArchDaemonUnix.cpp ++++ synergy-1.3.1/lib/arch/CArchDaemonUnix.cpp +@@ -57,7 +57,8 @@ + setsid(); + + // chdir to root so we don't keep mounted filesystems points busy +- chdir("/"); ++ if(chdir("/") < 0) ++ perror("chdir(/)"); + + // mask off permissions for any but owner + umask(077); +@@ -71,7 +72,8 @@ + // of standard I/O safely goes in the bit bucket. + open("/dev/null", O_RDONLY); + open("/dev/null", O_RDWR); +- dup(1); ++ if(dup(1) < 0) ++ perror("dup(1)"); + + // invoke function + return func(1, &name); +--- synergy-1.3.1/lib/arch/CArchNetworkBSD.cpp ++++ synergy-1.3.1/lib/arch/CArchNetworkBSD.cpp +@@ -326,7 +326,9 @@ + // the unblock event was signalled. flush the pipe. + char dummy[100]; + do { +- read(unblockPipe[0], dummy, sizeof(dummy)); ++ if(read(unblockPipe[0], dummy, sizeof(dummy)) < 0) { ++ perror("read()"); ++ } + } while (errno != EAGAIN); + + // don't count this unblock pipe in return value +@@ -498,7 +500,9 @@ + const int* unblockPipe = getUnblockPipeForThread(thread); + if (unblockPipe != NULL) { + char dummy = 0; +- write(unblockPipe[1], &dummy, 1); ++ if(write(unblockPipe[1], &dummy, 1) < 0) { ++ perror("write()"); ++ } + } + } + + + diff --git a/synergy.spec b/synergy.spec new file mode 100644 index 0000000..36a8f99 --- /dev/null +++ b/synergy.spec @@ -0,0 +1,69 @@ +Name: synergy +Version: 1.4.12 +Release: 1mamba +Summary: Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems +Group: Graphical Desktop/Applications/Utilities +Vendor: openmamba +Distribution: openmamba +Packager: Ercole 'ercolinux' Carpanetto +URL: http://synergy-foss.org/blog/ +Source: http://synergy.googlecode.com/files/synergy-%{version}-Source.tar.gz +#Source: http://downloads.sourceforge.net/sourceforge/synergy2/synergy-%{version}.tar.gz +Patch0: synergy-noignoreretval.diff +Patch1: synergy-implicit-declaration.patch +Patch2: synergy-1.4.12-cryptopp-5.6.2.patch +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libICE-devel +BuildRequires: libSM-devel +BuildRequires: libstdc++6-devel +BuildRequires: libX11-devel +BuildRequires: libXext-devel +BuildRequires: libXinerama-devel +BuildRequires: libXtst-devel +## AUTOBUILDREQ-END + +%description +Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It's intended for users with multiple computers on their desk since each system uses its own monitor(s). +Redirecting the mouse and keyboard is as simple as moving the mouse off the edge of your screen. Synergy also merges the clipboards of all the systems into one, allowing cut-and-paste between systems. Furthermore, it synchronizes screen savers so they all start and stop together and, if screen locking is enabled, only one screen requires a password to unlock them all. Learn more about how it works. + +%prep +%setup -q -n %{name}-%{version}-Source +#%patch0 -p1 +#%patch1 -p1 +%patch2 -p1 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +#% makeinstall +for f in synergyc synergyd synergys; do + install -D -m0755 bin/$f %{buildroot}%{_bindir}/$f +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/synergyc +%{_bindir}/synergyd +%{_bindir}/synergys +%doc COPYING +#ChangeLog NEWS README + +%changelog +* Sat Aug 31 2013 Automatic Build System 1.4.12-1mamba +- automatic version update by autodist + +* Thu Jan 31 2013 Automatic Build System 1.4.10-1mamba +- update to 1.4.10 + +* Sun Mar 08 2009 Ercole 'ercolinux' Carpanetto 1.3.1-1mamba +- package created by autospec. Added 2 patch to permit the compilation against gcc versions above 4.3: don't use the ones on the web site of the project because are not with the correct syntax.