2010-04-05 20:58:57 +02:00
|
|
|
RPMS_DIR=rpm/
|
2011-04-04 10:55:25 +02:00
|
|
|
|
2013-03-07 05:09:13 +01:00
|
|
|
VERSION := $(shell cat version)
|
2011-04-04 10:55:25 +02:00
|
|
|
|
2013-04-17 01:44:28 +02:00
|
|
|
DIST ?= fc18
|
|
|
|
KDESERVICEDIR ?= /usr/share/kde4/services
|
2018-01-09 17:42:21 +01:00
|
|
|
KDE5SERVICEDIR ?= /usr/share/kservices5/ServiceMenus/
|
2018-03-27 22:19:00 +02:00
|
|
|
APPLICATIONSDIR ?= /usr/share/applications
|
2013-08-07 11:20:33 +02:00
|
|
|
SBINDIR ?= /usr/sbin
|
2016-05-19 01:36:31 +02:00
|
|
|
BINDIR ?= /usr/bin
|
2015-01-06 15:59:15 +01:00
|
|
|
LIBDIR ?= /usr/lib
|
|
|
|
SYSLIBDIR ?= /lib
|
2013-01-25 03:07:16 +01:00
|
|
|
|
2017-10-23 19:53:25 +02:00
|
|
|
PYTHON ?= /usr/bin/python2
|
2018-03-05 23:35:57 +01:00
|
|
|
PYTHON_SITEARCH = $(shell python2 -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1)')
|
|
|
|
PYTHON2_SITELIB = $(shell python2 -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()')
|
|
|
|
PYTHON3_SITELIB = $(shell python3 -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_lib())')
|
2015-08-27 20:08:33 +02:00
|
|
|
|
2014-04-21 21:23:11 +02:00
|
|
|
# This makefile uses some bash-isms, make uses /bin/sh by default.
|
|
|
|
SHELL = /bin/bash
|
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
help:
|
2011-04-04 10:55:25 +02:00
|
|
|
@echo "make rpms -- generate binary rpm packages"
|
2012-11-14 01:41:21 +01:00
|
|
|
@echo "make rpms-vm -- generate binary rpm packages for VM"
|
2011-04-04 10:55:25 +02:00
|
|
|
@echo "make clean -- cleanup"
|
2013-04-17 01:44:28 +02:00
|
|
|
@echo "make install-vm -- install VM related files"
|
2016-10-23 21:46:57 +02:00
|
|
|
@echo ""
|
|
|
|
@echo "You must have lsb_release, rpm-sign and pandoc installed."
|
2010-04-05 20:58:57 +02:00
|
|
|
|
2013-03-07 05:09:13 +01:00
|
|
|
rpms: rpms-vm
|
2012-11-07 17:58:08 +01:00
|
|
|
|
2013-03-07 05:09:13 +01:00
|
|
|
rpms-vm:
|
2016-10-23 21:46:57 +02:00
|
|
|
[ "$$BACKEND_VMM" != "" ] || { echo "error: you must define variable BACKEND_VMM" >&2 ; exit 1 ; }
|
2016-10-28 07:22:39 +02:00
|
|
|
lsb_release >/dev/null 2>&1 || { echo "error: you need lsb_release (package lsb) installed" >&2 ; exit 1 ; }
|
2016-10-23 21:46:57 +02:00
|
|
|
type pandoc >/dev/null 2>&1 || { echo "error: you need pandoc installed" >&2 ; exit 1 ; }
|
|
|
|
type rpmsign >/dev/null 2>&1 || { echo "error: you need rpm-sign installed" >&2 ; exit 1 ; }
|
2012-01-06 21:31:12 +01:00
|
|
|
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm.spec
|
2013-03-12 17:10:49 +01:00
|
|
|
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm-doc.spec
|
2016-10-28 07:22:39 +02:00
|
|
|
[ "$$SKIP_SIGNING" != "" ] || rpm --addsign \
|
2013-03-07 05:09:13 +01:00
|
|
|
$(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION)*.rpm \
|
2015-11-10 16:58:03 +01:00
|
|
|
$(RPMS_DIR)/x86_64/qubes-core-vm-doc-*$(VERSION)*.rpm
|
2010-06-14 23:45:04 +02:00
|
|
|
|
2013-03-07 05:09:13 +01:00
|
|
|
rpms-dom0:
|
|
|
|
@true
|
2011-05-10 11:14:41 +02:00
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
clean:
|
2012-01-06 21:31:12 +01:00
|
|
|
make -C misc clean
|
2011-03-07 16:13:15 +01:00
|
|
|
make -C qrexec clean
|
2014-04-21 17:14:32 +02:00
|
|
|
make -C qubes-rpc clean
|
2018-04-20 16:27:26 +02:00
|
|
|
make -C doc clean
|
|
|
|
rm -rf qubesagent/*.pyc qubesagent/__pycache__
|
|
|
|
rm -rf test-packages/__pycache__
|
|
|
|
rm -rf test-packages/qubesagent.egg-info
|
|
|
|
rm -rf __pycache__
|
2018-05-02 04:48:51 +02:00
|
|
|
rm -f .coverage
|
2013-04-17 01:44:28 +02:00
|
|
|
|
2014-04-21 17:13:50 +02:00
|
|
|
all:
|
|
|
|
make -C misc
|
|
|
|
make -C qrexec
|
|
|
|
make -C qubes-rpc
|
|
|
|
|
2015-07-24 10:58:34 +02:00
|
|
|
# Dropin Directory
|
2017-02-21 01:29:04 +01:00
|
|
|
SYSTEM_DROPIN_DIR ?= "lib/systemd/system"
|
|
|
|
USER_DROPIN_DIR ?= "usr/lib/systemd/user"
|
2015-07-24 10:58:34 +02:00
|
|
|
|
2017-12-05 17:53:44 +01:00
|
|
|
SYSTEM_DROPINS := chronyd.service crond.service
|
|
|
|
SYSTEM_DROPINS += cups.service cups-browsed.service cups.path cups.socket ModemManager.service
|
2017-10-29 08:19:36 +01:00
|
|
|
SYSTEM_DROPINS += getty@tty.service
|
2015-11-07 13:25:21 +01:00
|
|
|
SYSTEM_DROPINS += tmp.mount
|
2015-11-11 15:59:43 +01:00
|
|
|
SYSTEM_DROPINS += org.cups.cupsd.service org.cups.cupsd.path org.cups.cupsd.socket
|
2016-07-16 23:44:57 +02:00
|
|
|
SYSTEM_DROPINS += systemd-random-seed.service
|
2016-07-27 04:13:35 +02:00
|
|
|
SYSTEM_DROPINS += tor.service tor@default.service
|
2017-07-06 23:37:26 +02:00
|
|
|
SYSTEM_DROPINS += systemd-timesyncd.service
|
2015-07-24 10:58:34 +02:00
|
|
|
|
2017-10-29 08:19:36 +01:00
|
|
|
SYSTEM_DROPINS_NETWORKING := NetworkManager.service NetworkManager-wait-online.service
|
|
|
|
SYSTEM_DROPINS_NETWORKING += tinyproxy.service
|
|
|
|
|
2015-11-07 18:28:45 +01:00
|
|
|
USER_DROPINS := pulseaudio.service pulseaudio.socket
|
|
|
|
|
2017-02-06 01:08:33 +01:00
|
|
|
# Ubuntu Dropins
|
|
|
|
ifeq ($(shell lsb_release -is), Ubuntu)
|
|
|
|
|
|
|
|
# 'crond.service' is named 'cron.service in Debian
|
|
|
|
SYSTEM_DROPINS := $(strip $(patsubst crond.service, cron.service, $(SYSTEM_DROPINS)))
|
|
|
|
SYSTEM_DROPINS += anacron.service
|
|
|
|
SYSTEM_DROPINS += anacron-resume.service
|
2018-03-19 18:32:10 +01:00
|
|
|
SYSTEM_DROPINS += netfilter-persistent.service
|
|
|
|
SYSTEM_DROPINS += exim4.service
|
|
|
|
SYSTEM_DROPINS += avahi-daemon.service
|
|
|
|
|
2017-02-06 01:08:33 +01:00
|
|
|
endif
|
|
|
|
|
2015-07-24 10:58:34 +02:00
|
|
|
# Debian Dropins
|
|
|
|
ifeq ($(shell lsb_release -is), Debian)
|
|
|
|
# 'crond.service' is named 'cron.service in Debian
|
2015-11-07 13:25:21 +01:00
|
|
|
SYSTEM_DROPINS := $(strip $(patsubst crond.service, cron.service, $(SYSTEM_DROPINS)))
|
2015-07-24 10:58:34 +02:00
|
|
|
|
2015-11-07 13:25:21 +01:00
|
|
|
# Wheezy System Dropins
|
2015-07-24 10:58:34 +02:00
|
|
|
# Disable sysinit 'network-manager.service' since systemd 'NetworkManager.service' is already installed
|
2015-11-07 13:25:21 +01:00
|
|
|
SYSTEM_DROPINS += $(strip $(if $(filter wheezy, $(shell lsb_release -cs)), network-manager.service,))
|
2015-08-09 20:32:35 +02:00
|
|
|
|
2015-11-11 15:39:05 +01:00
|
|
|
# handled by qubes-iptables service now
|
2015-11-07 13:25:21 +01:00
|
|
|
SYSTEM_DROPINS += netfilter-persistent.service
|
2017-02-06 00:36:27 +01:00
|
|
|
|
|
|
|
SYSTEM_DROPINS += anacron.service
|
|
|
|
SYSTEM_DROPINS += anacron-resume.service
|
2017-02-16 23:41:14 +01:00
|
|
|
SYSTEM_DROPINS += exim4.service
|
|
|
|
SYSTEM_DROPINS += avahi-daemon.service
|
2015-07-24 10:58:34 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
install-systemd-dropins:
|
2015-11-07 13:25:21 +01:00
|
|
|
# Install system dropins
|
|
|
|
@for dropin in $(SYSTEM_DROPINS); do \
|
2017-02-21 01:29:04 +01:00
|
|
|
install -d $(DESTDIR)/$(SYSTEM_DROPIN_DIR)/$${dropin}.d ;\
|
|
|
|
install -m 0644 vm-systemd/$${dropin}.d/*.conf $(DESTDIR)/$(SYSTEM_DROPIN_DIR)/$${dropin}.d/ ;\
|
2015-07-24 10:58:34 +02:00
|
|
|
done
|
2015-11-11 15:57:25 +01:00
|
|
|
|
2015-11-07 18:28:45 +01:00
|
|
|
# Install user dropins
|
|
|
|
@for dropin in $(USER_DROPINS); do \
|
2017-02-21 01:29:04 +01:00
|
|
|
install -d $(DESTDIR)/$(USER_DROPIN_DIR)/$${dropin}.d ;\
|
|
|
|
install -m 0644 vm-systemd/user/$${dropin}.d/*.conf $(DESTDIR)/$(USER_DROPIN_DIR)/$${dropin}.d/ ;\
|
2015-11-07 18:28:45 +01:00
|
|
|
done
|
2015-07-24 10:58:34 +02:00
|
|
|
|
2017-10-29 08:19:36 +01:00
|
|
|
install-systemd-networking-dropins:
|
|
|
|
# Install system dropins
|
|
|
|
@for dropin in $(SYSTEM_DROPINS_NETWORKING); do \
|
|
|
|
install -d $(DESTDIR)/$(SYSTEM_DROPIN_DIR)/$${dropin}.d ;\
|
|
|
|
install -m 0644 vm-systemd/$${dropin}.d/*.conf $(DESTDIR)/$(SYSTEM_DROPIN_DIR)/$${dropin}.d/ ;\
|
|
|
|
done
|
|
|
|
|
2016-10-22 17:43:16 +02:00
|
|
|
install-init:
|
|
|
|
install -d $(DESTDIR)$(LIBDIR)/qubes/init
|
|
|
|
# FIXME: do a source code move vm-systemd/*.sh to init/
|
|
|
|
# since those scripts are shared between sysvinit and systemd.
|
|
|
|
install -m 0755 init/*.sh vm-systemd/*.sh $(DESTDIR)$(LIBDIR)/qubes/init/
|
|
|
|
install -m 0644 init/functions $(DESTDIR)$(LIBDIR)/qubes/init/
|
|
|
|
|
2017-10-29 08:19:36 +01:00
|
|
|
# Systemd service files
|
|
|
|
SYSTEMD_ALL_SERVICES := $(wildcard vm-systemd/qubes-*.service)
|
|
|
|
SYSTEMD_NETWORK_SERVICES := vm-systemd/qubes-firewall.service vm-systemd/qubes-iptables.service vm-systemd/qubes-updates-proxy.service
|
|
|
|
SYSTEMD_CORE_SERVICES := $(filter-out $(SYSTEMD_NETWORK_SERVICES), $(SYSTEMD_ALL_SERVICES))
|
|
|
|
|
2016-10-22 17:43:16 +02:00
|
|
|
install-systemd: install-init
|
2015-02-08 00:08:26 +01:00
|
|
|
install -d $(DESTDIR)$(SYSLIBDIR)/systemd/system{,-preset} $(DESTDIR)$(LIBDIR)/qubes/init $(DESTDIR)$(SYSLIBDIR)/modules-load.d
|
2017-10-29 08:19:36 +01:00
|
|
|
install -m 0644 $(SYSTEMD_CORE_SERVICES) $(DESTDIR)$(SYSLIBDIR)/systemd/system/
|
2015-01-06 15:59:15 +01:00
|
|
|
install -m 0644 vm-systemd/qubes-*.timer $(DESTDIR)$(SYSLIBDIR)/systemd/system/
|
2015-02-08 00:08:26 +01:00
|
|
|
install -m 0644 vm-systemd/75-qubes-vm.preset $(DESTDIR)$(SYSLIBDIR)/systemd/system-preset/
|
2015-01-06 15:59:15 +01:00
|
|
|
install -m 0644 vm-systemd/qubes-core.conf $(DESTDIR)$(SYSLIBDIR)/modules-load.d/
|
2013-04-17 01:44:28 +02:00
|
|
|
|
2016-10-22 17:43:16 +02:00
|
|
|
install-sysvinit: install-init
|
2014-09-29 22:57:55 +02:00
|
|
|
install -d $(DESTDIR)/etc/init.d
|
2016-10-22 17:43:16 +02:00
|
|
|
install vm-init.d/qubes-sysinit $(DESTDIR)/etc/init.d/
|
|
|
|
install vm-init.d/qubes-core-early $(DESTDIR)/etc/init.d/
|
2014-09-29 22:57:55 +02:00
|
|
|
install vm-init.d/qubes-core $(DESTDIR)/etc/init.d/
|
|
|
|
install vm-init.d/qubes-core-netvm $(DESTDIR)/etc/init.d/
|
|
|
|
install vm-init.d/qubes-firewall $(DESTDIR)/etc/init.d/
|
|
|
|
install vm-init.d/qubes-qrexec-agent $(DESTDIR)/etc/init.d/
|
|
|
|
install vm-init.d/qubes-updates-proxy $(DESTDIR)/etc/init.d/
|
2017-05-26 03:07:47 +02:00
|
|
|
install vm-init.d/qubes-updates-proxy-forwarder $(DESTDIR)/etc/init.d/
|
2014-09-29 22:57:55 +02:00
|
|
|
install -D vm-init.d/qubes-core.modules $(DESTDIR)/etc/sysconfig/modules/qubes-core.modules
|
2015-08-04 17:15:01 +02:00
|
|
|
install network/qubes-iptables $(DESTDIR)/etc/init.d/
|
2014-09-29 22:57:55 +02:00
|
|
|
|
2015-07-24 10:58:34 +02:00
|
|
|
install-rh: install-systemd install-systemd-dropins install-sysvinit
|
2018-08-07 15:35:25 +02:00
|
|
|
install -D -m 0644 misc/qubes-r4.repo.in $(DESTDIR)/etc/yum.repos.d/qubes-r4.repo
|
2018-09-02 07:35:20 +02:00
|
|
|
DIST='$(DIST)'; sed -i "s/@DIST@/$${DIST%%[0-9]*}/g" $(DESTDIR)/etc/yum.repos.d/qubes-r4.repo
|
2015-01-06 15:59:15 +01:00
|
|
|
install -d $(DESTDIR)$(LIBDIR)/yum-plugins/
|
|
|
|
install -m 0644 misc/yum-qubes-hooks.py* $(DESTDIR)$(LIBDIR)/yum-plugins/
|
2013-04-17 01:44:28 +02:00
|
|
|
install -D -m 0644 misc/yum-qubes-hooks.conf $(DESTDIR)/etc/yum/pluginconf.d/yum-qubes-hooks.conf
|
2014-04-21 17:13:50 +02:00
|
|
|
install -d -m 755 $(DESTDIR)/etc/pki/rpm-gpg
|
|
|
|
install -m 644 misc/RPM-GPG-KEY-qubes* $(DESTDIR)/etc/pki/rpm-gpg/
|
2015-01-06 15:59:15 +01:00
|
|
|
install -D -m 644 misc/session-stop-timeout.conf $(DESTDIR)$(LIBDIR)/systemd/system/user@.service.d/90-session-stop-timeout.conf
|
2014-04-21 17:13:50 +02:00
|
|
|
|
|
|
|
install -d $(DESTDIR)/etc/yum.conf.d
|
|
|
|
touch $(DESTDIR)/etc/yum.conf.d/qubes-proxy.conf
|
|
|
|
|
2017-06-13 01:36:12 +02:00
|
|
|
install -D -m 0644 misc/grub.qubes $(DESTDIR)/etc/default/grub.qubes
|
2014-04-21 17:13:50 +02:00
|
|
|
install -D -m 0644 misc/serial.conf $(DESTDIR)/usr/share/qubes/serial.conf
|
|
|
|
install -D misc/qubes-serial-login $(DESTDIR)/$(SBINDIR)/qubes-serial-login
|
2015-11-10 16:35:29 +01:00
|
|
|
install -D -m 0644 misc/dracut-qubes.conf \
|
|
|
|
$(DESTDIR)/usr/lib/dracut/dracut.conf.d/30-qubes.conf
|
2013-04-17 01:44:28 +02:00
|
|
|
|
2015-11-10 16:49:29 +01:00
|
|
|
install -D -m 0644 misc/dnf-qubes-hooks.py \
|
2015-12-23 02:04:26 +01:00
|
|
|
$(DESTDIR)$(PYTHON2_SITELIB)/dnf-plugins/qubes-hooks.py
|
|
|
|
install -D -m 0644 misc/dnf-qubes-hooks.py \
|
|
|
|
$(DESTDIR)$(PYTHON3_SITELIB)/dnf-plugins/qubes-hooks.py
|
2015-11-10 16:49:29 +01:00
|
|
|
install -D -m 0644 misc/dnf-qubes-hooks.conf $(DESTDIR)/etc/dnf/plugins/qubes-hooks.conf
|
|
|
|
|
2017-06-20 23:34:04 +02:00
|
|
|
install-doc:
|
|
|
|
$(MAKE) -C doc install
|
2015-11-10 16:49:29 +01:00
|
|
|
|
2017-06-20 23:34:04 +02:00
|
|
|
install-common: install-doc
|
2015-08-27 21:29:32 +02:00
|
|
|
$(MAKE) -C autostart-dropins install
|
2015-02-03 04:36:55 +01:00
|
|
|
install -m 0644 -D misc/fstab $(DESTDIR)/etc/fstab
|
|
|
|
|
2016-09-12 05:22:53 +02:00
|
|
|
# force /usr/bin before /bin to have /usr/bin/python instead of /bin/python
|
2017-10-23 19:53:25 +02:00
|
|
|
PATH="/usr/bin:$(PATH)" $(PYTHON) setup.py install $(PYTHON_PREFIX_ARG) -O1 --root $(DESTDIR)
|
2016-09-12 05:22:53 +02:00
|
|
|
mkdir -p $(DESTDIR)$(SBINDIR)
|
2017-10-17 21:59:38 +02:00
|
|
|
|
2017-01-29 15:01:01 +01:00
|
|
|
install -d -m 0750 $(DESTDIR)/etc/sudoers.d/
|
2014-04-21 17:13:50 +02:00
|
|
|
install -D -m 0440 misc/qubes.sudoers $(DESTDIR)/etc/sudoers.d/qubes
|
2015-08-16 02:54:21 +02:00
|
|
|
install -D -m 0440 misc/sudoers.d_qt_x11_no_mitshm $(DESTDIR)/etc/sudoers.d/qt_x11_no_mitshm
|
2015-11-11 15:18:51 +01:00
|
|
|
install -D -m 0644 misc/20_tcp_timestamps.conf $(DESTDIR)/etc/sysctl.d/20_tcp_timestamps.conf
|
2013-04-17 01:44:28 +02:00
|
|
|
|
|
|
|
install -d $(DESTDIR)/var/lib/qubes
|
|
|
|
|
2016-05-19 01:36:31 +02:00
|
|
|
install -D misc/xenstore-watch $(DESTDIR)$(BINDIR)/xenstore-watch-qubes
|
2013-04-17 01:44:28 +02:00
|
|
|
install -d $(DESTDIR)/etc/udev/rules.d
|
|
|
|
install -m 0644 misc/udev-qubes-misc.rules $(DESTDIR)/etc/udev/rules.d/50-qubes-misc.rules
|
2015-01-06 15:59:15 +01:00
|
|
|
install -d $(DESTDIR)$(LIBDIR)/qubes/
|
|
|
|
install misc/qubes-trigger-sync-appmenus.sh $(DESTDIR)$(LIBDIR)/qubes/
|
2017-01-29 15:01:01 +01:00
|
|
|
install -d -m 0750 $(DESTDIR)/etc/polkit-1/rules.d
|
2015-11-11 15:18:51 +01:00
|
|
|
install -D -m 0644 misc/polkit-1-qubes-allow-all.pkla $(DESTDIR)/etc/polkit-1/localauthority/50-local.d/qubes-allow-all.pkla
|
|
|
|
install -D -m 0644 misc/polkit-1-qubes-allow-all.rules $(DESTDIR)/etc/polkit-1/rules.d/00-qubes-allow-all.rules
|
2013-11-14 21:38:27 +01:00
|
|
|
install -D -m 0644 misc/mime-globs $(DESTDIR)/usr/share/qubes/mime-override/globs
|
2015-04-14 00:21:06 +02:00
|
|
|
install misc/qubes-download-dom0-updates.sh $(DESTDIR)$(LIBDIR)/qubes/
|
2017-05-20 13:38:58 +02:00
|
|
|
install -d $(DESTDIR)/usr/share/glib-2.0/schemas/
|
|
|
|
install -m 0644 \
|
|
|
|
misc/20_org.gnome.settings-daemon.plugins.updates.qubes.gschema.override \
|
|
|
|
misc/20_org.gnome.nautilus.qubes.gschema.override \
|
|
|
|
misc/20_org.mate.NotificationDaemon.qubes.gschema.override \
|
2017-05-20 14:36:48 +02:00
|
|
|
misc/20_org.gnome.desktop.wm.preferences.qubes.gschema.override \
|
2017-05-20 13:38:58 +02:00
|
|
|
$(DESTDIR)/usr/share/glib-2.0/schemas/
|
2018-05-01 17:34:52 +02:00
|
|
|
install -m 2775 -d $(DESTDIR)/var/lib/qubes/dom0-updates
|
2016-07-16 23:51:28 +02:00
|
|
|
install -D -m 0644 misc/qubes-master-key.asc $(DESTDIR)/usr/share/qubes/qubes-master-key.asc
|
2017-10-17 20:51:12 +02:00
|
|
|
install misc/resize-rootfs $(DESTDIR)$(LIBDIR)/qubes/
|
2013-04-17 01:44:28 +02:00
|
|
|
|
2015-01-06 15:59:15 +01:00
|
|
|
install misc/close-window $(DESTDIR)$(LIBDIR)/qubes/close-window
|
2013-04-17 01:44:28 +02:00
|
|
|
|
2015-10-22 17:26:24 +02:00
|
|
|
install misc/upgrades-installed-check $(DESTDIR)$(LIBDIR)/qubes/upgrades-installed-check
|
|
|
|
install misc/upgrades-status-notify $(DESTDIR)$(LIBDIR)/qubes/upgrades-status-notify
|
|
|
|
|
2013-04-17 01:44:28 +02:00
|
|
|
install -m 0644 network/udev-qubes-network.rules $(DESTDIR)/etc/udev/rules.d/99-qubes-network.rules
|
2015-10-30 15:13:56 +01:00
|
|
|
install -m 0755 network/update-proxy-configs $(DESTDIR)$(LIBDIR)/qubes/
|
2015-08-04 17:15:01 +02:00
|
|
|
|
2016-05-19 01:36:31 +02:00
|
|
|
install -d $(DESTDIR)$(BINDIR)
|
|
|
|
install -m 0755 misc/qubes-session-autostart $(DESTDIR)$(BINDIR)/qubes-session-autostart
|
|
|
|
install -m 0755 misc/qvm-features-request $(DESTDIR)$(BINDIR)/qvm-features-request
|
2018-03-27 22:19:00 +02:00
|
|
|
install -m 0755 misc/qubes-run-terminal $(DESTDIR)/$(BINDIR)
|
2018-09-28 18:51:57 +02:00
|
|
|
install -D -m 0644 misc/qubes-run-terminal.desktop $(DESTDIR)/$(APPLICATIONSDIR)/qubes-run-terminal.desktop
|
2017-07-06 23:37:26 +02:00
|
|
|
install -m 0755 qubes-rpc/qvm-sync-clock $(DESTDIR)$(BINDIR)/qvm-sync-clock
|
2017-05-23 02:55:31 +02:00
|
|
|
install qubes-rpc/{qvm-open-in-dvm,qvm-open-in-vm,qvm-copy-to-vm,qvm-run-vm} $(DESTDIR)/usr/bin
|
2017-10-02 03:19:30 +02:00
|
|
|
install qubes-rpc/qvm-copy $(DESTDIR)/usr/bin
|
2016-12-04 17:50:59 +01:00
|
|
|
ln -s qvm-copy-to-vm $(DESTDIR)/usr/bin/qvm-move-to-vm
|
2017-10-02 03:19:30 +02:00
|
|
|
ln -s qvm-copy $(DESTDIR)/usr/bin/qvm-move
|
2015-01-06 15:59:15 +01:00
|
|
|
install qubes-rpc/qvm-copy-to-vm.gnome $(DESTDIR)$(LIBDIR)/qubes
|
2018-07-25 14:44:53 +02:00
|
|
|
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
|
2017-11-17 13:37:37 +01:00
|
|
|
install qubes-rpc/qvm-actions.sh $(DESTDIR)$(LIBDIR)/qubes
|
|
|
|
install -m 0644 misc/uca_qubes.xml $(DESTDIR)$(LIBDIR)/qubes
|
2017-11-17 18:47:39 +01:00
|
|
|
mkdir -p $(DESTDIR)/etc/xdg/xfce4/xfconf/xfce-perchannel-xml
|
|
|
|
install -m 0644 misc/thunar.xml $(DESTDIR)/etc/xdg/xfce4/xfconf/xfce-perchannel-xml
|
2015-09-06 21:05:01 +02:00
|
|
|
install qubes-rpc/xdg-icon $(DESTDIR)$(LIBDIR)/qubes
|
2015-01-06 15:59:15 +01:00
|
|
|
install qubes-rpc/{vm-file-editor,qfile-agent,qopen-in-vm} $(DESTDIR)$(LIBDIR)/qubes
|
2016-05-19 01:36:31 +02:00
|
|
|
install qubes-rpc/qubes-open $(DESTDIR)$(BINDIR)
|
2015-01-06 15:59:15 +01:00
|
|
|
install qubes-rpc/tar2qfile $(DESTDIR)$(LIBDIR)/qubes
|
2013-04-17 01:44:28 +02:00
|
|
|
# Install qfile-unpacker as SUID - because it will fail to receive files from other vm
|
2015-01-06 15:59:15 +01:00
|
|
|
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
|
2017-07-06 23:37:26 +02:00
|
|
|
install qubes-rpc/qubes-sync-clock $(DESTDIR)$(LIBDIR)/qubes
|
2016-01-11 19:34:10 +01:00
|
|
|
install -m 0644 misc/qubes-suspend-module-blacklist $(DESTDIR)/etc/qubes-suspend-module-blacklist
|
2013-04-17 01:44:28 +02:00
|
|
|
install -d $(DESTDIR)/$(KDESERVICEDIR)
|
2014-03-24 05:19:16 +01:00
|
|
|
install -m 0644 qubes-rpc/{qvm-copy.desktop,qvm-move.desktop,qvm-dvm.desktop} $(DESTDIR)/$(KDESERVICEDIR)
|
2018-01-09 17:42:21 +01:00
|
|
|
install -d $(DESTDIR)/$(KDE5SERVICEDIR)
|
|
|
|
install -m 0644 qubes-rpc/{qvm-copy.desktop,qvm-move.desktop,qvm-dvm.desktop} $(DESTDIR)/$(KDE5SERVICEDIR)
|
2013-04-17 01:44:28 +02:00
|
|
|
install -d $(DESTDIR)/etc/qubes-rpc
|
2017-07-06 23:37:26 +02:00
|
|
|
install -m 0755 qubes-rpc/{qubes.Filecopy,qubes.OpenInVM,qubes.VMShell} $(DESTDIR)/etc/qubes-rpc
|
2017-06-09 23:01:46 +02:00
|
|
|
install -m 0755 qubes-rpc/qubes.VMRootShell $(DESTDIR)/etc/qubes-rpc
|
2016-05-17 21:50:20 +02:00
|
|
|
install -m 0755 qubes-rpc/qubes.OpenURL $(DESTDIR)/etc/qubes-rpc
|
2017-06-09 23:09:58 +02:00
|
|
|
install -m 0755 qubes-rpc/{qubes.SuspendPre,qubes.SuspendPost,qubes.GetAppmenus} $(DESTDIR)/etc/qubes-rpc
|
2016-03-15 23:33:11 +01:00
|
|
|
install -m 0755 qubes-rpc/qubes.SuspendPreAll $(DESTDIR)/etc/qubes-rpc
|
|
|
|
install -m 0755 qubes-rpc/qubes.SuspendPostAll $(DESTDIR)/etc/qubes-rpc
|
2017-05-31 13:36:12 +02:00
|
|
|
install -m 0755 qubes-rpc/qubes.WaitForSession $(DESTDIR)/etc/qubes-rpc
|
2017-06-09 23:09:58 +02:00
|
|
|
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
|
2015-11-13 05:32:44 +01:00
|
|
|
install -m 0755 qubes-rpc/qubes.InstallUpdatesGUI $(DESTDIR)/etc/qubes-rpc
|
2016-08-17 21:47:22 +02:00
|
|
|
install -m 0755 qubes-rpc/qubes.ResizeDisk $(DESTDIR)/etc/qubes-rpc
|
2017-05-20 03:48:02 +02:00
|
|
|
install -m 0755 qubes-rpc/qubes.StartApp $(DESTDIR)/etc/qubes-rpc
|
2017-05-26 05:19:21 +02:00
|
|
|
install -m 0755 qubes-rpc/qubes.PostInstall $(DESTDIR)/etc/qubes-rpc
|
2017-07-06 23:37:26 +02:00
|
|
|
install -m 0755 qubes-rpc/qubes.GetDate $(DESTDIR)/etc/qubes-rpc
|
2013-04-17 01:44:28 +02:00
|
|
|
|
2017-08-05 21:28:19 +02:00
|
|
|
install -d $(DESTDIR)/etc/qubes/rpc-config
|
|
|
|
install -m 0644 qubes-rpc/rpc-config.README $(DESTDIR)/etc/qubes/rpc-config/README
|
2017-08-05 21:39:42 +02:00
|
|
|
for config in qubes-rpc/*.config; do \
|
|
|
|
install -m 0644 $$config $(DESTDIR)/etc/qubes/rpc-config/`basename $$config .config`; \
|
|
|
|
done
|
2017-08-05 21:28:19 +02:00
|
|
|
|
2016-03-15 23:33:11 +01:00
|
|
|
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
|
2018-02-13 03:02:21 +01:00
|
|
|
install -m 0755 qubes-rpc/suspend-post-qvm-sync-clock.sh \
|
|
|
|
$(DESTDIR)/etc/qubes/suspend-post.d/qvm-sync-clock.sh
|
2017-05-26 05:19:21 +02:00
|
|
|
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/
|
2015-02-27 06:52:17 +01:00
|
|
|
install -d $(DESTDIR)/usr/share/nautilus-python/extensions
|
|
|
|
install -m 0644 qubes-rpc/*_nautilus.py $(DESTDIR)/usr/share/nautilus-python/extensions
|
2013-04-17 01:44:28 +02:00
|
|
|
|
2018-05-01 15:17:39 +02:00
|
|
|
install -D -m 0644 misc/dconf-db-local-dpi $(DESTDIR)/etc/dconf/db/local.d/dpi
|
2018-01-12 05:52:52 +01:00
|
|
|
|
2016-05-19 01:36:31 +02:00
|
|
|
install -D -m 0755 misc/qubes-desktop-run $(DESTDIR)$(BINDIR)/qubes-desktop-run
|
2013-04-17 01:44:28 +02:00
|
|
|
|
|
|
|
install -d $(DESTDIR)/mnt/removable
|
|
|
|
|
|
|
|
install -D -m 0644 misc/xorg-preload-apps.conf $(DESTDIR)/etc/X11/xorg-preload-apps.conf
|
|
|
|
|
2016-10-16 02:14:02 +02:00
|
|
|
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
|
|
|
|
|
2019-01-18 23:20:39 +01:00
|
|
|
install -D -m 0644 misc/marker-vm $(DESTDIR)/usr/share/qubes/marker-vm
|
|
|
|
|
2016-10-16 02:14:02 +02:00
|
|
|
|
2013-04-17 01:44:28 +02:00
|
|
|
install -d $(DESTDIR)/var/run/qubes
|
2014-10-19 04:32:57 +02:00
|
|
|
install -d $(DESTDIR)/rw
|
2014-04-21 17:13:50 +02:00
|
|
|
|
2017-10-29 08:19:36 +01:00
|
|
|
# Networking install target includes:
|
|
|
|
# * basic network functionality (setting IP address, DNS, default gateway)
|
|
|
|
# * package update proxy client
|
|
|
|
install-networking:
|
|
|
|
install -d $(DESTDIR)$(SYSLIBDIR)/systemd/system
|
|
|
|
install -m 0644 vm-systemd/qubes-*.socket $(DESTDIR)$(SYSLIBDIR)/systemd/system/
|
|
|
|
|
|
|
|
install -d $(DESTDIR)$(LIBDIR)/qubes/
|
|
|
|
install network/setup-ip $(DESTDIR)$(LIBDIR)/qubes/
|
|
|
|
|
|
|
|
# Netvm install target includes:
|
|
|
|
# * qubes-firewall service (FirewallVM)
|
|
|
|
# * DNS redirection setup
|
|
|
|
# * proxy service used by TemplateVMs to download updates
|
|
|
|
install-netvm:
|
|
|
|
install -D -m 0644 $(SYSTEMD_NETWORK_SERVICES) $(DESTDIR)$(SYSLIBDIR)/systemd/system/
|
|
|
|
|
|
|
|
install -D -m 0755 network/qubes-iptables $(DESTDIR)$(LIBDIR)/qubes/init/qubes-iptables
|
|
|
|
|
|
|
|
install -D -m 0644 vm-systemd/qubes-core-agent-linux.tmpfiles \
|
|
|
|
$(DESTDIR)/usr/lib/tmpfiles.d/qubes-core-agent-linux.conf
|
|
|
|
|
|
|
|
mkdir -p $(DESTDIR)$(SBINDIR)
|
|
|
|
|
|
|
|
ifneq ($(SBINDIR),/usr/bin)
|
|
|
|
mv $(DESTDIR)/usr/bin/qubes-firewall $(DESTDIR)$(SBINDIR)/qubes-firewall
|
|
|
|
endif
|
|
|
|
|
|
|
|
install -D network/qubes-setup-dnat-to-ns $(DESTDIR)$(LIBDIR)/qubes/qubes-setup-dnat-to-ns
|
|
|
|
|
|
|
|
install -d $(DESTDIR)/etc/dhclient.d
|
|
|
|
ln -s /usr/lib/qubes/qubes-setup-dnat-to-ns $(DESTDIR)/etc/dhclient.d/qubes-setup-dnat-to-ns.sh
|
|
|
|
|
|
|
|
install -D network/vif-route-qubes $(DESTDIR)/etc/xen/scripts/vif-route-qubes
|
|
|
|
install -D network/vif-qubes-nat.sh $(DESTDIR)/etc/xen/scripts/vif-qubes-nat.sh
|
|
|
|
install -m 0644 -D network/tinyproxy-updates.conf $(DESTDIR)/etc/tinyproxy/tinyproxy-updates.conf
|
|
|
|
install -m 0644 -D network/updates-blacklist $(DESTDIR)/etc/tinyproxy/updates-blacklist
|
|
|
|
install -m 0755 -D network/iptables-updates-proxy $(DESTDIR)$(LIBDIR)/qubes/iptables-updates-proxy
|
|
|
|
|
|
|
|
install -m 0400 -D network/iptables $(DESTDIR)/etc/qubes/iptables.rules
|
|
|
|
install -m 0400 -D network/ip6tables $(DESTDIR)/etc/qubes/ip6tables.rules
|
2017-12-03 03:30:53 +01:00
|
|
|
install -m 0400 -D network/ip6tables-enabled $(DESTDIR)/etc/qubes/ip6tables-enabled.rules
|
2017-10-29 08:19:36 +01:00
|
|
|
|
|
|
|
install -m 0755 -D qubes-rpc/qubes.UpdatesProxy $(DESTDIR)/etc/qubes-rpc/qubes.UpdatesProxy
|
|
|
|
|
|
|
|
# networkmanager install target allow integration of NetworkManager for Qubes VM:
|
|
|
|
# * make connections config persistent
|
|
|
|
# * adjust DNS redirections when needed
|
|
|
|
# * show/hide NetworkManager applet icon
|
|
|
|
install-networkmanager:
|
|
|
|
install -d $(DESTDIR)$(LIBDIR)/qubes/
|
|
|
|
install network/qubes-fix-nm-conf.sh $(DESTDIR)$(LIBDIR)/qubes/
|
|
|
|
install network/network-manager-prepare-conf-dir $(DESTDIR)$(LIBDIR)/qubes/
|
|
|
|
|
|
|
|
install -d $(DESTDIR)/etc/NetworkManager/dispatcher.d/
|
|
|
|
install network/{qubes-nmhook,30-qubes-external-ip} $(DESTDIR)/etc/NetworkManager/dispatcher.d/
|
|
|
|
|
|
|
|
install -d $(DESTDIR)/usr/lib/NetworkManager/conf.d
|
2017-10-29 21:22:11 +01:00
|
|
|
install -m 0644 network/nm-30-qubes.conf $(DESTDIR)/usr/lib/NetworkManager/conf.d/30-qubes.conf
|
2017-10-29 08:19:36 +01:00
|
|
|
|
|
|
|
install -d $(DESTDIR)/etc/xdg/autostart
|
|
|
|
install -m 0755 network/show-hide-nm-applet.sh $(DESTDIR)$(LIBDIR)/qubes/
|
|
|
|
install -m 0644 network/show-hide-nm-applet.desktop $(DESTDIR)/etc/xdg/autostart/00-qubes-show-hide-nm-applet.desktop
|
|
|
|
|
2017-10-29 22:02:01 +01:00
|
|
|
install-deb: install-common install-systemd install-systemd-dropins install-systemd-networking-dropins install-networking install-networkmanager install-netvm
|
2014-07-27 06:11:43 +02:00
|
|
|
mkdir -p $(DESTDIR)/etc/apt/sources.list.d
|
2017-06-13 11:38:49 +02:00
|
|
|
sed -e "s/@DIST@/`lsb_release -cs`/" misc/qubes-r4.list.in > $(DESTDIR)/etc/apt/sources.list.d/qubes-r4.list
|
2014-07-27 06:11:43 +02:00
|
|
|
install -D -m 644 misc/qubes-archive-keyring.gpg $(DESTDIR)/etc/apt/trusted.gpg.d/qubes-archive-keyring.gpg
|
2015-07-20 22:42:47 +02:00
|
|
|
install -D -m 644 network/00notify-hook $(DESTDIR)/etc/apt/apt.conf.d/00notify-hook
|
2014-09-26 18:55:42 +02:00
|
|
|
install -d $(DESTDIR)/etc/sysctl.d
|
|
|
|
install -m 644 network/80-qubes.conf $(DESTDIR)/etc/sysctl.d/
|
2015-02-02 23:33:07 +01:00
|
|
|
install -D -m 644 misc/profile.d_qt_x11_no_mitshm.sh $(DESTDIR)/etc/profile.d/qt_x11_no_mitshm.sh
|
|
|
|
install -D -m 440 misc/sudoers.d_umask $(DESTDIR)/etc/sudoers.d/umask
|
2015-09-13 19:19:25 +02:00
|
|
|
install -d $(DESTDIR)/etc/pam.d
|
|
|
|
install -m 0644 misc/pam.d_su.qubes $(DESTDIR)/etc/pam.d/su.qubes
|
2015-11-24 06:18:36 +01:00
|
|
|
install -d $(DESTDIR)/etc/needrestart/conf.d
|
|
|
|
install -D -m 0644 misc/50_qubes.conf $(DESTDIR)/etc/needrestart/conf.d/50_qubes.conf
|
2017-06-13 01:36:12 +02:00
|
|
|
install -D -m 0644 misc/grub.qubes $(DESTDIR)/etc/default/grub.d/30-qubes.cfg
|
2017-10-19 15:03:06 +02:00
|
|
|
install -D -m 0644 misc/apt-conf-70no-unattended $(DESTDIR)/etc/apt/apt.conf.d/70no-unattended
|
2015-11-24 06:18:36 +01:00
|
|
|
|
2017-05-22 17:30:06 +02:00
|
|
|
mkdir -p $(DESTDIR)/etc/systemd/system/
|
|
|
|
install -m 0644 vm-systemd/haveged.service $(DESTDIR)/etc/systemd/system/
|
2014-07-27 06:11:43 +02:00
|
|
|
|
2017-10-29 16:40:21 +01:00
|
|
|
install-corevm: install-rh install-common install-systemd install-sysvinit install-systemd-dropins install-networking
|
2017-10-29 08:20:51 +01:00
|
|
|
|
2017-11-20 16:56:57 +01:00
|
|
|
install-netvm: install-systemd-networking-dropins install-networkmanager
|
2017-10-29 08:20:51 +01:00
|
|
|
|
|
|
|
install-vm: install-corevm install-netvm
|