123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446 |
- %define WITH_SELINUX 0
- Summary: Utilities for managing accounts and shadow password files.
- Summary(ja): シャドウパスワードファイルとアカウントを管理するユーティリティ
- Name: shadow-utils
- Version: 4.1.5.1
- Release: 1%{?_dist_release}
- Epoch: 2
- URL: http://pkg-shadow.alioth.debian.org/
- License: BSD
- Group: System Environment/Base
- Source0: http://pkg-shadow.alioth.debian.org/shadow-%{version}.tar.bz2
- Source1: shadow-4.0.17-login.defs
- Source2: shadow-utils.useradd
- Patch0: shadow-4.1.5-redhat.patch
- Patch1: shadow-4.1.5.1-goodname.patch
- Patch2: shadow-4.1.5.1-info-parent-dir.patch
- Patch3: shadow-4.1.5-uflg.patch
- Patch6: shadow-4.1.5.1-selinux.patch
- Patch7: shadow-4.1.5-2ndskip.patch
- Patch8: shadow-4.1.5.1-backup-mode.patch
- Patch9: shadow-4.1.5.1-merge-group.patch
- Patch10: shadow-4.1.5.1-orig-context.patch
- Patch11: shadow-4.1.5.1-logmsg.patch
- Patch12: shadow-4.1.5.1-errmsg.patch
- Patch13: shadow-4.1.5.1-audit-owner.patch
- Patch14: shadow-4.1.5.1-default-range.patch
- Patch15: shadow-4.1.5.1-manfix.patch
- Patch16: shadow-4.1.5.1-crypt-null.patch
- Patch17: shadow-4.1.5.1-userdel-helpfix.patch
- Patch18: shadow-4.1.5.1-group-alloc.patch
- Buildroot: %{_tmppath}/%{name}-%{version}-root
- #BuildRequires: autoconf, automake, libtool, gettext
- Obsoletes: adduser
- %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.
- %description -l ja
- shadow-utilsパッケージはUNIXパスワードファイルをシャドウパスワー
- ドフォーマットに変換するのに必要なプログラムとユーザやグループア
- カウントを管理するプログラムを含みます。
- pwconvコマンドはパスワードをシャドウパスワードフォーマットに変換
- します。pwunconvコマンドはシャドウパスワードを逆変換し、npasswd
- ファイル(標準のUNIXパスワードファイル)を生成します。pwckコマンド
- はパスワードファイルとシャドウパスワードファイルの完全性をチェッ
- クします。lastlogコマンドは全ユーザの最後にログインした時間を出
- 力します。useradd、userdelやusermodコマンドはユーザーアカウント
- を管理するのに使用されます。groupadd、groupdelやgroupmodコマンド
- はグループアカウントを管理するのに使用されます。
-
- %prep
- %setup -q -n shadow-%{version}
- %patch0 -p1 -b .redhat
- %patch1 -p1 -b .goodname
- %patch2 -p1 -b .info-parent-dir
- %patch3 -p1 -b .uflg
- %if %{WITH_SELINUX}
- %patch6 -p1 -b .selinux
- %endif
- %patch7 -p1 -b .2ndskip
- %patch8 -p1 -b .backup-mode
- %patch9 -p1 -b .merge-group
- %patch10 -p1 -b .orig-context
- %patch11 -p1 -b .logmsg
- %patch12 -p1 -b .errmsg
- %patch13 -p1 -b .audit-owner
- %patch14 -p1 -b .default-range
- %patch15 -p1 -b .manfix
- %patch16 -p1 -b .crypt-null
- %patch17 -p1 -b .userdel
- %patch18 -p1 -b .group-alloc
- #autoreconf -f -i
- %build
- export CFLAGS="$RPM_OPT_FLAGS -fpie"
- export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
- %configure \
- --enable-shadowgrp \
- --without-libcrack \
- --with-sha-crypt \
- %if %{WITH_SELINUX}
- --with-selinux \
- %else
- --without-selinux \
- %endif
- --without-libpam \
- --disable-shared \
- --with-group-name-max-length=32
- make
- %install
- rm -rf $RPM_BUILD_ROOT
- make install DESTDIR=$RPM_BUILD_ROOT gnulocaledir=$RPM_BUILD_ROOT/%{_datadir}/locale MKINSTALLDIRS=`pwd`/mkinstalldirs
- install -d -m 755 $RPM_BUILD_ROOT/etc/default
- install -c -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/etc/login.defs
- install -c -m 0600 %{SOURCE2} $RPM_BUILD_ROOT/etc/default/useradd
- ln -s useradd $RPM_BUILD_ROOT%{_sbindir}/adduser
- 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
- # Remove binaries we don't use.
- rm $RPM_BUILD_ROOT/%{_bindir}/chfn
- rm $RPM_BUILD_ROOT/%{_bindir}/chsh
- rm $RPM_BUILD_ROOT/%{_bindir}/expiry
- 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}/nologin
- rm $RPM_BUILD_ROOT/%{_sbindir}/chgpasswd
- rm $RPM_BUILD_ROOT/%{_mandir}/man1/chfn.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/chfn.*
- rm $RPM_BUILD_ROOT/%{_mandir}/man1/chsh.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/chsh.*
- rm $RPM_BUILD_ROOT/%{_mandir}/man1/expiry.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/expiry.*
- rm $RPM_BUILD_ROOT/%{_mandir}/man1/groups.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/groups.*
- rm $RPM_BUILD_ROOT/%{_mandir}/man1/login.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/login.*
- rm $RPM_BUILD_ROOT/%{_mandir}/man1/passwd.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/passwd.*
- rm $RPM_BUILD_ROOT/%{_mandir}/man1/su.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/su.*
- rm $RPM_BUILD_ROOT/%{_mandir}/man5/limits.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man5/limits.*
- rm $RPM_BUILD_ROOT/%{_mandir}/man5/login.access.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man5/login.access.*
- rm $RPM_BUILD_ROOT/%{_mandir}/man5/passwd.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man5/passwd.*
- rm $RPM_BUILD_ROOT/%{_mandir}/man5/porttime.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man5/porttime.*
- 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/nologin.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/nologin.*
- rm $RPM_BUILD_ROOT/%{_mandir}/man8/chgpasswd.*
- rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/chgpasswd.*
- %find_lang shadow
- %clean
- rm -rf $RPM_BUILD_ROOT
- %files -f shadow.lang
- %defattr(-,root,root)
- %doc NEWS doc/HOWTO README
- %dir /etc/default
- %attr(0644,root,root) %config /etc/login.defs
- %attr(0600,root,root) %config /etc/default/useradd
- %{_bindir}/sg
- %{_bindir}/chage
- %{_bindir}/faillog
- %{_bindir}/gpasswd
- %{_bindir}/lastlog
- %{_bindir}/newgrp
- %{_sbindir}/adduser
- %{_sbindir}/user*
- %{_sbindir}/group*
- %{_sbindir}/grpck
- %{_sbindir}/pwck
- %{_sbindir}/*conv
- %{_sbindir}/chpasswd
- %{_sbindir}/newusers
- %{_sbindir}/vipw
- %{_sbindir}/vigr
- %{_mandir}/man1/chage.1*
- %{_mandir}/*/man1/chage.1*
- %{_mandir}/man1/gpasswd.1*
- %{_mandir}/*/man1/gpasswd.1*
- %{_mandir}/man1/sg.1*
- %{_mandir}/*/man1/sg.1*
- %{_mandir}/man1/newgrp.1*
- %{_mandir}/*/man1/newgrp.1*
- %{_mandir}/man3/shadow.3*
- %{_mandir}/*/man3/shadow.3*
- %{_mandir}/man3/getspnam.3*
- %{_mandir}/*/man3/getspnam.3*
- %{_mandir}/man5/shadow.5*
- %{_mandir}/*/man5/shadow.5*
- %{_mandir}/man5/login.defs.5*
- %{_mandir}/*/man5/login.defs.5*
- %{_mandir}/man5/gshadow.5*
- %{_mandir}/*/man5/gshadow.5*
- %{_mandir}/man5/faillog.5*
- %{_mandir}/*/man5/faillog.5*
- %{_mandir}/man8/adduser.8*
- %{_mandir}/*/man8/adduser.8*
- %{_mandir}/man8/group*.8*
- %{_mandir}/*/man8/group*.8*
- %{_mandir}/man8/user*.8*
- %{_mandir}/*/man8/user*.8*
- %{_mandir}/man8/pwck.8*
- %{_mandir}/*/man8/pwck.8*
- %{_mandir}/man8/grpck.8*
- %{_mandir}/*/man8/grpck.8*
- %{_mandir}/man8/chpasswd.8*
- %{_mandir}/*/man8/chpasswd.8*
- %{_mandir}/man8/newusers.8*
- %{_mandir}/*/man8/newusers.8*
- %{_mandir}/man8/*conv.8*
- %{_mandir}/*/man8/*conv.8*
- %{_mandir}/man8/lastlog.8*
- %{_mandir}/*/man8/lastlog.8*
- %{_mandir}/man8/faillog.8*
- %{_mandir}/*/man8/faillog.8*
- %{_mandir}/man8/vipw.8*
- %{_mandir}/*/man8/vipw.8*
- %{_mandir}/man8/vigr.8*
- %{_mandir}/*/man8/vigr.8*
- %changelog
- * Wed Jul 09 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2:4.1.5.1-1
- - update to 4.1.5.1
- * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 2:4.1.4.2-2
- - rebuilt with rpm-4.8.1-3
- * 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/
- - update URL:, SOURCES: to new upstream
- * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2:4.0.16-1vl5
- - applied new versioning policy, spec in utf-8
- * Tue Aug 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.0.16-0vl3
- - update Patch0 to fix <BTS:0499>
- - select smaller gid value for system account
- * Tue Aug 08 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.0.16-0vl2
- - update ja.po from debian-doc (committed in upstream)
- * Mon Jun 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.0.16-0vl1
- - new upstream release
- - add Japanese Summary and descriptions from spec file translation project.
- - convert Japanese man pages to EUC-JP from UTF-8
- - import changes from FC pacakge.
- * Mon Jan 31 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1:4.0.3-35vl2
- - rebuild for VineSeed
- * Sun Jan 09 2005 IKEDA Katsumi <ikeda@webmasters.gr.jp> 2:4.0.3-35vl1.1
- - added a security patch (shadow-4.0.3-can-2004-1001.patch) for CAN-2004-1001.
- * Mon Oct 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.0.3-35vl1
- - import Patch1[3-7] from fedora development.
- - fixed username/groupname limits. (vine-users:54797)
- * Sat Apr 10 2004 <tkoba@vinelinux.org> 4.0.3-21vl1
- - sync to fedora
- * Fri Jun 08 2001 <sagami@vinelinux.org>
- - 20000902-1vl1: added ja.po from 19990827-10vl2
- - disable patch9 (creating mailspool in /var/mail)
- * Tue May 22 2001 Bernhard Rosenkraenzer <bero@redhat.com> 20000902-1
- - Create an empty mailspool when creating a user so non-setuid/non-setgid
- MDAs (postfix+procmail) can deliver mail (#41811)
- - 20000902
- - adapt patches
- * Fri Mar 9 2001 Nalin Dahyabhai <nalin@redhat.com>
- - don't overwrite user dot files in useradd (#19982)
- - truncate new files when moving overwriting files with the contents of other
- files while moving directories (keeps files from looking weird later on)
- - configure using %%{_prefix} as the prefix
- * Fri Feb 23 2001 Trond Eivind Glomsr藷?<teg@redhat.com>
- - langify
- * Wed Aug 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - Fix up chage behavior (Bug #15883)
- * Wed Aug 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - 20000826
- - Fix up useradd man page (Bug #17036)
- * Tue Aug 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - check for vipw lock before adding or deleting users (Bug #6489)
- * Mon Aug 7 2000 Nalin Dahyabhai <nalin@redhat.com>
- - take LOG_CONS out of the openlog() call so that we don't litter the
- screen during text-mode upgrades
- * Tue Jul 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - Remove a fixed-size buffer that caused problems when adding a huge number
- of users to a group (>8192 bytes) (Bugs #3809, #11930)
- * Tue Jul 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - remove dependency on util-linux because it causes prereq loops
- * Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
- - change symlinked man pages to includers
- - require /usr/bin/newgrp (util-linux) so that /usr/bin/sg isn't left dangling
- * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- - automatic rebuild
- * Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
- - use mandir for FHS
- - added patches in src/ and po/ to honor DESTDIR
- - use make install DESTDIR=$RPM_BUILD_ROOT
- * Wed Feb 16 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - Fix up usermod's symlink behavior (Bug #5458)
- * Fri Feb 11 2000 Cristian Gafton <gafton@redhat.com>
- - get rid of mkpasswd
- * Mon Feb 7 2000 Nalin Dahyabhai <nalin@redhat.com>
- - fix usermod patch to check for shadow before doing any shadow-specific stuff
- and merge it into the pwlock patch
- * Sat Feb 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - fix man symlinks
- * Wed Feb 2 2000 Nalin Dahyabhai <gafton@redhat.com>
- - make -p only change shadow password (bug #8923)
- * Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com>
- - rebuild to fix dependeencies
- - man pages are compressed
- * Wed Jan 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - Fix a security bug (adduser could overwrite previously existing
- groups, Bug #8609)
- * Sun Jan 9 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - unset LINGUAS before building
- - Fix typo in newusers manpage (Bug #8258)
- - libtoolize
- * Wed Sep 22 1999 Cristian Gafton <gafton@redhat.com>
- - fix segfault for userdel when the primary group for the user is not
- defined
- * Tue Sep 21 1999 Cristian Gafton <gafton@redhat.com>
- - Serial: 1 because now we are using 19990827 (why the heck can't they have
- a normal version just like everybody else?!)
- - ported all patches to the new code base
- * Thu Apr 15 1999 Bill Nottingham <notting@redhat.com>
- - SIGHUP nscd from usermod, too
- * Fri Apr 09 1999 Michael K. Johnson <johnsonm@redhat.com>
- - added usermod password locking from Chris Adams <cadams@ro.com>
- * Thu Apr 08 1999 Bill Nottingham <notting@redhat.com>
- - have things that modify users/groups SIGHUP nscd on exit
- * Wed Mar 31 1999 Michael K. Johnson <johnsonm@redhat.com>
- - have userdel remove user private groups when it is safe to do so
- - allow -f to force user removal even when user appears busy in utmp
- * Tue Mar 23 1999 Preston Brown <pbrown@redhat.com>
- - edit out unused CHFN fields from login.defs.
- * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- - auto rebuild in the new build environment (release 7)
- * 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 /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
|