SHA256
1
0
forked from pool/pam

- Rename motd.tmpfiles to pam.tmpfiles

- Add /run/faillock directory

OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=249
This commit is contained in:
Thorsten Kukuk 2021-09-15 13:55:27 +00:00 committed by Git OBS Bridge
parent b84cd6c705
commit bdff5d34ca
4 changed files with 13 additions and 6 deletions

View File

@ -1,2 +0,0 @@
#Type Path Mode User Group Age Argument
d /run/motd.d 0755 root root - -

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Sep 15 13:34:52 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>
- Rename motd.tmpfiles to pam.tmpfiles
- Add /run/faillock directory
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 10 10:08:28 UTC 2021 - Thorsten Kukuk <kukuk@suse.com> Fri Sep 10 10:08:28 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>

View File

@ -49,7 +49,7 @@ Source9: baselibs.conf
Source10: unix2_chkpwd.c Source10: unix2_chkpwd.c
Source11: unix2_chkpwd.8 Source11: unix2_chkpwd.8
Source12: pam-login_defs-check.sh Source12: pam-login_defs-check.sh
Source13: motd.tmpfiles Source13: pam.tmpfiles
Source14: Linux-PAM-%{version}-docs.tar.xz.asc Source14: Linux-PAM-%{version}-docs.tar.xz.asc
Source15: Linux-PAM-%{version}.tar.xz.asc Source15: Linux-PAM-%{version}.tar.xz.asc
Patch2: pam-limit-nproc.patch Patch2: pam-limit-nproc.patch
@ -215,7 +215,7 @@ echo '.so man8/pam_motd.8' > %{buildroot}%{_mandir}/man5/motd.5
# rpm macros # rpm macros
install -D -m 644 %{SOURCE2} %{buildroot}%{_rpmmacrodir}/macros.pam install -D -m 644 %{SOURCE2} %{buildroot}%{_rpmmacrodir}/macros.pam
# /run/motd.d # /run/motd.d
install -Dm0644 %{SOURCE13} %{buildroot}%{_tmpfilesdir}/motd.conf install -Dm0644 %{SOURCE13} %{buildroot}%{_tmpfilesdir}/pam.conf
# Create filelist with translations # Create filelist with translations
%find_lang Linux-PAM %find_lang Linux-PAM
@ -227,7 +227,7 @@ install -Dm0644 %{SOURCE13} %{buildroot}%{_tmpfilesdir}/motd.conf
/sbin/ldconfig /sbin/ldconfig
%set_permissions %{_sbindir}/unix_chkpwd %set_permissions %{_sbindir}/unix_chkpwd
%set_permissions %{_sbindir}/unix2_chkpwd %set_permissions %{_sbindir}/unix2_chkpwd
%tmpfiles_create %{_tmpfilesdir}/motd.conf %tmpfiles_create %{_tmpfilesdir}/pam.conf
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%pre %pre
@ -389,7 +389,7 @@ done
%verify(not mode) %attr(4755,root,shadow) %{_sbindir}/unix2_chkpwd %verify(not mode) %attr(4755,root,shadow) %{_sbindir}/unix2_chkpwd
%attr(0700,root,root) %{_sbindir}/unix_update %attr(0700,root,root) %{_sbindir}/unix_update
%{_unitdir}/pam_namespace.service %{_unitdir}/pam_namespace.service
%{_tmpfilesdir}/motd.conf %{_tmpfilesdir}/pam.conf
%files -n pam_unix %files -n pam_unix
%defattr(-,root,root,755) %defattr(-,root,root,755)

3
pam.tmpfiles Normal file
View File

@ -0,0 +1,3 @@
#Type Path Mode User Group Age Argument
d /run/faillock 0755 root root - -
d /run/motd.d 0755 root root - -