Merge remote-tracking branch 'origin/pr/188'
* origin/pr/188: Use built-in rules in qubes-rpc makefile Ignore build result: tar2qfile Remove no longer needed xorg-preload-apps.conf Move qubes-rpc installation from the root Makefile to qubes-rpc Makefile
This commit is contained in:
commit
e43e262b2d
67
Makefile
67
Makefile
@ -3,8 +3,6 @@ RPMS_DIR=rpm/
|
||||
VERSION := $(shell cat version)
|
||||
|
||||
DIST ?= fc18
|
||||
KDESERVICEDIR ?= /usr/share/kde4/services
|
||||
KDE5SERVICEDIR ?= /usr/share/kservices5/ServiceMenus/
|
||||
APPLICATIONSDIR ?= /usr/share/applications
|
||||
SBINDIR ?= /usr/sbin
|
||||
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/qubes-run-terminal $(DESTDIR)/$(BINDIR)
|
||||
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
|
||||
|
||||
@ -305,8 +240,6 @@ install-common: install-doc
|
||||
|
||||
install -d $(DESTDIR)/mnt/removable
|
||||
|
||||
install -D -m 0644 misc/xorg-preload-apps.conf $(DESTDIR)/etc/X11/xorg-preload-apps.conf
|
||||
|
||||
install -d $(DESTDIR)/usr/lib/qubes-bind-dirs.d
|
||||
install -D -m 0644 misc/30_cron.conf $(DESTDIR)/usr/lib/qubes-bind-dirs.d/30_cron.conf
|
||||
|
||||
|
1
debian/qubes-core-agent.install
vendored
1
debian/qubes-core-agent.install
vendored
@ -1,4 +1,3 @@
|
||||
etc/X11/xorg-preload-apps.conf
|
||||
etc/apt/apt.conf.d/00notify-hook
|
||||
etc/apt/apt.conf.d/70no-unattended
|
||||
etc/apt/sources.list.d/qubes-r4.list
|
||||
|
4
debian/rules
vendored
4
debian/rules
vendored
@ -16,6 +16,10 @@ override_dh_auto_build:
|
||||
|
||||
override_dh_auto_install:
|
||||
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:
|
||||
dh_fixperms -a -Xqfile-unpacker
|
||||
|
@ -1,30 +0,0 @@
|
||||
Section "ServerLayout"
|
||||
Identifier "Default Layout"
|
||||
Screen 0 "Screen0" 0 0
|
||||
EndSection
|
||||
|
||||
Section "Device"
|
||||
Identifier "Videocard0"
|
||||
Driver "dummy"
|
||||
VideoRam 4001
|
||||
EndSection
|
||||
|
||||
Section "Monitor"
|
||||
Identifier "Monitor0"
|
||||
HorizSync 49-50
|
||||
VertRefresh 62-63
|
||||
Modeline "QB1280x800" 64 1280 1281 1282 1283 800 801 802 803
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
Identifier "Screen0"
|
||||
Device "Videocard0"
|
||||
Monitor "Monitor0"
|
||||
DefaultDepth 24
|
||||
SubSection "Display"
|
||||
Viewport 0 0
|
||||
Depth 24
|
||||
Modes "QB1280x800"
|
||||
EndSubSection
|
||||
EndSection
|
||||
|
1
qubes-rpc/.gitignore
vendored
1
qubes-rpc/.gitignore
vendored
@ -6,3 +6,4 @@ qfile-agent-dvm
|
||||
qfile-unpacker
|
||||
qopen-in-vm
|
||||
vm-file-editor
|
||||
tar2qfile
|
||||
|
@ -1,16 +1,84 @@
|
||||
CC=gcc
|
||||
CFLAGS=-g -O2 -Wall -Wextra -Werror -I. -fPIC -pie
|
||||
BINDIR ?= /usr/bin
|
||||
LIBDIR ?= /usr/lib
|
||||
SYSCONFDIR ?= /etc
|
||||
QUBESLIBDIR = $(LIBDIR)/qubes
|
||||
QUBESRPCCMDDIR = $(SYSCONFDIR)/qubes-rpc
|
||||
QUBESCONFDIR = $(SYSCONFDIR)/qubes
|
||||
QUBESRPCCONFDIR = $(QUBESCONFDIR)/rpc-config
|
||||
|
||||
ifneq ($(DEBUG),0)
|
||||
DEBUG_FLAGS := -g
|
||||
endif
|
||||
CPPFLAGS := -I.
|
||||
CFLAGS := $(DEBUG_FLAGS) -O2 -Wall -Wextra -Werror -fPIC -pie $(CFLAGS)
|
||||
LDFLAGS := $(DEBUG_FLAGS) -pie $(LDFLAGS)
|
||||
LDLIBS := -lqubes-rpc-filecopy
|
||||
|
||||
.PHONY: all clean install
|
||||
|
||||
all: vm-file-editor qopen-in-vm qfile-agent qfile-unpacker tar2qfile
|
||||
|
||||
vm-file-editor: vm-file-editor.o
|
||||
$(CC) -pie -g -o $@ $^ -lqubes-rpc-filecopy
|
||||
qopen-in-vm: qopen-in-vm.o gui-fatal.o
|
||||
$(CC) -pie -g -o $@ $^ -lqubes-rpc-filecopy
|
||||
qfile-agent: qfile-agent.o gui-fatal.o
|
||||
$(CC) -pie -g -o $@ $^ -lqubes-rpc-filecopy
|
||||
qfile-unpacker: qfile-unpacker.o gui-fatal.o
|
||||
$(CC) -pie -g -o $@ $^ -lqubes-rpc-filecopy
|
||||
tar2qfile: tar2qfile.o gui-fatal.o
|
||||
$(CC) -pie -g -o $@ $^ -lqubes-rpc-filecopy
|
||||
|
||||
clean:
|
||||
rm -f qopen-in-vm qfile-agent qfile-unpacker tar2qfile vm-file-editor *.o *~
|
||||
-$(RM) 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
|
@ -291,6 +291,10 @@ usermod -p '' root
|
||||
%install
|
||||
|
||||
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
|
||||
sed -i \
|
||||
@ -535,7 +539,6 @@ rm -f %{name}-%{version}
|
||||
%{kde5_service_dir}/qvm-copy.desktop
|
||||
%{kde5_service_dir}/qvm-move.desktop
|
||||
%{kde5_service_dir}/qvm-dvm.desktop
|
||||
%config(noreplace) /etc/X11/xorg-preload-apps.conf
|
||||
/etc/fstab
|
||||
/etc/pki/rpm-gpg/RPM-GPG-KEY-qubes*
|
||||
%dir /etc/qubes-rpc
|
||||
|
Loading…
Reference in New Issue
Block a user