]> git.pld-linux.org Git - packages/shadow.git/blob - shadow.spec
s-/usr/sbin-%{_sbindir}-
[packages/shadow.git] / shadow.spec
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ý
6 Name:           shadow
7 Version:        981228
8 Release:        2
9 Copyright:      BSD
10 Group:          Utilities/System
11 Group(pl):      Narzêdzia/System
12 URL:            ftp://ftp.ists.pwr.wroc.pl/pub/linux/shadow
13 Source0:        %{name}-%{version}.tar.gz
14 Source1:        %{name}-login.defs
15 Source2:        %{name}.useradd
16 Source3:        shells
17 Patch0:         shadow-man.patch
18 Patch1:         shadow-useradd.patch
19 Patch2:         shadow-groupadd.patch
20 Patch3:         shadow-getdef.patch
21 Buildroot:      /tmp/%{name}-%{version}-root
22 Obsoletes:      shadow-utils
23
24 %description
25 This package includes the programs necessary to convert standard
26 UNIX password files to the shadow password format, as well as 
27 programs for command-line management of the user's accounts.
28         - 'pwconv' converts everything to the shadow password format.
29         - 'pwunconv' unconverts from shadow passwords, generating a file 
30            in the current directory called npasswd that is a standard UNIX 
31            password file.
32         - 'pwck' checks the integrity of the password and shadow files.
33         - 'lastlog' prints out the last login times of all users.
34         - 'useradd', 'userdel' and 'usermod' for accounts management.
35         - 'groupadd', 'groupdel' and 'groupmod' for group management.
36
37 A number of man pages are also included that relate to these utilities,
38 and shadow passwords in general.
39
40 %description -l pl
41 Pakiet zawiera programy do obs³ugi shadow password. Zanjduj± siê w nim
42 programy do konwersji standardowego pliku hase³ do wersji shadow password
43 a tak¿e programy do zarz±danie kontami u¿ytkowników w systemie
44         - 'pwconv' konwertuje do formatu shadow passwords
45         - 'pwunconv' konwertuje z shadow passwords do formatu standardowego
46            pliku hase³. W bierz±cym katalogu tworzy plik npasswd bêd±cy
47            standardowym plikiem z has³ami.
48         - 'lastlog' wy¶wietla czas logowanie u¿ytkowników
49         -  'userdel' i 'usermod' do zarz±dzania kontami
50            u¿ytkowników.
51         - 'groupadd', 'groupdel' and 'groupmod' do zarz±dzania grupami
52
53 Ostrze¿enie:
54
55 Programy znajduj±ce siê w tym pakiecie s± niezbêdne do prawid³owej pracy
56 twojego systemu i podobnie jak pakiet z bibliotekami systemowymi - glibc
57 nigdy nie powinien zostaæ odinstalowany !
58
59 %prep
60 %setup -q 
61 %patch0 -p1 
62 %patch1 -p1 
63 %patch2 -p1 
64 %patch3 -p1 
65
66 %build
67 autoconf
68 CFLAGS=$RPM_OPT_FLAGS LDFLAGS=-s \
69     ./configure %{_target} \
70         --prefix=/usr \
71         --disable-desrpc \
72         --with-libcrypt \
73         --disable-shared \
74         --with-libpam \
75         --with-md5crypt \
76         --with-nls \
77         --without-included-gettext
78 make  
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 make install prefix=$RPM_BUILD_ROOT/usr exec_prefix=$RPM_BUILD_ROOT
84
85 install -d $RPM_BUILD_ROOT/etc/default
86
87 install %{SOURCE1} $RPM_BUILD_ROOT/etc/login.defs
88 install %{SOURCE2} $RPM_BUILD_ROOT/etc/default/useradd
89 install %{SOURCE3} $RPM_BUILD_ROOT/etc/shells
90
91 touch $RPM_BUILD_ROOT/etc/shadow
92
93 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/pwunconv.8
94 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/grpconv.8
95 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/grpunconv.8
96
97 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man[1358]/* \
98         doc/ANNOUNCE doc/CHANGES doc/README doc/README.linux doc/HOWTO
99
100 %post
101 if [ ! -f /etc/shadow ]; then
102 %{_sbindir}/pwconv
103 fi
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %files
109 %defattr(644,root,root,755)
110
111 %doc doc/*.gz
112
113 %attr(750,root,root) %dir /etc/default
114 %attr(640,root,root) %config %verify(not size mtime md5) /etc/default/*
115
116 %config(noreplace) %verify(not size mtime md5) /etc/login.defs
117 %config(noreplace) %verify(not size mtime md5) /etc/shells
118 %attr(400,root,root) %config(noreplace) %verify(not size mtime md5) /etc/shadow
119
120 %attr(755,root,root) %{_sbindir}/user*
121 %attr(755,root,root) %{_sbindir}/group*
122 %attr(755,root,root) %{_sbindir}/grpck
123 %attr(755,root,root) %{_sbindir}/pwck
124 %attr(755,root,root) %{_sbindir}/*conv
125 %attr(755,root,root) %{_sbindir}/chpasswd
126 %attr(755,root,root) %{_sbindir}/newusers
127 %attr(755,root,root) %{_sbindir}/mkpasswd
128 %attr(755,root,root) %{_bindir}/chage
129 %attr(755,root,root) %{_bindir}/gpasswd
130 %attr(755,root,root) %{_bindir}/lastlog
131 %attr(755,root,root) %{_bindir}/faillog
132
133 %{_mandir}/man1/chage.1.gz
134 %{_mandir}/man1/gpasswd.1.gz
135 %{_mandir}/man3/shadow.3.gz
136 %{_mandir}/man5/shadow.5.gz
137 %{_mandir}/man5/faillog.5.gz
138 %{_mandir}/man8/group*.8.gz
139 %{_mandir}/man8/user*.8.gz
140 %{_mandir}/man8/pwck.8.gz
141 %{_mandir}/man8/grpck.8.gz
142 %{_mandir}/man8/chpasswd.8.gz 
143 %{_mandir}/man8/newusers.8.gz
144 %{_mandir}/man8/mkpasswd.8.gz
145 %{_mandir}/man8/*conv.8.gz
146 %{_mandir}/man8/lastlog.8.gz
147 %{_mandir}/man8/faillog.8.gz
148
149 %lang(el) %{_datadir}/locale/el/LC_MESSAGES/shadow.mo
150
151 %changelog
152 * Tue Feb 02 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
153   [981228-1d]
154 - updated to 981228,
155 - compressed documentation && man pages
156 - added Group(pl).
157
158 * Fri Oct 09 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
159   [980724-1d]
160 - build against PLD Tornado,
161 - restricted files permissions,
162 - removed adduser,
163 - renamed invalid package name to shadow,
164 - added %postin scripts,
165 - fixed pl translation,
166 - minor changes.
167
168 * Tue Sep 1 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
169 - modify to build non-root
170 - change mkdir to install -d
171 - %attr makros
172 - translations for pl
173 - update source URL
174
175 * Fri Aug 21 1998 Jeff Johnson <jbj@redhat.com>
176 - Note that %{_sbindir}/mkpasswd conflicts with %{_bindir}/mkpasswd;
177   one of these (I think %{_sbindir}/mkpasswd but other opinions are valid)
178   should probably be renamed.  In any case, mkpasswd.8 from this package
179   needs to be installed. (problem #823)
180
181 * Fri May 08 1998 Prospector System <bugs@redhat.com>
182 - translations modified for de, fr, tr
183
184 * Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
185 - updated to 980403
186 - redid the patches
187
188 * Tue Dec 30 1997 Cristian Gafton <gafton@redhat.com>
189 - updated the spec file
190 - updated the patch so that new accounts created on shadowed system won't
191   confuse pam_pwdb anymore ('!!' default password instead on '!')
192 - fixed a bug that made useradd -G segfault
193 - the check for the ut_user is now patched into configure
194
195 * Thu Nov 13 1997 Erik Troan <ewt@redhat.com>
196 - added patch for XOPEN oddities in glibc headers
197 - check for ut_user before checking for ut_name -- this works around some
198   confusion on glibc 2.1 due to the utmpx header not defining the ut_name
199   compatibility stuff. I used a gross sed hack here because I couldn't make
200   automake work properly on the sparc (this could be a glibc 2.0.99 problem
201   though). The utuser patch works fine, but I don't apply it.
202 - sleep after running autoconf
203
204 * Thu Nov 06 1997 Cristian Gafton <gafton@redhat.com>
205 - added forgot lastlog command to the spec file
206
207 * Mon Oct 26 1997 Cristian Gafton <gafton@redhat.com>
208 - obsoletes adduser
209
210 * Thu Oct 23 1997 Cristian Gafton <gafton@redhat.com>
211 - modified groupadd; updated the patch
212
213 * Fri Sep 12 1997 Cristian Gafton <gafton@redhat.com>
214 - updated to 970616
215 - changed useradd to meet RH specs
216 - fixed some bugs
217
218 * Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
219 - built against glibc
This page took 0.056109 seconds and 4 git commands to generate.