shadow-utils-vl.spec 14 KB

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