Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ checks:pylint:
before_script:
- sudo dnf install -y python3-gobject gtk3 python3-pylint
script:
- export PYTHONPATH=ci/test-packages
- pylint-3 $(find sender receiver scripts -type f -name '*.py')

include:
Expand Down
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ DATADIR ?= /usr/share
SYSCONFDIR ?= /etc
QREXECSERVICEDIR ?= $(SYSCONFDIR)/qubes-rpc
QREXECPOLICYDIR ?= $(SYSCONFDIR)/qubes/policy.d
UDEVDIR ?= /usr/lib/udev/rules.d
PYTHON ?= python3

INSTALL_DIR = install -d --
Expand Down Expand Up @@ -40,6 +41,7 @@ install-vm: install-both
$(INSTALL_DATA) receiver/qubes-video-companion.rules $(DESTDIR)/usr/lib/udev/rules.d/80-qubes-video-companion.rules
$(INSTALL_DATA) receiver/qubes-video-companion.modprobe $(DESTDIR)/usr/lib/modprobe.d/qubes-video-companion.conf
$(INSTALL_DATA) receiver/qubes-video-companion.sudoers $(DESTDIR)/etc/sudoers.d/qubes-video-companion
$(INSTALL_DATA) receiver/qubes-video-companion-webcam@.service $(DESTDIR)/usr/lib/systemd/system/qubes-video-companion-webcam@.service
$(INSTALL_DIR) $(DESTDIR)$(SYSCONFDIR)/qubes/rpc-config
echo 'wait-for-session=1' > $(DESTDIR)$(SYSCONFDIR)/qubes/rpc-config/qvc.Webcam
echo 'wait-for-session=1' > $(DESTDIR)$(SYSCONFDIR)/qubes/rpc-config/qvc.ScreenShare
Expand All @@ -56,9 +58,17 @@ install-dom0: install-both install-policy install-tests

install-both:
$(INSTALL_DIR) $(DESTDIR)$(QREXECSERVICEDIR)
$(INSTALL_PROGRAM) qubes-rpc/services/qvc.Webcam qubes-rpc/services/qvc.ScreenShare $(DESTDIR)$(QREXECSERVICEDIR)
$(INSTALL_PROGRAM) qubes-rpc/services/qvc.Webcam \
qubes-rpc/services/qvc.ScreenShare \
$(DESTDIR)$(QREXECSERVICEDIR)
$(INSTALL_PROGRAM) qubes-rpc/services/qvc.WebcamAttach \
qubes-rpc/services/qvc.WebcamDetach \
$(DESTDIR)$(QREXECSERVICEDIR)
$(INSTALL_DIR) $(DESTDIR)$(DATADIR)/$(PKGNAME)/sender
$(INSTALL_PROGRAM) sender/*.py $(DESTDIR)$(DATADIR)/$(PKGNAME)/sender
$(INSTALL_PROGRAM) scripts/webcam-formats/webcam_formats.py $(DESTDIR)$(DATADIR)/$(PKGNAME)/sender/
$(INSTALL_PROGRAM) scripts/udev-handler $(DESTDIR)$(DATADIR)/$(PKGNAME)/sender/
$(INSTALL_PROGRAM) sender/udev.rules $(DESTDIR)$(UDEVDIR)/80-qubes-video-companion-sender.rules
$(INSTALL_DIR) $(DESTDIR)$(DATADIR)/doc/$(PKGNAME)
$(INSTALL_DATA) README.md doc/pipeline.md $(DESTDIR)$(DATADIR)/doc/$(PKGNAME)
$(INSTALL_DIR) $(DESTDIR)$(DATADIR)/doc/$(PKGNAME)/visualizations
Expand Down
12 changes: 12 additions & 0 deletions ci/test-packages/qubesdb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class QubesDB:
def read(self, key):
return b'testvm'

def rm(self, key):
pass

def write(self, key, value):
pass

class Error(Exception):
pass
21 changes: 21 additions & 0 deletions core3ext/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "qvc"
version = "4.3"
description = "QVC plugin for qubes-core-admin"
license = { text = "MIT" }

[project.urls]
Homepage = "https://www.qubes-os.org/"
Documentation = "https://readthedocs.org"
Repository = "https://github.com/QubesOS/qubes-video-companion.git"
"Bug Tracker" = "https://github.com/QubesOS/qubes-issues/issues"

[project.entry-points."qubes.ext"]
webcam = "qvc:WebcamDeviceExtension"

[project.entry-points."qubes.devices"]
webcam = "qvc:WebcamDevice"
Loading