|
@@ -3,7 +3,7 @@
|
|
|
Summary: Utilities for managing accounts and shadow password files.
|
|
|
Summary(ja): シャドウパスワードファイルとアカウントを管理するユーティリティ
|
|
|
Name: shadow-utils
|
|
|
-Version: 4.1.4.1
|
|
|
+Version: 4.1.4.2
|
|
|
Release: 1%{?_dist_release}
|
|
|
Epoch: 2
|
|
|
URL: http://pkg-shadow.alioth.debian.org/
|
|
@@ -12,12 +12,14 @@ Group: System Environment/Base
|
|
|
|
|
|
Source0: http://pkg-shadow.alioth.debian.org/shadow-%{version}.tar.bz2
|
|
|
Source1: shadow-4.0.17-login.defs
|
|
|
-Source2: shadow-4.0.18.1-useradd
|
|
|
-#Source100: shadow-4.0.16-ja.po
|
|
|
-Patch0: shadow-4.1.4-redhat.patch
|
|
|
+Source2: shadow-utils.useradd
|
|
|
+Patch0: shadow-4.1.4.2-redhat.patch
|
|
|
+Patch1: shadow-4.1.4.1-goodname.patch
|
|
|
+Patch2: shadow-4.1.4.2-leak.patch
|
|
|
+Patch3: shadow-4.1.4.2-fixes.patch
|
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-BuildRequires: autoconf, automake, libtool, gettext
|
|
|
+#BuildRequires: autoconf, automake, libtool, gettext
|
|
|
Obsoletes: adduser
|
|
|
|
|
|
%description
|
|
@@ -49,22 +51,25 @@ pwconvコマンドはパスワードをシャドウパスワードフォーマ
|
|
|
%prep
|
|
|
%setup -q -n shadow-%{version}
|
|
|
%patch0 -p1 -b .redhat-vine
|
|
|
+%patch1 -p1 -b .goodname
|
|
|
+%patch2 -p1 -b .leak
|
|
|
+%patch3 -p1 -b .fixes
|
|
|
|
|
|
-autoreconf -f -i
|
|
|
+#autoreconf -f -i
|
|
|
|
|
|
%build
|
|
|
%configure \
|
|
|
- --disable-desrpc \
|
|
|
--enable-shadowgrp \
|
|
|
--without-libcrack \
|
|
|
- --with-libcrypt \
|
|
|
+ --with-sha-crypt \
|
|
|
%if %{WITH_SELINUX}
|
|
|
--with-selinux \
|
|
|
%else
|
|
|
--without-selinux \
|
|
|
%endif
|
|
|
--without-libpam \
|
|
|
- --disable-shared
|
|
|
+ --disable-shared \
|
|
|
+ --with-group-name-max-length=32
|
|
|
make
|
|
|
|
|
|
%install
|
|
@@ -76,7 +81,7 @@ install -c -m 0600 %{SOURCE2} $RPM_BUILD_ROOT/etc/default/useradd
|
|
|
|
|
|
|
|
|
ln -s useradd $RPM_BUILD_ROOT%{_sbindir}/adduser
|
|
|
-ln -s %{_mandir}/man8/useradd.8 $RPM_BUILD_ROOT/%{_mandir}/man8/adduser.8
|
|
|
+ln -s useradd.8 $RPM_BUILD_ROOT/%{_mandir}/man8/adduser.8
|
|
|
for subdir in $RPM_BUILD_ROOT/%{_mandir}/{??,??_??,??_??.*}/man* ; do
|
|
|
test -d $subdir && test -e $subdir/useradd.8 && echo ".so man8/useradd.8" > $subdir/adduser.8
|
|
|
done
|
|
@@ -89,9 +94,9 @@ rm $RPM_BUILD_ROOT/%{_bindir}/groups
|
|
|
rm $RPM_BUILD_ROOT/%{_bindir}/login
|
|
|
rm $RPM_BUILD_ROOT/%{_bindir}/passwd
|
|
|
rm $RPM_BUILD_ROOT/%{_bindir}/su
|
|
|
+rm $RPM_BUILD_ROOT/%{_sysconfdir}/login.access
|
|
|
+rm $RPM_BUILD_ROOT/%{_sysconfdir}/limits
|
|
|
rm $RPM_BUILD_ROOT/%{_sbindir}/logoutd
|
|
|
-rm $RPM_BUILD_ROOT/%{_sbindir}/vipw
|
|
|
-rm $RPM_BUILD_ROOT/%{_sbindir}/vigr
|
|
|
rm $RPM_BUILD_ROOT/%{_sbindir}/nologin
|
|
|
rm $RPM_BUILD_ROOT/%{_sbindir}/chgpasswd
|
|
|
rm $RPM_BUILD_ROOT/%{_mandir}/man1/chfn.*
|
|
@@ -120,12 +125,8 @@ rm $RPM_BUILD_ROOT/%{_mandir}/man5/suauth.*
|
|
|
rm $RPM_BUILD_ROOT/%{_mandir}/*/man5/suauth.*
|
|
|
rm $RPM_BUILD_ROOT/%{_mandir}/man8/logoutd.*
|
|
|
rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/logoutd.*
|
|
|
-rm $RPM_BUILD_ROOT/%{_mandir}/man8/vipw.*
|
|
|
-rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/vipw.*
|
|
|
rm $RPM_BUILD_ROOT/%{_mandir}/man8/nologin.*
|
|
|
rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/nologin.*
|
|
|
-rm $RPM_BUILD_ROOT/%{_mandir}/man8/vigr.*
|
|
|
-rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/vigr.*
|
|
|
rm $RPM_BUILD_ROOT/%{_mandir}/man8/chgpasswd.*
|
|
|
rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/chgpasswd.*
|
|
|
|
|
@@ -138,9 +139,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%defattr(-,root,root)
|
|
|
%doc NEWS doc/HOWTO README
|
|
|
%dir /etc/default
|
|
|
-%attr(0644,root,root) %config /etc/limits
|
|
|
%attr(0644,root,root) %config /etc/login.defs
|
|
|
-%attr(0644,root,root) %config /etc/login.access
|
|
|
%attr(0600,root,root) %config /etc/default/useradd
|
|
|
%{_bindir}/sg
|
|
|
%{_bindir}/chage
|
|
@@ -198,6 +197,15 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_mandir}/*/man8/faillog.8*
|
|
|
|
|
|
%changelog
|
|
|
+* Mon Apr 12 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.1.4.2-1
|
|
|
+- new upstream release
|
|
|
+- add vipw/vigr (moved from util-linux-ng)
|
|
|
+- max group name length set to 32 characters
|
|
|
+- update Patch0
|
|
|
+ - increase threshold for uid/gid reservations to 200
|
|
|
+- import Patch1,2,3 from fedora
|
|
|
+- disable autoreconf
|
|
|
+
|
|
|
* Mon Jun 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.1.4.1-1
|
|
|
- new upstream release
|
|
|
- NEW UPSTREAM: http://pkg-shadow.alioth.debian.org/
|