Move qubes-rpc installation from the root Makefile to qubes-rpc Makefile
qubes-rpc has its own Makefile that's responsible for building some executables. The root Makefile was installing qubes-rpc files. To make qubes-rpc a bit more indepdent from core-agent root Makefile and to ease potential maintainer work on packaging qubes-rpc separately, the installation has been moved to qubes-rpc Makefile. Moreover that should make the Makefiles easier to read and maintain.
This commit is contained in:
parent
0c0149f361
commit
3152c609a9
65
Makefile
65
Makefile
@ -3,8 +3,6 @@ RPMS_DIR=rpm/
|
|||||||
VERSION := $(shell cat version)
|
VERSION := $(shell cat version)
|
||||||
|
|
||||||
DIST ?= fc18
|
DIST ?= fc18
|
||||||
KDESERVICEDIR ?= /usr/share/kde4/services
|
|
||||||
KDE5SERVICEDIR ?= /usr/share/kservices5/ServiceMenus/
|
|
||||||
APPLICATIONSDIR ?= /usr/share/applications
|
APPLICATIONSDIR ?= /usr/share/applications
|
||||||
SBINDIR ?= /usr/sbin
|
SBINDIR ?= /usr/sbin
|
||||||
BINDIR ?= /usr/bin
|
BINDIR ?= /usr/bin
|
||||||
@ -235,69 +233,6 @@ install-common: install-doc
|
|||||||
install -m 0755 misc/qvm-features-request $(DESTDIR)$(BINDIR)/qvm-features-request
|
install -m 0755 misc/qvm-features-request $(DESTDIR)$(BINDIR)/qvm-features-request
|
||||||
install -m 0755 misc/qubes-run-terminal $(DESTDIR)/$(BINDIR)
|
install -m 0755 misc/qubes-run-terminal $(DESTDIR)/$(BINDIR)
|
||||||
install -D -m 0644 misc/qubes-run-terminal.desktop $(DESTDIR)/$(APPLICATIONSDIR)/qubes-run-terminal.desktop
|
install -D -m 0644 misc/qubes-run-terminal.desktop $(DESTDIR)/$(APPLICATIONSDIR)/qubes-run-terminal.desktop
|
||||||
install -m 0755 qubes-rpc/qvm-sync-clock $(DESTDIR)$(BINDIR)/qvm-sync-clock
|
|
||||||
install qubes-rpc/{qvm-open-in-dvm,qvm-open-in-vm,qvm-copy,qvm-run-vm} $(DESTDIR)/usr/bin
|
|
||||||
ln -s qvm-copy $(DESTDIR)/usr/bin/qvm-move-to-vm
|
|
||||||
ln -s qvm-copy $(DESTDIR)/usr/bin/qvm-move
|
|
||||||
ln -s qvm-copy $(DESTDIR)/usr/bin/qvm-copy-to-vm
|
|
||||||
install qubes-rpc/qvm-copy-to-vm.gnome $(DESTDIR)$(LIBDIR)/qubes
|
|
||||||
ln -s qvm-copy-to-vm.gnome $(DESTDIR)$(LIBDIR)/qubes/qvm-move-to-vm.gnome
|
|
||||||
ln -s qvm-copy-to-vm.gnome $(DESTDIR)$(LIBDIR)/qubes/qvm-copy-to-vm.kde
|
|
||||||
ln -s qvm-copy-to-vm.gnome $(DESTDIR)$(LIBDIR)/qubes/qvm-move-to-vm.kde
|
|
||||||
install qubes-rpc/qvm-actions.sh $(DESTDIR)$(LIBDIR)/qubes
|
|
||||||
install -m 0644 misc/uca_qubes.xml $(DESTDIR)$(LIBDIR)/qubes
|
|
||||||
mkdir -p $(DESTDIR)/etc/xdg/xfce4/xfconf/xfce-perchannel-xml
|
|
||||||
install -m 0644 misc/thunar.xml $(DESTDIR)/etc/xdg/xfce4/xfconf/xfce-perchannel-xml
|
|
||||||
install qubes-rpc/xdg-icon $(DESTDIR)$(LIBDIR)/qubes
|
|
||||||
install qubes-rpc/{vm-file-editor,qfile-agent,qopen-in-vm} $(DESTDIR)$(LIBDIR)/qubes
|
|
||||||
install qubes-rpc/qubes-open $(DESTDIR)$(BINDIR)
|
|
||||||
install qubes-rpc/tar2qfile $(DESTDIR)$(LIBDIR)/qubes
|
|
||||||
# Install qfile-unpacker as SUID - because it will fail to receive files from other vm
|
|
||||||
install -m 4755 qubes-rpc/qfile-unpacker $(DESTDIR)$(LIBDIR)/qubes
|
|
||||||
install qubes-rpc/qrun-in-vm $(DESTDIR)$(LIBDIR)/qubes
|
|
||||||
install qubes-rpc/prepare-suspend $(DESTDIR)$(LIBDIR)/qubes
|
|
||||||
install qubes-rpc/qubes-sync-clock $(DESTDIR)$(LIBDIR)/qubes
|
|
||||||
install -m 0644 misc/qubes-suspend-module-blacklist $(DESTDIR)/etc/qubes-suspend-module-blacklist
|
|
||||||
install -d $(DESTDIR)/$(KDESERVICEDIR)
|
|
||||||
install -m 0644 qubes-rpc/{qvm-copy.desktop,qvm-move.desktop,qvm-dvm.desktop} $(DESTDIR)/$(KDESERVICEDIR)
|
|
||||||
install -d $(DESTDIR)/$(KDE5SERVICEDIR)
|
|
||||||
install -m 0644 qubes-rpc/{qvm-copy.desktop,qvm-move.desktop,qvm-dvm.desktop} $(DESTDIR)/$(KDE5SERVICEDIR)
|
|
||||||
install -d $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/{qubes.Filecopy,qubes.OpenInVM,qubes.VMShell} $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.VMRootShell $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.OpenURL $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/{qubes.SuspendPre,qubes.SuspendPost,qubes.GetAppmenus} $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.SuspendPreAll $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.SuspendPostAll $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.WaitForSession $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.DetachPciDevice $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.{Backup,Restore} $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.Select{File,Directory} $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.GetImageRGBA $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.SetDateTime $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.InstallUpdatesGUI $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.ResizeDisk $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.StartApp $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.PostInstall $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.GetDate $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.ShowInTerminal $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -m 0755 qubes-rpc/qubes.ConnectTCP $(DESTDIR)/etc/qubes-rpc
|
|
||||||
install -d $(DESTDIR)/etc/qubes/rpc-config
|
|
||||||
for config in qubes-rpc/*.config; do \
|
|
||||||
install -m 0644 $$config $(DESTDIR)/etc/qubes/rpc-config/`basename $$config .config`; \
|
|
||||||
done
|
|
||||||
|
|
||||||
install -d $(DESTDIR)/etc/qubes/suspend-pre.d
|
|
||||||
install -m 0644 qubes-rpc/suspend-pre.README $(DESTDIR)/etc/qubes/suspend-pre.d/README
|
|
||||||
install -d $(DESTDIR)/etc/qubes/suspend-post.d
|
|
||||||
install -m 0644 qubes-rpc/suspend-post.README $(DESTDIR)/etc/qubes/suspend-post.d/README
|
|
||||||
install -m 0755 qubes-rpc/suspend-post-qvm-sync-clock.sh \
|
|
||||||
$(DESTDIR)/etc/qubes/suspend-post.d/qvm-sync-clock.sh
|
|
||||||
install -d $(DESTDIR)/etc/qubes/post-install.d
|
|
||||||
install -m 0644 post-install.d/README $(DESTDIR)/etc/qubes/post-install.d/
|
|
||||||
install -m 0755 post-install.d/*.sh $(DESTDIR)/etc/qubes/post-install.d/
|
|
||||||
install -d $(DESTDIR)/usr/share/nautilus-python/extensions
|
|
||||||
install -m 0644 qubes-rpc/*_nautilus.py $(DESTDIR)/usr/share/nautilus-python/extensions
|
|
||||||
|
|
||||||
install -D -m 0644 misc/dconf-db-local-dpi $(DESTDIR)/etc/dconf/db/local.d/dpi
|
install -D -m 0644 misc/dconf-db-local-dpi $(DESTDIR)/etc/dconf/db/local.d/dpi
|
||||||
|
|
||||||
|
4
debian/rules
vendored
4
debian/rules
vendored
@ -16,6 +16,10 @@ override_dh_auto_build:
|
|||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
make install-deb
|
make install-deb
|
||||||
|
make -C qubes-rpc install
|
||||||
|
make -C qubes-rpc/kde install
|
||||||
|
make -C qubes-rpc/nautilus install
|
||||||
|
make -C qubes-rpc/thunar install
|
||||||
|
|
||||||
override_dh_fixperms:
|
override_dh_fixperms:
|
||||||
dh_fixperms -a -Xqfile-unpacker
|
dh_fixperms -a -Xqfile-unpacker
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
BINDIR ?= /usr/bin
|
||||||
|
LIBDIR ?= /usr/lib
|
||||||
|
SYSCONFDIR ?= /etc
|
||||||
|
QUBESLIBDIR = $(LIBDIR)/qubes
|
||||||
|
QUBESRPCCMDDIR = $(SYSCONFDIR)/qubes-rpc
|
||||||
|
QUBESCONFDIR = $(SYSCONFDIR)/qubes
|
||||||
|
QUBESRPCCONFDIR = $(QUBESCONFDIR)/rpc-config
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-g -O2 -Wall -Wextra -Werror -I. -fPIC -pie
|
CFLAGS=-g -O2 -Wall -Wextra -Werror -I. -fPIC -pie
|
||||||
all: vm-file-editor qopen-in-vm qfile-agent qfile-unpacker tar2qfile
|
all: vm-file-editor qopen-in-vm qfile-agent qfile-unpacker tar2qfile
|
||||||
@ -14,3 +21,59 @@ tar2qfile: tar2qfile.o gui-fatal.o
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f qopen-in-vm qfile-agent qfile-unpacker tar2qfile vm-file-editor *.o *~
|
rm -f qopen-in-vm qfile-agent qfile-unpacker tar2qfile vm-file-editor *.o *~
|
||||||
|
|
||||||
|
install:
|
||||||
|
install -d $(DESTDIR)$(BINDIR)
|
||||||
|
install -t $(DESTDIR)$(BINDIR) \
|
||||||
|
qubes-open \
|
||||||
|
qvm-open-in-dvm qvm-open-in-vm qvm-run-vm qvm-sync-clock
|
||||||
|
install -t $(DESTDIR)$(BINDIR) qvm-copy
|
||||||
|
ln -s qvm-copy $(DESTDIR)$(BINDIR)/qvm-move-to-vm
|
||||||
|
ln -s qvm-copy $(DESTDIR)$(BINDIR)/qvm-move
|
||||||
|
ln -s qvm-copy $(DESTDIR)$(BINDIR)/qvm-copy-to-vm
|
||||||
|
install -d $(DESTDIR)$(QUBESLIBDIR)
|
||||||
|
install -t $(DESTDIR)$(QUBESLIBDIR) qvm-copy-to-vm.gnome
|
||||||
|
ln -s qvm-copy-to-vm.gnome $(DESTDIR)$(QUBESLIBDIR)/qvm-move-to-vm.gnome
|
||||||
|
ln -s qvm-copy-to-vm.gnome $(DESTDIR)$(QUBESLIBDIR)/qvm-copy-to-vm.kde
|
||||||
|
ln -s qvm-copy-to-vm.gnome $(DESTDIR)$(QUBESLIBDIR)/qvm-move-to-vm.kde
|
||||||
|
install -t $(DESTDIR)$(QUBESLIBDIR) \
|
||||||
|
prepare-suspend \
|
||||||
|
qfile-agent qopen-in-vm qrun-in-vm qubes-sync-clock \
|
||||||
|
tar2qfile vm-file-editor xdg-icon
|
||||||
|
# Install qfile-unpacker as SUID, because it will fail to receive
|
||||||
|
# files from other vm.
|
||||||
|
install -t $(DESTDIR)$(QUBESLIBDIR) -m 4755 qfile-unpacker
|
||||||
|
install -d $(DESTDIR)$(QUBESRPCCMDDIR)
|
||||||
|
install -t $(DESTDIR)$(QUBESRPCCMDDIR) \
|
||||||
|
qubes.Filecopy qubes.OpenInVM qubes.VMShell \
|
||||||
|
qubes.VMRootShell \
|
||||||
|
qubes.OpenURL \
|
||||||
|
qubes.SuspendPre qubes.SuspendPost qubes.GetAppmenus \
|
||||||
|
qubes.SuspendPreAll \
|
||||||
|
qubes.SuspendPostAll \
|
||||||
|
qubes.WaitForSession \
|
||||||
|
qubes.DetachPciDevice \
|
||||||
|
qubes.Backup qubes.Restore \
|
||||||
|
qubes.SelectFile qubes.SelectDirectory \
|
||||||
|
qubes.GetImageRGBA \
|
||||||
|
qubes.SetDateTime \
|
||||||
|
qubes.InstallUpdatesGUI \
|
||||||
|
qubes.ResizeDisk \
|
||||||
|
qubes.StartApp \
|
||||||
|
qubes.PostInstall \
|
||||||
|
qubes.GetDate \
|
||||||
|
qubes.ShowInTerminal \
|
||||||
|
qubes.ConnectTCP
|
||||||
|
for config in *.config; do \
|
||||||
|
install -D -m 0644 "$$config" "$(DESTDIR)$(QUBESRPCCONFDIR)/$${config%.config}"; \
|
||||||
|
done
|
||||||
|
install -d $(DESTDIR)$(SYSCONFDIR)
|
||||||
|
install -t $(DESTDIR)$(SYSCONFDIR) -m 0644 qubes-suspend-module-blacklist
|
||||||
|
install -d $(DESTDIR)/etc/qubes/suspend-pre.d
|
||||||
|
install -t $(DESTDIR)$(QUBESCONFDIR)/suspend-pre.d -m 0644 suspend-pre.d/README
|
||||||
|
install -d $(DESTDIR)/etc/qubes/suspend-post.d
|
||||||
|
install -t $(DESTDIR)$(QUBESCONFDIR)/suspend-post.d -m 0644 suspend-post.d/README
|
||||||
|
install -t $(DESTDIR)$(QUBESCONFDIR)/suspend-post.d suspend-post.d/*.sh
|
||||||
|
install -d $(DESTDIR)/etc/qubes/post-install.d
|
||||||
|
install -t $(DESTDIR)$(QUBESCONFDIR)/post-install.d -m 0644 post-install.d/README
|
||||||
|
install -t $(DESTDIR)$(QUBESCONFDIR)/post-install.d post-install.d/*.sh
|
||||||
|
14
qubes-rpc/kde/Makefile
Normal file
14
qubes-rpc/kde/Makefile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
KDESERVICEDIR ?= /usr/share/kde4/services
|
||||||
|
KDE5SERVICEDIR ?= /usr/share/kservices5/ServiceMenus
|
||||||
|
|
||||||
|
.PHONY: install install-kde4 install-kde5
|
||||||
|
|
||||||
|
install-kde4:
|
||||||
|
install -d $(DESTDIR)$(KDESERVICEDIR)
|
||||||
|
install -t $(DESTDIR)$(KDESERVICEDIR) -m 0644 *.desktop
|
||||||
|
|
||||||
|
install-kde5:
|
||||||
|
install -d $(DESTDIR)$(KDE5SERVICEDIR)
|
||||||
|
install -t $(DESTDIR)$(KDE5SERVICEDIR) -m 0644 *.desktop
|
||||||
|
|
||||||
|
install: install-kde4 install-kde5
|
7
qubes-rpc/nautilus/Makefile
Normal file
7
qubes-rpc/nautilus/Makefile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
NAUTILUSPYEXTDIR ?= /usr/share/nautilus-python/extensions
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
|
|
||||||
|
install:
|
||||||
|
install -d $(DESTDIR)$(NAUTILUSPYEXTDIR)
|
||||||
|
install -t $(DESTDIR)$(NAUTILUSPYEXTDIR) -m 0644 *.py
|
12
qubes-rpc/thunar/Makefile
Normal file
12
qubes-rpc/thunar/Makefile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
SYSCONFDIR ?= /etc
|
||||||
|
LIBDIR ?= /usr/lib
|
||||||
|
QUBESLIBDIR = $(LIBDIR)/qubes
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
|
|
||||||
|
install:
|
||||||
|
install -d $(DESTDIR)$(QUBESLIBDIR)
|
||||||
|
install -D -t $(DESTDIR)$(QUBESLIBDIR) qvm-actions.sh
|
||||||
|
install -D -t $(DESTDIR)$(QUBESLIBDIR) -m 0644 uca_qubes.xml
|
||||||
|
install -d $(DESTDIR)$(SYSCONFDIR)/xdg/xfce4/xfconf/xfce-perchannel-xml
|
||||||
|
install -D -t $(DESTDIR)$(SYSCONFDIR)/xdg/xfce4/xfconf/xfce-perchannel-xml -m 0644 thunar.xml
|
@ -296,6 +296,10 @@ usermod -p '' root
|
|||||||
%install
|
%install
|
||||||
|
|
||||||
make install-vm DESTDIR=$RPM_BUILD_ROOT
|
make install-vm DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
make -C qubes-rpc DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
make -C qubes-rpc/kde DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
make -C qubes-rpc/nautilus DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
make -C qubes-rpc/thunar DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
|
||||||
%if 0%{?rhel} >= 7
|
%if 0%{?rhel} >= 7
|
||||||
sed -i \
|
sed -i \
|
||||||
|
Loading…
Reference in New Issue
Block a user