Пакет pam-config: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 | Name: pam-config Version: 1.4.3.1 Release: alt1 Summary: Systemwide PAM config files License: GPL Group: System/Base Packager: Dmitry V. Levin <ldv@altlinux.org> Source0: %name-%version.tar Source1: %name-deps.sh Source2: pam_mktemp.control Source3: system-auth.control %define _pamdir %_sysconfdir/pam.d # All pam dependencies now provided/required by subpackages. AutoReqProv: nopam PreReq: %name-control = %version-%release Requires: libpasswdqc >= 0:1.1.0-alt0.2 Provides: %_pamdir, /etc/security, /%_lib/security Provides: pam-common = %version-%release Obsoletes: pam-common # due to %_pamdir/other Conflicts: pam < 0:0.75-alt21 # due to pam_mktemp.so Conflicts: openssh-server < 0:4.6p1 BuildPreReq: rpm-build >= 0:4.0.4-alt55 %package control Summary: Control rules for the systemwide PAM config files License: GPL Group: System/Base %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-alt56. Requires: %([ -x "%SOURCE1" ] && RPM_LIB=%_lib RPM_LIBDIR=%_libdir PAM_SO_SUFFIX= PAM_NAME_SUFFIX=0 RPM_BUILD_ROOT=%buildroot %SOURCE1 %SOURCE0 req || echo unknown) Provides: %([ -x "%SOURCE1" ] && PAM_SO_SUFFIX= PAM_NAME_SUFFIX=0 RPM_BUILD_ROOT=%buildroot %SOURCE1 %SOURCE0 prov || echo unknown) # 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-alt56. Requires: %([ -x "%SOURCE1" ] && RPM_LIB=%_lib RPM_LIBDIR=%_libdir PAM_SO_SUFFIX=.2 PAM_NAME_SUFFIX=2 RPM_BUILD_ROOT=%buildroot %SOURCE1 %SOURCE0 req || echo unknown) Provides: %([ -x "%SOURCE1" ] && PAM_SO_SUFFIX=.2 PAM_NAME_SUFFIX=2 RPM_BUILD_ROOT=%buildroot %SOURCE1 %SOURCE0 prov || echo unknown) %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 control This package contains control rules for systemwide PAM config files. See control(8) for details. %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. %prep %setup -q %install mkdir -p %buildroot{%_pamdir,%_controldir,/etc/security,/%_lib/security} cp -a * %buildroot%_pamdir/ chmod 644 %buildroot%_pamdir/* for f in pam_mktemp system-auth; do install -pm755 %_sourcedir/$f.control %buildroot%_controldir/$f done %pre %pre_control pam_mktemp for f in %_pamdir/system-auth %_pamdir/system-auth-use_first_pass; do if [ -f "$f" -a ! -L "$f" ]; then mv -f "$f" "$f-local" && ln -f "$f-local" "$f-local.rpmsave" && touch "/var/run/${f##*/}-local.update" && ln -s "${f##*/}-local" "$f" ||: fi done %pre_control system-auth %post cd %_pamdir for f in system-auth system-auth-use_first_pass; do if [ -f "/var/run/$f-local.update" -a -f "$f-local.rpmsave" ]; then [ -f "$f-local.rpmnew" ] || ln -f "$f-local" "$f-local.rpmnew" ||: mv -f "$f-local.rpmsave" "$f-local" && rm -f "/var/run/$f-local.update" ||: cmp -s "$f-local" "$f-local.rpmnew" && rm -f "$f-local.rpmnew" ||: fi done if [ ! -f system-auth ]; then if [ -f system-auth.rpmsave ]; then cp -af system-auth.rpmsave system-auth elif [ -f system-auth.rpmnew ]; then cp -af system-auth.rpmnew system-auth fi fi %post_control -s enabled pam_mktemp %post_control -s local system-auth %triggerpostun -- pam <= 0: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/*-local %config(noreplace) %_pamdir/*-ldap %_pamdir/system-auth %_pamdir/system-auth-use_first_pass /etc/security /%_lib/security %files control %config %_controldir/* %files -n pam0-config #%files -n pam2-config %changelog * Tue Sep 18 2007 Dmitry V. Levin <ldv@altlinux.org> 1.4.3.1-alt1 - system-auth-use_first_pass-ldap: Fixed typo. * Fri Jun 22 2007 Dmitry V. Levin <ldv@altlinux.org> 1.4.3-alt1 - system-auth-{local,ldap}: Replaced pam_passwdqc.so parameters with reference to /etc/passwdqc.conf file. * Tue Jun 05 2007 Dmitry V. Levin <ldv@altlinux.org> 1.4.2-alt1 - Fixed system-auth upgrade. * Sat Jun 02 2007 Dmitry V. Levin <ldv@altlinux.org> 1.4.1-alt1 - Added ldap authentication support (inger). * Mon May 28 2007 Stanislav Ievlev <inger@altlinux.org> 1.4.0-alt1.1 - add support for ldap authentication * Thu Apr 05 2007 Dmitry V. Levin <ldv@altlinux.org> 1.4.0-alt1 - system-auth: Moved pam_mktemp.so from "account" to "session". - Added pam_mktemp control, based on script from raorn@. * Mon Jan 16 2006 Dmitry V. Levin <ldv@altlinux.org> 1.3.1-alt1 - Do not suppress all autogenerated dependencies (#8849). * Thu Jan 12 2006 Dmitry V. Levin <ldv@altlinux.org> 1.3.0-alt1 - Updated for new style PAM dependencies generated by rpm-build-4.0.4-alt55. * Fri Aug 26 2005 Dmitry V. Levin <ldv@altlinux.org> 1.2.1-alt1 - Added "nullok" option to password management entry (#7606). * Thu May 26 2005 Dmitry V. Levin <ldv@altlinux.org> 1.2.0-alt1 - system-auth: Added "account required pam_mktemp.so" (#6814). - Added multilib support (mouse, closes #6098). * Sat Oct 04 2003 Dmitry V. Levin <ldv@altlinux.org> 1.1.7-alt1 - pam-config: merged pam-common into this package. * Wed Jul 09 2003 Dmitry V. Levin <ldv@altlinux.org> 1.1.6-alt1 - Keep all configuration files in the main package, pam-config. - Kepp all pam dependencies in pam-specific subpackages. * Wed Jul 02 2003 Dmitry V. Levin <ldv@altlinux.org> 1.1.5-alt1 - Added -flavour subpackage and moved dependencies there. * Fri May 23 2003 Dmitry V. Levin <ldv@altlinux.org> 1.1.4-alt1 - PAM configuration policy enforcement. * Thu Apr 17 2003 Dmitry V. Levin <ldv@altlinux.org> 1.1.3-alt1 - Added prefix= and count= parameters for auth tcb methods. This is required to activate timing attack protection implemented in pam_tcb-0.9.8.4-alt1. * Tue Jan 15 2002 Dmitry V. Levin <ldv@alt-linux.org> 1.1.2-alt1 - Added password entry for system-auth-use_first_pass. * Thu Dec 20 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.1.1-alt1 - Changed password quality enforcement policy: enforce=everyone --> enforce=users. * Mon Dec 17 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.1-alt1 - Switched to tcb. * Mon Dec 17 2001 Dmitry V. Levin <ldv@alt-linux.org> 1.0.1-alt1 - Added new config for userpass support: system-auth-use_first_pass. * Mon Sep 10 2001 Dmitry V. Levin <ldv@altlinux.ru> 1.0-alt1 - Initial revision. - Updated system-auth from pam package now lives here. |