]> git.pld-linux.org Git - packages/shadow.git/blob - shadow.spec
f5e544d2db39e8124f5cb9b37c7f0dd70cb3f8ec
[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:        4
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:  libtool
27 BuildRequires:  gettext-devel
28 Provides:       shadow-utils
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Obsoletes:      shadow-utils
31 Obsoletes:      passwd
32
33 %description
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
40    file.
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.
45
46 A number of man pages are also included that relate to these
47 utilities, and shadow passwords in general.
48
49 %description -l pl
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
53 systemie
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
61
62 Ostrze¿enie:
63
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!
67
68 %prep
69 %setup -q 
70 %patch1 -p1 
71 %patch2 -p1 
72
73 %build
74 gettextize --copy --force
75 libtoolize --copy --force
76 aclocal
77 autoheader
78 autoconf
79 automake -a -c --foreign
80 %configure \
81         --disable-desrpc \
82         --with-libcrypt \
83         %{!?_without_static:--enable-static} \
84         %{!?_without_static:--disable-shared} \
85         %{?_without_static:--disable-static} \
86         %{?_without_static:--enable-shared} \
87         --with-libpam \
88         --with-md5crypt \
89         --with-nls \
90         --without-included-gettext 
91 %{__make}  
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install DESTDIR=$RPM_BUILD_ROOT
97
98 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{default,pam.d,security,skel}
99
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
107
108 :> $RPM_BUILD_ROOT%{_sysconfdir}/shadow
109 touch $RPM_BUILD_ROOT%{_sysconfdir}/security/{chfn,chsh}.allow
110
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
114
115 gzip -9nf doc/ANNOUNCE NEWS doc/README doc/README.linux doc/HOWTO
116
117 %find_lang %{name}
118
119 %clean
120 rm -rf $RPM_BUILD_ROOT
121
122 %post
123 %{!?_without_static:#}/sbin/ldconfig
124 if [ ! -f /etc/shadow ]; then
125         %{_sbindir}/pwconv
126 fi
127
128 %{!?_without_static:#}%postun -p /sbin/ldconfig
129
130 %files -f %{name}.lang
131 %defattr(644,root,root,755)
132 %doc doc/*.gz
133
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/*
138
139 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/login.defs
140 %attr(400,root,root) %ghost %{_sysconfdir}/shadow
141
142 %dir /etc/skel
143
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
162
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.*
192
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.*
This page took 0.033752 seconds and 2 git commands to generate.