pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/spice-server sysutils/spice-server: import sp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7d1002c39cf6
branches:  trunk
changeset: 411171:7d1002c39cf6
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Thu Feb 06 21:57:42 2020 +0000

description:
sysutils/spice-server: import spice-server-0.14.2

SPICE is a remote display system built for virtual environments which
allows you to view a computing 'desktop' environment not only on the
machine where it is running, but from anywhere on the Internet and
from a wide variety of machine architectures.

diffstat:

 sysutils/spice-server/DESCR                             |   4 ++
 sysutils/spice-server/Makefile                          |  26 +++++++++++++++
 sysutils/spice-server/PLIST                             |  14 ++++++++
 sysutils/spice-server/buildlink3.mk                     |  18 ++++++++++
 sysutils/spice-server/distinfo                          |   9 +++++
 sysutils/spice-server/patches/patch-server_red-stream.c |  28 +++++++++++++++++
 sysutils/spice-server/patches/patch-server_red-worker.c |  18 ++++++++++
 sysutils/spice-server/patches/patch-tools_reds__stat.c  |  18 ++++++++++
 8 files changed, 135 insertions(+), 0 deletions(-)

diffs (167 lines):

diff -r 1429933727b4 -r 7d1002c39cf6 sysutils/spice-server/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/spice-server/DESCR       Thu Feb 06 21:57:42 2020 +0000
@@ -0,0 +1,4 @@
+SPICE is a remote display system built for virtual environments which
+allows you to view a computing 'desktop' environment not only on the
+machine where it is running, but from anywhere on the Internet and
+from a wide variety of machine architectures.
diff -r 1429933727b4 -r 7d1002c39cf6 sysutils/spice-server/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/spice-server/Makefile    Thu Feb 06 21:57:42 2020 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2020/02/06 21:57:42 kamil Exp $
+
+DISTNAME=      spice-0.14.2
+PKGNAME=       ${DISTNAME:S/spice/spice-server/}
+CATEGORIES=    sysutils
+MASTER_SITES=  https://www.spice-space.org/download/releases/
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.spice-space.org/download/releases/
+COMMENT=       Simple Protocol for Independent Computing Environments
+LICENSE=       gnu-lgpl-v2.1
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+USE_TOOLS+=    gmake pkg-config
+
+PKGCONFIG_OVERRIDE+=   spice-server.pc.in
+
+.include "../../audio/libopus/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../sysutils/spice-protocol/buildlink3.mk"
+.include "../../x11/pixman/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 1429933727b4 -r 7d1002c39cf6 sysutils/spice-server/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/spice-server/PLIST       Thu Feb 06 21:57:42 2020 +0000
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2020/02/06 21:57:42 kamil Exp $
+include/spice-server/spice-audio.h
+include/spice-server/spice-char.h
+include/spice-server/spice-core.h
+include/spice-server/spice-experimental.h
+include/spice-server/spice-input.h
+include/spice-server/spice-migration.h
+include/spice-server/spice-qxl.h
+include/spice-server/spice-replay.h
+include/spice-server/spice-server.h
+include/spice-server/spice-version.h
+include/spice-server/spice.h
+lib/libspice-server.la
+lib/pkgconfig/spice-server.pc
diff -r 1429933727b4 -r 7d1002c39cf6 sysutils/spice-server/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/spice-server/buildlink3.mk       Thu Feb 06 21:57:42 2020 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/02/06 21:57:42 kamil Exp $
+
+BUILDLINK_TREE+=       spice-server
+
+.if !defined(SPICE_SERVER_BUILDLINK3_MK)
+SPICE_SERVER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.spice-server+=   spice-server>=0.14.2
+BUILDLINK_PKGSRCDIR.spice-server?=     ../../sysutils/spice-server
+
+.include "../../audio/libopus/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../sysutils/spice-protocol/buildlink3.mk"
+.include "../../x11/pixman/buildlink3.mk"
+.endif # SPICE_SERVER_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -spice-server
diff -r 1429933727b4 -r 7d1002c39cf6 sysutils/spice-server/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/spice-server/distinfo    Thu Feb 06 21:57:42 2020 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2020/02/06 21:57:42 kamil Exp $
+
+SHA1 (spice-0.14.2.tar.bz2) = 83a93e47546d496cf2dcc3f4641db3a285044b9e
+RMD160 (spice-0.14.2.tar.bz2) = 30aaafe30af5a9781d630b9f076973dbc4f59eac
+SHA512 (spice-0.14.2.tar.bz2) = 1093b618ea4a7ff31944429ce2903abecfc8d20c35f2d9c8c837a6e053ee429c0115e40665542637a717869209523ac05d15cdb5e77563102d5d3915e4aaaf76
+Size (spice-0.14.2.tar.bz2) = 1406009 bytes
+SHA1 (patch-server_red-stream.c) = 453ee9b8e5007c552f2ef3b46f508c7cdba6d14c
+SHA1 (patch-server_red-worker.c) = f684dafdc9eab808e36759fba19340586c90cb62
+SHA1 (patch-tools_reds__stat.c) = 3464bbb8b25aa871adfbc501412f84ad925f6509
diff -r 1429933727b4 -r 7d1002c39cf6 sysutils/spice-server/patches/patch-server_red-stream.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/spice-server/patches/patch-server_red-stream.c   Thu Feb 06 21:57:42 2020 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-server_red-stream.c,v 1.1 2020/02/06 21:57:42 kamil Exp $
+
+Add NetBSD support.
+
+--- server/red-stream.c.orig   2019-04-30 08:51:11.000000000 +0000
++++ server/red-stream.c
+@@ -27,6 +27,9 @@
+ #include <sys/socket.h>
+ #include <netinet/tcp.h>
+ #endif
++#ifdef __NetBSD__
++#include <netinet/in.h>
++#endif
+ 
+ #include <glib.h>
+ 
+@@ -109,7 +112,11 @@ struct RedStreamPrivate {
+ static int socket_set_cork(int socket, int enabled)
+ {
+     SPICE_VERIFY(sizeof(enabled) == sizeof(int));
++#if defined(__NetBSD__)
++    return 1; /* Not supported */
++#else
+     return setsockopt(socket, IPPROTO_TCP, TCP_CORK, &enabled, sizeof(enabled));
++#endif
+ }
+ 
+ static ssize_t stream_write_cb(RedStream *s, const void *buf, size_t size)
diff -r 1429933727b4 -r 7d1002c39cf6 sysutils/spice-server/patches/patch-server_red-worker.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/spice-server/patches/patch-server_red-worker.c   Thu Feb 06 21:57:42 2020 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-server_red-worker.c,v 1.1 2020/02/06 21:57:42 kamil Exp $
+
+Add NetBSD support.
+
+--- server/red-worker.c.orig   2019-04-30 08:51:11.000000000 +0000
++++ server/red-worker.c
+@@ -1161,7 +1161,11 @@ bool red_worker_run(RedWorker *worker)
+         spice_error("create thread failed %d", r);
+     }
+     pthread_sigmask(SIG_SETMASK, &curr_sig_mask, NULL);
++#if defined(__NetBSD__)
++    pthread_setname_np(worker->thread, "%s", (void *)"SPICE Worker");
++#else
+     pthread_setname_np(worker->thread, "SPICE Worker");
++#endif
+ 
+     return r == 0;
+ }
diff -r 1429933727b4 -r 7d1002c39cf6 sysutils/spice-server/patches/patch-tools_reds__stat.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/spice-server/patches/patch-tools_reds__stat.c    Thu Feb 06 21:57:42 2020 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-tools_reds__stat.c,v 1.1 2020/02/06 21:57:42 kamil Exp $
+
+Add NetBSD support.
+
+--- tools/reds_stat.c.orig     2019-04-30 08:51:05.000000000 +0000
++++ tools/reds_stat.c
+@@ -144,7 +144,11 @@ int main(int argc, char **argv)
+             num_of_nodes = reds_stat->num_of_nodes;
+             shm_old_size = shm_size;
+             shm_size = header_size + num_of_nodes * sizeof(SpiceStatNode);
++#if defined(__NetBSD__)
++            reds_stat = mremap(reds_stat, shm_old_size, NULL, shm_size, 0);
++#else
+             reds_stat = mremap(reds_stat, shm_old_size, shm_size, MREMAP_MAYMOVE);
++#endif
+             if (reds_stat == (SpiceStat *)MAP_FAILED) {
+                 perror("mremap");
+                 goto error;



Home | Main Index | Thread Index | Old Index