shadow-utils-vl.spec 14 KB

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