1 Summary: Shadow password file utilities for Linux
2 Summary(de): Shadow-Paßwortdatei-Dienstprogramme für Linux
3 Summary(fr): Fichiers utilitaires pour Shadow password pour Linux
4 Summary(pl): Narzêdzia do obs³ugi shadow passwords
5 Summary(tr): Gölge parola dosyasý araçlarý
10 Group: Applications/System
11 Group(de): Applikationen/System
12 Group(pl): Aplikacje/System
13 Source0: ftp://ftp.pld.org.pl/software/shadow/%{name}-%{version}.tar.gz
14 Source1: %{name}-login.defs
15 Source2: %{name}.useradd
21 Patch1: %{name}-pld.patch
22 Patch2: %{name}-utmpx.patch
23 BuildRequires: pam-devel
24 BuildRequires: autoconf
25 BuildRequires: automake
26 BuildRequires: libtool
27 BuildRequires: gettext-devel
28 Provides: shadow-utils
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Obsoletes: shadow-utils
34 This package includes the programs necessary to convert standard UNIX
35 password files to the shadow password format, as well as programs for
36 command-line management of the user's accounts.
37 - 'pwconv' converts everything to the shadow password format.
38 - 'pwunconv' unconverts from shadow passwords, generating a file in
39 the current directory called npasswd that is a standard UNIX password
41 - 'pwck' checks the integrity of the password and shadow files.
42 - 'lastlog' prints out the last login times of all users.
43 - 'useradd', 'userdel' and 'usermod' for accounts management.
44 - 'groupadd', 'groupdel' and 'groupmod' for group management.
46 A number of man pages are also included that relate to these
47 utilities, and shadow passwords in general.
50 Pakiet zawiera programy do obs³ugi shadow password. Zanjduj± siê w nim
51 programy do konwersji standardowego pliku hase³ do wersji shadow
52 password a tak¿e programy do zarz±dania kontami u¿ytkowników w
54 - 'pwconv' konwertuje do formatu shadow passwords
55 - 'pwunconv' konwertuje z shadow passwords do formatu standardowego
56 pliku hase³. W bie¿±cym katalogu tworzy plik npasswd bêd±cy
57 standardowym plikiem z has³ami.
58 - 'lastlog' wy¶wietla czas logowania u¿ytkowników
59 - 'userdel' i 'usermod' do zarz±dzania kontami u¿ytkowników.
60 - 'groupadd', 'groupdel' and 'groupmod' do zarz±dzania grupami
64 Programy znajduj±ce siê w tym pakiecie s± niezbêdne do prawid³owej
65 pracy twojego systemu i podobnie jak pakiet z bibliotekami systemowymi
66 - glibc nigdy nie powinien zostaæ odinstalowany!
74 gettextize --copy --force
75 libtoolize --copy --force
79 automake -a -c --foreign
83 %{!?_without_static:--enable-static} \
84 %{!?_without_static:--disable-shared} \
85 %{?_without_static:--disable-static} \
86 %{?_without_static:--enable-shared} \
90 --without-included-gettext
94 rm -rf $RPM_BUILD_ROOT
96 %{__make} install DESTDIR=$RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{default,pam.d,security,skel}
100 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs
101 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd
102 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/chage
103 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/shadow
104 install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/chsh
105 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/chfn
106 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/passwd
108 :> $RPM_BUILD_ROOT%{_sysconfdir}/shadow
109 touch $RPM_BUILD_ROOT%{_sysconfdir}/security/{chfn,chsh}.allow
111 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/pwunconv.8
112 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/grpconv.8
113 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/grpunconv.8
115 gzip -9nf doc/ANNOUNCE NEWS doc/README doc/README.linux doc/HOWTO
120 rm -rf $RPM_BUILD_ROOT
123 %{!?_without_static:#}/sbin/ldconfig
124 if [ ! -f /etc/shadow ]; then
128 %{!?_without_static:#}%postun -p /sbin/ldconfig
130 %files -f %{name}.lang
131 %defattr(644,root,root,755)
134 %attr(750,root,root) %dir %{_sysconfdir}/default
135 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/default/*
136 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/*
137 %attr(640,root,root) %config %verify(not size mtime md5) /etc/security/*
139 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/login.defs
140 %attr(400,root,root) %ghost %{_sysconfdir}/shadow
144 %{!?_without_static:#}%attr(755,root,root) /lib/lib*.so.*.*.*
145 %attr(755,root,root) %{_sbindir}/user*
146 %attr(755,root,root) %{_sbindir}/group*
147 %attr(755,root,root) %{_sbindir}/grpck
148 %attr(755,root,root) %{_sbindir}/pwck
149 %attr(755,root,root) %{_sbindir}/*conv
150 %attr(755,root,root) %{_sbindir}/chpasswd
151 %attr(755,root,root) %{_sbindir}/newusers
152 %attr(755,root,root) %{_sbindir}/mkpasswd
153 %attr(755,root,root) %{_bindir}/chage
154 %attr(4755,root,root) %{_bindir}/chfn
155 %attr(4755,root,root) %{_bindir}/chsh
156 %attr(4755,root,root) %{_bindir}/expiry
157 %attr(4755,root,root) %{_bindir}/passwd
158 %attr(4755,root,root) %{_bindir}/gpasswd
159 %attr(755,root,root) %{_bindir}/lastlog
160 %attr(755,root,root) %{_bindir}/faillog
161 %attr(755,root,root) %{_bindir}/sg
163 %{_mandir}/man1/gpasswd.*
164 %{_mandir}/man1/chage.*
165 %{_mandir}/man1/chfn.*
166 %{_mandir}/man1/chsh.*
167 %{_mandir}/man1/passwd.*
168 %{_mandir}/man5/login.defs.*
169 %{_mandir}/man5/passwd.*
170 %{_mandir}/man5/shadow.*
171 %{_mandir}/man5/porttime.*
172 %{_mandir}/man5/faillog.*
173 %{_mandir}/man8/faillog.*
174 %{_mandir}/man8/groupdel.*
175 %{_mandir}/man8/groupmod.*
176 %{_mandir}/man8/grpck.*
177 %{_mandir}/man8/grpconv.*
178 %{_mandir}/man8/logoutd.*
179 %{_mandir}/man8/mkpasswd.*
180 %{_mandir}/man8/newusers.*
181 %{_mandir}/man8/pwck.*
182 %{_mandir}/man8/pwunconv.*
183 %{_mandir}/man8/useradd.*
184 %{_mandir}/man8/userdel.*
185 %{_mandir}/man8/usermod.*
186 %{_mandir}/man8/lastlog.*
187 %{_mandir}/man8/pwconv.*
188 %{_mandir}/man8/chpasswd.*
189 %{_mandir}/man8/groupadd.*
190 %{_mandir}/man8/grpunconv.*
191 %{_mandir}/man8/shadowconfig.*
193 %lang(pl) %{_mandir}/pl/man1/chage.*
194 %lang(pl) %{_mandir}/pl/man1/gpasswd.*
195 %lang(pl) %{_mandir}/pl/man1/chfn.*
196 %lang(pl) %{_mandir}/pl/man1/chsh.*
197 %lang(pl) %{_mandir}/pl/man1/passwd.*
198 %lang(pl) %{_mandir}/pl/man5/faillog.*
199 %lang(pl) %{_mandir}/pl/man5/login.defs.*
200 %lang(pl) %{_mandir}/pl/man5/passwd.*
201 %lang(pl) %{_mandir}/pl/man5/porttime.*
202 %lang(pl) %{_mandir}/pl/man5/shadow.*
203 %lang(pl) %{_mandir}/pl/man8/chpasswd.*
204 %lang(pl) %{_mandir}/pl/man8/faillog.*
205 %lang(pl) %{_mandir}/pl/man8/groupadd.*
206 %lang(pl) %{_mandir}/pl/man8/groupdel.*
207 %lang(pl) %{_mandir}/pl/man8/groupmod.*
208 %lang(pl) %{_mandir}/pl/man8/grpck.*
209 %lang(pl) %{_mandir}/pl/man8/lastlog.*
210 %lang(pl) %{_mandir}/pl/man8/logoutd.*
211 %lang(pl) %{_mandir}/pl/man8/mkpasswd.*
212 %lang(pl) %{_mandir}/pl/man8/newusers.*
213 %lang(pl) %{_mandir}/pl/man8/pwck.*
214 %lang(pl) %{_mandir}/pl/man8/pwconv.*
215 %lang(pl) %{_mandir}/pl/man8/shadowconfig.*
216 %lang(pl) %{_mandir}/pl/man8/useradd.*
217 %lang(pl) %{_mandir}/pl/man8/userdel.*
218 %lang(pl) %{_mandir}/pl/man8/usermod.*