mirror of
https://abf.rosa.ru/djam/pam.git
synced 2025-02-23 08:22:53 +00:00
commit
afcda4f39c
1 changed files with 12 additions and 5 deletions
13
pam.spec
13
pam.spec
|
@ -109,7 +109,9 @@ BuildRequires: gettext-devel
|
|||
BuildRequires: pkgconfig(libtirpc)
|
||||
BuildRequires: db-devel
|
||||
BuildRequires: html2text
|
||||
BuildRequires: docbook-dtd-xml
|
||||
BuildRequires: docbook-dtd412-xml
|
||||
BuildRequires: docbook-dtd43-xml
|
||||
BuildRequires: docbook-dtd44-xml
|
||||
BuildRequires: docbook-style-xsl
|
||||
BuildRequires: xsltproc
|
||||
%if %{with prelude}
|
||||
|
@ -293,6 +295,8 @@ autoreconf -i
|
|||
%endif
|
||||
%if %{with selinux}
|
||||
--enable-selinux \
|
||||
%else
|
||||
--disable-selinux \
|
||||
%endif
|
||||
--enable-audit
|
||||
%make
|
||||
|
@ -343,14 +347,17 @@ cp -f %{buildroot}/etc/pam.d/system-auth %{buildroot}/etc/pam.d/system-auth-defa
|
|||
%find_lang Linux-PAM
|
||||
|
||||
%check
|
||||
EXCEPT=''
|
||||
%if %{without selinux}
|
||||
EXCEPT="--hide=pam_selinux.*"
|
||||
EXCEPT='pam_selinux'
|
||||
%endif
|
||||
for dir in modules/pam_* ; do
|
||||
if ! ls -1 $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.
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Check for module problems. Specifically, check that every module we just
|
||||
|
|
Loading…
Add table
Reference in a new issue