auto-import changelog data from shadow-utils-20000902-4.src.rpm

Mon Aug 27 2001 Nalin Dahyabhai <nalin@redhat.com> 20000902-4
- use -O0 instead of -O on ia64
- build in source directory
- don't leave lock files on the filesystem when useradd creates a group for
    the user (#50269)
- fix the -o option to check for duplicate UIDs instead of login names
    (#52187)
This commit is contained in:
cvsdist 2004-09-09 12:21:54 +00:00
parent 7b57e0ca55
commit 7557aa8d70

View File

@ -1,7 +1,7 @@
Summary: Utilities for managing accounts and shadow password files. Summary: Utilities for managing accounts and shadow password files.
Name: shadow-utils Name: shadow-utils
Version: 20000902 Version: 20000902
Release: 3 Release: 4
Epoch: 1 Epoch: 1
Source0: ftp://ftp.ists.pwr.wroc.pl/pub/linux/shadow/shadow-%{version}.tar.bz2 Source0: ftp://ftp.ists.pwr.wroc.pl/pub/linux/shadow/shadow-%{version}.tar.bz2
Source1: shadow-970616.login.defs Source1: shadow-970616.login.defs
@ -10,12 +10,12 @@ Source3: adduser.8
Source4: pwunconv.8 Source4: pwunconv.8
Source5: grpconv.8 Source5: grpconv.8
Source6: grpunconv.8 Source6: grpunconv.8
Patch0: shadow-20000826-redhat.patch Patch0: shadow-20000902-redhat.patch
Patch1: shadow-20000902-nscd.patch Patch1: shadow-20000902-nscd.patch
Patch3: shadow-19990827-group.patch Patch2: shadow-19990827-group.patch
Patch5: shadow-20000902-vipw.patch Patch3: shadow-20000902-vipw.patch
Patch8: shadow-20000826-preserve.patch Patch4: shadow-20000826-preserve.patch
Patch9: shadow-20000902-mailspool.patch Patch5: shadow-20000902-mailspool.patch
License: BSD License: BSD
Group: System Environment/Base Group: System Environment/Base
Buildroot: %{_tmppath}/%{name}-%{version}-root Buildroot: %{_tmppath}/%{name}-%{version}-root
@ -24,63 +24,52 @@ Obsoletes: adduser
%description %description
The shadow-utils package includes the necessary programs for The shadow-utils package includes the necessary programs for
converting UNIX password files to the shadow password format, plus converting UNIX password files to the shadow password format, plus
programs for managing user and group accounts. The pwconv command programs for managing user and group accounts. The pwconv command
converts passwords to the shadow password format. The pwunconv converts passwords to the shadow password format. The pwunconv command
command unconverts shadow passwords and generates an npasswd file (a unconverts shadow passwords and generates an npasswd file (a standard
standard UNIX password file). The pwck command checks the integrity UNIX password file). The pwck command checks the integrity of password
of password and shadow files. The lastlog command prints out the last and shadow files. The lastlog command prints out the last login times
login times for all users. The useradd, userdel, and usermod commands for all users. The useradd, userdel, and usermod commands are used for
are used for managing user accounts. The groupadd, groupdel, and managing user accounts. The groupadd, groupdel, and groupmod commands
groupmod commands are used for managing group accounts. are used for managing group accounts.
%prep %prep
%setup -q -n shadow-%{version} %setup -q -n shadow-%{version}
%patch0 -p1 -b .redhat %patch0 -p1 -b .redhat
%patch1 -p1 -b .nscd %patch1 -p1 -b .nscd
%patch3 -p1 -b .group %patch2 -p1 -b .group
%patch5 -p1 -b .vipw %patch3 -p1 -b .vipw
%patch8 -p1 -b .preserve %patch4 -p1 -b .preserve
%patch9 -p1 -b .mailspool %patch5 -p1 -b .mailspool
%build %build
unset LINGUAS || :
libtoolize --copy --force
aclocal aclocal
automake automake
autoheader autoheader
autoconf autoconf
rm -rf build-$RPM_ARCH ; mkdir build-$RPM_ARCH ; cd build-$RPM_ARCH %ifarch ia64
%ifnarch ia64 CFLAGS="$RPM_OPT_FLAGS -O0 -D_BSD_SOURCE" ; export CFLAGS
CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=%{_prefix} \
--disable-desrpc --with-libcrypt --disable-shared \
--mandir=%{_mandir}
%else
CFLAGS="-O -D_BSD_SOURCE" ../configure --prefix=%{_prefix} \
--disable-desrpc --with-libcrypt --disable-shared \
--mandir=%{_mandir}
%endif %endif
%configure --disable-desrpc --with-libcrypt --disable-shared
make make
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
pushd build-$RPM_ARCH
make install DESTDIR=$RPM_BUILD_ROOT gnulocaledir=$RPM_BUILD_ROOT/%{_datadir}/locale make install DESTDIR=$RPM_BUILD_ROOT gnulocaledir=$RPM_BUILD_ROOT/%{_datadir}/locale
install -d -m 750 $RPM_BUILD_ROOT/etc/default install -d -m 750 $RPM_BUILD_ROOT/etc/default
install -c -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/etc/login.defs install -c -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/etc/login.defs
install -c -m 0600 %{SOURCE2} $RPM_BUILD_ROOT/etc/default/useradd install -c -m 0600 %{SOURCE2} $RPM_BUILD_ROOT/etc/default/useradd
ln -s useradd $RPM_BUILD_ROOT/usr/sbin/adduser ln -s useradd $RPM_BUILD_ROOT%{_sbindir}/adduser
install -m644 $RPM_SOURCE_DIR/adduser.8 $RPM_BUILD_ROOT%{_mandir}/man8/ 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/pwunconv.8 $RPM_BUILD_ROOT%{_mandir}/man8/
install -m644 $RPM_SOURCE_DIR/grpconv.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/ 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 perl -pi -e "s/encrpted/encrypted/g" $RPM_BUILD_ROOT%{_mandir}/man8/newusers.8
popd
%find_lang shadow %find_lang shadow
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
rm -rf build-$RPM_ARCH
%files -f shadow.lang %files -f shadow.lang
%defattr(-,root,root) %defattr(-,root,root)
@ -120,10 +109,17 @@ rm -rf build-$RPM_ARCH
%{_mandir}/man8/faillog.8* %{_mandir}/man8/faillog.8*
%changelog %changelog
* Thu Jul 26 2001 Bill Nottingham <notting@redhat.com> * Mon Aug 27 2001 Nalin Dahyabhai <nalin@redhat.com> 20000902-4
- use -O0 instead of -O on ia64
- build in source directory
- don't leave lock files on the filesystem when useradd creates a group for
the user (#50269)
- fix the -o option to check for duplicate UIDs instead of login names (#52187)
* Thu Jul 26 2001 Bill Nottingham <notting@redhat.com> 20000902-3
- build with -O on ia64 - build with -O on ia64
* Fri Jun 08 2001 Than Ngo <than@redhat.com> * Fri Jun 08 2001 Than Ngo <than@redhat.com> 20000902-2
- fixup broken specfile - fixup broken specfile
* Tue May 22 2001 Bernhard Rosenkraenzer <bero@redhat.com> 20000902-1 * Tue May 22 2001 Bernhard Rosenkraenzer <bero@redhat.com> 20000902-1