Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37538541
en ru br
Репозитории ALT
S:1.9.0-alt4
5.1: 1.5.1.1-alt1
4.1: 1.4.3.1-alt1
4.0: 1.4.2-alt1
3.0: 1.2.1-alt1
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: pam-config

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: pam-config
Version: 1.2.1
Release: alt1

Summary: Systemwide PAM config files
License: GPL
Group: System/Base

Source0: system-auth
Source1: system-auth-use_first_pass
Source2: other

%define _pamdir %_sysconfdir/pam.d

# All pam dependencies now provided/required by subpackages.

AutoReqProv: no

Provides: %_pamdir, /etc/security, /%_lib/security
Provides: pam-common = %version-%release
Obsoletes: pam-common

# due to %_pamdir/other

Conflicts: pam < 0:0.75-alt21

BuildPreReq: rpm-build >= 4.0.4-alt42

%package -n pam0-config
Summary: Systemwide PAM config files for Linux-PAM
License: GPL
Group: System/Base
PreReq: %name = %version-%release
# This is quite low-level code; synced with rpm-build-4.0.4-alt42.
Requires: %(for f in %SOURCE0 %SOURCE1 %SOURCE2; do RPM_LIB=%_lib RPM_LIBDIR=%_libdir PAM_SO_SUFFIX= PAM_NAME_SUFFIX=0 RPM_BUILD_ROOT=%buildroot /usr/lib/rpm/pam.req $f; done |sort -u |xargs echo)
Provides: %(for f in %SOURCE0 %SOURCE1 %SOURCE2; do PAM_SO_SUFFIX= PAM_NAME_SUFFIX=0 RPM_BUILD_ROOT=%buildroot /usr/lib/rpm/pam.prov $f; done |sort -u |xargs echo)
# Compatibility.
Provides: pam(system-auth), pam(system-auth-use_first_pass), pam(other)

%package -n pam2-config
Summary: Systemwide PAM config files for OpenPAM
License: GPL
Group: System/Base
PreReq: %name = %version-%release
# This is quite low-level code; synced with rpm-build-4.0.4-alt42.
Requires: %(for f in %SOURCE0 %SOURCE1 %SOURCE2; do RPM_LIB=%_lib RPM_LIBDIR=%_libdir PAM_SO_SUFFIX=.2 PAM_NAME_SUFFIX=2 RPM_BUILD_ROOT=%buildroot /usr/lib/rpm/pam.req $f; done |sort -u |xargs echo)
Provides: %(for f in %SOURCE0 %SOURCE1 %SOURCE2; do PAM_SO_SUFFIX=.2 PAM_NAME_SUFFIX=2 RPM_BUILD_ROOT=%buildroot /usr/lib/rpm/pam.prov $f; done |sort -u |xargs echo)

%description
PAM (Pluggable Authentication Modules) is a system security tool
which allows system administrators to set authentication policy
without having to recompile programs which do authentication.

This package contains systemwide PAM config files.
This package also contains common files and directories
shared by various PAM implementations.

%description -n pam0-config
PAM (Pluggable Authentication Modules) is a system security tool
which allows system administrators to set authentication policy
without having to recompile programs which do authentication.

This package contains systemwide config files for Linux-PAM.

%description -n pam2-config
PAM (Pluggable Authentication Modules) is a system security tool
which allows system administrators to set authentication policy
without having to recompile programs which do authentication.

This package contains systemwide config files for OpenPAM.

%install
%__mkdir_p $RPM_BUILD_ROOT{%_pamdir,/etc/security,/%_lib/security}
%__install -pm644 %SOURCE0 %SOURCE1 %SOURCE2 $RPM_BUILD_ROOT%_pamdir/

%post
cd %_pamdir
if [ ! -f system-auth ]; then
if [ -f system-auth.rpmsave ]; then
%__cp -pf system-auth.rpmsave system-auth
elif [ -f system-auth.rpmnew ]; then
%__cp -pf system-auth.rpmnew system-auth
fi
fi

%triggerpostun -- pam <= 0.75-alt8
[ $2 -gt 0 ] || exit 0
cd %_pamdir
if [ ! -f system-auth ]; then
if [ -f system-auth.rpmsave ]; then
%__cp -pf system-auth.rpmsave system-auth
elif [ -f system-auth.rpmnew ]; then
%__cp -pf system-auth.rpmnew system-auth
fi
fi

%files
%dir %_pamdir
%config %_pamdir/other
%config(noreplace) %_pamdir/system-auth*
/etc/security
/%_lib/security

%files -n pam0-config
#%files -n pam2-config

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin