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