Skip to content

Commit

Permalink
rpm: put PAM config in /usr/lib/pam.d on openSUSE
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Nov 18, 2023
1 parent edf34e4 commit 9cb10ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rpm_spec/gui-agent.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ make install "DESTDIR=$RPM_BUILD_ROOT" \
USERPRESETDIR=%{_userpresetdir} \
UDEVRULESDIR=%{_udevrulesdir}

%if 0%{?is_opensuse}
mkdir -p $DESTDIR/usr/lib/pam.d
mv $DESTDIR/etc/pam.d/* $DESTDIR/usr/lib/pam.d/
%endif

%post
if [ -x /bin/systemctl ] && readlink /sbin/init | grep -q systemd; then
/bin/systemctl enable qubes-gui-agent.service 2> /dev/null
Expand Down Expand Up @@ -279,7 +284,11 @@ rm -f %{name}-%{version}
%attr(0644,root,root) /etc/X11/xorg-qubes.conf.template
/etc/profile.d/qubes-gui.sh
/etc/profile.d/qubes-gui.csh
%if 0%{?is_opensuse}
/usr/lib/pam.d/qubes-gui-agent
%else
%config /etc/pam.d/qubes-gui-agent
%endif
%config %{limits_dir}/90-qubes-gui.conf
%config /etc/xdg/Trolltech.conf
%{xinitrc_dir}/20qt-x11-no-mitshm.sh
Expand Down

0 comments on commit 9cb10ec

Please sign in to comment.