mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
synergy: upgrade to 1.4.17
This commit is contained in:
parent
62521d9ec6
commit
d87ae02fc1
@ -1,32 +1,30 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 3b61fc0..2206646 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -133,6 +133,9 @@ if (UNIX)
|
||||
diff -urN synergy-1.4.17-Source/CMakeLists.txt synergy-1.4.17-Source-fix/CMakeLists.txt
|
||||
--- synergy-1.4.17-Source/CMakeLists.txt 2014-03-14 21:34:19.000000000 +0100
|
||||
+++ synergy-1.4.17-Source-fix/CMakeLists.txt 2014-04-11 13:37:18.839338710 +0200
|
||||
@@ -145,6 +145,9 @@
|
||||
check_type_size(long SIZEOF_LONG)
|
||||
check_type_size(short SIZEOF_SHORT)
|
||||
|
||||
+ # let's just assume cryptopp exists (provided by the Nix expression)
|
||||
+ list(APPEND libs cryptopp)
|
||||
+ # let's just assume cryptopp exists (provided by the Nix expression)
|
||||
+ list(APPEND libs cryptopp)
|
||||
+
|
||||
# pthread is used on both Linux and Mac
|
||||
check_library_exists("pthread" pthread_create "" HAVE_PTHREAD)
|
||||
if (HAVE_PTHREAD)
|
||||
@@ -303,7 +306,6 @@ if (VNC_SUPPORT)
|
||||
@@ -317,7 +320,6 @@
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
-add_subdirectory(tools)
|
||||
-add_subdirectory(ext)
|
||||
|
||||
if (WIN32)
|
||||
# add /analyze in order to unconver potential bugs in the source code
|
||||
diff --git a/src/lib/io/CCryptoMode.h b/src/lib/io/CCryptoMode.h
|
||||
index 9b7e8ad..0d659ac 100644
|
||||
--- a/src/lib/io/CCryptoMode.h
|
||||
+++ b/src/lib/io/CCryptoMode.h
|
||||
@@ -17,9 +17,9 @@
|
||||
|
||||
#pragma once
|
||||
# TODO: consider using /analyze to uncover potential bugs in the source code.
|
||||
diff -urN synergy-1.4.17-Source/src/lib/io/CryptoMode_cryptopp.h synergy-1.4.17-Source-fix/src/lib/io/CryptoMode_cryptopp.h
|
||||
--- synergy-1.4.17-Source/src/lib/io/CryptoMode_cryptopp.h 2014-02-28 13:36:45.000000000 +0100
|
||||
+++ synergy-1.4.17-Source-fix/src/lib/io/CryptoMode_cryptopp.h 2014-04-11 13:36:01.111985556 +0200
|
||||
@@ -25,6 +25,6 @@
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
-#include <cryptopp562/gcm.h>
|
||||
-#include <cryptopp562/modes.h>
|
||||
@ -34,21 +32,14 @@ index 9b7e8ad..0d659ac 100644
|
||||
+#include <cryptopp/gcm.h>
|
||||
+#include <cryptopp/modes.h>
|
||||
+#include <cryptopp/aes.h>
|
||||
#include "ECryptoMode.h"
|
||||
#include "CString.h"
|
||||
diff -urN synergy-1.4.17-Source/src/lib/io/CryptoStream_cryptopp.h synergy-1.4.17-Source-fix/src/lib/io/CryptoStream_cryptopp.h
|
||||
--- synergy-1.4.17-Source/src/lib/io/CryptoStream_cryptopp.h 2014-02-28 13:36:45.000000000 +0100
|
||||
+++ synergy-1.4.17-Source-fix/src/lib/io/CryptoStream_cryptopp.h 2014-04-11 13:36:07.173013005 +0200
|
||||
@@ -25,5 +25,5 @@
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
diff --git a/src/lib/io/CCryptoStream.h b/src/lib/io/CCryptoStream.h
|
||||
index 104b1f6..09c4dc4 100644
|
||||
--- a/src/lib/io/CCryptoStream.h
|
||||
+++ b/src/lib/io/CCryptoStream.h
|
||||
@@ -20,8 +20,8 @@
|
||||
#include "BasicTypes.h"
|
||||
#include "CStreamFilter.h"
|
||||
#include "CCryptoMode.h"
|
||||
-#include <cryptopp562/osrng.h>
|
||||
-#include <cryptopp562/sha.h>
|
||||
+#include <cryptopp/osrng.h>
|
||||
+#include <cryptopp/sha.h>
|
||||
|
||||
class CCryptoOptions;
|
||||
|
||||
|
@ -1,29 +1,31 @@
|
||||
{ stdenv, fetchurl, cmake, x11, libX11, libXi, libXtst, libXrandr, xinput
|
||||
, cryptopp ? null, unzip ? null }:
|
||||
{ stdenv, fetchurl, cmake, x11, libX11, libXi, libXtst, libXrandr, xinput, curl
|
||||
, cryptopp ? null, unzip }:
|
||||
|
||||
assert stdenv.isLinux -> cryptopp != null;
|
||||
assert !stdenv.isLinux -> unzip != null;
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "synergy-1.4.15";
|
||||
name = "synergy-1.4.17";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://synergy.googlecode.com/files/${name}-Source.tar.gz";
|
||||
sha256 = "0l1mxxky9hacyva0npzkgkwg4wkmihzq3abdrds0w5f6is44adv4";
|
||||
url = "http://fossfiles.com/synergy/${name}-r2055-Source.tar.gz";
|
||||
sha256 = "1mwaapvq9vsm0rdpq99fyzcw6wbp83rg6cylcqcgjjd21c6y9iwm";
|
||||
};
|
||||
|
||||
patches = optional stdenv.isLinux ./cryptopp.patch;
|
||||
|
||||
postPatch = if stdenv.isLinux then ''
|
||||
postPatch = (if stdenv.isLinux then ''
|
||||
sed -i -e '/HAVE_X11_EXTENSIONS_XRANDR_H/c \
|
||||
set(HAVE_X11_EXTENSIONS_XRANDR_H true)' CMakeLists.txt
|
||||
'' else ''
|
||||
${unzip}/bin/unzip -d tools/cryptopp562 tools/cryptopp562.zip
|
||||
${unzip}/bin/unzip -d ext/cryptopp562 ext/cryptopp562.zip
|
||||
'') + ''
|
||||
${unzip}/bin/unzip -d ext/gmock-1.6.0 ext/gmock-1.6.0.zip
|
||||
${unzip}/bin/unzip -d ext/gtest-1.6.0 ext/gtest-1.6.0.zip
|
||||
'';
|
||||
|
||||
buildInputs = [ cmake x11 libX11 libXi libXtst libXrandr xinput ]
|
||||
buildInputs = [ cmake x11 libX11 libXi libXtst libXrandr xinput curl ]
|
||||
++ optional stdenv.isLinux cryptopp;
|
||||
|
||||
# At this moment make install doesn't work for synergy
|
||||
|
Loading…
Reference in New Issue
Block a user