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