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