summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2020-02-06 21:57:42 +0000
committerkamil <kamil@pkgsrc.org>2020-02-06 21:57:42 +0000
commit2f7c3f9d87c936bdd9d40b242b36f1d91d837039 (patch)
treee44f84606449fb9e19eddd0124eeab658b5068d1 /sysutils
parent3a6ddb22310619e4a8d1e7c8631e7fffb0dfc419 (diff)
downloadpkgsrc-2f7c3f9d87c936bdd9d40b242b36f1d91d837039.tar.gz
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 (limited to 'sysutils')
-rw-r--r--sysutils/spice-server/DESCR4
-rw-r--r--sysutils/spice-server/Makefile26
-rw-r--r--sysutils/spice-server/PLIST14
-rw-r--r--sysutils/spice-server/buildlink3.mk18
-rw-r--r--sysutils/spice-server/distinfo9
-rw-r--r--sysutils/spice-server/patches/patch-server_red-stream.c28
-rw-r--r--sysutils/spice-server/patches/patch-server_red-worker.c18
-rw-r--r--sysutils/spice-server/patches/patch-tools_reds__stat.c18
8 files changed, 135 insertions, 0 deletions
diff --git a/sysutils/spice-server/DESCR b/sysutils/spice-server/DESCR
new file mode 100644
index 00000000000..600e78f5bb2
--- /dev/null
+++ b/sysutils/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/sysutils/spice-server/Makefile b/sysutils/spice-server/Makefile
new file mode 100644
index 00000000000..2480527e6ac
--- /dev/null
+++ b/sysutils/spice-server/Makefile
@@ -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
+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 --git a/sysutils/spice-server/PLIST b/sysutils/spice-server/PLIST
new file mode 100644
index 00000000000..5f55752df51
--- /dev/null
+++ b/sysutils/spice-server/PLIST
@@ -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 --git a/sysutils/spice-server/buildlink3.mk b/sysutils/spice-server/buildlink3.mk
new file mode 100644
index 00000000000..6a5f48b8a39
--- /dev/null
+++ b/sysutils/spice-server/buildlink3.mk
@@ -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 --git a/sysutils/spice-server/distinfo b/sysutils/spice-server/distinfo
new file mode 100644
index 00000000000..f9c2af41e34
--- /dev/null
+++ b/sysutils/spice-server/distinfo
@@ -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 --git a/sysutils/spice-server/patches/patch-server_red-stream.c b/sysutils/spice-server/patches/patch-server_red-stream.c
new file mode 100644
index 00000000000..db286bb486f
--- /dev/null
+++ b/sysutils/spice-server/patches/patch-server_red-stream.c
@@ -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 --git a/sysutils/spice-server/patches/patch-server_red-worker.c b/sysutils/spice-server/patches/patch-server_red-worker.c
new file mode 100644
index 00000000000..6ad9776f2e7
--- /dev/null
+++ b/sysutils/spice-server/patches/patch-server_red-worker.c
@@ -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 --git a/sysutils/spice-server/patches/patch-tools_reds__stat.c b/sysutils/spice-server/patches/patch-tools_reds__stat.c
new file mode 100644
index 00000000000..a7696d7df89
--- /dev/null
+++ b/sysutils/spice-server/patches/patch-tools_reds__stat.c
@@ -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;