Makefile 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. RPMS_DIR=rpm/
  2. VERSION := $(shell cat version)
  3. DIST ?= fc18
  4. KDESERVICEDIR ?= /usr/share/kde4/services
  5. SBINDIR ?= /usr/sbin
  6. BINDIR ?= /usr/bin
  7. LIBDIR ?= /usr/lib
  8. SYSLIBDIR ?= /lib
  9. PYTHON ?= /usr/bin/python2
  10. PYTHON_SITEARCH = `python2 -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1)'`
  11. PYTHON2_SITELIB = `python2 -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()'`
  12. PYTHON3_SITELIB = `python3 -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_lib())'`
  13. # This makefile uses some bash-isms, make uses /bin/sh by default.
  14. SHELL = /bin/bash
  15. help:
  16. @echo "make rpms -- generate binary rpm packages"
  17. @echo "make rpms-vm -- generate binary rpm packages for VM"
  18. @echo "make clean -- cleanup"
  19. @echo "make install-vm -- install VM related files"
  20. @echo ""
  21. @echo "You must have lsb_release, rpm-sign and pandoc installed."
  22. rpms: rpms-vm
  23. rpms-vm:
  24. [ "$$BACKEND_VMM" != "" ] || { echo "error: you must define variable BACKEND_VMM" >&2 ; exit 1 ; }
  25. lsb_release >/dev/null 2>&1 || { echo "error: you need lsb_release (package lsb) installed" >&2 ; exit 1 ; }
  26. type pandoc >/dev/null 2>&1 || { echo "error: you need pandoc installed" >&2 ; exit 1 ; }
  27. type rpmsign >/dev/null 2>&1 || { echo "error: you need rpm-sign installed" >&2 ; exit 1 ; }
  28. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm.spec
  29. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm-doc.spec
  30. [ "$$SKIP_SIGNING" != "" ] || rpm --addsign \
  31. $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION)*.rpm \
  32. $(RPMS_DIR)/x86_64/qubes-core-vm-doc-*$(VERSION)*.rpm
  33. rpms-dom0:
  34. @true
  35. clean:
  36. make -C misc clean
  37. make -C qrexec clean
  38. make -C qubes-rpc clean
  39. all:
  40. make -C misc
  41. make -C qrexec
  42. make -C qubes-rpc
  43. # Dropin Directory
  44. SYSTEM_DROPIN_DIR ?= "lib/systemd/system"
  45. USER_DROPIN_DIR ?= "usr/lib/systemd/user"
  46. SYSTEM_DROPINS := chronyd.service crond.service
  47. SYSTEM_DROPINS += cups.service cups-browsed.service cups.path cups.socket ModemManager.service
  48. SYSTEM_DROPINS += getty@tty.service
  49. SYSTEM_DROPINS += tmp.mount
  50. SYSTEM_DROPINS += org.cups.cupsd.service org.cups.cupsd.path org.cups.cupsd.socket
  51. SYSTEM_DROPINS += systemd-random-seed.service
  52. SYSTEM_DROPINS += tor.service tor@default.service
  53. SYSTEM_DROPINS += systemd-timesyncd.service
  54. SYSTEM_DROPINS_NETWORKING := NetworkManager.service NetworkManager-wait-online.service
  55. SYSTEM_DROPINS_NETWORKING += tinyproxy.service
  56. USER_DROPINS := pulseaudio.service pulseaudio.socket
  57. # Ubuntu Dropins
  58. ifeq ($(shell lsb_release -is), Ubuntu)
  59. # 'crond.service' is named 'cron.service in Debian
  60. SYSTEM_DROPINS := $(strip $(patsubst crond.service, cron.service, $(SYSTEM_DROPINS)))
  61. SYSTEM_DROPINS += anacron.service
  62. SYSTEM_DROPINS += anacron-resume.service
  63. endif
  64. # Debian Dropins
  65. ifeq ($(shell lsb_release -is), Debian)
  66. # 'crond.service' is named 'cron.service in Debian
  67. SYSTEM_DROPINS := $(strip $(patsubst crond.service, cron.service, $(SYSTEM_DROPINS)))
  68. # Wheezy System Dropins
  69. # Disable sysinit 'network-manager.service' since systemd 'NetworkManager.service' is already installed
  70. SYSTEM_DROPINS += $(strip $(if $(filter wheezy, $(shell lsb_release -cs)), network-manager.service,))
  71. # handled by qubes-iptables service now
  72. SYSTEM_DROPINS += netfilter-persistent.service
  73. SYSTEM_DROPINS += anacron.service
  74. SYSTEM_DROPINS += anacron-resume.service
  75. SYSTEM_DROPINS += exim4.service
  76. SYSTEM_DROPINS += avahi-daemon.service
  77. endif
  78. install-systemd-dropins:
  79. # Install system dropins
  80. @for dropin in $(SYSTEM_DROPINS); do \
  81. install -d $(DESTDIR)/$(SYSTEM_DROPIN_DIR)/$${dropin}.d ;\
  82. install -m 0644 vm-systemd/$${dropin}.d/*.conf $(DESTDIR)/$(SYSTEM_DROPIN_DIR)/$${dropin}.d/ ;\
  83. done
  84. # Install user dropins
  85. @for dropin in $(USER_DROPINS); do \
  86. install -d $(DESTDIR)/$(USER_DROPIN_DIR)/$${dropin}.d ;\
  87. install -m 0644 vm-systemd/user/$${dropin}.d/*.conf $(DESTDIR)/$(USER_DROPIN_DIR)/$${dropin}.d/ ;\
  88. done
  89. install-systemd-networking-dropins:
  90. # Install system dropins
  91. @for dropin in $(SYSTEM_DROPINS_NETWORKING); do \
  92. install -d $(DESTDIR)/$(SYSTEM_DROPIN_DIR)/$${dropin}.d ;\
  93. install -m 0644 vm-systemd/$${dropin}.d/*.conf $(DESTDIR)/$(SYSTEM_DROPIN_DIR)/$${dropin}.d/ ;\
  94. done
  95. install-init:
  96. install -d $(DESTDIR)$(LIBDIR)/qubes/init
  97. # FIXME: do a source code move vm-systemd/*.sh to init/
  98. # since those scripts are shared between sysvinit and systemd.
  99. install -m 0755 init/*.sh vm-systemd/*.sh $(DESTDIR)$(LIBDIR)/qubes/init/
  100. install -m 0644 init/functions $(DESTDIR)$(LIBDIR)/qubes/init/
  101. # Systemd service files
  102. SYSTEMD_ALL_SERVICES := $(wildcard vm-systemd/qubes-*.service)
  103. SYSTEMD_NETWORK_SERVICES := vm-systemd/qubes-firewall.service vm-systemd/qubes-iptables.service vm-systemd/qubes-updates-proxy.service
  104. SYSTEMD_CORE_SERVICES := $(filter-out $(SYSTEMD_NETWORK_SERVICES), $(SYSTEMD_ALL_SERVICES))
  105. install-systemd: install-init
  106. install -d $(DESTDIR)$(SYSLIBDIR)/systemd/system{,-preset} $(DESTDIR)$(LIBDIR)/qubes/init $(DESTDIR)$(SYSLIBDIR)/modules-load.d
  107. install -m 0644 $(SYSTEMD_CORE_SERVICES) $(DESTDIR)$(SYSLIBDIR)/systemd/system/
  108. install -m 0644 vm-systemd/qubes-*.timer $(DESTDIR)$(SYSLIBDIR)/systemd/system/
  109. install -m 0644 vm-systemd/75-qubes-vm.preset $(DESTDIR)$(SYSLIBDIR)/systemd/system-preset/
  110. install -m 0644 vm-systemd/qubes-core.conf $(DESTDIR)$(SYSLIBDIR)/modules-load.d/
  111. install-sysvinit: install-init
  112. install -d $(DESTDIR)/etc/init.d
  113. install vm-init.d/qubes-sysinit $(DESTDIR)/etc/init.d/
  114. install vm-init.d/qubes-core-early $(DESTDIR)/etc/init.d/
  115. install vm-init.d/qubes-core $(DESTDIR)/etc/init.d/
  116. install vm-init.d/qubes-core-netvm $(DESTDIR)/etc/init.d/
  117. install vm-init.d/qubes-firewall $(DESTDIR)/etc/init.d/
  118. install vm-init.d/qubes-qrexec-agent $(DESTDIR)/etc/init.d/
  119. install vm-init.d/qubes-updates-proxy $(DESTDIR)/etc/init.d/
  120. install vm-init.d/qubes-updates-proxy-forwarder $(DESTDIR)/etc/init.d/
  121. install -D vm-init.d/qubes-core.modules $(DESTDIR)/etc/sysconfig/modules/qubes-core.modules
  122. install network/qubes-iptables $(DESTDIR)/etc/init.d/
  123. install-rh: install-systemd install-systemd-dropins install-sysvinit
  124. install -D -m 0644 misc/qubes-r4.repo $(DESTDIR)/etc/yum.repos.d/qubes-r4.repo
  125. install -d $(DESTDIR)$(LIBDIR)/yum-plugins/
  126. install -m 0644 misc/yum-qubes-hooks.py* $(DESTDIR)$(LIBDIR)/yum-plugins/
  127. install -D -m 0644 misc/yum-qubes-hooks.conf $(DESTDIR)/etc/yum/pluginconf.d/yum-qubes-hooks.conf
  128. install -d -m 755 $(DESTDIR)/etc/pki/rpm-gpg
  129. install -m 644 misc/RPM-GPG-KEY-qubes* $(DESTDIR)/etc/pki/rpm-gpg/
  130. install -D -m 644 misc/session-stop-timeout.conf $(DESTDIR)$(LIBDIR)/systemd/system/user@.service.d/90-session-stop-timeout.conf
  131. install -d $(DESTDIR)/etc/yum.conf.d
  132. touch $(DESTDIR)/etc/yum.conf.d/qubes-proxy.conf
  133. install -D -m 0644 misc/qubes-trigger-sync-appmenus.action $(DESTDIR)/etc/yum/post-actions/qubes-trigger-sync-appmenus.action
  134. install -D -m 0644 misc/grub.qubes $(DESTDIR)/etc/default/grub.qubes
  135. install -D -m 0644 misc/serial.conf $(DESTDIR)/usr/share/qubes/serial.conf
  136. install -D misc/qubes-serial-login $(DESTDIR)/$(SBINDIR)/qubes-serial-login
  137. install -D -m 0644 misc/dracut-qubes.conf \
  138. $(DESTDIR)/usr/lib/dracut/dracut.conf.d/30-qubes.conf
  139. install -D -m 0644 misc/dnf-qubes-hooks.py \
  140. $(DESTDIR)$(PYTHON2_SITELIB)/dnf-plugins/qubes-hooks.py
  141. install -D -m 0644 misc/dnf-qubes-hooks.py \
  142. $(DESTDIR)$(PYTHON3_SITELIB)/dnf-plugins/qubes-hooks.py
  143. install -D -m 0644 misc/dnf-qubes-hooks.conf $(DESTDIR)/etc/dnf/plugins/qubes-hooks.conf
  144. install-doc:
  145. $(MAKE) -C doc install
  146. install-common: install-doc
  147. $(MAKE) -C autostart-dropins install
  148. install -m 0644 -D misc/fstab $(DESTDIR)/etc/fstab
  149. # force /usr/bin before /bin to have /usr/bin/python instead of /bin/python
  150. PATH="/usr/bin:$(PATH)" $(PYTHON) setup.py install $(PYTHON_PREFIX_ARG) -O1 --root $(DESTDIR)
  151. mkdir -p $(DESTDIR)$(SBINDIR)
  152. install -d -m 0750 $(DESTDIR)/etc/sudoers.d/
  153. install -D -m 0440 misc/qubes.sudoers $(DESTDIR)/etc/sudoers.d/qubes
  154. install -D -m 0440 misc/sudoers.d_qt_x11_no_mitshm $(DESTDIR)/etc/sudoers.d/qt_x11_no_mitshm
  155. install -D -m 0644 misc/20_tcp_timestamps.conf $(DESTDIR)/etc/sysctl.d/20_tcp_timestamps.conf
  156. install -d $(DESTDIR)/var/lib/qubes
  157. install -D misc/xenstore-watch $(DESTDIR)$(BINDIR)/xenstore-watch-qubes
  158. install -d $(DESTDIR)/etc/udev/rules.d
  159. install -m 0644 misc/udev-qubes-misc.rules $(DESTDIR)/etc/udev/rules.d/50-qubes-misc.rules
  160. install -d $(DESTDIR)$(LIBDIR)/qubes/
  161. install misc/qubes-trigger-sync-appmenus.sh $(DESTDIR)$(LIBDIR)/qubes/
  162. install -d -m 0750 $(DESTDIR)/etc/polkit-1/rules.d
  163. install -D -m 0644 misc/polkit-1-qubes-allow-all.pkla $(DESTDIR)/etc/polkit-1/localauthority/50-local.d/qubes-allow-all.pkla
  164. install -D -m 0644 misc/polkit-1-qubes-allow-all.rules $(DESTDIR)/etc/polkit-1/rules.d/00-qubes-allow-all.rules
  165. install -D -m 0644 misc/mime-globs $(DESTDIR)/usr/share/qubes/mime-override/globs
  166. install misc/qubes-download-dom0-updates.sh $(DESTDIR)$(LIBDIR)/qubes/
  167. install -d $(DESTDIR)/usr/share/glib-2.0/schemas/
  168. install -m 0644 \
  169. misc/20_org.gnome.settings-daemon.plugins.updates.qubes.gschema.override \
  170. misc/20_org.gnome.nautilus.qubes.gschema.override \
  171. misc/20_org.mate.NotificationDaemon.qubes.gschema.override \
  172. misc/20_org.gnome.desktop.wm.preferences.qubes.gschema.override \
  173. $(DESTDIR)/usr/share/glib-2.0/schemas/
  174. install -g user -m 2775 -d $(DESTDIR)/var/lib/qubes/dom0-updates
  175. install -D -m 0644 misc/qubes-master-key.asc $(DESTDIR)/usr/share/qubes/qubes-master-key.asc
  176. install misc/resize-rootfs $(DESTDIR)$(LIBDIR)/qubes/
  177. install misc/close-window $(DESTDIR)$(LIBDIR)/qubes/close-window
  178. install misc/upgrades-installed-check $(DESTDIR)$(LIBDIR)/qubes/upgrades-installed-check
  179. install misc/upgrades-status-notify $(DESTDIR)$(LIBDIR)/qubes/upgrades-status-notify
  180. install -m 0644 network/udev-qubes-network.rules $(DESTDIR)/etc/udev/rules.d/99-qubes-network.rules
  181. install -m 0755 network/update-proxy-configs $(DESTDIR)$(LIBDIR)/qubes/
  182. install -d $(DESTDIR)$(BINDIR)
  183. install -m 0755 misc/qubes-session-autostart $(DESTDIR)$(BINDIR)/qubes-session-autostart
  184. install -m 0755 misc/qvm-features-request $(DESTDIR)$(BINDIR)/qvm-features-request
  185. install -m 0755 qubes-rpc/qvm-sync-clock $(DESTDIR)$(BINDIR)/qvm-sync-clock
  186. install qubes-rpc/{qvm-open-in-dvm,qvm-open-in-vm,qvm-copy-to-vm,qvm-run-vm} $(DESTDIR)/usr/bin
  187. install qubes-rpc/qvm-copy $(DESTDIR)/usr/bin
  188. ln -s qvm-copy-to-vm $(DESTDIR)/usr/bin/qvm-move-to-vm
  189. ln -s qvm-copy $(DESTDIR)/usr/bin/qvm-move
  190. install qubes-rpc/qvm-copy-to-vm.kde $(DESTDIR)$(LIBDIR)/qubes
  191. install qubes-rpc/qvm-copy-to-vm.gnome $(DESTDIR)$(LIBDIR)/qubes
  192. install qubes-rpc/qvm-move-to-vm.kde $(DESTDIR)$(LIBDIR)/qubes
  193. install qubes-rpc/qvm-move-to-vm.gnome $(DESTDIR)$(LIBDIR)/qubes
  194. install qubes-rpc/qvm-actions.sh $(DESTDIR)$(LIBDIR)/qubes
  195. install -m 0644 misc/uca_qubes.xml $(DESTDIR)$(LIBDIR)/qubes
  196. mkdir -p $(DESTDIR)/etc/xdg/xfce4/xfconf/xfce-perchannel-xml
  197. install -m 0644 misc/thunar.xml $(DESTDIR)/etc/xdg/xfce4/xfconf/xfce-perchannel-xml
  198. install qubes-rpc/xdg-icon $(DESTDIR)$(LIBDIR)/qubes
  199. install qubes-rpc/{vm-file-editor,qfile-agent,qopen-in-vm} $(DESTDIR)$(LIBDIR)/qubes
  200. install qubes-rpc/qubes-open $(DESTDIR)$(BINDIR)
  201. install qubes-rpc/tar2qfile $(DESTDIR)$(LIBDIR)/qubes
  202. # Install qfile-unpacker as SUID - because it will fail to receive files from other vm
  203. install -m 4755 qubes-rpc/qfile-unpacker $(DESTDIR)$(LIBDIR)/qubes
  204. install qubes-rpc/qrun-in-vm $(DESTDIR)$(LIBDIR)/qubes
  205. install qubes-rpc/prepare-suspend $(DESTDIR)$(LIBDIR)/qubes
  206. install qubes-rpc/qubes-sync-clock $(DESTDIR)$(LIBDIR)/qubes
  207. install -m 0644 misc/qubes-suspend-module-blacklist $(DESTDIR)/etc/qubes-suspend-module-blacklist
  208. install -d $(DESTDIR)/$(KDESERVICEDIR)
  209. install -m 0644 qubes-rpc/{qvm-copy.desktop,qvm-move.desktop,qvm-dvm.desktop} $(DESTDIR)/$(KDESERVICEDIR)
  210. install -d $(DESTDIR)/etc/qubes-rpc
  211. install -m 0755 qubes-rpc/{qubes.Filecopy,qubes.OpenInVM,qubes.VMShell} $(DESTDIR)/etc/qubes-rpc
  212. install -m 0755 qubes-rpc/qubes.VMRootShell $(DESTDIR)/etc/qubes-rpc
  213. install -m 0755 qubes-rpc/qubes.OpenURL $(DESTDIR)/etc/qubes-rpc
  214. install -m 0755 qubes-rpc/{qubes.SuspendPre,qubes.SuspendPost,qubes.GetAppmenus} $(DESTDIR)/etc/qubes-rpc
  215. install -m 0755 qubes-rpc/qubes.SuspendPreAll $(DESTDIR)/etc/qubes-rpc
  216. install -m 0755 qubes-rpc/qubes.SuspendPostAll $(DESTDIR)/etc/qubes-rpc
  217. install -m 0755 qubes-rpc/qubes.WaitForSession $(DESTDIR)/etc/qubes-rpc
  218. install -m 0755 qubes-rpc/qubes.DetachPciDevice $(DESTDIR)/etc/qubes-rpc
  219. install -m 0755 qubes-rpc/qubes.{Backup,Restore} $(DESTDIR)/etc/qubes-rpc
  220. install -m 0755 qubes-rpc/qubes.Select{File,Directory} $(DESTDIR)/etc/qubes-rpc
  221. install -m 0755 qubes-rpc/qubes.GetImageRGBA $(DESTDIR)/etc/qubes-rpc
  222. install -m 0755 qubes-rpc/qubes.SetDateTime $(DESTDIR)/etc/qubes-rpc
  223. install -m 0755 qubes-rpc/qubes.InstallUpdatesGUI $(DESTDIR)/etc/qubes-rpc
  224. install -m 0755 qubes-rpc/qubes.ResizeDisk $(DESTDIR)/etc/qubes-rpc
  225. install -m 0755 qubes-rpc/qubes.StartApp $(DESTDIR)/etc/qubes-rpc
  226. install -m 0755 qubes-rpc/qubes.PostInstall $(DESTDIR)/etc/qubes-rpc
  227. install -m 0755 qubes-rpc/qubes.GetDate $(DESTDIR)/etc/qubes-rpc
  228. install -d $(DESTDIR)/etc/qubes/rpc-config
  229. install -m 0644 qubes-rpc/rpc-config.README $(DESTDIR)/etc/qubes/rpc-config/README
  230. for config in qubes-rpc/*.config; do \
  231. install -m 0644 $$config $(DESTDIR)/etc/qubes/rpc-config/`basename $$config .config`; \
  232. done
  233. install -d $(DESTDIR)/etc/qubes/suspend-pre.d
  234. install -m 0644 qubes-rpc/suspend-pre.README $(DESTDIR)/etc/qubes/suspend-pre.d/README
  235. install -d $(DESTDIR)/etc/qubes/suspend-post.d
  236. install -m 0644 qubes-rpc/suspend-post.README $(DESTDIR)/etc/qubes/suspend-post.d/README
  237. ln -s $(BINDIR)/qvm-sync-clock $(DESTDIR)/etc/qubes/suspend-post.d/qvm-sync-clock.sh
  238. install -d $(DESTDIR)/etc/qubes/post-install.d
  239. install -m 0644 post-install.d/README $(DESTDIR)/etc/qubes/post-install.d/
  240. install -m 0755 post-install.d/*.sh $(DESTDIR)/etc/qubes/post-install.d/
  241. install -d $(DESTDIR)/usr/share/nautilus-python/extensions
  242. install -m 0644 qubes-rpc/*_nautilus.py $(DESTDIR)/usr/share/nautilus-python/extensions
  243. install -D -m 0755 misc/qubes-desktop-run $(DESTDIR)$(BINDIR)/qubes-desktop-run
  244. mkdir -p $(DESTDIR)/$(PYTHON_SITEARCH)/qubes/
  245. ifeq ($(shell lsb_release -is), Debian)
  246. install -m 0644 misc/qubesxdg.py $(DESTDIR)/$(PYTHON2_SITELIB)/
  247. else ifeq ($(shell lsb_release -is), Ubuntu)
  248. install -m 0644 misc/qubesxdg.py $(DESTDIR)/$(PYTHON2_SITELIB)/
  249. else
  250. install -m 0644 misc/py2/qubesxdg.py* $(DESTDIR)/$(PYTHON2_SITELIB)/
  251. endif
  252. install -d $(DESTDIR)/mnt/removable
  253. install -D -m 0644 misc/xorg-preload-apps.conf $(DESTDIR)/etc/X11/xorg-preload-apps.conf
  254. install -d $(DESTDIR)/usr/lib/qubes-bind-dirs.d
  255. install -D -m 0644 misc/30_cron.conf $(DESTDIR)/usr/lib/qubes-bind-dirs.d/30_cron.conf
  256. install -d $(DESTDIR)/var/run/qubes
  257. install -d $(DESTDIR)/rw
  258. # Networking install target includes:
  259. # * basic network functionality (setting IP address, DNS, default gateway)
  260. # * package update proxy client
  261. install-networking:
  262. install -d $(DESTDIR)$(SYSLIBDIR)/systemd/system
  263. install -m 0644 vm-systemd/qubes-*.socket $(DESTDIR)$(SYSLIBDIR)/systemd/system/
  264. install -d $(DESTDIR)$(LIBDIR)/qubes/
  265. install network/setup-ip $(DESTDIR)$(LIBDIR)/qubes/
  266. # Netvm install target includes:
  267. # * qubes-firewall service (FirewallVM)
  268. # * DNS redirection setup
  269. # * proxy service used by TemplateVMs to download updates
  270. install-netvm:
  271. install -D -m 0644 $(SYSTEMD_NETWORK_SERVICES) $(DESTDIR)$(SYSLIBDIR)/systemd/system/
  272. install -D -m 0755 network/qubes-iptables $(DESTDIR)$(LIBDIR)/qubes/init/qubes-iptables
  273. install -D -m 0644 vm-systemd/qubes-core-agent-linux.tmpfiles \
  274. $(DESTDIR)/usr/lib/tmpfiles.d/qubes-core-agent-linux.conf
  275. mkdir -p $(DESTDIR)$(SBINDIR)
  276. ifneq ($(SBINDIR),/usr/bin)
  277. mv $(DESTDIR)/usr/bin/qubes-firewall $(DESTDIR)$(SBINDIR)/qubes-firewall
  278. endif
  279. install -D network/qubes-setup-dnat-to-ns $(DESTDIR)$(LIBDIR)/qubes/qubes-setup-dnat-to-ns
  280. install -d $(DESTDIR)/etc/dhclient.d
  281. ln -s /usr/lib/qubes/qubes-setup-dnat-to-ns $(DESTDIR)/etc/dhclient.d/qubes-setup-dnat-to-ns.sh
  282. install -D network/vif-route-qubes $(DESTDIR)/etc/xen/scripts/vif-route-qubes
  283. install -D network/vif-qubes-nat.sh $(DESTDIR)/etc/xen/scripts/vif-qubes-nat.sh
  284. install -m 0644 -D network/tinyproxy-updates.conf $(DESTDIR)/etc/tinyproxy/tinyproxy-updates.conf
  285. install -m 0644 -D network/updates-blacklist $(DESTDIR)/etc/tinyproxy/updates-blacklist
  286. install -m 0755 -D network/iptables-updates-proxy $(DESTDIR)$(LIBDIR)/qubes/iptables-updates-proxy
  287. install -m 0400 -D network/iptables $(DESTDIR)/etc/qubes/iptables.rules
  288. install -m 0400 -D network/ip6tables $(DESTDIR)/etc/qubes/ip6tables.rules
  289. install -m 0400 -D network/ip6tables-enabled $(DESTDIR)/etc/qubes/ip6tables-enabled.rules
  290. install -m 0755 -D qubes-rpc/qubes.UpdatesProxy $(DESTDIR)/etc/qubes-rpc/qubes.UpdatesProxy
  291. # networkmanager install target allow integration of NetworkManager for Qubes VM:
  292. # * make connections config persistent
  293. # * adjust DNS redirections when needed
  294. # * show/hide NetworkManager applet icon
  295. install-networkmanager:
  296. install -d $(DESTDIR)$(LIBDIR)/qubes/
  297. install network/qubes-fix-nm-conf.sh $(DESTDIR)$(LIBDIR)/qubes/
  298. install network/network-manager-prepare-conf-dir $(DESTDIR)$(LIBDIR)/qubes/
  299. install -d $(DESTDIR)/etc/NetworkManager/dispatcher.d/
  300. install network/{qubes-nmhook,30-qubes-external-ip} $(DESTDIR)/etc/NetworkManager/dispatcher.d/
  301. install -d $(DESTDIR)/usr/lib/NetworkManager/conf.d
  302. install -m 0644 network/nm-30-qubes.conf $(DESTDIR)/usr/lib/NetworkManager/conf.d/30-qubes.conf
  303. install -d $(DESTDIR)/etc/xdg/autostart
  304. install -m 0755 network/show-hide-nm-applet.sh $(DESTDIR)$(LIBDIR)/qubes/
  305. install -m 0644 network/show-hide-nm-applet.desktop $(DESTDIR)/etc/xdg/autostart/00-qubes-show-hide-nm-applet.desktop
  306. install-deb: install-common install-systemd install-systemd-dropins install-systemd-networking-dropins install-networking install-networkmanager install-netvm
  307. mkdir -p $(DESTDIR)/etc/apt/sources.list.d
  308. sed -e "s/@DIST@/`lsb_release -cs`/" misc/qubes-r4.list.in > $(DESTDIR)/etc/apt/sources.list.d/qubes-r4.list
  309. install -D -m 644 misc/qubes-archive-keyring.gpg $(DESTDIR)/etc/apt/trusted.gpg.d/qubes-archive-keyring.gpg
  310. install -D -m 644 network/00notify-hook $(DESTDIR)/etc/apt/apt.conf.d/00notify-hook
  311. install -d $(DESTDIR)/etc/sysctl.d
  312. install -m 644 network/80-qubes.conf $(DESTDIR)/etc/sysctl.d/
  313. install -D -m 644 misc/profile.d_qt_x11_no_mitshm.sh $(DESTDIR)/etc/profile.d/qt_x11_no_mitshm.sh
  314. install -D -m 440 misc/sudoers.d_umask $(DESTDIR)/etc/sudoers.d/umask
  315. install -d $(DESTDIR)/etc/pam.d
  316. install -m 0644 misc/pam.d_su.qubes $(DESTDIR)/etc/pam.d/su.qubes
  317. install -d $(DESTDIR)/etc/needrestart/conf.d
  318. install -D -m 0644 misc/50_qubes.conf $(DESTDIR)/etc/needrestart/conf.d/50_qubes.conf
  319. install -D -m 0644 misc/grub.qubes $(DESTDIR)/etc/default/grub.d/30-qubes.cfg
  320. install -D -m 0644 misc/apt-conf-70no-unattended $(DESTDIR)/etc/apt/apt.conf.d/70no-unattended
  321. mkdir -p $(DESTDIR)/etc/systemd/system/
  322. install -m 0644 vm-systemd/haveged.service $(DESTDIR)/etc/systemd/system/
  323. install-corevm: install-rh install-common install-systemd install-sysvinit install-systemd-dropins install-networking
  324. install-netvm: install-systemd-networking-dropins install-networkmanager
  325. install-vm: install-corevm install-netvm