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