]> git.pld-linux.org Git - packages/shadow.git/blob - shadow.spec
5e88bfc0e4a898c6e1baea01f77ec36a01084a3d
[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:        20001016
8 Release:        2
9 License:        BSD
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
16 Source3:        chage.pamd
17 Source4:        userdb.pamd
18 Source5:        chsh.pamd
19 Source6:        chfn.pamd
20 Source7:        passwd.pamd
21 Patch1:         %{name}-pld.patch
22 Patch2:         %{name}-utmpx.patch
23 BuildRequires:  pam-devel
24 BuildRequires:  autoconf
25 BuildRequires:  automake
26 BuildRequires:  gettext-devel
27 Provides:       shadow-utils
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Obsoletes:      shadow-utils
30 Obsoletes:      passwd
31
32 %description
33 This package includes the programs necessary to convert standard UNIX
34 password files to the shadow password format, as well as programs for
35 command-line management of the user's accounts.
36  - 'pwconv' converts everything to the shadow password format.
37  - 'pwunconv' unconverts from shadow passwords, generating a file in
38    the current directory called npasswd that is a standard UNIX password
39    file.
40  - 'pwck' checks the integrity of the password and shadow files.
41  - 'lastlog' prints out the last login times of all users.
42  - 'useradd', 'userdel' and 'usermod' for accounts management.
43  - 'groupadd', 'groupdel' and 'groupmod' for group management.
44
45 A number of man pages are also included that relate to these
46 utilities, and shadow passwords in general.
47
48 %description -l pl
49 Pakiet zawiera programy do obs³ugi shadow password. Zanjduj± siê w nim
50 programy do konwersji standardowego pliku hase³ do wersji shadow
51 password a tak¿e programy do zarz±danie kontami u¿ytkowników w
52 systemie
53  - 'pwconv' konwertuje do formatu shadow passwords
54  - 'pwunconv' konwertuje z shadow passwords do formatu standardowego
55    pliku hase³. W bierz±cym katalogu tworzy plik npasswd bêd±cy
56    standardowym plikiem z has³ami.
57  - 'lastlog' wy¶wietla czas logowanie u¿ytkowników
58  - 'userdel' i 'usermod' do zarz±dzania kontami u¿ytkowników.
59  - 'groupadd', 'groupdel' and 'groupmod' do zarz±dzania grupami
60
61 Ostrze¿enie:
62
63 Programy znajduj±ce siê w tym pakiecie s± niezbêdne do prawid³owej
64 pracy twojego systemu i podobnie jak pakiet z bibliotekami systemowymi
65 - glibc nigdy nie powinien zostaæ odinstalowany !
66
67 %prep
68 %setup -q 
69 %patch1 -p1 
70 %patch2 -p1 
71
72 %build
73 gettextize --copy --force
74 aclocal
75 autoheader
76 autoconf
77 automake -a -c --foreign
78 %configure \
79         --disable-desrpc \
80         --with-libcrypt \
81         %{!?bcond_off_static:--enable-static} \
82         %{!?bcond_off_static:--disable-shared} \
83         %{?bcond_off_static:--disable-static} \
84         %{?bcond_off_static:--enable-shared} \
85         --with-libpam \
86         --with-md5crypt \
87         --with-nls \
88         --without-included-gettext 
89 %{__make}  
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install DESTDIR=$RPM_BUILD_ROOT
95
96 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{default,pam.d,skel}
97
98 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs
99 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd
100 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/chage
101 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/shadow
102 install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/chsh
103 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/chfn
104 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/passwd
105
106 :> $RPM_BUILD_ROOT%{_sysconfdir}/shadow
107
108 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/pwunconv.8
109 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/grpconv.8
110 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/grpunconv.8
111
112 gzip -9nf doc/ANNOUNCE NEWS doc/README doc/README.linux doc/HOWTO
113
114 %find_lang %{name}
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %post
120 %{!?bcond_off_static:#}/sbin/ldconfig
121 if [ ! -f /etc/shadow ]; then
122         %{_sbindir}/pwconv
123 fi
124
125 %{!?bcond_off_static:#}%postun -p /sbin/ldconfig
126
127 %files -f %{name}.lang
128 %defattr(644,root,root,755)
129 %doc doc/*.gz
130
131 %attr(750,root,root) %dir %{_sysconfdir}/default
132 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/default/*
133 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/*
134
135 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/login.defs
136 %attr(400,root,root) %ghost %{_sysconfdir}/shadow
137
138 %dir /etc/skel
139
140 %{!?bcond_off_static:#}%attr(755,root,root) /lib/lib*.so.*.*.*
141 %attr(755,root,root) %{_sbindir}/user*
142 %attr(755,root,root) %{_sbindir}/group*
143 %attr(755,root,root) %{_sbindir}/grpck
144 %attr(755,root,root) %{_sbindir}/pwck
145 %attr(755,root,root) %{_sbindir}/*conv
146 %attr(755,root,root) %{_sbindir}/chpasswd
147 %attr(755,root,root) %{_sbindir}/newusers
148 %attr(755,root,root) %{_sbindir}/mkpasswd
149 %attr(755,root,root) %{_bindir}/chage
150 %attr(4755,root,root) %{_bindir}/chfn
151 %attr(4755,root,root) %{_bindir}/chsh
152 %attr(4755,root,root) %{_bindir}/expiry
153 %attr(4755,root,root) %{_bindir}/passwd
154 %attr(4755,root,root) %{_bindir}/gpasswd
155 %attr(755,root,root) %{_bindir}/lastlog
156 %attr(755,root,root) %{_bindir}/faillog
157 %attr(755,root,root) %{_bindir}/sg
158
159 %{_mandir}/man1/gpasswd.*
160 %{_mandir}/man1/chage.*
161 %{_mandir}/man1/chfn.*
162 %{_mandir}/man1/chsh.*
163 %{_mandir}/man1/passwd.*
164 %{_mandir}/man5/login.defs.*
165 %{_mandir}/man5/passwd.*
166 %{_mandir}/man5/shadow.*
167 %{_mandir}/man5/porttime.*
168 %{_mandir}/man5/faillog.*
169 %{_mandir}/man8/faillog.*
170 %{_mandir}/man8/groupdel.*
171 %{_mandir}/man8/groupmod.*
172 %{_mandir}/man8/grpck.*
173 %{_mandir}/man8/grpconv.*
174 %{_mandir}/man8/logoutd.*
175 %{_mandir}/man8/mkpasswd.*
176 %{_mandir}/man8/newusers.*
177 %{_mandir}/man8/pwck.*
178 %{_mandir}/man8/pwunconv.*
179 %{_mandir}/man8/useradd.*
180 %{_mandir}/man8/userdel.*
181 %{_mandir}/man8/usermod.*
182 %{_mandir}/man8/lastlog.*
183 %{_mandir}/man8/pwconv.*
184 %{_mandir}/man8/chpasswd.*
185 %{_mandir}/man8/groupadd.*
186 %{_mandir}/man8/grpunconv.*
187 %{_mandir}/man8/shadowconfig.*
188
189 %lang(pl) %{_mandir}/pl/man1/chage.*
190 %lang(pl) %{_mandir}/pl/man1/gpasswd.*
191 %lang(pl) %{_mandir}/pl/man1/chfn.*
192 %lang(pl) %{_mandir}/pl/man1/chsh.*
193 %lang(pl) %{_mandir}/pl/man1/passwd.*
194 %lang(pl) %{_mandir}/pl/man5/faillog.*
195 %lang(pl) %{_mandir}/pl/man5/login.defs.*
196 %lang(pl) %{_mandir}/pl/man5/passwd.*
197 %lang(pl) %{_mandir}/pl/man5/porttime.*
198 %lang(pl) %{_mandir}/pl/man5/shadow.*
199 %lang(pl) %{_mandir}/pl/man8/chpasswd.*
200 %lang(pl) %{_mandir}/pl/man8/faillog.*
201 %lang(pl) %{_mandir}/pl/man8/groupadd.*
202 %lang(pl) %{_mandir}/pl/man8/groupdel.*
203 %lang(pl) %{_mandir}/pl/man8/groupmod.*
204 %lang(pl) %{_mandir}/pl/man8/grpck.*
205 %lang(pl) %{_mandir}/pl/man8/lastlog.*
206 %lang(pl) %{_mandir}/pl/man8/logoutd.*
207 %lang(pl) %{_mandir}/pl/man8/mkpasswd.*
208 %lang(pl) %{_mandir}/pl/man8/newusers.*
209 %lang(pl) %{_mandir}/pl/man8/pwck.*
210 %lang(pl) %{_mandir}/pl/man8/pwconv.*
211 %lang(pl) %{_mandir}/pl/man8/shadowconfig.*
212 %lang(pl) %{_mandir}/pl/man8/useradd.*
213 %lang(pl) %{_mandir}/pl/man8/userdel.*
214 %lang(pl) %{_mandir}/pl/man8/usermod.*
This page took 0.038251 seconds and 3 git commands to generate.