%define version 20000902 %define release 5mdk %define url ftp://ftp.ists.pwr.wroc.pl/pub/linux/shadow/beta Summary: Utilities for managing shadow password files and user/group accounts Name: shadow-utils Version: %{version} Release: %{release} Source0: %{url}/shadow-%{version}.tar.bz2 Source1: shadow-970616.login.defs Source2: shadow-970616.useradd Source3: adduser.8 Source4: pwunconv.8 Source5: grpconv.8 Source6: grpunconv.8 Patch0: shadow-20000826-redhat.patch.bz2 Patch1: shadow-20000902-nscd.patch.bz2 Patch3: shadow-19990827-group.patch.bz2 Patch5: shadow-20000902-vipw.patch.bz2 Patch8: shadow-20000826-preserve.patch.bz2 Patch9: shadow-20000902-mailspool.patch.bz2 Patch100: shadow-20000826-no-syslog-setlocale.patch.bz2 Patch101: shadow-20000902-useradd-LSB-compliance.patch.bz2 Copyright: BSD Group: System/Base Buildroot: %{_tmppath}/%{name}-buildroot Obsoletes: adduser, newgrp Provides: adduser, newgrp Prefix: %{_prefix} %description The shadow-utils package includes the necessary programs for converting UNIX password files to the shadow password format, plus programs for managing user and group accounts. The pwconv command converts passwords to the shadow password format. The pwunconv command unconverts shadow passwords and generates an npasswd file (a standard UNIX password file). The pwck command checks the integrity of password and shadow files. The lastlog command prints out the last login times for all users. The useradd, userdel and usermod commands are used for managing user accounts. The groupadd, groupdel and groupmod commands are used for managing group accounts. %prep %setup -q -n shadow-%{version} %patch0 -p1 -b .redhat %patch1 -p1 -b .nscd %patch3 -p1 -b .group %patch5 -p1 -b .vipw %patch8 -p1 -b .preserve %patch9 -p1 -b .mailspool %patch100 -p1 -b .chmou %patch101 -p1 -b .lsb %build unset LINGUAS || : libtoolize --copy --force aclocal automake autoheader autoconf rm -rf build-$RPM_ARCH ; mkdir build-$RPM_ARCH ; cd build-$RPM_ARCH %ifnarch ia64 CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=%{_prefix} \ --disable-desrpc --with-libcrypt --disable-shared \ --mandir=%{_mandir} %else CFLAGS="$RPM_OPT_FLAGS -D_BSD_SOURCE" ../configure --prefix=%{_prefix} \ --disable-desrpc --with-libcrypt --disable-shared \ --mandir=%{_mandir} %endif #ln po/Makefile.in po/Makefile make %install rm -rf $RPM_BUILD_ROOT pushd build-$RPM_ARCH make install DESTDIR=$RPM_BUILD_ROOT gnulocaledir=$RPM_BUILD_ROOT/%{_datadir}/locale install -d -m 750 $RPM_BUILD_ROOT%{_sysconfdir}/default install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs install -m 0600 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd ln -s useradd $RPM_BUILD_ROOT/usr/sbin/adduser install -m644 $RPM_SOURCE_DIR/adduser.8 $RPM_BUILD_ROOT%{_mandir}/man8/ install -m644 $RPM_SOURCE_DIR/pwunconv.8 $RPM_BUILD_ROOT%{_mandir}/man8/ install -m644 $RPM_SOURCE_DIR/grpconv.8 $RPM_BUILD_ROOT%{_mandir}/man8/ install -m644 $RPM_SOURCE_DIR/grpunconv.8 $RPM_BUILD_ROOT%{_mandir}/man8/ perl -pi -e "s/encrpted/encrypted/g" $RPM_BUILD_ROOT%{_mandir}/man8/newusers.8 popd %find_lang %name %clean rm -rf $RPM_BUILD_ROOT rm -rf build-$RPM_ARCH %files -f %name.lang %defattr(-,root,root) %doc doc/ANNOUNCE doc/CHANGES doc/HOWTO %doc doc/LICENSE doc/README doc/README.linux %dir %{_sysconfdir}/default %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/login.defs %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/default/useradd %{_bindir}/sg %{_bindir}/chage %{_bindir}/faillog %{_bindir}/gpasswd %attr(4711,root,root) %{_bindir}/newgrp %{_bindir}/lastlog %{_sbindir}/adduser %{_sbindir}/user* %{_sbindir}/group* %{_sbindir}/grpck %{_sbindir}/pwck %{_sbindir}/*conv %{_sbindir}/chpasswd %{_sbindir}/newusers #%{_sbindir}/mkpasswd %{_mandir}/man1/chage.1* %{_mandir}/man1/newgrp.1* %{_mandir}/man1/gpasswd.1* %{_mandir}/man3/shadow.3* %{_mandir}/man5/shadow.5* %{_mandir}/man5/faillog.5* %{_mandir}/man8/adduser.8* %{_mandir}/man8/group*.8* %{_mandir}/man8/user*.8* %{_mandir}/man8/pwck.8* %{_mandir}/man8/grpck.8* %{_mandir}/man8/chpasswd.8* %{_mandir}/man8/newusers.8* #%{_mandir}/man8/mkpasswd.8* %{_mandir}/man8/*conv.8* %{_mandir}/man8/lastlog.8* %{_mandir}/man8/faillog.8* %changelog * Wed Dec 26 2001 Stew Benedict <sbenedict@mandraksoft.com> 20000902-5mdk - replace newgrp from util-linux with this version for LSB compliance * Sat Sep 29 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 20000902-4mdk - rpmlint correction. * Fri Sep 28 2001 Stew Benedict <sbenedict@mandrakesoft.com> 20000902-3mdk - patch useradd to allow blindly adding user when group of same name - exists - LSB requirement * Fri Sep 14 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 20000902-2mdk - Rebuild. * Wed Jun 6 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 20000902-1mdk - Update descriptions. - Merge rh patch. - 20000902. * Sun May 06 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 20000826-6mdk - Fix po install oddity (No Makefile created). * Tue Mar 13 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 20000826-5mdk - truncate new files when moving overwriting files with the contents of other files while moving directories (keeps files from looking weird later on)(rh). - don't overwrite user dot files in useradd (rh). * Wed Jan 10 2001 Vincent Danen <vdanen@mandrakesoft.com> 20000826-4mdk - security fix for insecure creation of tmpfiles * Fri Dec 22 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 20000826-3mdk - Really segfault of adduser, don't setlocale when doing a SYSLOG since the last SYSLOG check already for DOS attack. * Tue Nov 28 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 20000826-2mdk - Fix segfault of adduser. * Tue Nov 28 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 20000826-1mdk - Adjust file list. - 20000826. * Sun Sep 24 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 19990827-8mdk - Fix manpages. - Merge with rh patches. * Sat Sep 2 2000 Pixel <pixel@mandrakesoft.com> 19990827-7mdk - add noreplace - use find_lang * Thu Jul 20 2000 David BAUDENS <baudens@mandrakesoft.com> 19990827-6mdk - Human readble description * Thu Jul 20 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 19990827-5mdk - BM. - Merge rh patches. * Fri Mar 31 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 19990827-4mdk - Upgrade groups. - Spec-helper clean-up. * Fri Dec 3 1999 Florent Villard <warly@mandrakesoft.com> - correct a segfault problem with NIS * Tue Oct 26 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Merge with rh patchs. * Sat Apr 10 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com> - Mandrake adaptions - bzip2 man/info pages - add de locale * Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm * Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com> - build against glibc 2.1 * Fri Aug 21 1998 Jeff Johnson <jbj@redhat.com> - Note that %{_sbindir}/mkpasswd conflicts with %{_bindir}/mkpasswd; one of these (I think %{_sbindir}/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