mirror of
https://abf.rosa.ru/djam/pam.git
synced 2025-02-23 16:32:51 +00:00
fix pam_selinux check
This commit is contained in:
parent
156722dccb
commit
cc98cfc707
1 changed files with 6 additions and 4 deletions
6
pam.spec
6
pam.spec
|
@ -349,13 +349,15 @@ cp -f %{buildroot}/etc/pam.d/system-auth %{buildroot}/etc/pam.d/system-auth-defa
|
||||||
%check
|
%check
|
||||||
EXCEPT=''
|
EXCEPT=''
|
||||||
%if %{without selinux}
|
%if %{without selinux}
|
||||||
EXCEPT='--hide=pam_selinux.*'
|
EXCEPT='pam_selinux'
|
||||||
%endif
|
%endif
|
||||||
for dir in modules/pam_* ; do
|
for dir in modules/pam_* ; do
|
||||||
if ! ls -1 `echo $(EXCEPT)` %{buildroot}/%{_lib}/security/`basename ${dir}`*.so ; then
|
if ![[ ${dir} =~ "${except}" ]]; then
|
||||||
|
if ! ls -1 %{buildroot}/%{_lib}/security/`basename ${dir}`*.so ; then
|
||||||
echo ERROR `basename ${dir}` did not build a module.
|
echo ERROR `basename ${dir}` did not build a module.
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Check for module problems. Specifically, check that every module we just
|
# Check for module problems. Specifically, check that every module we just
|
||||||
|
|
Loading…
Add table
Reference in a new issue