[arch-commits] Commit in synergy/repos (12 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Fri Mar 4 21:42:03 UTC 2016
Date: Friday, March 4, 2016 @ 22:42:03
Author: bpiotrowski
Revision: 164864
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
synergy/repos/community-staging-i686/
synergy/repos/community-staging-i686/PKGBUILD
(from rev 164863, synergy/trunk/PKGBUILD)
synergy/repos/community-staging-i686/fix-incompetence.patch
(from rev 164863, synergy/trunk/fix-incompetence.patch)
synergy/repos/community-staging-i686/synergys_at.service
(from rev 164863, synergy/trunk/synergys_at.service)
synergy/repos/community-staging-i686/synergys_at.socket
(from rev 164863, synergy/trunk/synergys_at.socket)
synergy/repos/community-staging-i686/wrapper
(from rev 164863, synergy/trunk/wrapper)
synergy/repos/community-staging-x86_64/
synergy/repos/community-staging-x86_64/PKGBUILD
(from rev 164863, synergy/trunk/PKGBUILD)
synergy/repos/community-staging-x86_64/fix-incompetence.patch
(from rev 164863, synergy/trunk/fix-incompetence.patch)
synergy/repos/community-staging-x86_64/synergys_at.service
(from rev 164863, synergy/trunk/synergys_at.service)
synergy/repos/community-staging-x86_64/synergys_at.socket
(from rev 164863, synergy/trunk/synergys_at.socket)
synergy/repos/community-staging-x86_64/wrapper
(from rev 164863, synergy/trunk/wrapper)
-------------------------------------------------+
community-staging-i686/PKGBUILD | 105 ++++++++++++++++++++++
community-staging-i686/fix-incompetence.patch | 23 ++++
community-staging-i686/synergys_at.service | 11 ++
community-staging-i686/synergys_at.socket | 9 +
community-staging-i686/wrapper | 4
community-staging-x86_64/PKGBUILD | 105 ++++++++++++++++++++++
community-staging-x86_64/fix-incompetence.patch | 23 ++++
community-staging-x86_64/synergys_at.service | 11 ++
community-staging-x86_64/synergys_at.socket | 9 +
community-staging-x86_64/wrapper | 4
10 files changed, 304 insertions(+)
Copied: synergy/repos/community-staging-i686/PKGBUILD (from rev 164863, synergy/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-03-04 21:42:03 UTC (rev 164864)
@@ -0,0 +1,105 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Jelle van der Waa <jelle vdwaa nl>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Dale Blount <dale at archlinux.org>
+# Contributor: Michael Düll <mail at akurei.me>
+
+# I would just like to take a minute here and state that synergy is
+# some of the worst packaged software ever. They BUNDLE a fucking
+# zip for cryptopp and do not provide an option to use a system-
+# installed version of that library. They change around paths every
+# update and just generally don't seem to care much.
+pkgname=synergy
+pkgver=1.7.5
+pkgrel=4
+pkgdesc="Share a single mouse and keyboard between multiple computers"
+url="http://synergy-foss.org"
+arch=('i686' 'x86_64')
+license=('GPL2')
+depends=('gcc-libs' 'libxtst' 'libxinerama' 'libxkbcommon-x11' 'avahi' 'curl')
+makedepends=('libxt' 'cmake' 'qt5-base' 'unzip')
+optdepends=(
+ 'qt5-base: gui support'
+ 'openssl: encryption support'
+)
+source=(synergy-${pkgver}.tar.gz::https://github.com/symless/synergy/archive/v${pkgver}-stable.tar.gz
+ synergys_at.socket
+ synergys_at.service
+ fix-incompetence.patch
+ wrapper)
+sha512sums=('f6124509944b8fd2feb048fae88c723f8c3f9ca4f7fa514bfd48ab0324810d7851d9e670c668a333d8b5df636732349c7a486fa329c333ee4569d6b9b43b6084'
+ 'f9c124533dfd0bbbb1b5036b7f4b06f7f86f69165e88b9146ff17798377119eb9f1a4666f3b2ee9840bc436558d715cdbfe2fdfd7624348fae64871f785a1a62'
+ 'e85cc3452bb8ba8fcccb1857386c77eb1e4cabb149a1c492c56b38e1b121ac0e7d96c6fcbd3c9b522d3a4ae9d7a9974f4a89fc32b02a56f665be92af219e371c'
+ 'd598f05614d0db894781e85ecab9a1196da3df6967e3bd44f5b8246c7cba76859734cf953edddf0addf6464f62f88b99da52fb5674e8db4a58bf971d078da83a'
+ 'a2e126ad3ac53fb855a331134982f86ef81ffc75b73e73b242e6f854fe7e2daec160fac2161acdc7020cd7f57ae0a8826ac7a249ad10b03db614ada0062b3e93')
+
+prepare() {
+ cd synergy-${pkgver}-stable
+ patch -p1 < "${srcdir}/fix-incompetence.patch"
+ (cd ext
+ unzip gmock-1.6.0.zip -d gmock-1.6.0
+ unzip gtest-1.6.0.zip -d gtest-1.6.0
+ )
+}
+
+build() {
+ cd synergy-${pkgver}-stable
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .
+ make
+
+ (cd src/gui
+ qmake
+ make
+ )
+}
+
+check() {
+ cd synergy-${pkgver}-stable
+ ./bin/unittests
+}
+
+package() {
+ cd synergy-${pkgver}-stable
+
+ # install binary
+ install -Dm 755 bin/synergy "${pkgdir}/usr/lib/synergy/synergy"
+ install -Dm 755 bin/synergyc "${pkgdir}/usr/lib/synergy/synergyc"
+ install -Dm 755 bin/synergyd "${pkgdir}/usr/lib/synergy/synergyd"
+ install -Dm 755 bin/synergys "${pkgdir}/usr/lib/synergy/synergys"
+ install -Dm 755 bin/syntool "${pkgdir}/usr/lib/synergy/syntool"
+ install -Dm 755 bin/usynergy "${pkgdir}/usr/lib/synergy/usynergy"
+
+ # unfuck wrapper
+ install -Dm 755 "${srcdir}/wrapper" "${pkgdir}/usr/lib/synergy/wrapper"
+ install -d "${pkgdir}/usr/bin"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/synergy"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/synergyc"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/synergyd"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/synergys"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/syntool"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/usynergy"
+
+ # plugin
+ install -Dm 755 bin/plugins/libns.so "${pkgdir}/usr/lib/${pkgname}/libns.so"
+
+ # install config
+ install -Dm 644 "doc/${pkgname}.conf.example" "${pkgdir}/etc/${pkgname}.conf.example"
+ install -Dm 644 "doc/${pkgname}.conf.example-advanced" "${pkgdir}/etc/${pkgname}.conf.example-advanced"
+ install -Dm 644 "doc/${pkgname}.conf.example-basic" "${pkgdir}/etc/${pkgname}.conf.example-basic"
+
+ # install manfiles
+ install -Dm 644 "doc/${pkgname}c.man" "${pkgdir}/usr/share/man/man1/${pkgname}c.1"
+ install -Dm 644 "doc/${pkgname}s.man" "${pkgdir}/usr/share/man/man1/${pkgname}s.1"
+
+ # install systemd service and socket
+ install -Dm 644 "${srcdir}/synergys_at.service" "${pkgdir}/usr/lib/systemd/system/synergys at .service"
+ install -Dm 644 "${srcdir}/synergys_at.socket" "${pkgdir}/usr/lib/systemd/system/synergys at .socket"
+
+ # install desktop/icon stuff
+ install -Dm 644 "res/synergy.ico" "${pkgdir}/usr/share/icons/synergy.ico"
+ install -Dm 644 "res/synergy.desktop" "${pkgdir}/usr/share/applications/synergy.desktop"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: synergy/repos/community-staging-i686/fix-incompetence.patch (from rev 164863, synergy/trunk/fix-incompetence.patch)
===================================================================
--- community-staging-i686/fix-incompetence.patch (rev 0)
+++ community-staging-i686/fix-incompetence.patch 2016-03-04 21:42:03 UTC (rev 164864)
@@ -0,0 +1,23 @@
+From 5080bf0c679711f60ca14eb5979d92f181749bb7 Mon Sep 17 00:00:00 2001
+From: Manuel Frischknecht <manuel.frischknecht at bfh.ch>
+Date: Mon, 20 Jul 2015 17:55:02 +0200
+Subject: [PATCH] Fixed a missing include that breaks the build on linux
+
+---
+ src/gui/src/CommandProcess.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/gui/src/CommandProcess.h b/src/gui/src/CommandProcess.h
+index 62e89bf..f279dff 100644
+--- a/src/gui/src/CommandProcess.h
++++ b/src/gui/src/CommandProcess.h
+@@ -18,6 +18,7 @@
+ #ifndef COMMANDTHREAD_H
+ #define COMMANDTHREAD_H
+
++#include <QObject>
+ #include <QStringList>
+
+ class CommandProcess : public QObject
+--
+2.4.2
Copied: synergy/repos/community-staging-i686/synergys_at.service (from rev 164863, synergy/trunk/synergys_at.service)
===================================================================
--- community-staging-i686/synergys_at.service (rev 0)
+++ community-staging-i686/synergys_at.service 2016-03-04 21:42:03 UTC (rev 164864)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Synergy Server Daemon
+After=network.target
+
+[Service]
+User=%i
+ExecStart=/usr/bin/synergys --no-daemon --config /etc/synergy.conf
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
Copied: synergy/repos/community-staging-i686/synergys_at.socket (from rev 164863, synergy/trunk/synergys_at.socket)
===================================================================
--- community-staging-i686/synergys_at.socket (rev 0)
+++ community-staging-i686/synergys_at.socket 2016-03-04 21:42:03 UTC (rev 164864)
@@ -0,0 +1,9 @@
+[Unit]
+Conflicts=synergys at .service
+
+[Socket]
+ListenStream=24800
+Accept=false
+
+[Install]
+WantedBy=sockets.target
Copied: synergy/repos/community-staging-i686/wrapper (from rev 164863, synergy/trunk/wrapper)
===================================================================
--- community-staging-i686/wrapper (rev 0)
+++ community-staging-i686/wrapper 2016-03-04 21:42:03 UTC (rev 164864)
@@ -0,0 +1,4 @@
+#!/bin/sh
+mkdir -p ~/.synergy/plugins
+ln -sf /usr/lib/synergy/libns.so ~/.synergy/plugins/libns.so
+exec "/usr/lib/synergy/$(basename $0)" "$@"
Copied: synergy/repos/community-staging-x86_64/PKGBUILD (from rev 164863, synergy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-03-04 21:42:03 UTC (rev 164864)
@@ -0,0 +1,105 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Jelle van der Waa <jelle vdwaa nl>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Dale Blount <dale at archlinux.org>
+# Contributor: Michael Düll <mail at akurei.me>
+
+# I would just like to take a minute here and state that synergy is
+# some of the worst packaged software ever. They BUNDLE a fucking
+# zip for cryptopp and do not provide an option to use a system-
+# installed version of that library. They change around paths every
+# update and just generally don't seem to care much.
+pkgname=synergy
+pkgver=1.7.5
+pkgrel=4
+pkgdesc="Share a single mouse and keyboard between multiple computers"
+url="http://synergy-foss.org"
+arch=('i686' 'x86_64')
+license=('GPL2')
+depends=('gcc-libs' 'libxtst' 'libxinerama' 'libxkbcommon-x11' 'avahi' 'curl')
+makedepends=('libxt' 'cmake' 'qt5-base' 'unzip')
+optdepends=(
+ 'qt5-base: gui support'
+ 'openssl: encryption support'
+)
+source=(synergy-${pkgver}.tar.gz::https://github.com/symless/synergy/archive/v${pkgver}-stable.tar.gz
+ synergys_at.socket
+ synergys_at.service
+ fix-incompetence.patch
+ wrapper)
+sha512sums=('f6124509944b8fd2feb048fae88c723f8c3f9ca4f7fa514bfd48ab0324810d7851d9e670c668a333d8b5df636732349c7a486fa329c333ee4569d6b9b43b6084'
+ 'f9c124533dfd0bbbb1b5036b7f4b06f7f86f69165e88b9146ff17798377119eb9f1a4666f3b2ee9840bc436558d715cdbfe2fdfd7624348fae64871f785a1a62'
+ 'e85cc3452bb8ba8fcccb1857386c77eb1e4cabb149a1c492c56b38e1b121ac0e7d96c6fcbd3c9b522d3a4ae9d7a9974f4a89fc32b02a56f665be92af219e371c'
+ 'd598f05614d0db894781e85ecab9a1196da3df6967e3bd44f5b8246c7cba76859734cf953edddf0addf6464f62f88b99da52fb5674e8db4a58bf971d078da83a'
+ 'a2e126ad3ac53fb855a331134982f86ef81ffc75b73e73b242e6f854fe7e2daec160fac2161acdc7020cd7f57ae0a8826ac7a249ad10b03db614ada0062b3e93')
+
+prepare() {
+ cd synergy-${pkgver}-stable
+ patch -p1 < "${srcdir}/fix-incompetence.patch"
+ (cd ext
+ unzip gmock-1.6.0.zip -d gmock-1.6.0
+ unzip gtest-1.6.0.zip -d gtest-1.6.0
+ )
+}
+
+build() {
+ cd synergy-${pkgver}-stable
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .
+ make
+
+ (cd src/gui
+ qmake
+ make
+ )
+}
+
+check() {
+ cd synergy-${pkgver}-stable
+ ./bin/unittests
+}
+
+package() {
+ cd synergy-${pkgver}-stable
+
+ # install binary
+ install -Dm 755 bin/synergy "${pkgdir}/usr/lib/synergy/synergy"
+ install -Dm 755 bin/synergyc "${pkgdir}/usr/lib/synergy/synergyc"
+ install -Dm 755 bin/synergyd "${pkgdir}/usr/lib/synergy/synergyd"
+ install -Dm 755 bin/synergys "${pkgdir}/usr/lib/synergy/synergys"
+ install -Dm 755 bin/syntool "${pkgdir}/usr/lib/synergy/syntool"
+ install -Dm 755 bin/usynergy "${pkgdir}/usr/lib/synergy/usynergy"
+
+ # unfuck wrapper
+ install -Dm 755 "${srcdir}/wrapper" "${pkgdir}/usr/lib/synergy/wrapper"
+ install -d "${pkgdir}/usr/bin"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/synergy"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/synergyc"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/synergyd"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/synergys"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/syntool"
+ ln -sf /usr/lib/synergy/wrapper "${pkgdir}/usr/bin/usynergy"
+
+ # plugin
+ install -Dm 755 bin/plugins/libns.so "${pkgdir}/usr/lib/${pkgname}/libns.so"
+
+ # install config
+ install -Dm 644 "doc/${pkgname}.conf.example" "${pkgdir}/etc/${pkgname}.conf.example"
+ install -Dm 644 "doc/${pkgname}.conf.example-advanced" "${pkgdir}/etc/${pkgname}.conf.example-advanced"
+ install -Dm 644 "doc/${pkgname}.conf.example-basic" "${pkgdir}/etc/${pkgname}.conf.example-basic"
+
+ # install manfiles
+ install -Dm 644 "doc/${pkgname}c.man" "${pkgdir}/usr/share/man/man1/${pkgname}c.1"
+ install -Dm 644 "doc/${pkgname}s.man" "${pkgdir}/usr/share/man/man1/${pkgname}s.1"
+
+ # install systemd service and socket
+ install -Dm 644 "${srcdir}/synergys_at.service" "${pkgdir}/usr/lib/systemd/system/synergys at .service"
+ install -Dm 644 "${srcdir}/synergys_at.socket" "${pkgdir}/usr/lib/systemd/system/synergys at .socket"
+
+ # install desktop/icon stuff
+ install -Dm 644 "res/synergy.ico" "${pkgdir}/usr/share/icons/synergy.ico"
+ install -Dm 644 "res/synergy.desktop" "${pkgdir}/usr/share/applications/synergy.desktop"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: synergy/repos/community-staging-x86_64/fix-incompetence.patch (from rev 164863, synergy/trunk/fix-incompetence.patch)
===================================================================
--- community-staging-x86_64/fix-incompetence.patch (rev 0)
+++ community-staging-x86_64/fix-incompetence.patch 2016-03-04 21:42:03 UTC (rev 164864)
@@ -0,0 +1,23 @@
+From 5080bf0c679711f60ca14eb5979d92f181749bb7 Mon Sep 17 00:00:00 2001
+From: Manuel Frischknecht <manuel.frischknecht at bfh.ch>
+Date: Mon, 20 Jul 2015 17:55:02 +0200
+Subject: [PATCH] Fixed a missing include that breaks the build on linux
+
+---
+ src/gui/src/CommandProcess.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/gui/src/CommandProcess.h b/src/gui/src/CommandProcess.h
+index 62e89bf..f279dff 100644
+--- a/src/gui/src/CommandProcess.h
++++ b/src/gui/src/CommandProcess.h
+@@ -18,6 +18,7 @@
+ #ifndef COMMANDTHREAD_H
+ #define COMMANDTHREAD_H
+
++#include <QObject>
+ #include <QStringList>
+
+ class CommandProcess : public QObject
+--
+2.4.2
Copied: synergy/repos/community-staging-x86_64/synergys_at.service (from rev 164863, synergy/trunk/synergys_at.service)
===================================================================
--- community-staging-x86_64/synergys_at.service (rev 0)
+++ community-staging-x86_64/synergys_at.service 2016-03-04 21:42:03 UTC (rev 164864)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Synergy Server Daemon
+After=network.target
+
+[Service]
+User=%i
+ExecStart=/usr/bin/synergys --no-daemon --config /etc/synergy.conf
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
Copied: synergy/repos/community-staging-x86_64/synergys_at.socket (from rev 164863, synergy/trunk/synergys_at.socket)
===================================================================
--- community-staging-x86_64/synergys_at.socket (rev 0)
+++ community-staging-x86_64/synergys_at.socket 2016-03-04 21:42:03 UTC (rev 164864)
@@ -0,0 +1,9 @@
+[Unit]
+Conflicts=synergys at .service
+
+[Socket]
+ListenStream=24800
+Accept=false
+
+[Install]
+WantedBy=sockets.target
Copied: synergy/repos/community-staging-x86_64/wrapper (from rev 164863, synergy/trunk/wrapper)
===================================================================
--- community-staging-x86_64/wrapper (rev 0)
+++ community-staging-x86_64/wrapper 2016-03-04 21:42:03 UTC (rev 164864)
@@ -0,0 +1,4 @@
+#!/bin/sh
+mkdir -p ~/.synergy/plugins
+ln -sf /usr/lib/synergy/libns.so ~/.synergy/plugins/libns.so
+exec "/usr/lib/synergy/$(basename $0)" "$@"
More information about the arch-commits
mailing list