pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/synergy Update to synergy-1.3.6.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/58c8524419d7
branches:  trunk
changeset: 584550:58c8524419d7
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Jan 23 02:24:29 2011 +0000

description:
Update to synergy-1.3.6.

The synergy project has now merged with the previously forked synergy-plus.
This contains lots of bugfixes since the previous update in pkgsrc, in 2006.
No complete ChangeLog is available, but now uses devel/cmake to build and
sports manpages for the commands.

diffstat:

 net/synergy/Makefile         |  57 +++++++++++++++++++++++++++----------------
 net/synergy/PLIST            |  32 ++++--------------------
 net/synergy/distinfo         |  22 +++-------------
 net/synergy/patches/patch-aa |  16 ------------
 net/synergy/patches/patch-ab |  13 ----------
 net/synergy/patches/patch-ac |  45 ----------------------------------
 net/synergy/patches/patch-ad |  12 ---------
 net/synergy/patches/patch-ae |  12 ---------
 net/synergy/patches/patch-af |  12 ---------
 net/synergy/patches/patch-ag |  12 ---------
 net/synergy/patches/patch-ah |  12 ---------
 net/synergy/patches/patch-ai |  12 ---------
 net/synergy/patches/patch-aj |  12 ---------
 net/synergy/patches/patch-ak |  13 ----------
 net/synergy/patches/patch-al |  12 ---------
 net/synergy/patches/patch-am |  12 ---------
 net/synergy/patches/patch-an |  12 ---------
 17 files changed, 45 insertions(+), 273 deletions(-)

diffs (truncated from 408 to 300 lines):

diff -r f2b003724de7 -r 58c8524419d7 net/synergy/Makefile
--- a/net/synergy/Makefile      Sun Jan 23 01:38:08 2011 +0000
+++ b/net/synergy/Makefile      Sun Jan 23 02:24:29 2011 +0000
@@ -1,25 +1,48 @@
-# $NetBSD: Makefile,v 1.10 2008/02/23 18:04:57 heinz Exp $
+# $NetBSD: Makefile,v 1.11 2011/01/23 02:24:29 tnn Exp $
 #
 
-DISTNAME=              synergy-1.3.1
-PKGREVISION=           3
-CATEGORIES=            net
-MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=synergy2/}
+DISTNAME=              synergy-1.3.6-Source
+PKGNAME=               ${DISTNAME:S/-Source//}
+CATEGORIES=            net x11
+MASTER_SITES=          http://synergy.googlecode.com/files/
 
-MAINTAINER=            yui%yui.pe.kr@localhost
-HOMEPAGE=              http://synergy2.sourceforge.net/
+MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=              http://synergy-foss.org/
 COMMENT=               Let a user share a mouse and keyboard among computers
 
 PKG_DESTDIR_SUPPORT=   user-destdir
 
-GNU_CONFIGURE=         yes
 USE_LANGUAGES=         c c++
-CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR:Q}
+
+# Below rpath fix is copypasted from graphics/vtk.
+CMAKE_OPTS+=    -DCMAKE_INSTALL_RPATH:STRING=${PREFIX}/lib:${X11BASE}/lib${LIBABISUFFIX:Q}      \
+CMAKE_OPTS+=    -DCMAKE_SKIP_BUILD_RPATH:BOOL=ON                \
+CMAKE_OPTS+=    -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON        \
+CMAKE_OPTS+=    -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON
+
+SUBST_CLASSES+=                        fix-paths
+SUBST_STAGE.fix-paths=         pre-configure
+SUBST_MESSAGE.fix-paths=       Fixing absolute paths.
+SUBST_FILES.fix-paths=          lib/arch/CArchFileUnix.cpp
+SUBST_SED.fix-paths=            -e 's,"/etc","${PKG_SYSCONFDIR}",g'
 
