pkgsrc-WIP-changes archive

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

wip/spice-server: import spice-server-0.14.2



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat May 25 14:06:05 2019 +0200
Changeset:	7e2d10a03fa9249f78abd158cdabfa424b579434

Added Files:
	spice-server/DESCR
	spice-server/Makefile
	spice-server/PLIST
	spice-server/distinfo
	spice-server/patches/patch-server_red-stream.c
	spice-server/patches/patch-server_red-worker.c
	spice-server/patches/patch-tools_reds__stat.c

Log Message:
wip/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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7e2d10a03fa9249f78abd158cdabfa424b579434

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 spice-server/DESCR                             |  4 ++++
 spice-server/Makefile                          | 26 ++++++++++++++++++++++++
 spice-server/PLIST                             | 14 +++++++++++++
 spice-server/distinfo                          |  9 +++++++++
 spice-server/patches/patch-server_red-stream.c | 28 ++++++++++++++++++++++++++
 spice-server/patches/patch-server_red-worker.c | 18 +++++++++++++++++
 spice-server/patches/patch-tools_reds__stat.c  | 18 +++++++++++++++++
 7 files changed, 117 insertions(+)

diffs:
diff --git a/spice-server/DESCR b/spice-server/DESCR
new file mode 100644
index 0000000000..600e78f5bb
--- /dev/null
+++ b/spice-server/DESCR
@@ -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 --git a/spice-server/Makefile b/spice-server/Makefile
new file mode 100644
index 0000000000..ac3a3f91c9
--- /dev/null
+++ b/spice-server/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD$
+
+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 "../../sysutils/spice-protocol/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../x11/pixman/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../audio/libopus/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/spice-server/PLIST b/spice-server/PLIST
new file mode 100644
index 0000000000..a0dbdef354
--- /dev/null
+++ b/spice-server/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD$
+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 --git a/spice-server/distinfo b/spice-server/distinfo
new file mode 100644
index 0000000000..fa60b54eb6
--- /dev/null
+++ b/spice-server/distinfo
@@ -0,0 +1,9 @@
+$NetBSD$
+
+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 --git a/spice-server/patches/patch-server_red-stream.c b/spice-server/patches/patch-server_red-stream.c
new file mode 100644
index 0000000000..b90c818081
--- /dev/null
+++ b/spice-server/patches/patch-server_red-stream.c
@@ -0,0 +1,28 @@
+$NetBSD$
+
+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 --git a/spice-server/patches/patch-server_red-worker.c b/spice-server/patches/patch-server_red-worker.c
new file mode 100644
index 0000000000..6147b9c4a9
--- /dev/null
+++ b/spice-server/patches/patch-server_red-worker.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+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 --git a/spice-server/patches/patch-tools_reds__stat.c b/spice-server/patches/patch-tools_reds__stat.c
new file mode 100644
index 0000000000..497a50067d
--- /dev/null
+++ b/spice-server/patches/patch-tools_reds__stat.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+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