]>
Commit | Line | Data |
---|---|---|
2d0a5d72 PS |
1 | # |
2 | # Conditional build: | |
e0b43f18 | 3 | %bcond_without audit # don't build audit log plugin |
b439f0c4 | 4 | %bcond_without ldap # build without LDAP support |
4da5d1c6 | 5 | %bcond_without selinux # build without SELinux support |
c8ad241f | 6 | %bcond_with bioapi # with BioAPI support in passwd |
27d570ab | 7 | %bcond_with gnutls # use GnuTLS instead of OpenSSL |
2d0a5d72 | 8 | # |
6a644dc5 | 9 | Summary: Utilities to manage the passwd and shadow user information |
a18ac25c | 10 | Summary(pl.UTF-8): Narzędzia do zarządzania informacjami o użytkownikach z passwd i shadow |
5fe84642 | 11 | Name: pwdutils |
5bbc0db8 | 12 | Version: 3.2.18 |
e6eaf09b | 13 | Release: 1 |
67de6519 | 14 | License: GPL v2 |
97d6c528 | 15 | Group: Base |
5bbc0db8 AM |
16 | #Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2 |
17 | Source0: http://www.linux-nis.org/download/pwdutils/%{name}-%{version}.tar.bz2 | |
18 | # Source0-md5: 7bdf1a93505a3f4e02cf6c06ee889610 | |
8ca1fd06 | 19 | Source1: %{name}.useradd |
2671fa95 | 20 | Source2: %{name}.rpasswdd.init |
8ca1fd06 AM |
21 | Source3: %{name}.login.defs |
22 | Source4: chage.pamd | |
23 | Source5: chfn.pamd | |
24 | Source6: chsh.pamd | |
25 | Source7: passwd.pamd | |
26 | Source8: useradd.pamd | |
534b5bbd | 27 | Source9: userdb.pamd |
badc953f | 28 | Source10: rpasswd.pamd |
7cad659a | 29 | Patch0: %{name}-f-option.patch |
e0b43f18 JB |
30 | Patch1: %{name}-no_bash.patch |
31 | Patch2: %{name}-silent_crontab.patch | |
cc9dfdec | 32 | Patch3: %{name}-pl.po-update.patch |
aeacfcd4 | 33 | URL: http://www.thkukuk.de/pam/pwdutils/ |
e0b43f18 | 34 | %{?with_audit:BuildRequires: audit-libs-devel} |
5fe84642 | 35 | BuildRequires: autoconf |
e6eaf09b | 36 | BuildRequires: automake >= 1:1.9 |
c8ad241f | 37 | %{?with_bioapi:BuildRequires: bioapi-devel} |
9ac28af5 | 38 | BuildRequires: gcc >= 5:3.2 |
5fe84642 | 39 | BuildRequires: gettext-devel |
27d570ab | 40 | %{?with_gnutls:BuildRequires: gnutls-devel >= 1.0.0} |
67de6519 | 41 | BuildRequires: libnscd-devel |
4da5d1c6 | 42 | %{?with_selinux:BuildRequires: libselinux-devel} |
7f892c42 | 43 | BuildRequires: libtool |
8458c410 | 44 | BuildRequires: libxcrypt-devel |
915ec188 | 45 | %{?with_ldap:BuildRequires: openldap-devel >= 2.4.6} |
aeacfcd4 | 46 | BuildRequires: openslp-devel |
37410059 | 47 | %{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7d} |
6a644dc5 | 48 | BuildRequires: pam-devel |
37410059 | 49 | BuildRequires: rpmbuild(macros) >= 1.268 |
f3804003 | 50 | BuildRequires: sed >= 4.0 |
fbc4a361 | 51 | Requires: pam >= 0.99.7.1 |
c95ca6c9 AM |
52 | Provides: shadow = 2:%{version}-%{release} |
53 | Provides: shadow-extras = 2:%{version}-%{release} | |
e7523ef5 | 54 | Obsoletes: shadow |
f3804003 | 55 | Obsoletes: shadow-extras |
9d62b365 | 56 | Obsoletes: shadow-utils |
e7523ef5 | 57 | Conflicts: util-linux < 2.12-10 |
5fe84642 AM |
58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
59 | ||
9feef33b JB |
60 | # for pam module in /%{_lib}/security |
61 | %define _libdir /%{_lib} | |
62 | ||
5fe84642 | 63 | %description |
6a644dc5 JB |
64 | pwdutils is a collection of utilities to manage the passwd and shadow |
65 | user information. The difference to the shadow suite is that these | |
66 | utilities can also modify the information stored in NIS, NIS+, or | |
67 | LDAP. PAM is used for user authentication and changing the pasword. It | |
68 | contains passwd, chage, chfn, chsh, and a daemon for changing the | |
69 | password on a remote machine over a secure SSL connection. The daemon | |
70 | also uses PAM so that it can change passwords independent of where | |
da114143 | 71 | they are stored. |
6a644dc5 | 72 | |
cdfe8b28 JR |
73 | %description -l pl.UTF-8 |
74 | pwdutils to zestaw narzędzi do zarządzania informacjami o | |
75 | użytkownikach z passwd i shadow. Różnica w stosunku do pakietu shadow | |
76 | polega na tym, że te narzędzia mogą także modyfikować informacje | |
77 | zapisane w bazie NIS, NIS+ lub LDAP. PAM jest używany do | |
78 | uwierzytelniania użytkowników i zmiany haseł. Zestaw zawiera passwd, | |
79 | chage, chfn, chsh oraz demona do zmiany hasła na zdalnej maszynie po | |
80 | bezpiecznym połączeniu SSL. Demon także używa PAM, więc można zmieniać | |
81 | hasła niezależnie od tego, gdzie są przechowywane. | |
5fe84642 | 82 | |
e0b43f18 JB |
83 | %package log-audit |
84 | Summary: audit log plugin for pwdutils | |
a18ac25c | 85 | Summary(pl.UTF-8): Wtyczka logująca audit dla pwdutils |
e0b43f18 JB |
86 | Group: Libraries |
87 | Requires: %{name} = %{version}-%{release} | |
88 | ||
89 | %description log-audit | |
90 | audit log plugin for pwdutils. | |
91 | ||
cdfe8b28 JR |
92 | %description log-audit -l pl.UTF-8 |
93 | Wtyczka logująca audit dla pwdutils. | |
e0b43f18 | 94 | |
48420078 JR |
95 | %package -n rpasswd |
96 | Summary: Remote password update client | |
a18ac25c | 97 | Summary(pl.UTF-8): Klient do zdalnego uaktualniania haseł |
48420078 JR |
98 | Group: Applications/System |
99 | ||
100 | %description -n rpasswd | |
101 | rpasswd changes passwords for user accounts on a remote server over a | |
102 | secure SSL connection. A normal user may only change the password for | |
103 | their own account, if the user knows the password of the administrator | |
8458c410 | 104 | account (in the moment this is the root password on the server), he |
105 | may change the password for any account if he calls rpasswd with the | |
106 | -a option. | |
48420078 | 107 | |
cdfe8b28 JR |
108 | %description -n rpasswd -l pl.UTF-8 |
109 | rpasswd pozwala zmieniać hasła użytkowników na zdalnym serwerze przy | |
110 | użyciu bezpiecznego połączenia SSL. Zwykły użytkownik może zmienić | |
111 | jedynie swoje hasło, a jeśli zna hasło administratora (obecnie jest to | |
112 | hasło roota na serwerze), może zmienić hasło dla dowolnego konta | |
113 | wywołując rpasswd z opcją -a. | |
48420078 | 114 | |
2671fa95 AM |
115 | %package -n rpasswdd |
116 | Summary: Remote password update daemon | |
a18ac25c | 117 | Summary(pl.UTF-8): Demon do zdalnego uaktualniania haseł |
2671fa95 | 118 | Group: Applications/System |
90b18a39 | 119 | Requires(post,preun): /sbin/chkconfig |
37410059 | 120 | Requires: rc-scripts |
2671fa95 AM |
121 | |
122 | %description -n rpasswdd | |
123 | rpasswdd is a daemon that lets users change their passwords in the | |
124 | presence of a directory service like NIS, NIS+ or LDAP over a secure | |
125 | SSL connection. rpasswdd behaves like the normal passwd(1) program and | |
01eb9107 | 126 | uses PAM for authentication and changing the password, so it can be |
c02236cd | 127 | configured very flexible for the local requirements. |
2671fa95 | 128 | |
cdfe8b28 JR |
129 | %description -n rpasswdd -l pl.UTF-8 |
130 | rpasswdd to demon pozwalający użytkownikom zmieniać hasła w obecności | |
131 | usług katalogowych takich jak NIS, NIS+ czy LDAP po bezpiecznym | |
132 | połączeniu SSL. rpasswdd zachowuje się tak, jak normalny program | |
133 | passwd(1) i używam PAM do uwierzytelniania i zmiany haseł, więc może | |
134 | być bardzo elastycznie konfigurowany dla lokalnych wymagań. | |
01eb9107 | 135 | |
9feef33b JB |
136 | %package -n pam-pam_rpasswd |
137 | Summary: pam_rpasswd - PAM module to change remote password | |
a18ac25c | 138 | Summary(pl.UTF-8): pam_rpasswd - moduł PAM do zdalnej zmiany hasła |
9feef33b | 139 | Group: Base |
48420078 JR |
140 | # rpasswd.conf is in rpasswd |
141 | Requires: rpasswd = %{version}-%{release} | |
9feef33b JB |
142 | |
143 | %description -n pam-pam_rpasswd | |
144 | The pam_rpasswd PAM module is for changing the password of user | |
145 | accounts on a remote server over a secure SSL connection. It only | |
146 | provides functionality for one PAM management group: password | |
147 | changing. | |
148 | ||
cdfe8b28 JR |
149 | %description -n pam-pam_rpasswd -l pl.UTF-8 |
150 | Moduł PAM pam_rpasswd służy do zmiany haseł dla kont użytkowników na | |
151 | zdalnym serwerze po bezpiecznym połączeniu SSL. Udostępnia | |
152 | funkcjonalność tylko dla jednej grupy zarządzania PAM: zmiany haseł. | |
9feef33b | 153 | |
5fe84642 AM |
154 | %prep |
155 | %setup -q | |
7cad659a | 156 | %patch0 -p1 |
b439f0c4 | 157 | %patch1 -p1 |
db28862c | 158 | %patch2 -p1 |
cc9dfdec JB |
159 | %patch3 -p1 |
160 | ||
161 | %{__rm} po/stamp-po | |
8458c410 | 162 | |
5c20f24f | 163 | %build |
5fe84642 | 164 | %{__gettextize} |
7c16c049 | 165 | %{__libtoolize} |
5ba998e4 | 166 | %{__aclocal} -I m4 |
5fe84642 | 167 | %{__autoconf} |
b869fe96 | 168 | %{__autoheader} |
5fe84642 AM |
169 | %{__automake} |
170 | %configure \ | |
c8ad241f JB |
171 | %{?with_bioapi:CPPFLAGS="-I/usr/include/bioapi"} \ |
172 | %{!?with_bioapi:ac_cv_header_bioapi_h=no ac_cv_lib_bioapi100_BioAPI_Init=no} \ | |
e0b43f18 | 173 | %{?with_audit:--enable-audit-plugin} \ |
27d570ab | 174 | %{!?with_gnutls:--disable-gnutls} \ |
e0b43f18 JB |
175 | --%{?with_ldap:en}%{!?with_ldap:dis}able-ldap \ |
176 | --enable-nls \ | |
aeacfcd4 | 177 | --enable-pam_rpasswd \ |
4da5d1c6 | 178 | --%{?with_selinux:en}%{!?with_selinux:dis}able-selinux \ |
aeacfcd4 | 179 | --enable-slp \ |
5fe84642 AM |
180 | --disable-rpath |
181 | %{__make} | |
182 | ||
183 | %install | |
184 | rm -rf $RPM_BUILD_ROOT | |
467ecff1 | 185 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pwdutils,security,skel/{etc,tmp}} |
5fe84642 AM |
186 | |
187 | %{__make} install \ | |
188 | DESTDIR=$RPM_BUILD_ROOT | |
189 | ||
67de6519 | 190 | mv -f $RPM_BUILD_ROOT%{_sbindir}/*.local $RPM_BUILD_ROOT%{_sysconfdir}/pwdutils |
2671fa95 AM |
191 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd |
192 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpasswdd | |
193 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs | |
8ca1fd06 AM |
194 | |
195 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/chage | |
196 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/chfn | |
197 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/chsh | |
198 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/passwd | |
199 | install %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/useradd | |
534b5bbd | 200 | install %{SOURCE9} $RPM_BUILD_ROOT/etc/pam.d/shadow |
badc953f | 201 | install %{SOURCE10} $RPM_BUILD_ROOT/etc/pam.d/rpasswd |
8ca1fd06 | 202 | |
67de6519 | 203 | rm -f $RPM_BUILD_ROOT%{_libdir}/pwdutils/*.{la,a} |
cc9dfdec | 204 | rm -f $RPM_BUILD_ROOT/%{_lib}/security/pam_*.la |
6118303e | 205 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/init.d/rpasswdd |
67de6519 | 206 | |
b9e495eb JB |
207 | :> $RPM_BUILD_ROOT%{_sysconfdir}/shadow |
208 | :> $RPM_BUILD_ROOT/etc/security/chfn.allow | |
209 | :> $RPM_BUILD_ROOT/etc/security/chsh.allow | |
801fabc9 | 210 | |
5fe84642 AM |
211 | %find_lang %{name} |
212 | ||
213 | %clean | |
214 | rm -rf $RPM_BUILD_ROOT | |
215 | ||
216 | %post | |
6118303e | 217 | if [ ! -f %{_sysconfdir}/shadow ]; then |
5fe84642 AM |
218 | %{_sbindir}/pwconv |
219 | fi | |
220 | ||
2671fa95 AM |
221 | %post -n rpasswdd |
222 | /sbin/chkconfig --add rpasswdd | |
37410059 | 223 | %service rpasswdd restart "rpasswdd daemon" |
2671fa95 AM |
224 | |
225 | %preun -n rpasswdd | |
226 | if [ "$1" = "0" ]; then | |
37410059 | 227 | %service rpasswdd stop |
53d92fc1 | 228 | /sbin/chkconfig --del rpasswdd |
2671fa95 AM |
229 | fi |
230 | ||
5fe84642 AM |
231 | %files -f %{name}.lang |
232 | %defattr(644,root,root,755) | |
dd06a689 | 233 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
5c20f24f | 234 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/shadow |
5c20f24f | 235 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/* |
8ca1fd06 | 236 | %attr(750,root,root) %dir %{_sysconfdir}/%{name} |
5c20f24f | 237 | %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.local |
95539a65 | 238 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/logging |
5c20f24f JB |
239 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/chage |
240 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/chfn | |
241 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/chsh | |
242 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/passwd | |
243 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/useradd | |
244 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/shadow | |
7f892c42 | 245 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/login.defs |
b9e495eb JB |
246 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/chfn.allow |
247 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/chsh.allow | |
5fe84642 | 248 | %dir /etc/skel |
97d6c528 TP |
249 | %dir %config(missingok) %attr(750,root,root) /etc/skel/etc |
250 | %dir %config(missingok) %attr(700,root,root) /etc/skel/tmp | |
8ca1fd06 AM |
251 | %attr(755,root,root) %{_bindir}/chage |
252 | %attr(4755,root,root) %{_bindir}/chfn | |
253 | %attr(4755,root,root) %{_bindir}/chsh | |
254 | %attr(4755,root,root) %{_bindir}/expiry | |
b869fe96 | 255 | %attr(4755,root,root) %{_bindir}/gpasswd |
8a9684a4 | 256 | %attr(4755,root,root) %{_bindir}/newgrp |
5fe84642 | 257 | %attr(4755,root,root) %{_bindir}/passwd |
8a9684a4 | 258 | %attr(4755,root,root) %{_bindir}/sg |
8ca1fd06 AM |
259 | %attr(755,root,root) %{_sbindir}/chpasswd |
260 | %attr(755,root,root) %{_sbindir}/groupadd | |
261 | %attr(755,root,root) %{_sbindir}/groupdel | |
b869fe96 | 262 | %attr(755,root,root) %{_sbindir}/groupmod |
c5678d54 | 263 | %attr(755,root,root) %{_sbindir}/grpconv |
c95ca6c9 | 264 | %attr(755,root,root) %{_sbindir}/grpck |
534b5bbd | 265 | %attr(755,root,root) %{_sbindir}/grpunconv |
c5678d54 | 266 | %attr(755,root,root) %{_sbindir}/pwconv |
c95ca6c9 | 267 | %attr(755,root,root) %{_sbindir}/pwck |
c5678d54 | 268 | %attr(755,root,root) %{_sbindir}/pwunconv |
8ca1fd06 AM |
269 | %attr(755,root,root) %{_sbindir}/useradd |
270 | %attr(755,root,root) %{_sbindir}/userdel | |
b869fe96 | 271 | %attr(755,root,root) %{_sbindir}/usermod |
ba407186 JB |
272 | %attr(755,root,root) %{_sbindir}/vigr |
273 | %attr(755,root,root) %{_sbindir}/vipw | |
67de6519 JB |
274 | %dir %{_libdir}/pwdutils |
275 | %attr(755,root,root) %{_libdir}/pwdutils/liblog_syslog.so* | |
7c16c049 JB |
276 | %{_mandir}/man1/chage.1* |
277 | %{_mandir}/man1/chfn.1* | |
278 | %{_mandir}/man1/chsh.1* | |
279 | %{_mandir}/man1/expiry.1* | |
280 | %{_mandir}/man1/gpasswd.1* | |
281 | %{_mandir}/man1/newgrp.1* | |
282 | %{_mandir}/man1/passwd.1* | |
283 | %{_mandir}/man1/sg.1* | |
284 | %{_mandir}/man5/login.defs.5* | |
285 | %{_mandir}/man8/chpasswd.8* | |
286 | %{_mandir}/man8/groupadd.8* | |
287 | %{_mandir}/man8/groupdel.8* | |
288 | %{_mandir}/man8/groupmod.8* | |
289 | %{_mandir}/man8/grpck.8* | |
290 | %{_mandir}/man8/grpconv.8* | |
291 | %{_mandir}/man8/grpunconv.8* | |
292 | %{_mandir}/man8/pwck.8* | |
293 | %{_mandir}/man8/pwconv.8* | |
294 | %{_mandir}/man8/pwunconv.8* | |
295 | %{_mandir}/man8/useradd.8* | |
296 | %{_mandir}/man8/userdel.8* | |
297 | %{_mandir}/man8/usermod.8* | |
298 | %{_mandir}/man8/vigr.8* | |
299 | %{_mandir}/man8/vipw.8* | |
2671fa95 | 300 | |
e0b43f18 JB |
301 | %if %{with audit} |
302 | %files log-audit | |
303 | %defattr(644,root,root,755) | |
304 | %attr(755,root,root) %{_libdir}/pwdutils/liblog_audit.so* | |
305 | %endif | |
306 | ||
48420078 JR |
307 | %files -n rpasswd |
308 | %defattr(644,root,root,755) | |
309 | %attr(755,root,root) %{_bindir}/rpasswd | |
6118303e | 310 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpasswd.conf |
48420078 JR |
311 | %{_mandir}/man1/rpasswd.1* |
312 | %{_mandir}/man5/rpasswd.conf.5* | |
313 | ||
2671fa95 AM |
314 | %files -n rpasswdd |
315 | %defattr(644,root,root,755) | |
316 | %attr(755,root,root) %{_sbindir}/rpasswdd | |
317 | %attr(754,root,root) /etc/rc.d/init.d/rpasswdd | |
5c20f24f JB |
318 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/rpasswd |
319 | %{_mandir}/man8/rpasswdd.8* | |
9feef33b JB |
320 | |
321 | %files -n pam-pam_rpasswd | |
322 | %defattr(644,root,root,755) | |
cc9dfdec | 323 | %attr(755,root,root) /%{_lib}/security/pam_rpasswd.so |
9feef33b | 324 | %{_mandir}/man8/pam_rpasswd.8* |