-DOCDIR=                        ${PREFIX}/share/doc/${PKGBASE}
-EXAMPLESDIR=           ${PREFIX}/share/examples/${PKGBASE}
-DOCS=                  *.html *.css images/*.gif
+do-configure:
+       cd ${WRKSRC} && ${PREFIX}/bin/cmake ${CMAKE_OPTS} .
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1 share/examples/${PKGBASE}
+
+post-build:
+       ${CP} ${WRKSRC}/doc/synergyc.man ${WRKSRC}/doc/synergyc.1
+       ${CP} ${WRKSRC}/doc/synergys.man ${WRKSRC}/doc/synergys.1
 
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/synergyc ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/synergys ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/doc/synergyc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_MAN} ${WRKSRC}/doc/synergys.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_DATA} ${WRKSRC}/doc/*.conf ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
+
+.include "../../devel/cmake/buildlink3.mk"
 .if !exists(/System/Library/Frameworks/Carbon.framework)
 .include "../../x11/libXext/buildlink3.mk"
 .include "../../x11/libXinerama/buildlink3.mk"
@@ -27,15 +50,5 @@
 .include "../../x11/libXtst/buildlink3.mk"
 .include "../../x11/xextproto/buildlink3.mk"
 .endif
-
-post-install:
-       ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}/images
-       set -e; cd ${WRKSRC}/doc; \
-       for f in ${DOCS}; do \
-               ${INSTALL_DATA} "$$f" "${DESTDIR}${DOCDIR}/$$f"; \
-       done
-       ${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLESDIR}
-       ${INSTALL_DATA} ${WRKSRC}/examples/synergy.conf ${DESTDIR}${EXAMPLESDIR}
-
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r f2b003724de7 -r 58c8524419d7 net/synergy/PLIST
--- a/net/synergy/PLIST Sun Jan 23 01:38:08 2011 +0000
+++ b/net/synergy/PLIST Sun Jan 23 02:24:29 2011 +0000
@@ -1,28 +1,8 @@
-@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:09:44 joerg Exp $
+@comment $NetBSD: PLIST,v 1.5 2011/01/23 02:24:29 tnn Exp $
 bin/synergyc
 bin/synergys
-share/doc/${PKGBASE}/about.html
-share/doc/${PKGBASE}/authors.html
-share/doc/${PKGBASE}/autostart.html
-share/doc/${PKGBASE}/banner.html
-share/doc/${PKGBASE}/border.html
-share/doc/${PKGBASE}/compiling.html
-share/doc/${PKGBASE}/configuration.html
-share/doc/${PKGBASE}/contact.html
-share/doc/${PKGBASE}/developer.html
-share/doc/${PKGBASE}/faq.html
-share/doc/${PKGBASE}/history.html
-share/doc/${PKGBASE}/home.html
-share/doc/${PKGBASE}/images/logo.gif
-share/doc/${PKGBASE}/images/warp.gif
-share/doc/${PKGBASE}/index.html
-share/doc/${PKGBASE}/license.html
-share/doc/${PKGBASE}/news.html
-share/doc/${PKGBASE}/roadmap.html
-share/doc/${PKGBASE}/running.html
-share/doc/${PKGBASE}/security.html
-share/doc/${PKGBASE}/synergy.css
-share/doc/${PKGBASE}/tips.html
-share/doc/${PKGBASE}/toc.html
-share/doc/${PKGBASE}/trouble.html
-share/examples/${PKGBASE}/synergy.conf
+man/man1/synergyc.1
+man/man1/synergys.1
+share/examples/synergy/synergy-advanced.conf
+share/examples/synergy/synergy-basic.conf
+share/examples/synergy/synergy-stooges.conf
diff -r f2b003724de7 -r 58c8524419d7 net/synergy/distinfo
--- a/net/synergy/distinfo      Sun Jan 23 01:38:08 2011 +0000
+++ b/net/synergy/distinfo      Sun Jan 23 02:24:29 2011 +0000
@@ -1,19 +1,5 @@
-$NetBSD: distinfo,v 1.6 2009/09/19 19:14:54 tnn Exp $
+$NetBSD: distinfo,v 1.7 2011/01/23 02:24:29 tnn Exp $
 
-SHA1 (synergy-1.3.1.tar.gz) = 03113ec8aadfecaeba8e369b083f4fb5b44f5c62
-RMD160 (synergy-1.3.1.tar.gz) = 5f5d7cb8fcfb57a6c8eae83fb53c704cb85c6c16
-Size (synergy-1.3.1.tar.gz) = 793172 bytes
-SHA1 (patch-aa) = da4ad36cdcec251bf4334c2dccd68346042894de
-SHA1 (patch-ab) = fae459f7063a6a879b385a94d5e889877c94860d
-SHA1 (patch-ac) = 8f8714f20da9e3744ed82ee8ba9d7b652b78935d
-SHA1 (patch-ad) = 2635ceb0cfa0fdd0af5ac362dd0d97353ca65440
-SHA1 (patch-ae) = b5430ec4d8a3d80cb71b21f786dac8c825c7c660
-SHA1 (patch-af) = bd866b8e22962ad94957ca7f93644d58a9f94c89
-SHA1 (patch-ag) = c9c9a2b064e230684e5cecfa014f7e1bc7f87204
-SHA1 (patch-ah) = c683524d97330150d2922fb66e2b252761ac6bb1
-SHA1 (patch-ai) = f00c16eaa0850320a7b4b33440ad8b1cdcb5c304
-SHA1 (patch-aj) = 543c18157715898155a6bdbfb66aaa7904c03b24
-SHA1 (patch-ak) = 7a5c2f7bfa2d36c0b0fe8ffcb353927639eefb66
-SHA1 (patch-al) = d41c717b9b7256b9afa3f5e810288cfe96dd60e4
-SHA1 (patch-am) = fc25d0d0d86316e6463745d5200f0abc77aef1c2
-SHA1 (patch-an) = 99d90958e5446842a42821522e801753ce4e0421
+SHA1 (synergy-1.3.6-Source.tar.gz) = acbb8c62bc7f18cd4646c8b116c9acdeb2b405da
+RMD160 (synergy-1.3.6-Source.tar.gz) = adcd5b7a2de7370a03b404c7827be58cb9f7467a
+Size (synergy-1.3.6-Source.tar.gz) = 659025 bytes
diff -r f2b003724de7 -r 58c8524419d7 net/synergy/patches/patch-aa
--- a/net/synergy/patches/patch-aa      Sun Jan 23 01:38:08 2011 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2006/08/17 14:02:23 taca Exp $
-
---- lib/arch/CArchFileUnix.cpp.orig    2005-04-24 12:02:12.000000000 +0900
-+++ lib/arch/CArchFileUnix.cpp
-@@ -80,7 +80,10 @@ CArchFileUnix::getUserDirectory()
- std::string
- CArchFileUnix::getSystemDirectory()
- {
--      return "/etc";
-+#ifndef CONFIG_DIR
-+#define CONFIG_DIR    "/etc"
-+#endif
-+      return CONFIG_DIR;
- }
- 
- std::string
diff -r f2b003724de7 -r 58c8524419d7 net/synergy/patches/patch-ab
--- a/net/synergy/patches/patch-ab      Sun Jan 23 01:38:08 2011 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2006/08/17 14:02:23 taca Exp $
-
---- lib/arch/Makefile.in.orig  2006-04-03 05:09:44.000000000 +0900
-+++ lib/arch/Makefile.in
-@@ -246,7 +246,7 @@ libarch_a_OBJECTS = $(am_libarch_a_OBJEC
- 
- DEFS = @DEFS@
- DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
--CPPFLAGS = @CPPFLAGS@
-+CPPFLAGS = @CPPFLAGS@ -DCONFIG_DIR=\"${sysconfdir}\"
- LDFLAGS = @LDFLAGS@
- LIBS = @LIBS@
- depcomp = $(SHELL) $(top_srcdir)/config/depcomp
diff -r f2b003724de7 -r 58c8524419d7 net/synergy/patches/patch-ac
--- a/net/synergy/patches/patch-ac      Sun Jan 23 01:38:08 2011 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-$NetBSD: patch-ac,v 1.2 2009/09/19 19:14:54 tnn Exp $
-
-Fix compile problem with gcc4.
-CXWindowsScreen.cpp: In member function 'void CXWindowsScreen::openIM()':
-CXWindowsScreen.cpp:990: warning: missing sentinel in function call
-CXWindowsScreen.cpp:1013: warning: missing sentinel in function call
-CXWindowsScreen.cpp:1022: warning: missing sentinel in function call
-
---- lib/platform/CXWindowsScreen.cpp.orig      2006-04-02 21:16:39.000000000 +0200
-+++ lib/platform/CXWindowsScreen.cpp
-@@ -26,6 +26,7 @@
- #include "CStringUtil.h"
- #include "IEventQueue.h"
- #include "TMethodEventJob.h"
-+#include <stdlib.h>
- #include <cstring>
- #if X_DISPLAY_MISSING
- #     error X11 is required to build synergy
-@@ -987,7 +988,7 @@ CXWindowsScreen::openIM()
-       // find the appropriate style.  synergy supports XIMPreeditNothing
-       // only at the moment.
-       XIMStyles* styles;
--      if (XGetIMValues(im, XNQueryInputStyle, &styles, NULL) != NULL ||
-+      if (XGetIMValues(im, XNQueryInputStyle, &styles, (char *)NULL) != NULL ||
-               styles == NULL) {
-               LOG((CLOG_WARN "cannot get IM styles"));
-               XCloseIM(im);
-@@ -1010,7 +1011,7 @@ CXWindowsScreen::openIM()
-       }
- 
-       // create an input context for the style and tell it about our window
--      XIC ic = XCreateIC(im, XNInputStyle, style, XNClientWindow, m_window, NULL);
-+      XIC ic = XCreateIC(im, XNInputStyle, style, XNClientWindow, m_window, (char *)NULL);
-       if (ic == NULL) {
-               LOG((CLOG_WARN "cannot create IC"));
-               XCloseIM(im);
-@@ -1019,7 +1020,7 @@ CXWindowsScreen::openIM()
- 
-       // find out the events we must select for and do so
-       unsigned long mask;
--      if (XGetICValues(ic, XNFilterEvents, &mask, NULL) != NULL) {
-+      if (XGetICValues(ic, XNFilterEvents, &mask, (char *)NULL) != NULL) {
-               LOG((CLOG_WARN "cannot get IC filter events"));
-               XDestroyIC(ic);
-               XCloseIM(im);
diff -r f2b003724de7 -r 58c8524419d7 net/synergy/patches/patch-ad
--- a/net/synergy/patches/patch-ad      Sun Jan 23 01:38:08 2011 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2009/09/19 19:14:54 tnn Exp $
-
---- lib/arch/CArchDaemonUnix.cpp.orig  2005-04-24 05:02:12.000000000 +0200
-+++ lib/arch/CArchDaemonUnix.cpp
-@@ -14,6 +14,7 @@
- 
- #include "CArchDaemonUnix.h"
- #include "XArchUnix.h"
-+#include <stdlib.h>
- #include <unistd.h>
- #include <sys/types.h>
- #include <sys/stat.h>
diff -r f2b003724de7 -r 58c8524419d7 net/synergy/patches/patch-ae
--- a/net/synergy/patches/patch-ae      Sun Jan 23 01:38:08 2011 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2009/09/19 19:14:54 tnn Exp $
-
---- lib/arch/CMultibyte.cpp.orig       2005-11-30 05:33:24.000000000 +0100
-+++ lib/arch/CMultibyte.cpp
-@@ -17,6 +17,7 @@
- 
- #include "common.h"
- #include "CArch.h"
-+#include <stdlib.h>
- #include <limits.h>
- #include <string.h>
- #if HAVE_LOCALE_H
diff -r f2b003724de7 -r 58c8524419d7 net/synergy/patches/patch-af
--- a/net/synergy/patches/patch-af      Sun Jan 23 01:38:08 2011 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-af,v 1.1 2009/09/19 19:14:54 tnn Exp $
-
---- lib/base/CStringUtil.cpp.orig      2005-12-14 18:25:20.000000000 +0100
-+++ lib/base/CStringUtil.cpp
-@@ -16,6 +16,7 @@
- #include "CArch.h"
- #include "common.h"
- #include "stdvector.h"
-+#include <string.h>
- #include <cctype>
- #include <cstdio>
- #include <cstdlib>
diff -r f2b003724de7 -r 58c8524419d7 net/synergy/patches/patch-ag
--- a/net/synergy/patches/patch-ag      Sun Jan 23 01:38:08 2011 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-ag,v 1.1 2009/09/19 19:14:54 tnn Exp $
-
---- lib/net/CTCPSocket.cpp.orig        2006-04-02 03:47:03.000000000 +0200
-+++ lib/net/CTCPSocket.cpp
-@@ -23,6 +23,7 @@
- #include "IEventJob.h"
- #include "CArch.h"
- #include "XArch.h"
-+#include <stdlib.h>
- #include <string.h>
- 
- //
diff -r f2b003724de7 -r 58c8524419d7 net/synergy/patches/patch-ah
--- a/net/synergy/patches/patch-ah      Sun Jan 23 01:38:08 2011 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-ah,v 1.1 2009/09/19 19:14:54 tnn Exp $



Home | Main Index | Thread Index | Old Index