]> git.pld-linux.org Git - packages/pwdutils.git/blame - pwdutils.spec
- rel 4
[packages/pwdutils.git] / pwdutils.spec
CommitLineData
c02236cd
ER
1# TODO:
2# - review default login.defs
2d0a5d72
PS
3#
4# Conditional build:
e0b43f18 5%bcond_without audit # don't build audit log plugin
b439f0c4 6%bcond_without ldap # build without LDAP support
4da5d1c6 7%bcond_without selinux # build without SELinux support
c8ad241f 8%bcond_with bioapi # with BioAPI support in passwd
27d570ab 9%bcond_with gnutls # use GnuTLS instead of OpenSSL
2d0a5d72 10#
6a644dc5 11Summary: Utilities to manage the passwd and shadow user information
a18ac25c 12Summary(pl.UTF-8): Narzędzia do zarządzania informacjami o użytkownikach z passwd i shadow
5fe84642 13Name: pwdutils
4f47e59d 14Version: 3.1.3
bf1ae72f 15Release: 4
67de6519 16License: GPL v2
5fe84642 17Group: Applications/System
6a644dc5 18Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2
4f47e59d 19# Source0-md5: b18c601e282d8695cbb5ddd87eaa473c
8ca1fd06 20Source1: %{name}.useradd
2671fa95 21Source2: %{name}.rpasswdd.init
8ca1fd06
AM
22Source3: %{name}.login.defs
23Source4: chage.pamd
24Source5: chfn.pamd
25Source6: chsh.pamd
26Source7: passwd.pamd
27Source8: useradd.pamd
534b5bbd 28Source9: userdb.pamd
badc953f 29Source10: rpasswd.pamd
7cad659a 30Patch0: %{name}-f-option.patch
e0b43f18
JB
31Patch1: %{name}-no_bash.patch
32Patch2: %{name}-silent_crontab.patch
894c38e1 33Patch3: %{name}-pl.po-update.patch
aeacfcd4 34URL: http://www.thkukuk.de/pam/pwdutils/
e0b43f18 35%{?with_audit:BuildRequires: audit-libs-devel}
5fe84642 36BuildRequires: autoconf
16abdb7a 37BuildRequires: automake >= 1:1.7
c8ad241f 38%{?with_bioapi:BuildRequires: bioapi-devel}
9ac28af5 39BuildRequires: gcc >= 5:3.2
5fe84642 40BuildRequires: gettext-devel
27d570ab 41%{?with_gnutls:BuildRequires: gnutls-devel >= 1.0.0}
67de6519 42BuildRequires: libnscd-devel
4da5d1c6 43%{?with_selinux:BuildRequires: libselinux-devel}
7f892c42 44BuildRequires: libtool
915ec188 45%{?with_ldap:BuildRequires: openldap-devel >= 2.4.6}
aeacfcd4 46BuildRequires: openslp-devel
37410059 47%{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7d}
6a644dc5 48BuildRequires: pam-devel
37410059 49BuildRequires: rpmbuild(macros) >= 1.268
f3804003 50BuildRequires: sed >= 4.0
fbc4a361 51Requires: pam >= 0.99.7.1
c95ca6c9
AM
52Provides: shadow = 2:%{version}-%{release}
53Provides: shadow-extras = 2:%{version}-%{release}
e7523ef5 54Obsoletes: shadow
f3804003 55Obsoletes: shadow-extras
9d62b365 56Obsoletes: shadow-utils
e7523ef5 57Conflicts: util-linux < 2.12-10
5fe84642
AM
58BuildRoot: %{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
64pwdutils is a collection of utilities to manage the passwd and shadow
65user information. The difference to the shadow suite is that these
66utilities can also modify the information stored in NIS, NIS+, or
67LDAP. PAM is used for user authentication and changing the pasword. It
68contains passwd, chage, chfn, chsh, and a daemon for changing the
69password on a remote machine over a secure SSL connection. The daemon
70also uses PAM so that it can change passwords independent of where
da114143 71they are stored.
6a644dc5 72
cdfe8b28
JR
73%description -l pl.UTF-8
74pwdutils to zestaw narzędzi do zarządzania informacjami o
75użytkownikach z passwd i shadow. Różnica w stosunku do pakietu shadow
76polega na tym, że te narzędzia mogą także modyfikować informacje
77zapisane w bazie NIS, NIS+ lub LDAP. PAM jest używany do
78uwierzytelniania użytkowników i zmiany haseł. Zestaw zawiera passwd,
79chage, chfn, chsh oraz demona do zmiany hasła na zdalnej maszynie po
80bezpiecznym połączeniu SSL. Demon także używa PAM, więc można zmieniać
81hasła niezależnie od tego, gdzie są przechowywane.
5fe84642 82
e0b43f18
JB
83%package log-audit
84Summary: audit log plugin for pwdutils
a18ac25c 85Summary(pl.UTF-8): Wtyczka logująca audit dla pwdutils
e0b43f18
JB
86Group: Libraries
87Requires: %{name} = %{version}-%{release}
88
89%description log-audit
90audit log plugin for pwdutils.
91
cdfe8b28
JR
92%description log-audit -l pl.UTF-8
93Wtyczka logująca audit dla pwdutils.
e0b43f18 94
48420078
JR
95%package -n rpasswd
96Summary: Remote password update client
a18ac25c 97Summary(pl.UTF-8): Klient do zdalnego uaktualniania haseł
48420078
JR
98Group: Applications/System
99
100%description -n rpasswd
101rpasswd changes passwords for user accounts on a remote server over a
102secure SSL connection. A normal user may only change the password for
103their own account, if the user knows the password of the administrator
104account (in the moment this is the root password on the server), he may
105change the password for any account if he calls rpasswd with the -a
106option.
107
cdfe8b28
JR
108%description -n rpasswd -l pl.UTF-8
109rpasswd pozwala zmieniać hasła użytkowników na zdalnym serwerze przy
110użyciu bezpiecznego połączenia SSL. Zwykły użytkownik może zmienić
111jedynie swoje hasło, a jeśli zna hasło administratora (obecnie jest to
112hasło roota na serwerze), może zmienić hasło dla dowolnego konta
113wywołując rpasswd z opcją -a.
48420078 114
2671fa95
AM
115%package -n rpasswdd
116Summary: Remote password update daemon
a18ac25c 117Summary(pl.UTF-8): Demon do zdalnego uaktualniania haseł
2671fa95 118Group: Applications/System
90b18a39 119Requires(post,preun): /sbin/chkconfig
37410059 120Requires: rc-scripts
2671fa95
AM
121
122%description -n rpasswdd
123rpasswdd is a daemon that lets users change their passwords in the
124presence of a directory service like NIS, NIS+ or LDAP over a secure
125SSL connection. rpasswdd behaves like the normal passwd(1) program and
01eb9107 126uses PAM for authentication and changing the password, so it can be
c02236cd 127configured very flexible for the local requirements.
2671fa95 128
cdfe8b28
JR
129%description -n rpasswdd -l pl.UTF-8
130rpasswdd to demon pozwalający użytkownikom zmieniać hasła w obecności
131usług katalogowych takich jak NIS, NIS+ czy LDAP po bezpiecznym
132połączeniu SSL. rpasswdd zachowuje się tak, jak normalny program
133passwd(1) i używam PAM do uwierzytelniania i zmiany haseł, więc może
134być bardzo elastycznie konfigurowany dla lokalnych wymagań.
01eb9107 135
9feef33b
JB
136%package -n pam-pam_rpasswd
137Summary: pam_rpasswd - PAM module to change remote password
a18ac25c 138Summary(pl.UTF-8): pam_rpasswd - moduł PAM do zdalnej zmiany hasła
9feef33b 139Group: Base
48420078
JR
140# rpasswd.conf is in rpasswd
141Requires: rpasswd = %{version}-%{release}
9feef33b
JB
142
143%description -n pam-pam_rpasswd
144The pam_rpasswd PAM module is for changing the password of user
145accounts on a remote server over a secure SSL connection. It only
146provides functionality for one PAM management group: password
147changing.
148
cdfe8b28
JR
149%description -n pam-pam_rpasswd -l pl.UTF-8
150Moduł PAM pam_rpasswd służy do zmiany haseł dla kont użytkowników na
151zdalnym serwerze po bezpiecznym połączeniu SSL. Udostępnia
152funkcjonalność 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
894c38e1 159%patch3 -p1
5c20f24f 160
4ac3999d 161sed -i -e 's/-Werror //' configure.in
5c20f24f 162
924c4f9e
JB
163rm -f po/stamp-po
164
5c20f24f 165%build
5fe84642
AM
166%{__gettextize}
167%{__aclocal}
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
4570d69e 186install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pwdutils,security,skel/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}
c02236cd 205rm -f $RPM_BUILD_ROOT/etc/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
214rm -rf $RPM_BUILD_ROOT
215
216%post
5fe84642
AM
217if [ ! -f /etc/shadow ]; then
218 %{_sbindir}/pwconv
219fi
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
226if [ "$1" = "0" ]; then
37410059 227 %service rpasswdd stop
53d92fc1 228 /sbin/chkconfig --del rpasswdd
2671fa95
AM
229fi
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
4570d69e 249%dir /etc/skel/tmp
8ca1fd06
AM
250%attr(755,root,root) %{_bindir}/chage
251%attr(4755,root,root) %{_bindir}/chfn
252%attr(4755,root,root) %{_bindir}/chsh
253%attr(4755,root,root) %{_bindir}/expiry
b869fe96 254%attr(4755,root,root) %{_bindir}/gpasswd
e7523ef5 255%attr(755,root,root) %{_bindir}/newgrp
5fe84642 256%attr(4755,root,root) %{_bindir}/passwd
64a6961e 257%attr(755,root,root) %{_bindir}/sg
8ca1fd06
AM
258%attr(755,root,root) %{_sbindir}/chpasswd
259%attr(755,root,root) %{_sbindir}/groupadd
260%attr(755,root,root) %{_sbindir}/groupdel
b869fe96 261%attr(755,root,root) %{_sbindir}/groupmod
c5678d54 262%attr(755,root,root) %{_sbindir}/grpconv
c95ca6c9 263%attr(755,root,root) %{_sbindir}/grpck
534b5bbd 264%attr(755,root,root) %{_sbindir}/grpunconv
c5678d54 265%attr(755,root,root) %{_sbindir}/pwconv
c95ca6c9 266%attr(755,root,root) %{_sbindir}/pwck
c5678d54 267%attr(755,root,root) %{_sbindir}/pwunconv
8ca1fd06
AM
268%attr(755,root,root) %{_sbindir}/useradd
269%attr(755,root,root) %{_sbindir}/userdel
b869fe96 270%attr(755,root,root) %{_sbindir}/usermod
ba407186
JB
271%attr(755,root,root) %{_sbindir}/vigr
272%attr(755,root,root) %{_sbindir}/vipw
67de6519
JB
273%dir %{_libdir}/pwdutils
274%attr(755,root,root) %{_libdir}/pwdutils/liblog_syslog.so*
ba407186 275%{_mandir}/man?/*
48420078
JR
276%exclude %{_mandir}/man1/rpasswd.1*
277%exclude %{_mandir}/man5/rpasswd.conf.5*
5c20f24f 278%exclude %{_mandir}/man8/rpasswdd.8*
9feef33b 279%exclude %{_mandir}/man8/pam_rpasswd.8*
2671fa95 280
e0b43f18
JB
281%if %{with audit}
282%files log-audit
283%defattr(644,root,root,755)
284%attr(755,root,root) %{_libdir}/pwdutils/liblog_audit.so*
285%endif
286
48420078
JR
287%files -n rpasswd
288%defattr(644,root,root,755)
289%attr(755,root,root) %{_bindir}/rpasswd
290%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/rpasswd.conf
291%{_mandir}/man1/rpasswd.1*
292%{_mandir}/man5/rpasswd.conf.5*
293
2671fa95
AM
294%files -n rpasswdd
295%defattr(644,root,root,755)
296%attr(755,root,root) %{_sbindir}/rpasswdd
297%attr(754,root,root) /etc/rc.d/init.d/rpasswdd
5c20f24f
JB
298%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/rpasswd
299%{_mandir}/man8/rpasswdd.8*
9feef33b
JB
300
301%files -n pam-pam_rpasswd
302%defattr(644,root,root,755)
303%attr(755,root,root) /%{_lib}/security/pam_rpasswd.so
304%{_mandir}/man8/pam_rpasswd.8*
This page took 0.07555 seconds and 4 git commands to generate.