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