Split items in misc
directory by topic
This commit is contained in:
parent
356c50035d
commit
4de377bc3b
106
Makefile
106
Makefile
@ -2,17 +2,12 @@ RPMS_DIR=rpm/
|
||||
|
||||
VERSION := $(shell cat version)
|
||||
|
||||
DIST ?= fc18
|
||||
APPLICATIONSDIR ?= /usr/share/applications
|
||||
SBINDIR ?= /usr/sbin
|
||||
BINDIR ?= /usr/bin
|
||||
LIBDIR ?= /usr/lib
|
||||
SYSLIBDIR ?= /lib
|
||||
|
||||
PYTHON ?= /usr/bin/python3
|
||||
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())')
|
||||
|
||||
# This makefile uses some bash-isms, make uses /bin/sh by default.
|
||||
SHELL = /bin/bash
|
||||
@ -52,8 +47,8 @@ clean:
|
||||
rm -f .coverage
|
||||
|
||||
all:
|
||||
make -C misc
|
||||
make -C qubes-rpc
|
||||
$(MAKE) -C misc VERSION=$(VERSION)
|
||||
$(MAKE) -C qubes-rpc
|
||||
|
||||
# Dropin Directory
|
||||
SYSTEM_DROPIN_DIR ?= "lib/systemd/system"
|
||||
@ -156,30 +151,6 @@ install-sysvinit: install-init
|
||||
install network/qubes-iptables $(DESTDIR)/etc/init.d/
|
||||
|
||||
install-rh: install-systemd install-systemd-dropins install-sysvinit
|
||||
install -D -m 0644 misc/qubes-r4.repo.in $(DESTDIR)/etc/yum.repos.d/qubes-r4.repo
|
||||
DIST='$(DIST)'; sed -i "s/@DIST@/$${DIST%%[0-9]*}/g" $(DESTDIR)/etc/yum.repos.d/qubes-r4.repo
|
||||
install -d $(DESTDIR)$(LIBDIR)/yum-plugins/
|
||||
install -d -m 755 $(DESTDIR)/etc/pki/rpm-gpg
|
||||
install -m 644 misc/RPM-GPG-KEY-qubes* $(DESTDIR)/etc/pki/rpm-gpg/
|
||||
install -D -m 644 misc/session-stop-timeout.conf $(DESTDIR)$(LIBDIR)/systemd/system/user@.service.d/90-session-stop-timeout.conf
|
||||
|
||||
install -d $(DESTDIR)/etc/yum.conf.d
|
||||
touch $(DESTDIR)/etc/yum.conf.d/qubes-proxy.conf
|
||||
|
||||
install -D -m 0644 misc/grub.qubes $(DESTDIR)/etc/default/grub.qubes
|
||||
install -D -m 0644 misc/serial.conf $(DESTDIR)/usr/share/qubes/serial.conf
|
||||
install -D misc/qubes-serial-login $(DESTDIR)/$(SBINDIR)/qubes-serial-login
|
||||
install -D -m 0644 misc/dracut-qubes.conf \
|
||||
$(DESTDIR)/usr/lib/dracut/dracut.conf.d/30-qubes.conf
|
||||
ifeq ($(shell rpm --eval %{centos_ver}),7)
|
||||
install -D -m 0644 misc/yum-qubes-hooks.py $(DESTDIR)$(LIBDIR)/yum-plugins/
|
||||
install -D -m 0644 misc/yum-qubes-hooks.conf $(DESTDIR)/etc/yum/pluginconf.d/yum-qubes-hooks.conf
|
||||
endif
|
||||
install -D -m 0644 misc/dnf-qubes-hooks.py \
|
||||
$(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
|
||||
install -D -m 0644 misc/dnf-qubes-hooks.conf $(DESTDIR)/etc/dnf/plugins/qubes-hooks.conf
|
||||
|
||||
install-doc:
|
||||
$(MAKE) -C doc install
|
||||
@ -187,71 +158,11 @@ install-doc:
|
||||
install-common: install-doc
|
||||
$(MAKE) -C autostart-dropins install
|
||||
$(MAKE) -C applications-dropins install
|
||||
install -m 0644 -D misc/fstab $(DESTDIR)/etc/fstab
|
||||
|
||||
# force /usr/bin before /bin to have /usr/bin/python instead of /bin/python
|
||||
PATH="/usr/bin:$(PATH)" $(PYTHON) setup.py install $(PYTHON_PREFIX_ARG) -O1 --root $(DESTDIR)
|
||||
mkdir -p $(DESTDIR)$(SBINDIR)
|
||||
|
||||
install -d -m 0750 $(DESTDIR)/etc/sudoers.d/
|
||||
install -D -m 0440 misc/qubes.sudoers $(DESTDIR)/etc/sudoers.d/qubes
|
||||
install -D -m 0440 misc/sudoers.d_qt_x11_no_mitshm $(DESTDIR)/etc/sudoers.d/qt_x11_no_mitshm
|
||||
install -D -m 0644 misc/20_tcp_timestamps.conf $(DESTDIR)/etc/sysctl.d/20_tcp_timestamps.conf
|
||||
|
||||
install -d $(DESTDIR)/var/lib/qubes
|
||||
|
||||
install -d $(DESTDIR)/etc/udev/rules.d
|
||||
install -m 0644 misc/udev-qubes-misc.rules $(DESTDIR)/etc/udev/rules.d/50-qubes-misc.rules
|
||||
install -d $(DESTDIR)$(LIBDIR)/qubes/
|
||||
install misc/qubes-trigger-sync-appmenus.sh $(DESTDIR)$(LIBDIR)/qubes/
|
||||
install -d -m 0750 $(DESTDIR)/etc/polkit-1/rules.d
|
||||
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
|
||||
install -D -m 0644 misc/mime-globs $(DESTDIR)/usr/share/qubes/mime-override/globs
|
||||
install misc/qubes-download-dom0-updates.sh $(DESTDIR)$(LIBDIR)/qubes/
|
||||
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 \
|
||||
misc/20_org.gnome.desktop.wm.preferences.qubes.gschema.override \
|
||||
$(DESTDIR)/usr/share/glib-2.0/schemas/
|
||||
install -m 2775 -d $(DESTDIR)/var/lib/qubes/dom0-updates
|
||||
install -D -m 0644 misc/qubes-master-key.asc $(DESTDIR)/usr/share/qubes/qubes-master-key.asc
|
||||
install misc/resize-rootfs $(DESTDIR)$(LIBDIR)/qubes/
|
||||
|
||||
install misc/upgrades-installed-check $(DESTDIR)$(LIBDIR)/qubes/upgrades-installed-check
|
||||
install misc/upgrades-status-notify $(DESTDIR)$(LIBDIR)/qubes/upgrades-status-notify
|
||||
|
||||
install -m 0644 network/udev-qubes-network.rules $(DESTDIR)/etc/udev/rules.d/99-qubes-network.rules
|
||||
install -m 0755 network/update-proxy-configs $(DESTDIR)$(LIBDIR)/qubes/
|
||||
|
||||
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
|
||||
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 misc/qubes-run-gnome-terminal $(DESTDIR)/$(BINDIR)
|
||||
|
||||
install -D -m 0644 misc/dconf-db-local-dpi $(DESTDIR)/etc/dconf/db/local.d/dpi
|
||||
|
||||
install -D -m 0755 misc/qubes-desktop-run $(DESTDIR)$(BINDIR)/qubes-desktop-run
|
||||
|
||||
install -d $(DESTDIR)/mnt/removable
|
||||
|
||||
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
|
||||
|
||||
install -D -m 0644 misc/marker-vm $(DESTDIR)/usr/share/qubes/marker-vm
|
||||
cut -f 1,2 -d . version >> $(DESTDIR)/usr/share/qubes/marker-vm
|
||||
|
||||
install -m 0755 misc/tinyproxy-wrapper $(DESTDIR)/usr/lib/qubes/tinyproxy-wrapper
|
||||
|
||||
install -m 0755 misc/qvm-console $(DESTDIR)$(BINDIR)/qvm-console
|
||||
install -m 0755 misc/qvm-connect-tcp $(DESTDIR)$(BINDIR)/qvm-connect-tcp
|
||||
|
||||
install -d $(DESTDIR)/var/run/qubes
|
||||
install -d $(DESTDIR)/rw
|
||||
|
||||
# Networking install target includes:
|
||||
# * basic network functionality (setting IP address, DNS, default gateway)
|
||||
@ -260,9 +171,6 @@ 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
|
||||
@ -318,20 +226,10 @@ install-networkmanager:
|
||||
install -m 0644 network/show-hide-nm-applet.desktop $(DESTDIR)/etc/xdg/autostart/00-qubes-show-hide-nm-applet.desktop
|
||||
|
||||
install-deb: install-common install-systemd install-systemd-dropins install-systemd-networking-dropins install-networking install-networkmanager install-netvm
|
||||
mkdir -p $(DESTDIR)/etc/apt/sources.list.d
|
||||
sed -e "s/@DIST@/`lsb_release -cs`/" misc/qubes-r4.list.in > $(DESTDIR)/etc/apt/sources.list.d/qubes-r4.list
|
||||
install -D -m 644 misc/qubes-archive-keyring.gpg $(DESTDIR)/etc/apt/trusted.gpg.d/qubes-archive-keyring.gpg
|
||||
install -D -m 644 network/00notify-hook $(DESTDIR)/etc/apt/apt.conf.d/00notify-hook
|
||||
install -d $(DESTDIR)/etc/sysctl.d
|
||||
install -m 644 network/80-qubes.conf $(DESTDIR)/etc/sysctl.d/
|
||||
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
|
||||
install -d $(DESTDIR)/etc/pam.d
|
||||
install -m 0644 misc/pam.d_su.qubes $(DESTDIR)/etc/pam.d/su.qubes
|
||||
install -d $(DESTDIR)/etc/needrestart/conf.d
|
||||
install -D -m 0644 misc/50_qubes.conf $(DESTDIR)/etc/needrestart/conf.d/50_qubes.conf
|
||||
install -D -m 0644 misc/grub.qubes $(DESTDIR)/etc/default/grub.d/30-qubes.cfg
|
||||
install -D -m 0644 misc/apt-conf-70no-unattended $(DESTDIR)/etc/apt/apt.conf.d/70no-unattended
|
||||
|
||||
mkdir -p $(DESTDIR)/etc/systemd/system/
|
||||
install -m 0644 vm-systemd/haveged.service $(DESTDIR)/etc/systemd/system/
|
||||
|
11
app-defaults/Makefile
Normal file
11
app-defaults/Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
GLIBSCHEMAS ?= /usr/share/glib-2.0/schemas
|
||||
|
||||
.PHONY: install
|
||||
|
||||
install:
|
||||
install -d $(DESTDIR)$(GLIBSCHEMAS)
|
||||
install -t $(DESTDIR)$(GLIBSCHEMAS) -m 0644 \
|
||||
20_org.gnome.desktop.wm.preferences.qubes.gschema.override \
|
||||
20_org.gnome.nautilus.qubes.gschema.override \
|
||||
20_org.gnome.settings-daemon.plugins.updates.qubes.gschema.override \
|
||||
20_org.mate.NotificationDaemon.qubes.gschema.override
|
19
app-menu/Makefile
Normal file
19
app-menu/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
APPLICATIONSDIR ?= /usr/share/applications
|
||||
BINDIR ?= /usr/bin
|
||||
LIBDIR ?= /usr/lib
|
||||
QUBESLIBDIR = $(LIBDIR)/qubes
|
||||
|
||||
.PHONY: install
|
||||
|
||||
install:
|
||||
install -d $(DESTDIR)$(QUBESLIBDIR)
|
||||
install -t $(DESTDIR)$(QUBESLIBDIR) \
|
||||
qubes-trigger-sync-appmenus.sh
|
||||
install -d $(DESTDIR)$(BINDIR)
|
||||
install -t $(DESTDIR)$(BINDIR) \
|
||||
qubes-desktop-run \
|
||||
qubes-run-gnome-terminal \
|
||||
qubes-run-terminal \
|
||||
qubes-session-autostart
|
||||
install -d $(DESTDIR)/$(APPLICATIONSDIR)
|
||||
install -t $(DESTDIR)/$(APPLICATIONSDIR) -m 0644 qubes-run-terminal.desktop
|
@ -355,7 +355,7 @@ post_install() {
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ "$(basename "$f")" == "50-qubes-misc.rules" ] ; then
|
||||
if [ "$(basename "$f")" == "50-qubes-mem-hotplug.rules" ] ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
|
10
boot/Makefile
Normal file
10
boot/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
LIBDIR ?= /usr/lib
|
||||
SYSCONFDIR ?= /etc
|
||||
GRUBCONFDIR ?= $(SYSCONFDIR)/grub.d
|
||||
DRACUTCONFDIR ?= $(LIBDIR)/dracut/dracut.conf.d
|
||||
|
||||
.PHONY: install
|
||||
|
||||
install:
|
||||
install -D -m 0644 grub.qubes $(DESTDIR)$(GRUBCONFDIR)/30_qubes
|
||||
install -D -m 0644 dracut-qubes.conf $(DESTDIR)$(DRACUTCONFDIR)/30-qubes.conf
|
12
boot/redhat/Makefile
Normal file
12
boot/redhat/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
LIBDIR ?= /usr/lib
|
||||
SBINDIR ?= /usr/sbin
|
||||
SYSCONFDIR ?= /etc
|
||||
QUBESDATADIR = /usr/share/qubes
|
||||
|
||||
.PHONY: install
|
||||
|
||||
install:
|
||||
install -D -m 0644 session-stop-timeout.conf \
|
||||
$(DESTDIR)$(LIBDIR)/systemd/system/user@.service.d/90-session-stop-timeout.conf
|
||||
install -D -m 0644 serial.conf $(DESTDIR)$(QUBESDATADIR)/serial.conf
|
||||
install -D qubes-serial-login $(DESTDIR)$(SBINDIR)/qubes-serial-login
|
2
debian/qubes-core-agent.install
vendored
2
debian/qubes-core-agent.install
vendored
@ -55,7 +55,7 @@ etc/sudoers.d/umask
|
||||
etc/sysctl.d/20_tcp_timestamps.conf
|
||||
etc/sysctl.d/80-qubes.conf
|
||||
etc/systemd/system/haveged.service
|
||||
etc/udev/rules.d/50-qubes-misc.rules
|
||||
etc/udev/rules.d/50-qubes-mem-hotplug.rules
|
||||
lib/modules-load.d/qubes-core.conf
|
||||
lib/systemd/system-preset/75-qubes-vm.preset
|
||||
lib/systemd/system/boot.automount.d/30_qubes.conf
|
||||
|
11
debian/rules
vendored
11
debian/rules
vendored
@ -16,10 +16,21 @@ override_dh_auto_build:
|
||||
|
||||
override_dh_auto_install:
|
||||
make install-deb
|
||||
make -C app-defaults install
|
||||
make -C app-menu install
|
||||
make -C filesystem install
|
||||
make -C misc install
|
||||
make -C network install
|
||||
make -C package-managers install
|
||||
make -C package-managers install-apt
|
||||
make -C passwordless-root install
|
||||
make -C passwordless-root/debian install
|
||||
make -C sys-defaults install
|
||||
make -C qubes-rpc install
|
||||
make -C qubes-rpc/kde install
|
||||
make -C qubes-rpc/nautilus install
|
||||
make -C qubes-rpc/thunar install
|
||||
install -D -m 0644 boot/grub.qubes $(DESTDIR)/etc/default/grub.d/30-qubes.cfg
|
||||
|
||||
override_dh_fixperms:
|
||||
dh_fixperms -a -Xqfile-unpacker
|
||||
|
15
filesystem/Makefile
Normal file
15
filesystem/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
LIBDIR ?= /usr/lib
|
||||
STATEDIR ?= /var/lib
|
||||
SYSCONFDIR ?= /etc
|
||||
QUBESBINDSDIR = $(LIBDIR)/qubes-bind-dirs.d
|
||||
QUBESSTATEDIR = $(STATEDIR)/qubes
|
||||
|
||||
.PHONY: install
|
||||
|
||||
install:
|
||||
install -D -m 0644 fstab $(DESTDIR)$(SYSCONFDIR)/fstab
|
||||
install -d $(DESTDIR)$(QUBESBINDSDIR)
|
||||
install -t $(DESTDIR)$(QUBESBINDSDIR) -m 0644 30_cron.conf
|
||||
install -d $(DESTDIR)$(QUBESSTATEDIR)
|
||||
install -d $(DESTDIR)/mnt/removable
|
||||
install -d $(DESTDIR)/rw
|
2
misc/.gitignore
vendored
2
misc/.gitignore
vendored
@ -1 +1 @@
|
||||
meminfo-writer
|
||||
/marker-vm
|
||||
|
@ -1,19 +1,25 @@
|
||||
all: python
|
||||
python: python2 python3
|
||||
python2:
|
||||
rm -rf py2
|
||||
mkdir -p py2
|
||||
cp *.py py2/
|
||||
python2 -m compileall py2
|
||||
python2 -O -m compileall py2
|
||||
BINDIR ?= /usr/bin
|
||||
SYSCONFDIR ?= /etc
|
||||
UDEVRULESDIR = $(SYSCONFDIR)/udev/rules.d
|
||||
QUBESDATADIR = /usr/share/qubes
|
||||
|
||||
# Only some scripts does support python3 for now
|
||||
python3:
|
||||
rm -rf py3
|
||||
mkdir -p py3
|
||||
cp dnf-qubes-hooks.py py3/
|
||||
python3 -m compileall py3
|
||||
python3 -O -m compileall py3
|
||||
.PHONY: all clean install
|
||||
|
||||
all: marker-vm
|
||||
|
||||
clean:
|
||||
rm -f *~ *.pyc *.pyo
|
||||
-$(RM) marker-vm
|
||||
|
||||
install:
|
||||
install -d $(DESTDIR)$(UDEVRULESDIR)
|
||||
install -t $(DESTDIR)$(UDEVRULESDIR) -m 0644 50-qubes-mem-hotplug.rules
|
||||
install -d $(DESTDIR)$(QUBESDATADIR)
|
||||
install -D -t $(DESTDIR)$(QUBESDATADIR) -m 0644 \
|
||||
marker-vm \
|
||||
qubes-master-key.asc
|
||||
install -D -m 0644 mime-globs $(DESTDIR)$(QUBESDATADIR)/mime-override/globs
|
||||
install -d $(DESTDIR)$(BINDIR)
|
||||
install -t $(DESTDIR)$(BINDIR) qvm-features-request
|
||||
|
||||
marker-vm: marker-vm.in
|
||||
printf "$(VERSION)" | cut -f 1,2 -d . | cat $< - > marker-vm
|
||||
|
18
network/Makefile
Normal file
18
network/Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
BINDIR ?= /usr/bin
|
||||
LIBDIR ?= /usr/lib
|
||||
SYSCONFDIR ?= /etc
|
||||
QUBESLIBDIR = $(LIBDIR)/qubes
|
||||
UDEVRULESDIR = $(SYSCONFDIR)/udev/rules.d
|
||||
|
||||
.PHONY: install
|
||||
|
||||
install:
|
||||
install -D -m 0644 udev-qubes-network.rules $(DESTDIR)$(UDEVRULESDIR)/99-qubes-network.rules
|
||||
install -d $(DESTDIR)$(QUBESLIBDIR)
|
||||
install -t $(DESTDIR)$(QUBESLIBDIR) \
|
||||
setup-ip \
|
||||
tinyproxy-wrapper \
|
||||
update-proxy-configs
|
||||
install -d $(DESTDIR)$(BINDIR)
|
||||
install -t $(DESTDIR)$(BINDIR) \
|
||||
qvm-connect-tcp
|
55
package-managers/Makefile
Normal file
55
package-managers/Makefile
Normal file
@ -0,0 +1,55 @@
|
||||
LIBDIR ?= /usr/lib
|
||||
STATEDIR ?= /var/lib
|
||||
SYSCONFDIR ?= /etc
|
||||
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())')
|
||||
APTCONFDIR = $(SYSCONFDIR)/apt
|
||||
YUMCONFDIR = $(SYSCONFDIR)/yum.conf.d
|
||||
QUBESLIBDIR = $(LIBDIR)/qubes
|
||||
QUBESSTATEDIR = $(STATEDIR)/qubes
|
||||
|
||||
DIST ?= fc18
|
||||
|
||||
.PHONY: install install-apt install-dnf install-rpm install-yum
|
||||
|
||||
install:
|
||||
install -d $(DESTDIR)$(QUBESLIBDIR)
|
||||
install -t $(DESTDIR)$(QUBESLIBDIR) \
|
||||
qubes-download-dom0-updates.sh \
|
||||
upgrades-installed-check \
|
||||
upgrades-status-notify
|
||||
install -d -m 2775 $(DESTDIR)$(QUBESSTATEDIR)/dom0-updates
|
||||
|
||||
install-apt:
|
||||
install -d $(DESTDIR)$(APTCONFDIR)/sources.list.d
|
||||
sed -e "s/@DIST@/`lsb_release -cs`/" apt-qubes-r4.list.in \
|
||||
> $(DESTDIR)$(APTCONFDIR)/sources.list.d/qubes-r4.list
|
||||
install -D -m 0644 apt-qubes-archive-keyring.gpg \
|
||||
$(DESTDIR)$(APTCONFDIR)/trusted.gpg.d/qubes-archive-keyring.gpg
|
||||
install -D -m 0644 apt-conf-00notify-hook \
|
||||
$(DESTDIR)$(APTCONFDIR)/apt.conf.d/00notify-hook
|
||||
install -D -m 0644 apt-conf-70no-unattended \
|
||||
$(DESTDIR)$(APTCONFDIR)/apt.conf.d/70no-unattended
|
||||
|
||||
install-dnf: install-rpm
|
||||
install -D -m 0644 dnf-qubes-hooks.py \
|
||||
$(DESTDIR)$(PYTHON2_SITELIB)/dnf-plugins/qubes-hooks.py
|
||||
install -D -m 0644 dnf-qubes-hooks.py \
|
||||
$(DESTDIR)$(PYTHON3_SITELIB)/dnf-plugins/qubes-hooks.py
|
||||
install -D -m 0644 dnf-qubes-hooks.conf $(DESTDIR)$(SYSCONFDIR)/dnf/plugins/qubes-hooks.conf
|
||||
|
||||
install-yum: install-rpm
|
||||
install -d $(DESTDIR)$(LIBDIR)/yum-plugins
|
||||
install -D -m 0644 yum-qubes-hooks.py \
|
||||
$(DESTDIR)$(LIBDIR)/yum-plugins/yum-qubes-hooks.py
|
||||
install -D -m 0644 yum-qubes-hooks.conf \
|
||||
$(DESTDIR)$(SYSCONFDIR)/yum/pluginconf.d/yum-qubes-hooks.conf
|
||||
|
||||
install-rpm:
|
||||
install -d $(DESTDIR)$(SYSCONFDIR)/yum.repos.d
|
||||
DIST='$(DIST)'; sed -e "s/@DIST@/$${DIST%%[0-9]*}/g" yum-qubes-r4.repo.in \
|
||||
> $(DESTDIR)$(SYSCONFDIR)/yum.repos.d/qubes-r4.repo
|
||||
install -d $(DESTDIR)$(SYSCONFDIR)/pki/rpm-gpg
|
||||
install -t $(DESTDIR)$(SYSCONFDIR)/pki/rpm-gpg -m 0644 RPM-GPG-KEY-qubes*
|
||||
install -d $(DESTDIR)$(YUMCONFDIR)
|
||||
> $(DESTDIR)$(YUMCONFDIR)/qubes-proxy.conf
|
12
passwordless-root/Makefile
Normal file
12
passwordless-root/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
SYSCONFDIR ?= /etc
|
||||
SUDOERSDIR = $(SYSCONFDIR)/sudoers.d
|
||||
POLKIT1DIR = $(SYSCONFDIR)/polkit-1
|
||||
|
||||
.PHONY: install
|
||||
|
||||
install:
|
||||
install -d -m 0750 $(DESTDIR)$(SUDOERSDIR)
|
||||
install -D -m 0440 qubes.sudoers $(DESTDIR)$(SUDOERSDIR)/qubes
|
||||
install -D -m 0644 polkit-1-qubes-allow-all.pkla $(DESTDIR)$(POLKIT1DIR)/localauthority/50-local.d/qubes-allow-all.pkla
|
||||
install -d -m 0750 $(DESTDIR)$(POLKIT1DIR)/rules.d
|
||||
install -D -m 0644 polkit-1-qubes-allow-all.rules $(DESTDIR)$(POLKIT1DIR)/rules.d/00-qubes-allow-all.rules
|
7
passwordless-root/debian/Makefile
Normal file
7
passwordless-root/debian/Makefile
Normal file
@ -0,0 +1,7 @@
|
||||
SYSCONFDIR ?= /etc
|
||||
PAMDIR ?= $(SYSCONFDIR)/pam.d
|
||||
|
||||
.PHONY: install
|
||||
|
||||
install:
|
||||
install -D -m 0644 pam.d_su.qubes $(DESTDIR)$(PAMDIR)/su.qubes
|
@ -13,13 +13,13 @@ karelzak/util-linux#532, which is fixed only in util-linux 2.31.1+
|
||||
|
||||
This reverts commit 9792438b3f02161e03d89dfd527ca2459092b478.
|
||||
---
|
||||
misc/resize-rootfs | 9 +++++++--
|
||||
qubes-rpc/resize-rootfs | 9 +++++++--
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/misc/resize-rootfs b/misc/resize-rootfs
|
||||
diff --git a/qubes-rpc/resize-rootfs b/qubes-rpc/resize-rootfs
|
||||
index 1c2fca3c..bebf1011 100755
|
||||
--- a/misc/resize-rootfs
|
||||
+++ b/misc/resize-rootfs
|
||||
--- a/qubes-rpc/resize-rootfs
|
||||
+++ b/qubes-rpc/resize-rootfs
|
||||
@@ -8,8 +8,13 @@ case "$(stat -Lc %t:%T /dev/mapper/dmroot)" in
|
||||
# nothing needed, xvda used directly
|
||||
;;
|
||||
|
@ -1,7 +1,7 @@
|
||||
Index: core-agent-linux/misc/30_cron.conf
|
||||
===================================================================
|
||||
--- core-agent-linux.orig/misc/30_cron.conf 2017-01-06 22:47:57.855061937 +0000
|
||||
+++ core-agent-linux/misc/30_cron.conf 2017-01-07 01:31:16.382061937 +0000
|
||||
--- core-agent-linux.orig/filesystem/30_cron.conf 2017-01-06 22:47:57.855061937 +0000
|
||||
+++ core-agent-linux/filesystem/30_cron.conf 2017-01-07 01:31:16.382061937 +0000
|
||||
@@ -1 +1,2 @@
|
||||
binds+=( '/var/spool/cron' )
|
||||
+binds+=( '/var/spool/anacron' )
|
||||
|
@ -42,7 +42,7 @@ install:
|
||||
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 \
|
||||
prepare-suspend resize-rootfs \
|
||||
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
|
||||
|
@ -291,11 +291,24 @@ usermod -p '' root
|
||||
%install
|
||||
|
||||
make install-vm DESTDIR=$RPM_BUILD_ROOT
|
||||
make -C app-defaults DESTDIR=$RPM_BUILD_ROOT install
|
||||
make -C app-menu DESTDIR=$RPM_BUILD_ROOT install
|
||||
make -C boot/redhat DESTDIR=$RPM_BUILD_ROOT install
|
||||
make -C filesystem DESTDIR=$RPM_BUILD_ROOT install
|
||||
make -C misc DESTDIR=$RPM_BUILD_ROOT install
|
||||
make -C network DESTDIR=$RPM_BUILD_ROOT install
|
||||
make -C passwordless-root DESTDIR=$RPM_BUILD_ROOT install
|
||||
make -C sys-defaults DESTDIR=$RPM_BUILD_ROOT install
|
||||
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
|
||||
|
||||
make -C package-managers DESTDIR=$RPM_BUILD_ROOT install install-dnf
|
||||
%if 0%{?rhel} == 7
|
||||
make -C package-managers DESTDIR=$RPM_BUILD_ROOT install-yum
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} >= 7
|
||||
sed -i \
|
||||
-e 's:-primary:-centos:' \
|
||||
@ -303,6 +316,9 @@ sed -i \
|
||||
$RPM_BUILD_ROOT/etc/yum.repos.d/qubes-*.repo
|
||||
%endif
|
||||
|
||||
install -D -m 0644 boot/dracut-qubes.conf $RPM_BUILD_ROOT/usr/lib/dracut/dracut.conf.d/30-qubes.conf
|
||||
install -D -m 0644 boot/grub.qubes $RPM_BUILD_ROOT/etc/default/grub.qubes
|
||||
|
||||
%triggerin -- initscripts
|
||||
if [ -e /etc/init/serial.conf ]; then
|
||||
cp /usr/share/qubes/serial.conf /etc/init/serial.conf
|
||||
@ -409,7 +425,7 @@ do
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ $(basename $f) == "50-qubes-misc.rules" ] ; then
|
||||
if [ $(basename $f) == "50-qubes-mem-hotplug.rules" ] ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
@ -592,9 +608,11 @@ rm -f %{name}-%{version}
|
||||
%dir /etc/qubes/post-install.d
|
||||
/etc/qubes/post-install.d/README
|
||||
/etc/qubes/post-install.d/*.sh
|
||||
%config(noreplace) /etc/profile.d/qt_x11_no_mitshm.sh
|
||||
%config(noreplace) /etc/sudoers.d/qt_x11_no_mitshm
|
||||
%config(noreplace) /etc/sudoers.d/umask
|
||||
%config(noreplace) /etc/sysctl.d/20_tcp_timestamps.conf
|
||||
%config(noreplace) /etc/udev/rules.d/50-qubes-misc.rules
|
||||
%config(noreplace) /etc/udev/rules.d/50-qubes-mem-hotplug.rules
|
||||
%config(noreplace) /etc/qubes-suspend-module-blacklist
|
||||
%config(noreplace) /etc/yum.conf.d/qubes-proxy.conf
|
||||
%config(noreplace) /etc/yum.repos.d/qubes-r4.repo
|
||||
|
12
sys-defaults/Makefile
Normal file
12
sys-defaults/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
SYSCONFDIR ?= /etc
|
||||
SUDOERSDIR = $(SYSCONFDIR)/sudoers.d
|
||||
|
||||
.PHONY: install
|
||||
|
||||
install:
|
||||
install -D -m 0644 profile.d_qt_x11_no_mitshm.sh $(DESTDIR)$(SYSCONFDIR)/profile.d/qt_x11_no_mitshm.sh
|
||||
install -d -m 0750 $(DESTDIR)$(SUDOERSDIR)
|
||||
install -D -m 0440 sudoers.d_qt_x11_no_mitshm $(DESTDIR)$(SUDOERSDIR)/qt_x11_no_mitshm
|
||||
install -D -m 0440 sudoers.d_umask $(DESTDIR)$(SUDOERSDIR)/umask
|
||||
install -D -m 0644 20_tcp_timestamps.conf $(DESTDIR)$(SYSCONFDIR)/sysctl.d/20_tcp_timestamps.conf
|
||||
install -D -m 0644 dconf-db-local-dpi $(DESTDIR)$(SYSCONFDIR)/dconf/db/local.d/dpi
|
Loading…
Reference in New Issue
Block a user