source: projects/specs/trunk/s/shadow-utils/shadow-utils-vl.spec @ 8800

Revision 8800, 15.3 KB checked in by daisuke, 10 years ago (diff)

shadow-utils: update to 4.1.5.1

Line 
1%define WITH_SELINUX 0
2
3Summary: Utilities for managing accounts and shadow password files.
4Summary(ja): シャドウパスワードファイルとアカウントを管理するユーティリティ
5Name: shadow-utils
6Version: 4.1.5.1
7Release: 1%{?_dist_release}
8Epoch: 2
9URL: http://pkg-shadow.alioth.debian.org/
10License: BSD
11Group: System Environment/Base
12
13Source0: http://pkg-shadow.alioth.debian.org/shadow-%{version}.tar.bz2
14Source1: shadow-4.0.17-login.defs
15Source2: shadow-utils.useradd
16Patch0: shadow-4.1.5-redhat.patch
17Patch1: shadow-4.1.5.1-goodname.patch
18Patch2: shadow-4.1.5.1-info-parent-dir.patch
19Patch3: shadow-4.1.5-uflg.patch
20Patch6: shadow-4.1.5.1-selinux.patch
21Patch7: shadow-4.1.5-2ndskip.patch
22Patch8: shadow-4.1.5.1-backup-mode.patch
23Patch9: shadow-4.1.5.1-merge-group.patch
24Patch10: shadow-4.1.5.1-orig-context.patch
25Patch11: shadow-4.1.5.1-logmsg.patch
26Patch12: shadow-4.1.5.1-errmsg.patch
27Patch13: shadow-4.1.5.1-audit-owner.patch
28Patch14: shadow-4.1.5.1-default-range.patch
29Patch15: shadow-4.1.5.1-manfix.patch
30Patch16: shadow-4.1.5.1-crypt-null.patch
31Patch17: shadow-4.1.5.1-userdel-helpfix.patch
32Patch18: shadow-4.1.5.1-group-alloc.patch
33
34Buildroot: %{_tmppath}/%{name}-%{version}-root
35#BuildRequires: autoconf, automake, libtool, gettext
36Obsoletes: adduser
37
38%description
39The shadow-utils package includes the necessary programs for
40converting UNIX password files to the shadow password format, plus
41programs for managing user and group accounts. The pwconv command
42converts passwords to the shadow password format. The pwunconv command
43unconverts shadow passwords and generates an npasswd file (a standard
44UNIX password file). The pwck command checks the integrity of password
45and shadow files. The lastlog command prints out the last login times
46for all users. The useradd, userdel, and usermod commands are used for
47managing user accounts. The groupadd, groupdel, and groupmod commands
48are used for managing group accounts.
49
50%description -l ja
51shadow-utilsパッケージはUNIXパスワードファイルをシャドウパスワー
52ドフォーマットに変換するのに必要なプログラムとユーザやグループア
53カウントを管理するプログラムを含みます。
54pwconvコマンドはパスワードをシャドウパスワードフォーマットに変換
55します。pwunconvコマンドはシャドウパスワードを逆変換し、npasswd
56ファイル(標準のUNIXパスワードファイル)を生成します。pwckコマンド
57はパスワードファイルとシャドウパスワードファイルの完全性をチェッ
58クします。lastlogコマンドは全ユーザの最後にログインした時間を出
59力します。useradd、userdelやusermodコマンドはユーザーアカウント
60を管理するのに使用されます。groupadd、groupdelやgroupmodコマンド
61はグループアカウントを管理するのに使用されます。
62 
63
64%prep
65%setup -q -n shadow-%{version}
66%patch0 -p1 -b .redhat
67%patch1 -p1 -b .goodname
68%patch2 -p1 -b .info-parent-dir
69%patch3 -p1 -b .uflg
70%if %{WITH_SELINUX}
71%patch6 -p1 -b .selinux
72%endif
73%patch7 -p1 -b .2ndskip
74%patch8 -p1 -b .backup-mode
75%patch9 -p1 -b .merge-group
76%patch10 -p1 -b .orig-context
77%patch11 -p1 -b .logmsg
78%patch12 -p1 -b .errmsg
79%patch13 -p1 -b .audit-owner
80%patch14 -p1 -b .default-range
81%patch15 -p1 -b .manfix
82%patch16 -p1 -b .crypt-null
83%patch17 -p1 -b .userdel
84%patch18 -p1 -b .group-alloc
85
86#autoreconf -f -i
87
88%build
89
90export CFLAGS="$RPM_OPT_FLAGS -fpie"
91export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
92
93%configure \
94        --enable-shadowgrp \
95        --without-libcrack \
96        --with-sha-crypt \
97%if %{WITH_SELINUX}
98        --with-selinux \
99%else
100        --without-selinux \
101%endif
102        --without-libpam \
103        --disable-shared \
104        --with-group-name-max-length=32
105make
106
107%install
108rm -rf $RPM_BUILD_ROOT
109make install DESTDIR=$RPM_BUILD_ROOT gnulocaledir=$RPM_BUILD_ROOT/%{_datadir}/locale MKINSTALLDIRS=`pwd`/mkinstalldirs
110install -d -m 755 $RPM_BUILD_ROOT/etc/default
111install -c -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/etc/login.defs
112install -c -m 0600 %{SOURCE2} $RPM_BUILD_ROOT/etc/default/useradd
113
114
115ln -s useradd $RPM_BUILD_ROOT%{_sbindir}/adduser
116ln -s useradd.8 $RPM_BUILD_ROOT/%{_mandir}/man8/adduser.8
117for subdir in $RPM_BUILD_ROOT/%{_mandir}/{??,??_??,??_??.*}/man* ; do
118        test -d $subdir && test -e $subdir/useradd.8 && echo ".so man8/useradd.8" > $subdir/adduser.8
119done
120
121# Remove binaries we don't use.
122rm $RPM_BUILD_ROOT/%{_bindir}/chfn
123rm $RPM_BUILD_ROOT/%{_bindir}/chsh
124rm $RPM_BUILD_ROOT/%{_bindir}/expiry
125rm $RPM_BUILD_ROOT/%{_bindir}/groups
126rm $RPM_BUILD_ROOT/%{_bindir}/login
127rm $RPM_BUILD_ROOT/%{_bindir}/passwd
128rm $RPM_BUILD_ROOT/%{_bindir}/su
129rm $RPM_BUILD_ROOT/%{_sysconfdir}/login.access
130rm $RPM_BUILD_ROOT/%{_sysconfdir}/limits
131rm $RPM_BUILD_ROOT/%{_sbindir}/logoutd
132rm $RPM_BUILD_ROOT/%{_sbindir}/nologin
133rm $RPM_BUILD_ROOT/%{_sbindir}/chgpasswd
134rm $RPM_BUILD_ROOT/%{_mandir}/man1/chfn.*
135rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/chfn.*
136rm $RPM_BUILD_ROOT/%{_mandir}/man1/chsh.*
137rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/chsh.*
138rm $RPM_BUILD_ROOT/%{_mandir}/man1/expiry.*
139rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/expiry.*
140rm $RPM_BUILD_ROOT/%{_mandir}/man1/groups.*
141rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/groups.*
142rm $RPM_BUILD_ROOT/%{_mandir}/man1/login.*
143rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/login.*
144rm $RPM_BUILD_ROOT/%{_mandir}/man1/passwd.*
145rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/passwd.*
146rm $RPM_BUILD_ROOT/%{_mandir}/man1/su.*
147rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/su.*
148rm $RPM_BUILD_ROOT/%{_mandir}/man5/limits.*
149rm $RPM_BUILD_ROOT/%{_mandir}/*/man5/limits.*
150rm $RPM_BUILD_ROOT/%{_mandir}/man5/login.access.*
151rm $RPM_BUILD_ROOT/%{_mandir}/*/man5/login.access.*
152rm $RPM_BUILD_ROOT/%{_mandir}/man5/passwd.*
153rm $RPM_BUILD_ROOT/%{_mandir}/*/man5/passwd.*
154rm $RPM_BUILD_ROOT/%{_mandir}/man5/porttime.*
155rm $RPM_BUILD_ROOT/%{_mandir}/*/man5/porttime.*
156rm $RPM_BUILD_ROOT/%{_mandir}/man5/suauth.*
157rm $RPM_BUILD_ROOT/%{_mandir}/*/man5/suauth.*
158rm $RPM_BUILD_ROOT/%{_mandir}/man8/logoutd.*
159rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/logoutd.*
160rm $RPM_BUILD_ROOT/%{_mandir}/man8/nologin.*
161rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/nologin.*
162rm $RPM_BUILD_ROOT/%{_mandir}/man8/chgpasswd.*
163rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/chgpasswd.*
164
165%find_lang shadow
166
167%clean
168rm -rf $RPM_BUILD_ROOT
169
170%files -f shadow.lang
171%defattr(-,root,root)
172%doc NEWS doc/HOWTO README
173%dir /etc/default
174%attr(0644,root,root)   %config /etc/login.defs
175%attr(0600,root,root)   %config /etc/default/useradd
176%{_bindir}/sg
177%{_bindir}/chage
178%{_bindir}/faillog
179%{_bindir}/gpasswd
180%{_bindir}/lastlog
181%{_bindir}/newgrp
182%{_sbindir}/adduser
183%{_sbindir}/user*
184%{_sbindir}/group*
185%{_sbindir}/grpck
186%{_sbindir}/pwck
187%{_sbindir}/*conv
188%{_sbindir}/chpasswd
189%{_sbindir}/newusers
190%{_sbindir}/vipw
191%{_sbindir}/vigr
192%{_mandir}/man1/chage.1*
193%{_mandir}/*/man1/chage.1*
194%{_mandir}/man1/gpasswd.1*
195%{_mandir}/*/man1/gpasswd.1*
196%{_mandir}/man1/sg.1*
197%{_mandir}/*/man1/sg.1*
198%{_mandir}/man1/newgrp.1*
199%{_mandir}/*/man1/newgrp.1*
200%{_mandir}/man3/shadow.3*
201%{_mandir}/*/man3/shadow.3*
202%{_mandir}/man3/getspnam.3*
203%{_mandir}/*/man3/getspnam.3*
204%{_mandir}/man5/shadow.5*
205%{_mandir}/*/man5/shadow.5*
206%{_mandir}/man5/login.defs.5*
207%{_mandir}/*/man5/login.defs.5*
208%{_mandir}/man5/gshadow.5*
209%{_mandir}/*/man5/gshadow.5*
210%{_mandir}/man5/faillog.5*
211%{_mandir}/*/man5/faillog.5*
212%{_mandir}/man8/adduser.8*
213%{_mandir}/*/man8/adduser.8*
214%{_mandir}/man8/group*.8*
215%{_mandir}/*/man8/group*.8*
216%{_mandir}/man8/user*.8*
217%{_mandir}/*/man8/user*.8*
218%{_mandir}/man8/pwck.8*
219%{_mandir}/*/man8/pwck.8*
220%{_mandir}/man8/grpck.8*
221%{_mandir}/*/man8/grpck.8*
222%{_mandir}/man8/chpasswd.8*
223%{_mandir}/*/man8/chpasswd.8*
224%{_mandir}/man8/newusers.8*
225%{_mandir}/*/man8/newusers.8*
226%{_mandir}/man8/*conv.8*
227%{_mandir}/*/man8/*conv.8*
228%{_mandir}/man8/lastlog.8*
229%{_mandir}/*/man8/lastlog.8*
230%{_mandir}/man8/faillog.8*
231%{_mandir}/*/man8/faillog.8*
232%{_mandir}/man8/vipw.8*
233%{_mandir}/*/man8/vipw.8*
234%{_mandir}/man8/vigr.8*
235%{_mandir}/*/man8/vigr.8*
236
237%changelog
238* Wed Jul 09 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2:4.1.5.1-1
239- update to 4.1.5.1
240
241* Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 2:4.1.4.2-2
242- rebuilt with rpm-4.8.1-3
243
244* Mon Apr 12 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.1.4.2-1
245- new upstream release
246- add vipw/vigr (moved from util-linux-ng)
247- max group name length set to 32 characters
248- update Patch0
249  - increase threshold for uid/gid reservations to 200
250- import Patch1,2,3 from fedora
251- disable autoreconf
252
253* Mon Jun 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.1.4.1-1
254- new upstream release
255  - NEW UPSTREAM: http://pkg-shadow.alioth.debian.org/
256  - update URL:, SOURCES: to new upstream
257
258* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2:4.0.16-1vl5
259- applied new versioning policy, spec in utf-8
260
261* Tue Aug 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.0.16-0vl3
262- update Patch0 to fix <BTS:0499>
263  - select smaller gid value for system account
264
265* Tue Aug 08 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.0.16-0vl2
266- update ja.po from debian-doc (committed in upstream)
267
268* Mon Jun 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.0.16-0vl1
269- new upstream release
270- add Japanese Summary and descriptions from spec file translation project.
271- convert Japanese man pages to EUC-JP from UTF-8
272- import changes from FC pacakge.
273
274* Mon Jan 31 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1:4.0.3-35vl2
275- rebuild for VineSeed
276
277* Sun Jan 09 2005 IKEDA Katsumi <ikeda@webmasters.gr.jp> 2:4.0.3-35vl1.1
278- added a security patch (shadow-4.0.3-can-2004-1001.patch) for CAN-2004-1001.
279
280* Mon Oct 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2:4.0.3-35vl1
281- import Patch1[3-7] from fedora development.
282- fixed username/groupname limits. (vine-users:54797)
283
284* Sat Apr 10 2004 <tkoba@vinelinux.org> 4.0.3-21vl1
285- sync to fedora
286
287* Fri Jun 08 2001 <sagami@vinelinux.org>
288- 20000902-1vl1: added ja.po from 19990827-10vl2
289- disable patch9 (creating mailspool in /var/mail)
290
291* Tue May 22 2001 Bernhard Rosenkraenzer <bero@redhat.com> 20000902-1
292- Create an empty mailspool when creating a user so non-setuid/non-setgid
293  MDAs (postfix+procmail) can deliver mail (#41811)
294- 20000902
295- adapt patches
296
297* Fri Mar  9 2001 Nalin Dahyabhai <nalin@redhat.com>
298- don't overwrite user dot files in useradd (#19982)
299- truncate new files when moving overwriting files with the contents of other
300  files while moving directories (keeps files from looking weird later on)
301- configure using %%{_prefix} as the prefix
302
303* Fri Feb 23 2001 Trond Eivind Glomsr藷?<teg@redhat.com>
304- langify
305
306* Wed Aug 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
307- Fix up chage behavior (Bug #15883)
308
309* Wed Aug 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
310- 20000826
311- Fix up useradd man page (Bug #17036)
312
313* Tue Aug  8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
314- check for vipw lock before adding or deleting users (Bug #6489)
315
316* Mon Aug  7 2000 Nalin Dahyabhai <nalin@redhat.com>
317- take LOG_CONS out of the openlog() call so that we don't litter the
318  screen during text-mode upgrades
319
320* Tue Jul 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
321- Remove a fixed-size buffer that caused problems when adding a huge number
322  of users to a group (>8192 bytes) (Bugs #3809, #11930)
323
324* Tue Jul 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
325- remove dependency on util-linux because it causes prereq loops
326
327* Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
328- change symlinked man pages to includers
329- require /usr/bin/newgrp (util-linux) so that /usr/bin/sg isn't left dangling
330
331* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
332- automatic rebuild
333
334* Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
335- use mandir for FHS
336- added patches in src/ and po/ to honor DESTDIR
337- use make install DESTDIR=$RPM_BUILD_ROOT
338
339* Wed Feb 16 2000 Bernhard Rosenkraenzer <bero@redhat.com>
340- Fix up usermod's symlink behavior (Bug #5458)
341
342* Fri Feb 11 2000 Cristian Gafton <gafton@redhat.com>
343- get rid of mkpasswd
344
345* Mon Feb  7 2000 Nalin Dahyabhai <nalin@redhat.com>
346- fix usermod patch to check for shadow before doing any shadow-specific stuff
347  and merge it into the pwlock patch
348
349* Sat Feb  5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
350- fix man symlinks
351
352* Wed Feb  2 2000 Nalin Dahyabhai <gafton@redhat.com>
353- make -p only change shadow password (bug #8923)
354
355* Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com>
356- rebuild to fix dependeencies
357- man pages are compressed
358
359* Wed Jan 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
360- Fix a security bug (adduser could overwrite previously existing
361  groups, Bug #8609)
362
363* Sun Jan  9 2000 Bernhard Rosenkraenzer <bero@redhat.com>
364- unset LINGUAS before building
365- Fix typo in newusers manpage (Bug #8258)
366- libtoolize
367
368* Wed Sep 22 1999 Cristian Gafton <gafton@redhat.com>
369- fix segfault for userdel when the primary group for the user is not
370  defined
371
372* Tue Sep 21 1999 Cristian Gafton <gafton@redhat.com>
373- Serial: 1 because now we are using 19990827 (why the heck can't they have
374  a normal version just like everybody else?!)
375- ported all patches to the new code base
376
377* Thu Apr 15 1999 Bill Nottingham <notting@redhat.com>
378- SIGHUP nscd from usermod, too
379
380* Fri Apr 09 1999 Michael K. Johnson <johnsonm@redhat.com>
381- added usermod password locking from Chris Adams <cadams@ro.com>
382
383* Thu Apr 08 1999 Bill Nottingham <notting@redhat.com>
384- have things that modify users/groups SIGHUP nscd on exit
385
386* Wed Mar 31 1999 Michael K. Johnson <johnsonm@redhat.com>
387- have userdel remove user private groups when it is safe to do so
388- allow -f to force user removal even when user appears busy in utmp
389
390* Tue Mar 23 1999 Preston Brown <pbrown@redhat.com>
391- edit out unused CHFN fields from login.defs.
392
393* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
394- auto rebuild in the new build environment (release 7)
395
396* Wed Jan 13 1999 Bill Nottingham <notting@redhat.com>
397- configure fix for arm
398
399* Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com>
400- build against glibc 2.1
401
402* Fri Aug 21 1998 Jeff Johnson <jbj@redhat.com>
403- Note that /usr/sbin/mkpasswd conflicts with /usr/bin/mkpasswd;
404  one of these (I think /usr/sbin/mkpasswd but other opinions are valid)
405  should probably be renamed.  In any case, mkpasswd.8 from this package
406  needs to be installed. (problem #823)
407
408* Fri May 08 1998 Prospector System <bugs@redhat.com>
409- translations modified for de, fr, tr
410
411* Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
412- updated to 980403
413- redid the patches
414
415* Tue Dec 30 1997 Cristian Gafton <gafton@redhat.com>
416- updated the spec file
417- updated the patch so that new accounts created on shadowed system won't
418  confuse pam_pwdb anymore ('!!' default password instead on '!')
419- fixed a bug that made useradd -G segfault
420- the check for the ut_user is now patched into configure
421
422* Thu Nov 13 1997 Erik Troan <ewt@redhat.com>
423- added patch for XOPEN oddities in glibc headers
424- check for ut_user before checking for ut_name -- this works around some
425  confusion on glibc 2.1 due to the utmpx header not defining the ut_name
426  compatibility stuff. I used a gross sed hack here because I couldn't make
427  automake work properly on the sparc (this could be a glibc 2.0.99 problem
428  though). The utuser patch works fine, but I don't apply it.
429- sleep after running autoconf
430
431* Thu Nov 06 1997 Cristian Gafton <gafton@redhat.com>
432- added forgot lastlog command to the spec file
433
434* Mon Oct 26 1997 Cristian Gafton <gafton@redhat.com>
435- obsoletes adduser
436
437* Thu Oct 23 1997 Cristian Gafton <gafton@redhat.com>
438- modified groupadd; updated the patch
439
440* Fri Sep 12 1997 Cristian Gafton <gafton@redhat.com>
441- updated to 970616
442- changed useradd to meet RH specs
443- fixed some bugs
444
445* Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
446- built against glibc
Note: See TracBrowser for help on using the repository browser.