|
@@ -299,7 +299,7 @@ make -C config-overrides 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 passwordless-root DESTDIR=$RPM_BUILD_ROOT install install-rh
|
|
|
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
|
|
@@ -333,6 +333,16 @@ if ! grep -q /etc/default/grub.qubes /etc/default/grub 2>/dev/null; then
|
|
|
echo '. /etc/default/grub.qubes' >> /etc/default/grub
|
|
|
fi
|
|
|
|
|
|
+%triggerin passwordless-root -- util-linux
|
|
|
+
|
|
|
+qubesfile=/etc/pam.d/su.qubes
|
|
|
+origfile=${qubesfile%.qubes}
|
|
|
+backupfile=${origfile}.qubes-orig
|
|
|
+if [ -r "$origfile" -a ! -r "$backupfile" ]; then
|
|
|
+ mv -f "$origfile" "$backupfile"
|
|
|
+fi
|
|
|
+ln -sf "$qubesfile" "$origfile"
|
|
|
+
|
|
|
%post
|
|
|
|
|
|
# disable some Upstart services
|
|
@@ -535,6 +545,13 @@ if [ $1 -eq 0 ]; then
|
|
|
usermod -p '*' root
|
|
|
fi
|
|
|
|
|
|
+qubesfile=/etc/pam.d/su.qubes
|
|
|
+origfile=${qubesfile%.qubes}
|
|
|
+backupfile=${origfile}.qubes-orig
|
|
|
+if [ -f "$backupfile" ]; then
|
|
|
+ mv -f "$backupfile" "$origfile"
|
|
|
+fi
|
|
|
+
|
|
|
%posttrans
|
|
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|
|
|
|
@@ -755,6 +772,7 @@ rm -f %{name}-%{version}
|
|
|
%config(noreplace) /etc/polkit-1/localauthority/50-local.d/qubes-allow-all.pkla
|
|
|
%config(noreplace) /etc/polkit-1/rules.d/00-qubes-allow-all.rules
|
|
|
%config(noreplace) /etc/sudoers.d/qubes
|
|
|
+%config(noreplace) /etc/pam.d/su.qubes
|
|
|
|
|
|
%package sysvinit
|
|
|
Summary: Qubes unit files for SysV init style or upstart
|