]> git.pld-linux.org Git - packages/shadow.git/blob - shadow.spec
- added using CVS keywords in %changelog (for automating them).
[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:        19990307
8 Release:        3
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:        chage.pamd
17 Source4:        userdb.pamd
18 Patch0:         %{name}-%{version}-pld.patch
19 Patch1:         %{name}-utmpx.patch
20 Patch2:         %{name}-pam-userdb.patch
21 BuildPrereq:    pam-devel
22 Requires:       pam
23 Buildroot:      /tmp/%{name}-%{version}-root
24
25 %description
26 This package includes the programs necessary to convert standard
27 UNIX password files to the shadow password format, as well as 
28 programs for command-line management of the user's accounts.
29         - 'pwconv' converts everything to the shadow password format.
30         - 'pwunconv' unconverts from shadow passwords, generating a file 
31            in the current directory called npasswd that is a standard UNIX 
32            password file.
33         - 'pwck' checks the integrity of the password and shadow files.
34         - 'lastlog' prints out the last login times of all users.
35         - 'useradd', 'userdel' and 'usermod' for accounts management.
36         - 'groupadd', 'groupdel' and 'groupmod' for group management.
37
38 A number of man pages are also included that relate to these utilities,
39 and shadow passwords in general.
40
41 %description -l pl
42 Pakiet zawiera programy do obs³ugi shadow password. Zanjduj± siê w nim
43 programy do konwersji standardowego pliku hase³ do wersji shadow password
44 a tak¿e programy do zarz±danie kontami u¿ytkowników w systemie
45         - 'pwconv' konwertuje do formatu shadow passwords
46         - 'pwunconv' konwertuje z shadow passwords do formatu standardowego
47            pliku hase³. W bierz±cym katalogu tworzy plik npasswd bêd±cy
48            standardowym plikiem z has³ami.
49         - 'lastlog' wy¶wietla czas logowanie u¿ytkowników
50         -  'userdel' i 'usermod' do zarz±dzania kontami
51            u¿ytkowników.
52         - 'groupadd', 'groupdel' and 'groupmod' do zarz±dzania grupami
53
54 Ostrze¿enie:
55
56 Programy znajduj±ce siê w tym pakiecie s± niezbêdne do prawid³owej pracy
57 twojego systemu i podobnie jak pakiet z bibliotekami systemowymi - glibc
58 nigdy nie powinien zostaæ odinstalowany !
59
60 %prep
61 %setup -q 
62 %patch0 -p1 
63 %patch1 -p1 
64 %patch2 -p1 
65
66 %build
67 libtoolize --copy --force && aclocal && autoheader && automake && autoconf
68 %configure \
69     --disable-desrpc \
70     --with-libcrypt \
71     --disable-shared \
72     --with-libpam \
73     --with-md5crypt \
74     --with-nls \
75     --without-included-gettext 
76 make  
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 make \
82     prefix=$RPM_BUILD_ROOT%{_prefix} \
83     exec_prefix=$RPM_BUILD_ROOT \
84     mandir=$RPM_BUILD_ROOT%{_mandir} \
85     infodir$RPM_BUILD_ROOT=%{_infodir} \
86     install
87
88 install -d $RPM_BUILD_ROOT/etc/{default,pam.d}
89
90 install %{SOURCE1} $RPM_BUILD_ROOT/etc/login.defs
91 install %{SOURCE2} $RPM_BUILD_ROOT/etc/default/useradd
92 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/chage
93 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/userdb
94
95 :> $RPM_BUILD_ROOT/etc/shadow
96
97 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/pwunconv.8
98 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/grpconv.8
99 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/grpunconv.8
100
101 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man[1358]/* \
102         doc/ANNOUNCE doc/CHANGES doc/README doc/README.linux doc/HOWTO
103
104 %find_lang %{name}
105
106 %post
107 if [ ! -f /etc/shadow ]; then
108 %{_sbindir}/pwconv
109 fi
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %files -f %{name}.lang
115 %defattr(644,root,root,755)
116
117 %doc doc/*.gz
118
119 %attr(750,root,root) %dir /etc/default
120 %attr(640,root,root) %config %verify(not size mtime md5) /etc/default/*
121 %attr(644,root,root) %config %verify(not size mtime md5) /etc/pam.d/*
122
123 %config(noreplace) %verify(not size mtime md5) /etc/login.defs
124 %attr(400,root,root) %ghost /etc/shadow
125
126 %attr(755,root,root) %{_sbindir}/user*
127 %attr(755,root,root) %{_sbindir}/group*
128 %attr(755,root,root) %{_sbindir}/grpck
129 %attr(755,root,root) %{_sbindir}/pwck
130 %attr(755,root,root) %{_sbindir}/*conv
131 %attr(755,root,root) %{_sbindir}/chpasswd
132 %attr(755,root,root) %{_sbindir}/newusers
133 %attr(755,root,root) %{_sbindir}/mkpasswd
134 %attr(755,root,root) %{_bindir}/chage
135 %attr(755,root,root) %{_bindir}/gpasswd
136 %attr(755,root,root) %{_bindir}/lastlog
137 %attr(755,root,root) %{_bindir}/faillog
138
139 %{_mandir}/man1/chage.1.gz
140 %{_mandir}/man1/gpasswd.1.gz
141 %{_mandir}/man3/shadow.3.gz
142 %{_mandir}/man5/shadow.5.gz
143 %{_mandir}/man5/faillog.5.gz
144 %{_mandir}/man8/group*.8.gz
145 %{_mandir}/man8/user*.8.gz
146 %{_mandir}/man8/pwck.8.gz
147 %{_mandir}/man8/grpck.8.gz
148 %{_mandir}/man8/chpasswd.8.gz 
149 %{_mandir}/man8/newusers.8.gz
150 %{_mandir}/man8/mkpasswd.8.gz
151 %{_mandir}/man8/*conv.8.gz
152 %{_mandir}/man8/lastlog.8.gz
153 %{_mandir}/man8/faillog.8.gz
This page took 0.03432 seconds and 4 git commands to generate.