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