]>
Commit | Line | Data |
---|---|---|
c9ad1aae | 1 | # |
d11ce12e | 2 | # Conditional build: |
b4afc5a5 | 3 | %bcond_without doc # don't build documentation |
7f8ab60d | 4 | %bcond_with prelude # build with Prelude IDS support |
846d8fdc | 5 | %bcond_without selinux # build without SELinux support |
84871244 | 6 | %bcond_without audit # build with Linux Auditing library support |
7f8ab60d | 7 | # |
c9bbc71c | 8 | %define pam_pld_version 1.1.0-2 |
b81508df JR |
9 | # |
10 | %define _sbindir /sbin | |
7317bf47 | 11 | # |
abb00f9e | 12 | Summary: Pluggable Authentication Modules: modular, incremental authentication |
b7025e7f ER |
13 | Summary(de.UTF-8): Einsteckbare Authentifizierungsmodule: modulare, inkrementäre Authentifizierung |
14 | Summary(es.UTF-8): Módulos de autentificación plugables (PAM) | |
15 | Summary(fr.UTF-8): PAM : Pluggable Authentication Modules: modular, incremental authentication | |
16 | Summary(pl.UTF-8): Modularny system uwierzytelniania | |
17 | Summary(pt_BR.UTF-8): Módulos de autenticação plugáveis (PAM) | |
18 | Summary(ru.UTF-8): Интструмент, обеспечивающий аутентификацию для приложений | |
19 | Summary(tr.UTF-8): Modüler, artımsal doğrulama birimleri | |
20 | Summary(uk.UTF-8): Інструмент, що забезпечує аутентифікацію для програм | |
abb00f9e | 21 | Name: pam |
4d98c0ad | 22 | Version: 1.1.1 |
680ef03c | 23 | Release: 2 |
e6e4b559 | 24 | Epoch: 1 |
c96a8fe2 | 25 | License: GPL or BSD |
abb00f9e | 26 | Group: Base |
85c2b5f9 | 27 | Source0: http://ftp.kernel.org/pub/linux/libs/pam/library/Linux-PAM-%{version}.tar.bz2 |
4d98c0ad | 28 | # Source0-md5: 9b3d952b173d5b9836cbc7e8de108bee |
85c2b5f9 | 29 | Source1: http://ftp.kernel.org/pub/linux/libs/pam/library/Linux-PAM-%{version}.tar.bz2.sign |
4d98c0ad | 30 | # Source1-md5: 2c722d4b722cf87816ce231f67194a06 |
c9ad1aae | 31 | Source2: ftp://ftp.pld-linux.org/software/pam/%{name}-pld-%{pam_pld_version}.tar.gz |
c9bbc71c | 32 | # Source2-md5: 982169260efd9bdd9a74323c3f232e6f |
7f8ab60d JR |
33 | Source3: other.pamd |
34 | Source4: system-auth.pamd | |
35 | Source5: config-util.pamd | |
c9ad1aae | 36 | Source6: %{name}_selinux_check.pamd |
7f8ab60d JR |
37 | Source7: system-auth.5 |
38 | Source8: config-util.5 | |
39 | Patch0: %{name}-pld-modules.patch | |
57fed07b JR |
40 | Patch1: %{name}-cracklib-enforce.patch |
41 | Patch2: %{name}-tally-fail-close.patch | |
42 | Patch3: %{name}-mkhomedir-notfound.patch | |
43 | Patch4: %{name}-db-gdbm.patch | |
44 | Patch5: %{name}-exec-failok.patch | |
83b3eeca | 45 | URL: http://www.kernel.org/pub/linux/libs/pam/ |
85c2b5f9 | 46 | %{?with_audit:BuildRequires: audit-libs-devel >= 1.6.9} |
b8f360f2 | 47 | BuildRequires: autoconf |
48 | BuildRequires: automake | |
1dc7ef6b | 49 | BuildRequires: bison |
234dfb8e | 50 | BuildRequires: cracklib-devel >= 2.8.3 |
b81508df | 51 | # gdbm due to db pulling libpthread |
de5c0104 | 52 | BuildRequires: flex |
c9ad1aae | 53 | BuildRequires: gdbm-devel >= 1.8.3-7 |
57fed07b | 54 | BuildRequires: glibc-devel >= 6:2.10.1 |
1fbc0597 | 55 | %{?with_prelude:BuildRequires: libprelude-devel} |
7f8ab60d | 56 | %{?with_selinux:BuildRequires: libselinux-devel >= 1.33.2} |
0a855cc1 | 57 | BuildRequires: libtool >= 2:1.5 |
3895445c | 58 | %{?with_audit:BuildRequires: linux-libc-headers >= 2.6.23.1} |
59 | BuildRequires: zlib-devel | |
b4afc5a5 | 60 | %if %{with doc} |
57fed07b | 61 | BuildRequires: docbook-dtd412-xml |
7f8ab60d JR |
62 | BuildRequires: docbook-dtd43-xml |
63 | BuildRequires: docbook-dtd44-xml | |
64 | BuildRequires: docbook-style-xsl >= 1.69.1 | |
84871244 JR |
65 | # For building PDFs |
66 | #BuildRequires: fop | |
7f8ab60d JR |
67 | BuildRequires: libxml2-progs |
68 | BuildRequires: libxslt-progs | |
69 | BuildRequires: w3m | |
b4afc5a5 | 70 | %endif |
fe9df33a | 71 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
234dfb8e | 72 | Requires: /usr/bin/make |
c9ad1aae | 73 | Requires: awk |
c2cd7c7d | 74 | Provides: pam-pld |
73954d99 | 75 | Obsoletes: pam-doc |
c9ad1aae ER |
76 | Obsoletes: pam_make |
77 | Obsoletes: pamconfig | |
78 | Conflicts: dev < 3.4-4 | |
79 | Conflicts: udev < 1:138-5 | |
28fa39c9 | 80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f0f219ac | 81 | |
82 | %description | |
faaf5eea | 83 | PAM (Pluggable Authentication Modules) is a powerful, flexible, |
84 | extensible authentication system which allows the system administrator | |
85 | to configure authentication services individually for every | |
86 | pam-compliant application without recompiling any of the applications. | |
f0f219ac | 87 | |
e2cbb18f JR |
88 | %description -l de.UTF-8 |
89 | PAM (Pluggable Authentication Modules) ist ein leistungsfähiges, | |
faaf5eea | 90 | flexibles und erweiterbares Authentifizierungssystem, mit dem der |
e2cbb18f | 91 | Systemverwalter Authentifizierungs-Dienste individuell für jede |
faaf5eea | 92 | pam-kompatible Anwendung konfigurieren kann, ohne diese neu |
e2cbb18f | 93 | kompilieren zu müssen. |
f0f219ac | 94 | |
e2cbb18f JR |
95 | %description -l es.UTF-8 |
96 | PAM (Módulos de Autenticación Plugables) es un potente, flexible y | |
97 | extensible sistema de autentificación, que permite al administrador | |
98 | del sistema configurar servicios de autentificación individualmente | |
99 | para cada aplicación pam compatible, sin la necesidad de recompilar | |
8797d11d JB |
100 | cualquier una de las aplicaciones. |
101 | ||
e2cbb18f JR |
102 | %description -l fr.UTF-8 |
103 | PAM (Pluggable Authentication Modules) est un systéme | |
104 | d'authentification puissant, souple et extensible permettant à | |
105 | l'administrateur système de configurer les individuellement les | |
106 | services d'authentification pour chaque application conforme à PAM, | |
faaf5eea | 107 | sans recompiler aucune application. |
ac46f43b | 108 | |
e2cbb18f JR |
109 | %description -l pl.UTF-8 |
110 | PAM (Pluggable Authentication Modules) jest silnym i łatwo | |
111 | dostosowywalnym do potrzeb systemem uwierzytelniania, który umożliwia | |
112 | administratorowi indywidualne konfigurowanie poszczególnych usług, | |
113 | które są dostosowane i skonsolidowane z bibliotekami PAM, bez | |
114 | późniejszej ich rekompilacji w momencie zmiany sposobu | |
115 | uwierzytelniania tychże usług. | |
b1babe47 | 116 | |
e2cbb18f JR |
117 | %description -l pt_BR.UTF-8 |
118 | PAM (Módulos de Autenticação Plugáveis) é um poderoso, flexível e | |
119 | extensível sistema de autenticação, que permite o administrador do | |
120 | sistema configurar serviços de autenticação individualmente para cada | |
121 | aplicação pam compatível, sem necessidade de recompilar qualquer uma | |
122 | das aplicações. | |
51c8ab2d | 123 | |
e2cbb18f JR |
124 | %description -l uk.UTF-8 |
125 | PAM (Pluggable Authentication Modules) - це потужна, гнучка, здатна до | |
126 | розширення система аутентикації, яка дозволяє системному | |
127 | адміністратору налагоджувати севіси авторизації доступу (аутентикації) | |
128 | індивідуально для кожної pam-сумісної програми без необхідності | |
129 | перекомпіляції самої програми. Це базовий механізм аутентикації в PLD | |
b440fddc | 130 | Linux. |
131 | ||
e2cbb18f JR |
132 | %description -l tr.UTF-8 |
133 | PAM (Pluggable Authentication Modules) sistem yöneticilerinin | |
134 | uygulamalardan herhangi birini yeniden derlemeksizin bütün PAM uyumlu | |
135 | uygulamalar için doğrulama hizmetlerini ayarlamalarına yardımcı olan, | |
136 | güclü, esnek ve kapsamlı bir doğrulama sistemidir. | |
51c8ab2d | 137 | |
e2cbb18f JR |
138 | %description -l ru.UTF-8 |
139 | PAM (Pluggable Authentication Modules) - это мощная, гибкая, | |
140 | расширяемая система аутентикации, позволяющая системному | |
141 | администратору конфигурировать сервисы авторизации доступа | |
142 | (аутентикации) индивидуально для каждой pam-совместимой программы без | |
143 | необходимости перекомпилляции самой программы. Это базовый механизм | |
144 | аутентикации в PLD Linux. | |
b440fddc | 145 | |
fe9df33a ER |
146 | %package libs |
147 | Summary: PAM modules and libraries | |
b7025e7f | 148 | Summary(pl.UTF-8): Moduły i biblioteki PAM |
fe9df33a | 149 | Group: Libraries |
234dfb8e | 150 | Requires(triggerpostun): sed >= 4.0 |
c9ad1aae | 151 | %{?with_audit:Requires: audit-libs >= 1.0.8} |
234dfb8e JR |
152 | Requires: cracklib >= 2.8.3 |
153 | Requires: cracklib-dicts >= 2.8.3 | |
57fed07b | 154 | Requires: crypt(blowfish) |
5a893416 | 155 | Requires: gdbm >= 1.8.3-7 |
53ffe07e | 156 | Requires: glibc >= 6:2.5-0.5 |
7f8ab60d | 157 | %{?with_selinux:Requires: libselinux >= 1.33.2} |
3806fd76 JB |
158 | Obsoletes: pam-pam_opie |
159 | Obsoletes: pam-pam_pwdb | |
160 | Obsoletes: pam-pam_radius | |
161 | Obsoletes: pam-pam_skey | |
162 | Obsoletes: pam-pam_tcpd | |
c9ad1aae | 163 | Conflicts: pam < 0:0.80.1-2 |
fe9df33a ER |
164 | |
165 | %description libs | |
166 | Core PAM modules and libraries. | |
167 | ||
e2cbb18f JR |
168 | %description libs -l pl.UTF-8 |
169 | Moduły i biblioteki PAM. | |
b96eca5e | 170 | |
ac46f43b | 171 | %package devel |
abb00f9e | 172 | Summary: PAM header files |
b7025e7f ER |
173 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do PAM |
174 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com PAM | |
175 | Summary(ru.UTF-8): Библиотеки разработчика для PAM | |
176 | Summary(uk.UTF-8): Бібліотеки програміста для PAM | |
0bb742f7 | 177 | Group: Development/Libraries |
846d8fdc | 178 | Requires: %{name} = %{epoch}:%{version}-%{release} |
15909b27 | 179 | %{?with_audit:Requires: audit-libs-devel >= 1.0.8} |
a3ffb3a4 | 180 | Requires: filesystem >= 3.0-11 |
ac46f43b JR |
181 | |
182 | %description devel | |
183 | Header files for developing PAM based applications. | |
f0f219ac | 184 | |
e2cbb18f JR |
185 | %description devel -l pl.UTF-8 |
186 | Pliki nagłówkowe i dokumentacja programisty do PAM. | |
ac46f43b | 187 | |
e2cbb18f JR |
188 | %description devel -l pt_BR.UTF-8 |
189 | Bibliotecas e arquivos de inclusão para desenvolvimento com PAM | |
51c8ab2d | 190 | |
e2cbb18f JR |
191 | %description devel -l ru.UTF-8 |
192 | Этот пакет содержит хедеры и библиотеки разработчика для PAM. | |
b440fddc | 193 | |
e2cbb18f JR |
194 | %description devel -l uk.UTF-8 |
195 | Цей пакет містить хедери та бібліотеки програміста для PAM. | |
b440fddc | 196 | |
ac46f43b | 197 | %package static |
abb00f9e | 198 | Summary: PAM static libraries |
b7025e7f ER |
199 | Summary(pl.UTF-8): Biblioteki statyczne PAM |
200 | Summary(ru.UTF-8): Статические библиотеки разработчика для PAM | |
201 | Summary(uk.UTF-8): Статичні бібліотеки програміста для PAM | |
0bb742f7 | 202 | Group: Development/Libraries |
846d8fdc | 203 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
ac46f43b JR |
204 | |
205 | %description static | |
206 | PAM static libraries. | |
b1babe47 | 207 | |
e2cbb18f | 208 | %description static -l pl.UTF-8 |
ac46f43b | 209 | Biblioteki statyczne PAM. |
b1babe47 | 210 | |
e2cbb18f JR |
211 | %description static -l ru.UTF-8 |
212 | Этот пакет содержит статические библиотеки разработчика для PAM. | |
b440fddc | 213 | |
e2cbb18f JR |
214 | %description static -l uk.UTF-8 |
215 | Цей пакет містить статичні бібліотеки програміста для PAM. | |
b440fddc | 216 | |
1fbc0597 JR |
217 | %package pam_selinux |
218 | Summary: PAM module - SELinux support | |
b7025e7f | 219 | Summary(pl.UTF-8): Moduł PAM pozwalający na zmianę kontekstów SELinuksa |
1fbc0597 JR |
220 | Group: Base |
221 | ||
222 | %description pam_selinux | |
223 | PAM module - SELinux support. | |
224 | ||
e2cbb18f JR |
225 | %description pam_selinux -l pl.UTF-8 |
226 | Moduł PAM pozwalający na zmianę kontekstów SELinuksa. | |
1fbc0597 | 227 | |
f0f219ac | 228 | %prep |
7f8ab60d | 229 | %setup -q -a2 -n Linux-PAM-%{version} |
3d3421d5 | 230 | %patch0 -p1 |
a80f72fe | 231 | %patch1 -p1 |
7f8ab60d JR |
232 | %patch2 -p1 |
233 | %patch3 -p1 | |
234 | %patch4 -p1 | |
235 | %patch5 -p1 | |
e523043b | 236 | |
ac46f43b | 237 | %build |
7796f9da | 238 | %{__libtoolize} |
fc1ef364 | 239 | %{__aclocal} -I m4 |
7796f9da | 240 | %{__autoconf} |
241 | %{__autoheader} | |
242 | %{__automake} | |
7edd7783 | 243 | %configure \ |
7f8ab60d JR |
244 | --enable-static \ |
245 | --enable-shared \ | |
246 | --libdir=/%{_lib} \ | |
247 | --includedir=%{_includedir}/security \ | |
248 | --enable-isadir=../../%{_lib}/security \ | |
b81508df | 249 | --enable-db=gdbm \ |
1fbc0597 JR |
250 | %{!?with_selinux:--disable-selinux} \ |
251 | %{!?with_prelude:--disable-prelude} \ | |
7f8ab60d | 252 | %{!?with_audit:--disable-audit} |
c894cd9b | 253 | |
7f8ab60d JR |
254 | # we must explicitely update-gmo as we patch a po file |
255 | %{__make} -C po update-gmo | |
0c9926ce MB |
256 | %{__make} \ |
257 | DEFS="-DHAVE_CONFIG_H -D_GNU_SOURCE" | |
f0f219ac | 258 | |
259 | %install | |
4587144c | 260 | rm -rf $RPM_BUILD_ROOT |
7f8ab60d | 261 | install -d $RPM_BUILD_ROOT{%{_libdir},/etc/pam.d,/var/log} |
4d13ca23 | 262 | |
4be82bfe JB |
263 | %{__make} install \ |
264 | DESTDIR=$RPM_BUILD_ROOT | |
4d13ca23 | 265 | |
848c50ae | 266 | %if %{with selinux} |
7f8ab60d JR |
267 | install modules/pam_selinux/.libs/pam_selinux_check $RPM_BUILD_ROOT%{_sbindir} |
268 | install modules/pam_selinux/pam_selinux_check.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
f9ad2164 | 269 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/pam_selinux_check |
848c50ae | 270 | %endif |
7f8ab60d | 271 | |
c9ad1aae | 272 | install -d doc/txts |
7f8ab60d JR |
273 | for r in modules/pam_*/README ; do |
274 | cp -f $r doc/txts/README.$(basename $(dirname $r)) | |
275 | done | |
c9ad1aae | 276 | install -d doc/html |
7f8ab60d JR |
277 | cp -f doc/index.html doc/html/ |
278 | ||
279 | # fix PAM/pam man page | |
280 | echo ".so PAM.8" > $RPM_BUILD_ROOT%{_mandir}/man8/pam.8 | |
f0f219ac | 281 | |
157b3e1c | 282 | :> $RPM_BUILD_ROOT/etc/security/opasswd |
b43d0a9b | 283 | :> $RPM_BUILD_ROOT/etc/security/blacklist |
9e64e40d | 284 | |
7f8ab60d | 285 | :> $RPM_BUILD_ROOT/var/log/tallylog |
508c2464 | 286 | |
1107ace3 | 287 | mv -f $RPM_BUILD_ROOT/%{_lib}/lib*.a $RPM_BUILD_ROOT%{_libdir} |
508c2464 | 288 | |
c1d4fb20 | 289 | cd $RPM_BUILD_ROOT/%{_lib} |
a1307506 | 290 | for f in lib*.la ; do |
1107ace3 | 291 | sed -e 's|/%{_lib}/libpam|%{_libdir}/libpam|g' $f > $RPM_BUILD_ROOT%{_libdir}/$f |
a1307506 | 292 | rm -f $f |
2a5c157a | 293 | sed -i -e "s|libdir='/%{_lib}|libdir='%{_libdir}|g" $RPM_BUILD_ROOT%{_libdir}/$f |
a1307506 | 294 | done |
c1d4fb20 AM |
295 | ln -sf /%{_lib}/$(echo libpam.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpam.so |
296 | ln -sf /%{_lib}/$(echo libpam_misc.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpam_misc.so | |
297 | ln -sf /%{_lib}/$(echo libpamc.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libpamc.so | |
7f8ab60d | 298 | cd - |
8ab52661 | 299 | |
7f8ab60d JR |
300 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/other |
301 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/system-auth | |
302 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/config-util | |
7f8ab60d JR |
303 | |
304 | install %{SOURCE7} $RPM_BUILD_ROOT%{_mandir}/man5/system-auth.5 | |
305 | install %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/man5/config-util.5 | |
c38ff42d | 306 | |
b81508df JR |
307 | # Make sure every module subdirectory gave us a module. Yes, this is hackish. |
308 | for dir in modules/pam_* ; do | |
df8313a3 | 309 | %if %{without selinux} |
f9ad2164 | 310 | [ ${dir} = "modules/pam_selinux" ] && continue |
85c2b5f9 | 311 | [ ${dir} = "modules/pam_sepermit" ] && continue |
6d7d9335 JK |
312 | %endif |
313 | %if %{without audit} | |
314 | [ ${dir} = "modules/pam_tty_audit" ] && continue | |
f9ad2164 | 315 | %endif |
b81508df JR |
316 | if [ -d ${dir} ] ; then |
317 | if ! ls -1 $RPM_BUILD_ROOT/%{_lib}/security/`basename ${dir}`*.so ; then | |
318 | echo ERROR `basename ${dir}` did not build a module. | |
319 | exit 1 | |
320 | fi | |
321 | fi | |
322 | done | |
323 | ||
324 | for module in $RPM_BUILD_ROOT/%{_lib}/security/pam*.so ; do | |
325 | # Check for module problems. Specifically, check that every module we just | |
326 | # installed can actually be loaded by a minimal PAM-aware application. | |
327 | if ! env LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_lib} \ | |
328 | ./dlopen.sh -ldl -lpam -L$RPM_BUILD_ROOT/%{_lib} ${module} ; then | |
329 | echo ERROR module: ${module} cannot be loaded. | |
330 | exit 1 | |
331 | fi | |
332 | # And for good measure, make sure that none of the modules pull in threading | |
333 | # libraries, which if loaded in a non-threaded application, can cause Very | |
334 | # Bad Things to happen. | |
335 | if env LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_lib} \ | |
336 | LD_PRELOAD=$RPM_BUILD_ROOT/%{_lib}/libpam.so ldd -r ${module} | \ | |
337 | fgrep -q libpthread ; then | |
338 | echo ERROR module: ${module} pulls threading libraries. | |
339 | exit 1 | |
340 | fi | |
341 | done | |
342 | ||
aae9c5e1 | 343 | # useless - shut up check-files |
c1d4fb20 | 344 | rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.{la,a} |
a738676c | 345 | rm -f $RPM_BUILD_ROOT/%{_lib}/lib*.so |
7f8ab60d | 346 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/Linux-PAM |
fe9df33a | 347 | |
df8313a3 | 348 | %if %{without selinux} |
fe9df33a ER |
349 | rm -rf $RPM_BUILD_ROOT{/%{_lib}/security/pam_selinux.so,%{_sbindir}/pam_selinux_check,%{_mandir}/man8/pam_selinux*.8*} |
350 | %endif | |
aae9c5e1 | 351 | |
7f8ab60d JR |
352 | %find_lang Linux-PAM |
353 | ||
abb00f9e | 354 | %clean |
4587144c | 355 | rm -rf $RPM_BUILD_ROOT |
abb00f9e | 356 | |
5d252f91 | 357 | %triggerpostun libs -- %{name}-libs < 0.99.7.1 |
234dfb8e | 358 | for f in `grep -l "\(pam_make\|pam_homedir\)" /etc/pam.d/*` ; do |
a1307506 JR |
359 | case "$f" in |
360 | *rpmorig|*rpmnew|*rpmsave|*~|*.orig) | |
361 | continue | |
362 | ;; | |
363 | *) | |
234dfb8e JR |
364 | cp -f "$f" "$f.rpmorig" |
365 | sed -i -e 's/pam_make\.so \(.*\)/pam_exec.so failok seteuid \/usr\/bin\/make -C \1/g' \ | |
366 | -e 's/pam_homedir\.so/pam_mkhomedir.so/g' "$f" | |
a1307506 JR |
367 | ;; |
368 | esac | |
369 | done | |
370 | if [ -d /var/lock/console -a -d /var/run/console ]; then | |
75f2161e | 371 | cp -a /var/lock/console/* /var/run/console/ 2> /dev/null |
234dfb8e | 372 | rm -rf /var/lock/console |
a1307506 | 373 | fi |
5d252f91 | 374 | |
00005501 PZ |
375 | %post -p <lua> |
376 | fh, error = io.open("/var/log/tallylog") | |
b8423a52 | 377 | if fh ~= nil then |
00005501 PZ |
378 | io.close(fh) |
379 | else | |
380 | fh = io.open("/var/log/tallylog", "w+") | |
381 | io.close(fh) | |
382 | posix.chmod("/var/log/tallylog", "rw-------") | |
383 | end | |
0607c402 | 384 | |
fe9df33a ER |
385 | %post libs -p /sbin/ldconfig |
386 | %postun libs -p /sbin/ldconfig | |
96ffe39f | 387 | |
7f8ab60d | 388 | %files -f Linux-PAM.lang |
abb00f9e | 389 | %defattr(644,root,root,755) |
a738676c | 390 | %doc AUTHORS CHANGELOG ChangeLog Copyright NEWS doc/txts/README* |
fe9df33a | 391 | %if %{with doc} |
a738676c | 392 | %doc doc/specs/*.txt doc/sag/Linux-PAM_*.txt doc/{sag,}/html |
fe9df33a | 393 | %endif |
c9ad1aae ER |
394 | %dir /etc/pam.d |
395 | %dir /etc/security/console.apps | |
396 | %dir /etc/security/console.perms.d | |
397 | %dir /var/run/console | |
b81508df | 398 | %config(noreplace) %verify(not md5 mtime size) /etc/environment |
b2c6cf13 ER |
399 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/other |
400 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/system-auth | |
7f8ab60d | 401 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/config-util |
b2c6cf13 | 402 | %config(noreplace) %verify(not md5 mtime size) /etc/security/access.conf |
b43d0a9b | 403 | %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist |
b81508df JR |
404 | %config(noreplace) %verify(not md5 mtime size) /etc/security/console.handlers |
405 | %config(noreplace) %verify(not md5 mtime size) /etc/security/console.perms | |
b2c6cf13 ER |
406 | %config(noreplace) %verify(not md5 mtime size) /etc/security/group.conf |
407 | %config(noreplace) %verify(not md5 mtime size) /etc/security/limits.conf | |
b81508df JR |
408 | %config(noreplace) %verify(not md5 mtime size) /etc/security/namespace.conf |
409 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/namespace.init | |
410 | %config(noreplace) %verify(not md5 mtime size) /etc/security/pam_env.conf | |
b2c6cf13 | 411 | %config(noreplace) %verify(not md5 mtime size) /etc/security/time.conf |
b2c6cf13 | 412 | %config(noreplace) %verify(not md5 mtime size) /etc/security/trigram* |
b81508df | 413 | %config /etc/security/console.perms.d/50-default.perms |
b2c6cf13 | 414 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/opasswd |
fe9df33a | 415 | %attr(755,root,root) %{_bindir}/pam_pwgen |
57fed07b | 416 | %attr(755,root,root) %{_sbindir}/mkhomedir_helper |
7f8ab60d | 417 | %attr(755,root,root) %{_sbindir}/pam_console_apply |
fe9df33a | 418 | %attr(755,root,root) %{_sbindir}/pam_tally |
7f8ab60d JR |
419 | %attr(755,root,root) %{_sbindir}/pam_tally2 |
420 | %attr(755,root,root) %{_sbindir}/pam_timestamp_check | |
fe9df33a | 421 | %attr(755,root,root) %{_sbindir}/pwgen_trigram |
57fed07b JR |
422 | %attr(4755,root,root) %{_sbindir}/unix_chkpwd |
423 | %attr(4755,root,root) %{_sbindir}/unix_update | |
fe9df33a | 424 | %{_mandir}/man5/* |
7f8ab60d | 425 | %{_mandir}/man8/PAM.* |
57fed07b | 426 | %{_mandir}/man8/mkhomedir_helper.8* |
fe9df33a | 427 | %{_mandir}/man8/pam.* |
7f8ab60d JR |
428 | %{_mandir}/man8/pam_[a-r]* |
429 | %{_mandir}/man8/pam_securetty* | |
430 | %{_mandir}/man8/pam_shells* | |
fe9df33a | 431 | %{_mandir}/man8/pam_succeed_if* |
7f8ab60d JR |
432 | %{_mandir}/man8/pam_[t-x]* |
433 | %{_mandir}/man8/unix_chkpwd* | |
85c2b5f9 | 434 | %{_mandir}/man8/unix_update* |
c9ad1aae | 435 | %ghost %verify(not md5 mtime size) /var/log/tallylog |
fe9df33a ER |
436 | |
437 | %files libs | |
438 | %defattr(644,root,root,755) | |
a1307506 | 439 | %dir /%{_lib}/security/pam_filter |
a738676c JB |
440 | %attr(755,root,root) /%{_lib}/libpam.so.*.*.* |
441 | %attr(755,root,root) %ghost /%{_lib}/libpam.so.0 | |
442 | %attr(755,root,root) /%{_lib}/libpam_misc.so.*.*.* | |
443 | %attr(755,root,root) %ghost /%{_lib}/libpam_misc.so.0 | |
444 | %attr(755,root,root) /%{_lib}/libpamc.so.*.*.* | |
445 | %attr(755,root,root) %ghost /%{_lib}/libpamc.so.0 | |
3bc02d41 JB |
446 | %attr(755,root,root) /%{_lib}/security/pam_access.so |
447 | %attr(755,root,root) /%{_lib}/security/pam_console.so | |
448 | %attr(755,root,root) /%{_lib}/security/pam_cracklib.so | |
449 | %attr(755,root,root) /%{_lib}/security/pam_debug.so | |
450 | %attr(755,root,root) /%{_lib}/security/pam_deny.so | |
7f8ab60d | 451 | %attr(755,root,root) /%{_lib}/security/pam_echo.so |
3bc02d41 | 452 | %attr(755,root,root) /%{_lib}/security/pam_env.so |
7f8ab60d JR |
453 | %attr(755,root,root) /%{_lib}/security/pam_exec.so |
454 | %attr(755,root,root) /%{_lib}/security/pam_faildelay.so | |
3bc02d41 | 455 | %attr(755,root,root) /%{_lib}/security/pam_filter.so |
7f8ab60d | 456 | %attr(755,root,root) /%{_lib}/security/pam_filter/upperLOWER |
3bc02d41 JB |
457 | %attr(755,root,root) /%{_lib}/security/pam_ftp.so |
458 | %attr(755,root,root) /%{_lib}/security/pam_group.so | |
3bc02d41 | 459 | %attr(755,root,root) /%{_lib}/security/pam_issue.so |
7f8ab60d | 460 | %attr(755,root,root) /%{_lib}/security/pam_keyinit.so |
3bc02d41 JB |
461 | %attr(755,root,root) /%{_lib}/security/pam_lastlog.so |
462 | %attr(755,root,root) /%{_lib}/security/pam_limits.so | |
463 | %attr(755,root,root) /%{_lib}/security/pam_listfile.so | |
e1e49c86 | 464 | %attr(755,root,root) /%{_lib}/security/pam_localuser.so |
7f8ab60d | 465 | %attr(755,root,root) /%{_lib}/security/pam_loginuid.so |
3bc02d41 | 466 | %attr(755,root,root) /%{_lib}/security/pam_mail.so |
7f8ab60d | 467 | %attr(755,root,root) /%{_lib}/security/pam_mkhomedir.so |
3bc02d41 | 468 | %attr(755,root,root) /%{_lib}/security/pam_motd.so |
b81508df | 469 | %attr(755,root,root) /%{_lib}/security/pam_namespace.so |
3bc02d41 JB |
470 | %attr(755,root,root) /%{_lib}/security/pam_nologin.so |
471 | %attr(755,root,root) /%{_lib}/security/pam_permit.so | |
7f8ab60d | 472 | %attr(755,root,root) /%{_lib}/security/pam_pwexport.so |
3bc02d41 | 473 | %attr(755,root,root) /%{_lib}/security/pam_pwgen.so |
57fed07b | 474 | %attr(755,root,root) /%{_lib}/security/pam_pwhistory.so |
3bc02d41 JB |
475 | %attr(755,root,root) /%{_lib}/security/pam_rhosts.so |
476 | %attr(755,root,root) /%{_lib}/security/pam_rootok.so | |
7f8ab60d | 477 | %attr(755,root,root) /%{_lib}/security/pam_rps.so |
3bc02d41 JB |
478 | %attr(755,root,root) /%{_lib}/security/pam_securetty.so |
479 | %attr(755,root,root) /%{_lib}/security/pam_shells.so | |
480 | %attr(755,root,root) /%{_lib}/security/pam_stress.so | |
e1e49c86 | 481 | %attr(755,root,root) /%{_lib}/security/pam_succeed_if.so |
7f8ab60d | 482 | %attr(755,root,root) /%{_lib}/security/pam_tally2.so |
3bc02d41 JB |
483 | %attr(755,root,root) /%{_lib}/security/pam_tally.so |
484 | %attr(755,root,root) /%{_lib}/security/pam_time.so | |
7f8ab60d | 485 | %attr(755,root,root) /%{_lib}/security/pam_timestamp.so |
6d7d9335 | 486 | %{?with_audit:%attr(755,root,root) /%{_lib}/security/pam_tty_audit.so} |
7f8ab60d | 487 | %attr(755,root,root) /%{_lib}/security/pam_umask.so |
3bc02d41 JB |
488 | %attr(755,root,root) /%{_lib}/security/pam_unix.so |
489 | %attr(755,root,root) /%{_lib}/security/pam_userdb.so | |
3bc02d41 JB |
490 | %attr(755,root,root) /%{_lib}/security/pam_warn.so |
491 | %attr(755,root,root) /%{_lib}/security/pam_wheel.so | |
492 | %attr(755,root,root) /%{_lib}/security/pam_xauth.so | |
f0f219ac | 493 | |
494 | %files devel | |
abb00f9e | 495 | %defattr(644,root,root,755) |
964f5d32 | 496 | %if %{with doc} |
a738676c | 497 | %doc doc/{adg,mwg}/Linux-PAM_*.txt doc/{adg,mwg,}/html |
964f5d32 | 498 | %endif |
a738676c JB |
499 | %attr(755,root,root) %{_libdir}/libpam.so |
500 | %attr(755,root,root) %{_libdir}/libpam_misc.so | |
501 | %attr(755,root,root) %{_libdir}/libpamc.so | |
502 | %{_libdir}/libpam.la | |
503 | %{_libdir}/libpam_misc.la | |
504 | %{_libdir}/libpamc.la | |
505 | %{_includedir}/security/_pam_*.h | |
506 | %{_includedir}/security/pam*.h | |
507 | %{_mandir}/man3/misc_conv.3* | |
508 | %{_mandir}/man3/pam*.3* | |
e523043b | 509 | |
ac46f43b | 510 | %files static |
051aeb4a | 511 | %defattr(644,root,root,755) |
98b63014 JR |
512 | %{_libdir}/libpam.a |
513 | %{_libdir}/libpamc.a | |
514 | %{_libdir}/libpam_misc.a | |
7c2f893c | 515 | |
1fbc0597 JR |
516 | %if %{with selinux} |
517 | %files pam_selinux | |
518 | %defattr(644,root,root,755) | |
1fbc0597 | 519 | %attr(755,root,root) /%{_lib}/security/pam_selinux.so |
85c2b5f9 | 520 | %attr(755,root,root) /%{_lib}/security/pam_sepermit.so |
1fbc0597 | 521 | %attr(755,root,root) %{_sbindir}/pam_selinux_check |
c9ad1aae ER |
522 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/pam_selinux_check |
523 | %config(noreplace) %verify(not md5 mtime size) /etc/security/sepermit.conf | |
1fbc0597 | 524 | %{_mandir}/man8/pam_selinux*.8* |
85c2b5f9 | 525 | %{_mandir}/man8/pam_sepermit*.8* |
1fbc0597 | 526 | %endif |