mirror of
https://abf.rosa.ru/djam/pam.git
synced 2025-02-23 16:32:51 +00:00
going into /usr
This commit is contained in:
parent
75a5d842e0
commit
593eee2e0a
1 changed files with 20 additions and 21 deletions
41
pam.spec
41
pam.spec
|
@ -15,7 +15,7 @@
|
|||
Summary: A security tool which provides authentication for applications
|
||||
Name: pam
|
||||
Version: 1.5.1
|
||||
Release: 4
|
||||
Release: 5
|
||||
Epoch: 1
|
||||
# The library is BSD licensed with option to relicense as GPLv2+ - this option is redundant
|
||||
# as the BSD license allows that anyway. pam_timestamp and pam_console modules are GPLv2+,
|
||||
|
@ -93,7 +93,6 @@ BuildConflicts: pkgconfig(libprelude)
|
|||
Requires: cracklib-dicts
|
||||
Requires: setup >= 2.7.12-2
|
||||
Requires(post): coreutils >= 8.12-7.2
|
||||
Conflicts: %{_lib}pam0 < 1.1.4-5
|
||||
Requires: libpwquality >= 0.9.9
|
||||
|
||||
%description
|
||||
|
@ -139,9 +138,9 @@ having to recompile programs that handle authentication.
|
|||
%endif
|
||||
%dir %{_sysconfdir}/security/console.apps
|
||||
%dir %{_sysconfdir}/security/console.perms.d
|
||||
%dir /%{_lib}/security
|
||||
/%{_lib}/security/*.so
|
||||
/%{_lib}/security/pam_filter
|
||||
%dir %{_libdir}/security
|
||||
%{_libdir}/security/*.so
|
||||
%{_libdir}/security/pam_filter
|
||||
/usr/lib/tmpfiles.d/pam.conf
|
||||
%{_unitdir}/pam_namespace.service
|
||||
%ghost %dir /var/run/console
|
||||
|
@ -185,7 +184,7 @@ Conflicts: pam < 1.1.4-5
|
|||
This package contains the library libpam for %{name}.
|
||||
|
||||
%files -n %{libname}
|
||||
/%{_lib}/libpam.so.%{major}*
|
||||
%{_libdir}/libpam.so.%{major}*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
|
@ -198,7 +197,7 @@ Conflicts: %{_lib}pam0 < 1.1.4-5
|
|||
This package contains the library libpamc for %{name}.
|
||||
|
||||
%files -n %{libnamec}
|
||||
/%{_lib}/libpamc.so.%{major}*
|
||||
%{_libdir}/libpamc.so.%{major}*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
|
@ -211,7 +210,7 @@ Conflicts: %{_lib}pam0 < 1.1.4-5
|
|||
This package contains the library libpam_misc for %{name}.
|
||||
|
||||
%files -n %{libname_misc}
|
||||
/%{_lib}/libpam_misc.so.%{major}*
|
||||
%{_libdir}/libpam_misc.so.%{major}*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
|
@ -232,9 +231,9 @@ This package contains the development libraries for %{name}.
|
|||
|
||||
%files -n %{devname}
|
||||
%doc Copyright
|
||||
/%{_lib}/libpam.so
|
||||
/%{_lib}/libpam_misc.so
|
||||
/%{_lib}/libpamc.so
|
||||
%{_libdir}/libpam.so
|
||||
%{_libdir}/libpam_misc.so
|
||||
%{_libdir}/libpamc.so
|
||||
%{_includedir}/security/*.h
|
||||
%{_mandir}/man3/*
|
||||
|
||||
|
@ -268,7 +267,7 @@ autoreconf -fi
|
|||
export BROWSER=""
|
||||
%configure \
|
||||
--sbindir=/sbin \
|
||||
--libdir=/%{_lib} \
|
||||
--libdir=%{_libdir} \
|
||||
--includedir=%{_includedir}/security \
|
||||
--with-db-uniquename=_nss \
|
||||
--docdir=%{_docdir}/%{name} \
|
||||
|
@ -296,7 +295,7 @@ for readme in modules/pam_*/README ; do
|
|||
done
|
||||
|
||||
mkdir -p %{buildroot}%{_includedir}/security
|
||||
mkdir -p %{buildroot}/%{_lib}/security
|
||||
mkdir -p %{buildroot}%{_libdir}/security
|
||||
%make_install LDCONFIG=:
|
||||
install -d -m 755 %{buildroot}/etc/pam.d
|
||||
install -m 644 %{SOURCE5} %{buildroot}/etc/pam.d/other
|
||||
|
@ -315,12 +314,12 @@ install -m 644 %{SOURCE9} %{SOURCE10} %{SOURCE12} %{buildroot}%{_mandir}/man5/
|
|||
|
||||
# no longer needed, handled by ACL in udev
|
||||
for phase in auth acct passwd session ; do
|
||||
ln -sf pam_unix.so %{buildroot}/%{_lib}/security/pam_unix_${phase}.so
|
||||
ln -sf pam_unix.so %{buildroot}%{_libdir}/security/pam_unix_${phase}.so
|
||||
done
|
||||
|
||||
# cleanup
|
||||
rm -f %{buildroot}/%{_lib}/security/*.la
|
||||
rm -f %{buildroot}/%{_lib}/*.la
|
||||
rm -f %{buildroot}%{_libdir}/security/*.la
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
|
||||
#Set suid bit for /sbin/unix_chkpwd (bug #3169)
|
||||
chmod u+s %{buildroot}/sbin/unix_chkpwd
|
||||
|
@ -355,7 +354,7 @@ EXCEPT=''
|
|||
%endif
|
||||
for dir in modules/pam_* ; do
|
||||
if ![[ ${dir} =~ "${except}" ]]; then
|
||||
if ! ls -1 %{buildroot}/%{_lib}/security/`basename ${dir}`*.so ; then
|
||||
if ! ls -1 %{buildroot}%{_libdir}/security/`basename ${dir}`*.so ; then
|
||||
echo ERROR `basename ${dir}` did not build a module.
|
||||
exit 1
|
||||
fi
|
||||
|
@ -364,10 +363,10 @@ done
|
|||
|
||||
# Check for module problems. Specifically, check that every module we just
|
||||
# installed can actually be loaded by a minimal PAM-aware application.
|
||||
/sbin/ldconfig -n %{buildroot}/%{_lib}
|
||||
for module in %{buildroot}/%{_lib}/security/pam*.so ; do
|
||||
if ! env LD_LIBRARY_PATH=%{buildroot}/%{_lib} \
|
||||
sh %{SOURCE8} -ldb -ldl -lpam -L%{buildroot}/%{_lib} ${module} ; then
|
||||
/sbin/ldconfig -n %{buildroot}%{_libdir}
|
||||
for module in %{buildroot}%{_libdir}/security/pam*.so ; do
|
||||
if ! env LD_LIBRARY_PATH=%{buildroot}%{_libdir} \
|
||||
sh %{SOURCE8} -ldb -ldl -lpam -L%{buildroot}%{_libdir} ${module} ; then
|
||||
echo ERROR module: ${module} cannot be loaded.
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue