Summary: Shadow password file utilities for Linux
Summary(de): Shadow-Paßwortdatei-Dienstprogramme für Linux
-Summary(fr): Fichiers utilitaires pour Shadow password pour Linux.
+Summary(fr): Fichiers utilitaires pour Shadow password pour Linux
Summary(pl): Narzêdzia do obs³ugi shadow passwords
Summary(tr): Gölge parola dosyasý araçlarý
+Summary(pt_BR): Utilitários para o arquivo de senhas Shadow
+Summary(es): Utilitarios para el archivo de contraseñas Shadow
Name: shadow
-Version: 981228
-Release: 2
-Copyright: BSD
-Group: Utilities/System
-Group(pl): Narzêdzia/System
-URL: ftp://ftp.ists.pwr.wroc.pl/pub/linux/shadow
-Source0: %{name}-%{version}.tar.gz
+Version: 4.0.0
+Release: 5
+Epoch: 1
+License: BSD
+Group: Applications/System
+Group(de): Applikationen/System
+Group(pl): Aplikacje/System
+Source0: ftp://ftp.pld.org.pl/software/shadow/%{name}-%{version}.tar.bz2
Source1: %{name}-login.defs
Source2: %{name}.useradd
-Source3: shells
-Patch0: shadow-man.patch
-Patch1: shadow-useradd.patch
-Patch2: shadow-groupadd.patch
-Patch3: shadow-getdef.patch
-Buildroot: /tmp/%{name}-%{version}-root
+Source3: chage.pamd
+Source4: userdb.pamd
+Source5: chsh.pamd
+Source6: chfn.pamd
+Source7: passwd.pamd
+Source8: useradd.pamd
+Patch0: %{name}-utmpx.patch
+Patch1: %{name}-pld.patch
+BuildRequires: pam-devel
+Provides: shadow-utils
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Obsoletes: shadow-utils
+Obsoletes: passwd
%description
-This package includes the programs necessary to convert standard
-UNIX password files to the shadow password format, as well as
-programs for command-line management of the user's accounts.
- - 'pwconv' converts everything to the shadow password format.
- - 'pwunconv' unconverts from shadow passwords, generating a file
- in the current directory called npasswd that is a standard UNIX
- password file.
- - 'pwck' checks the integrity of the password and shadow files.
- - 'lastlog' prints out the last login times of all users.
- - 'useradd', 'userdel' and 'usermod' for accounts management.
- - 'groupadd', 'groupdel' and 'groupmod' for group management.
-
-A number of man pages are also included that relate to these utilities,
-and shadow passwords in general.
+This package includes the programs necessary to convert standard UNIX
+password files to the shadow password format, as well as programs for
+command-line management of the user's accounts.
+ - pwconv - converts everything to the shadow password format,
+ - pwunconv - unconverts from shadow passwords, generating a file in
+ the current directory called npasswd that is a standard UNIX password
+ file,
+ - pwck - checks the integrity of the password and shadow files,
+ - lastlog - prints out the last login times of all users,
+ - useradd, userdel, usermod - for accounts management,
+ - groupadd, groupdel, groupmod - for group management.
+
+A number of man pages are also included that relate to these
+utilities, and shadow passwords in general.
%description -l pl
Pakiet zawiera programy do obs³ugi shadow password. Zanjduj± siê w nim
-programy do konwersji standardowego pliku hase³ do wersji shadow password
-a tak¿e programy do zarz±danie kontami u¿ytkowników w systemie
- - 'pwconv' konwertuje do formatu shadow passwords
- - 'pwunconv' konwertuje z shadow passwords do formatu standardowego
- pliku hase³. W bierz±cym katalogu tworzy plik npasswd bêd±cy
- standardowym plikiem z has³ami.
- - 'lastlog' wy¶wietla czas logowanie u¿ytkowników
- - 'userdel' i 'usermod' do zarz±dzania kontami
- u¿ytkowników.
- - 'groupadd', 'groupdel' and 'groupmod' do zarz±dzania grupami
+programy do konwersji standardowego pliku hase³ do wersji shadow
+password a tak¿e programy do zarz±dania kontami u¿ytkowników w
+systemie
+ - pwconv - konwertuje do formatu shadow passwords
+ - pwunconv - konwertuje z shadow passwords do formatu standardowego
+ pliku hase³. W bie¿±cym katalogu tworzy plik npasswd bêd±cy
+ standardowym plikiem z has³ami,
+ - lastlog - wy¶wietla czas logowania u¿ytkowników,
+ - useradd, userdel, usermod - do zarz±dzania kontami u¿ytkowników,
+ - groupadd, groupdel, groupmod - do zarz±dzania grupami.
Ostrze¿enie:
-Programy znajduj±ce siê w tym pakiecie s± niezbêdne do prawid³owej pracy
-twojego systemu i podobnie jak pakiet z bibliotekami systemowymi - glibc
-nigdy nie powinien zostaæ odinstalowany !
+Programy znajduj±ce siê w tym pakiecie s± niezbêdne do prawid³owej
+pracy twojego systemu i podobnie jak pakiet z bibliotekami systemowymi
+- glibc nigdy nie powinien zostaæ odinstalowany!
+
+%description -l pt_BR
+Este pacote inclui os programas necessários para converter
+arquivos-padrão UNIX de senha para o formato shadow.
+ - pwconv - converte tudo para o formato de senhas do shadow,
+ - pwunconv - desconverte senhas shadow, gerando um arquivo no
+ diretório corrente chamado npasswd que é o arquivo-padrão UNIX de
+ senha,
+ - pwck - checa a integridade da senha e dos arquivos shadow,
+ - lastlog - mostra o último momento de login de todos os usuários.
+
+Várias páginas de manual estão também incluídas sobre estes
+utilitários e senhas shadow em geral.
+
+%description -l es
+Este paquete incluye los programas necesarios para convertir Archivos
+padrón UNIX de contraseña al formato shadow.
+ - pwconv5 - convierte todo al formato de contraseñas del shadow,
+ - pwunconv - deshace la conversión de contraseñas shadow, creando un
+ archivo en el directorio corriente llamado npasswd que es el archivo
+ padrón UNIX de contraseña,
+ - pwck - chequea la integridad de la contraseña y de los archivos
+ shadow,
+ - lastlog enseña el último momento de login de todos los usuarios.
+ Están también incluidas, en general, varias páginas de manual sobre
+ estos utilitarios y contraseñas shadow.
+
+%package extras
+Summary: shadow - not often used files
+Summary(pl): shadow - pliki nie u¿ywane czêsto
+Group: Applications/System
+Group(de): Applikationen/System
+Group(pl): Aplikacje/System
+Requires: %{name} = %{version}
+
+%description extras
+Programs for shadow often not used. If you have small system you may
+skip them.
+
+%description -l pl extras
+Programy nie u¿ywane czêsto. W ma³ych systemach mo¿na je pomin±æ.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
-%patch2 -p1
-%patch3 -p1
%build
-autoconf
-CFLAGS=$RPM_OPT_FLAGS LDFLAGS=-s \
- ./configure \
- --prefix=/usr \
+%configure \
--disable-desrpc \
--with-libcrypt \
- --disable-shared \
+ %{!?_without_static:--enable-static} \
+ %{!?_without_static:--disable-shared} \
+ %{?_without_static:--disable-static} \
+ %{?_without_static:--enable-shared} \
--with-libpam \
--with-md5crypt \
--with-nls \
- --without-included-gettext
-make
+ --without-included-gettext
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make install prefix=$RPM_BUILD_ROOT/usr exec_prefix=$RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/default
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/{default,pam.d,security,skel}
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/login.defs
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/default/useradd
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/shells
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/chage
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/shadow
+install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/chsh
+install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/chfn
+install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/passwd
+install %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/useradd
-touch $RPM_BUILD_ROOT/etc/shadow
+:> $RPM_BUILD_ROOT%{_sysconfdir}/shadow
+touch $RPM_BUILD_ROOT/etc/security/{chfn,chsh}.allow
+touch $RPM_BUILD_ROOT%{_sysconfdir}/{porttime,utmp}
-echo .so pwconv.8 > $RPM_BUILD_ROOT/usr/man/man8/pwunconv.8
-echo .so pwconv.8 > $RPM_BUILD_ROOT/usr/man/man8/grpconv.8
-echo .so pwconv.8 > $RPM_BUILD_ROOT/usr/man/man8/grpunconv.8
+touch $RPM_BUILD_ROOT%{_sysconfdir}/{d_passwd,dialups}
+install man/dpasswd.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install man/ja/dpasswd.8 $RPM_BUILD_ROOT%{_mandir}/ja/man8
+install man/pl/dpasswd.8 $RPM_BUILD_ROOT%{_mandir}/pl/man8
+install man/pl/dialups.5 $RPM_BUILD_ROOT%{_mandir}/pl/man5
-gzip -9nf $RPM_BUILD_ROOT/usr/man/man[1358]/* \
- doc/ANNOUNCE doc/CHANGES doc/README doc/README.linux doc/HOWTO
+ln -sf vipw $RPM_BUILD_ROOT%{_sbindir}/vigr
+
+echo .so newgrp.1 > $RPM_BUILD_ROOT%{_mandir}/man1/sg.1
+echo .so vipw.8 > $RPM_BUILD_ROOT%{_mandir}/man8/vigr.8
+
+echo .so newgrp.1 > $RPM_BUILD_ROOT%{_mandir}/pl/man1/sg.1
+echo .so vipw.8 > $RPM_BUILD_ROOT%{_mandir}/pl/man8/vigr.8
+
+echo .so newgrp.1 > $RPM_BUILD_ROOT%{_mandir}/ja/man1/sg.1
+
+gzip -9nf doc/ANNOUNCE NEWS doc/README doc/README.linux doc/HOWTO
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
%post
+%{!?_without_static:#}/sbin/ldconfig
if [ ! -f /etc/shadow ]; then
-/usr/sbin/pwconv
+ %{_sbindir}/pwconv
fi
-%clean
-rm -rf $RPM_BUILD_ROOT
+%{!?_without_static:#}%postun -p /sbin/ldconfig
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
-
%doc doc/*.gz
-%attr(750,root,root) %dir /etc/default
-%attr(640,root,root) %config %verify(not size mtime md5) /etc/default/*
-
-%config(noreplace) %verify(not size mtime md5) /etc/login.defs
-%config(noreplace) %verify(not size mtime md5) /etc/shells
-%attr(400,root,root) %config(noreplace) %verify(not size mtime md5) /etc/shadow
-
-%attr(755,root,root) /usr/sbin/user*
-%attr(755,root,root) /usr/sbin/group*
-%attr(755,root,root) /usr/sbin/grpck
-%attr(755,root,root) /usr/sbin/pwck
-%attr(755,root,root) /usr/sbin/*conv
-%attr(755,root,root) /usr/sbin/chpasswd
-%attr(755,root,root) /usr/sbin/newusers
-%attr(755,root,root) /usr/sbin/mkpasswd
-%attr(755,root,root) /usr/bin/chage
-%attr(755,root,root) /usr/bin/gpasswd
-%attr(755,root,root) /usr/bin/lastlog
-%attr(755,root,root) /usr/bin/faillog
-
-/usr/man/man1/chage.1.gz
-/usr/man/man1/gpasswd.1.gz
-/usr/man/man3/shadow.3.gz
-/usr/man/man5/shadow.5.gz
-/usr/man/man5/faillog.5.gz
-/usr/man/man8/group*.8.gz
-/usr/man/man8/user*.8.gz
-/usr/man/man8/pwck.8.gz
-/usr/man/man8/grpck.8.gz
-/usr/man/man8/chpasswd.8.gz
-/usr/man/man8/newusers.8.gz
-/usr/man/man8/mkpasswd.8.gz
-/usr/man/man8/*conv.8.gz
-/usr/man/man8/lastlog.8.gz
-/usr/man/man8/faillog.8.gz
-
-%lang(el) /usr/share/locale/el/LC_MESSAGES/shadow.mo
-
-%changelog
-* Tue Feb 02 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [981228-1d]
-- updated to 981228,
-- compressed documentation && man pages
-- added Group(pl).
-
-* Fri Oct 09 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [980724-1d]
-- build against PLD Tornado,
-- restricted files permissions,
-- removed adduser,
-- renamed invalid package name to shadow,
-- added %postin scripts,
-- fixed pl translation,
-- minor changes.
-
-* Tue Sep 1 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
-- modify to build non-root
-- change mkdir to install -d
-- %attr makros
-- translations for pl
-- update source URL
-
-* Fri Aug 21 1998 Jeff Johnson <jbj@redhat.com>
-- Note that /usr/sbin/mkpasswd conflicts with /usr/bin/mkpasswd;
- one of these (I think /usr/sbin/mkpasswd but other opinions are valid)
- should probably be renamed. In any case, mkpasswd.8 from this package
- needs to be installed. (problem #823)
-
-* Fri May 08 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
-- updated to 980403
-- redid the patches
-
-* Tue Dec 30 1997 Cristian Gafton <gafton@redhat.com>
-- updated the spec file
-- updated the patch so that new accounts created on shadowed system won't
- confuse pam_pwdb anymore ('!!' default password instead on '!')
-- fixed a bug that made useradd -G segfault
-- the check for the ut_user is now patched into configure
-
-* Thu Nov 13 1997 Erik Troan <ewt@redhat.com>
-- added patch for XOPEN oddities in glibc headers
-- check for ut_user before checking for ut_name -- this works around some
- confusion on glibc 2.1 due to the utmpx header not defining the ut_name
- compatibility stuff. I used a gross sed hack here because I couldn't make
- automake work properly on the sparc (this could be a glibc 2.0.99 problem
- though). The utuser patch works fine, but I don't apply it.
-- sleep after running autoconf
-
-* Thu Nov 06 1997 Cristian Gafton <gafton@redhat.com>
-- added forgot lastlog command to the spec file
-
-* Mon Oct 26 1997 Cristian Gafton <gafton@redhat.com>
-- obsoletes adduser
-
-* Thu Oct 23 1997 Cristian Gafton <gafton@redhat.com>
-- modified groupadd; updated the patch
-
-* Fri Sep 12 1997 Cristian Gafton <gafton@redhat.com>
-- updated to 970616
-- changed useradd to meet RH specs
-- fixed some bugs
-
-* Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
+%attr(750,root,root) %dir %{_sysconfdir}/default
+%attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/default/*
+%attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/chage
+%attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/shadow
+%attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/passwd
+%attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/useradd
+
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/login.defs
+%attr(400,root,root) %ghost %{_sysconfdir}/shadow
+
+%dir /etc/skel
+
+%{!?_without_static:#}%attr(755,root,root) %{_libdir}/lib*
+%attr(755,root,root) %{_sbindir}/user*
+%attr(755,root,root) %{_sbindir}/group*
+%attr(755,root,root) %{_sbindir}/grpck
+%attr(755,root,root) %{_sbindir}/pwck
+%attr(755,root,root) %{_sbindir}/*conv
+%attr(755,root,root) %{_sbindir}/vigr
+%attr(755,root,root) %{_sbindir}/vipw
+%attr(4755,root,root) %{_bindir}/passwd
+%attr(755,root,root) %{_bindir}/faillog
+%attr(755,root,root) %{_bindir}/groups
+%attr(755,root,root) %{_bindir}/lastlog
+
+%{_mandir}/man1/passwd.*
+#%{_mandir}/man1/su.*
+%{_mandir}/man5/faillog.*
+%{_mandir}/man5/login.*
+%{_mandir}/man5/passwd.*
+%{_mandir}/man5/shadow.*
+%{_mandir}/man5/suauth.*
+%{_mandir}/man8/faillog.*
+%{_mandir}/man8/groupadd.*
+%{_mandir}/man8/groupdel.*
+%{_mandir}/man8/groupmod.*
+%{_mandir}/man8/grpck.*
+%{_mandir}/man8/grpconv.*
+%{_mandir}/man8/grpunconv.*
+%{_mandir}/man8/lastlog.*
+%{_mandir}/man8/pwck.*
+%{_mandir}/man8/pwconv.*
+%{_mandir}/man8/pwunconv.*
+%{_mandir}/man8/useradd.*
+%{_mandir}/man8/userdel.*
+%{_mandir}/man8/usermod.*
+%{_mandir}/man8/vigr.*
+%{_mandir}/man8/vipw.*
+
+%lang(ja) %{_mandir}/ja/man1/passwd.*
+%lang(ja) %{_mandir}/ja/man5/faillog.*
+%lang(ja) %{_mandir}/ja/man5/login.defs.*
+%lang(ja) %{_mandir}/ja/man5/passwd.*
+%lang(ja) %{_mandir}/ja/man5/shadow.*
+%lang(ja) %{_mandir}/ja/man8/faillog.*
+%lang(ja) %{_mandir}/ja/man8/groupadd.*
+%lang(ja) %{_mandir}/ja/man8/groupdel.*
+%lang(ja) %{_mandir}/ja/man8/groupmod.*
+%lang(ja) %{_mandir}/ja/man8/grpck.*
+%lang(ja) %{_mandir}/ja/man8/lastlog.*
+%lang(ja) %{_mandir}/ja/man8/pwck.*
+%lang(ja) %{_mandir}/ja/man8/pwconv.*
+%lang(ja) %{_mandir}/ja/man8/userdel.*
+%lang(ja) %{_mandir}/ja/man8/usermod.*
+
+%lang(pl) %{_mandir}/pl/man1/passwd.*
+%lang(pl) %{_mandir}/pl/man5/faillog.*
+%lang(pl) %{_mandir}/pl/man5/login.defs.*
+%lang(pl) %{_mandir}/pl/man5/passwd.*
+%lang(pl) %{_mandir}/pl/man5/shadow.*
+%lang(pl) %{_mandir}/pl/man8/faillog.*
+%lang(pl) %{_mandir}/pl/man8/groupadd.*
+%lang(pl) %{_mandir}/pl/man8/groupdel.*
+%lang(pl) %{_mandir}/pl/man8/groupmod.*
+%lang(pl) %{_mandir}/pl/man8/grpck.*
+%lang(pl) %{_mandir}/pl/man8/grpconv.*
+%lang(pl) %{_mandir}/pl/man8/grpunconv.*
+%lang(pl) %{_mandir}/pl/man8/lastlog.*
+%lang(pl) %{_mandir}/pl/man8/pwck.*
+%lang(pl) %{_mandir}/pl/man8/pwconv.*
+%lang(pl) %{_mandir}/pl/man8/pwunconv.*
+%lang(pl) %{_mandir}/pl/man8/useradd.*
+%lang(pl) %{_mandir}/pl/man8/userdel.*
+%lang(pl) %{_mandir}/pl/man8/usermod.*
+%lang(pl) %{_mandir}/pl/man8/vigr.*
+%lang(pl) %{_mandir}/pl/man8/vipw.*
+
+%lang(pt_BR) %{_mandir}/pt_BR/man5/shadow.*
+%lang(pt_BR) %{_mandir}/pt_BR/man8/groupadd.*
+%lang(pt_BR) %{_mandir}/pt_BR/man8/groupdel.*
+%lang(pt_BR) %{_mandir}/pt_BR/man8/groupmod.*
+
+%files extras
+%defattr(644,root,root,755)
+%attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/chsh
+%attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/chfn
+%attr(640,root,root) %config %verify(not size mtime md5) /etc/security/*
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/d_passwd
+%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dialups
+%attr(755,root,root) %{_bindir}/chage
+%attr(4755,root,root) %{_bindir}/chfn
+%attr(4755,root,root) %{_bindir}/chsh
+%attr(4755,root,root) %{_bindir}/expiry
+%attr(4755,root,root) %{_bindir}/gpasswd
+%attr(4755,root,root) %{_bindir}/newgrp
+%attr(755,root,root) %{_sbindir}/chpasswd
+%attr(755,root,root) %{_sbindir}/dpasswd
+%attr(755,root,root) %{_sbindir}/mkpasswd
+%attr(755,root,root) %{_sbindir}/newusers
+%attr(755,root,root) %{_bindir}/sg
+#%attr(755,root,root) %{_bindir}/su
+
+%{_mandir}/man1/chage.*
+%{_mandir}/man1/chfn.*
+%{_mandir}/man1/chsh.*
+%{_mandir}/man1/expiry.*
+%{_mandir}/man1/gpasswd.*
+%{_mandir}/man1/newgrp.*
+%{_mandir}/man1/sg.*
+%{_mandir}/man8/chpasswd.*
+%{_mandir}/man8/dpasswd.*
+%{_mandir}/man8/mkpasswd.*
+%{_mandir}/man8/newusers.*
+
+%lang(ja) %{_mandir}/ja/man1/chage.*
+%lang(ja) %{_mandir}/ja/man1/chfn.*
+%lang(ja) %{_mandir}/ja/man1/chsh.*
+%lang(ja) %{_mandir}/ja/man1/gpasswd.*
+%lang(ja) %{_mandir}/ja/man1/newgrp.*
+%lang(ja) %{_mandir}/ja/man1/sg.*
+%lang(ja) %{_mandir}/ja/man8/chpasswd.*
+%lang(ja) %{_mandir}/ja/man8/dpasswd.*
+%lang(ja) %{_mandir}/ja/man8/mkpasswd.*
+
+%lang(pl) %{_mandir}/pl/man1/chage.*
+%lang(pl) %{_mandir}/pl/man1/chfn.*
+%lang(pl) %{_mandir}/pl/man1/chsh.*
+%lang(pl) %{_mandir}/pl/man1/newgrp.*
+%lang(pl) %{_mandir}/pl/man1/gpasswd.*
+%lang(pl) %{_mandir}/pl/man1/sg.*
+%lang(pl) %{_mandir}/pl/man5/d_passwd.*
+%lang(pl) %{_mandir}/pl/man5/dialups.*
+%lang(pl) %{_mandir}/pl/man8/chpasswd.*
+%lang(pl) %{_mandir}/pl/man8/dpasswd.*
+%lang(pl) %{_mandir}/pl/man8/mkpasswd.*
+%lang(pl) %{_mandir}/pl/man8/newusers.*
+
+%lang(pt_BR) %{_mandir}/pt_BR/man1/gpasswd.*