2019-10-21 00:57:19 +02:00
|
|
|
SYSCONFDIR ?= /etc
|
|
|
|
SUDOERSDIR = $(SYSCONFDIR)/sudoers.d
|
|
|
|
POLKIT1DIR = $(SYSCONFDIR)/polkit-1
|
2020-05-07 15:29:26 +02:00
|
|
|
PAMDIR = $(SYSCONFDIR)/pam.d
|
|
|
|
PAMCONFIGSDIR = /usr/share/pam-configs/
|
2019-10-21 00:57:19 +02:00
|
|
|
|
2020-05-07 15:29:26 +02:00
|
|
|
.PHONY: install install-debian install-rh
|
2019-10-21 00:57:19 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
install -d -m 0750 $(DESTDIR)$(SUDOERSDIR)
|
2021-01-11 10:23:38 +01:00
|
|
|
if [ -f /etc/redhat-release ] || [ -f /etc/debian_version ]; then \
|
|
|
|
exec install -D -m 0440 qubes.sudoers $(DESTDIR)$(SUDOERSDIR)/qubes; \
|
|
|
|
else \
|
|
|
|
sed -E '/^[^#]/s/\<(ROLE|TYPE)=[A-Za-z0-9_]+[[:space:]]+//g' qubes.sudoers | \
|
|
|
|
install -D -m 0440 /dev/stdin $(DESTDIR)$(SUDOERSDIR)/qubes; \
|
|
|
|
fi
|
2019-10-21 00:57:19 +02:00
|
|
|
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
|
2020-05-07 15:29:26 +02:00
|
|
|
|
|
|
|
install-rh:
|
|
|
|
install -D -m 0644 pam.d_su.qubes $(DESTDIR)$(PAMDIR)/su.qubes
|
|
|
|
|
|
|
|
install-debian:
|
|
|
|
install -D -m 0644 pam-configs_su.qubes $(DESTDIR)$(PAMCONFIGSDIR)/su.qubes
|