summaryrefslogtreecommitdiff
path: root/multimedia/sunshine/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/sunshine/pkg-install')
-rw-r--r--multimedia/sunshine/pkg-install12
1 files changed, 12 insertions, 0 deletions
diff --git a/multimedia/sunshine/pkg-install b/multimedia/sunshine/pkg-install
new file mode 100644
index 0000000..ae573d3
--- /dev/null
+++ b/multimedia/sunshine/pkg-install
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# The 'input' group is not registered in the ports tree's GIDs, so the
+# GROUPS framework cannot create it. Mirror what upstream's own FreeBSD
+# package does in its +POST_INSTALL script.
+
+if [ "$2" = "POST-INSTALL" ]; then
+ if ! /usr/sbin/pw groupshow input >/dev/null 2>&1; then
+ echo "Creating 'input' group for virtual input devices..."
+ /usr/sbin/pw groupadd input
+ fi
+fi