finger-vl.spec 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. Summary: The finger client.
  2. Summary(ja): finger クライアント
  3. Name: finger
  4. Version: 0.17
  5. Release: 36%{?_dist_release}
  6. License: BSD
  7. Group: Applications/Internet
  8. Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit-devel/bsd-finger-%{version}.tar.gz
  9. Source1: finger-xinetd
  10. Patch1: bsd-finger-0.16-pts.patch
  11. Patch2: bsd-finger-0.17-exact.patch
  12. Patch3: bsd-finger-0.16-allocbroken.patch
  13. Patch4: bsd-finger-0.17-rfc742.patch
  14. Patch5: bsd-finger-0.17-time.patch
  15. Patch6: bsd-finger-0.17-usagi-ipv6.patch
  16. Patch7: bsd-finger-0.17-typo.patch
  17. Patch8: bsd-finger-0.17-strip.patch
  18. Patch9: bsd-finger-0.17-utmp.patch
  19. Patch10: bsd-finger-wide-char-support5.patch
  20. Patch11: bsd-finger-0.17-init-realname.patch
  21. Patch12: bsd-finger-0.17-host-info.patch
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. BuildRequires: glibc-devel, perl
  24. %description
  25. Finger is a utility which allows users to see information about system
  26. users (login name, home directory, name, how long they've been logged
  27. in to the system, etc.). The finger package includes a standard
  28. finger client.
  29. You should install finger if you'd like to retreive finger information
  30. from other systems.
  31. %description -l ja
  32. finger はシステムを使用しているユーザの情報 (ログイン名,ホームディレクトリ,
  33. 氏名,システムにログインしてからの時間等) を見ることが出来るユーティリティ
  34. です.finger パッケージには標準的な finger クライアントが含まれます.
  35. 他のシステムから finger 情報を見るには finger をインストールして下さい.
  36. %package server
  37. Summary: The finger daemon.
  38. Summary(ja): finger デーモン
  39. Group: System Environment/Daemons
  40. Requires: xinetd
  41. %description server
  42. Finger is a utility which allows users to see information about system
  43. users (login name, home directory, name, how long they've been logged
  44. in to the system, etc.). The finger-server package includes a standard
  45. finger server. The server daemon (fingerd) runs from /etc/inetd.conf,
  46. which must be modified to disable finger requests.
  47. You should install finger-server if your system is used by multiple users
  48. and you'd like finger information to be available.
  49. %description server -l ja
  50. finger はシステムを使用しているユーザの情報 (ログイン名,ホームディレクトリ,
  51. 氏名,システムにログインしてからの時間等) を見ることが出来るユーティリティ
  52. です.finger-server パッケージには標準的な finger サーバが含まれます.
  53. サーバデーモン (fingerd) は /etc/inetd.conf から起動されますので,
  54. finger リクエストを無効にするにはこのファイルを編集して下さい.
  55. あなたのシステムが複数のユーザによって使われていて finger 情報を
  56. 提供するには finger-server パッケージをインストールして下さい.
  57. %prep
  58. %setup -q -n bsd-finger-%{version}
  59. %patch1 -p1 -b .pts
  60. %patch2 -p1 -b .exact
  61. %patch3 -p1
  62. %patch4 -p1 -b .rfc742
  63. %patch5 -p1 -b .time
  64. %patch6 -p1 -b .ipv6
  65. %patch7 -p1 -b .typo
  66. %patch8 -p1 -b .strip
  67. %patch9 -p1 -b .utmp
  68. %patch10 -p1 -b .widechar
  69. %patch11 -p1 -b .realname
  70. %patch12 -p1 -b .host
  71. %build
  72. sh configure --enable-ipv6
  73. RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC"
  74. perl -pi -e '
  75. s,^CC=.*$,CC=cc,;
  76. s,-O2,\$(RPM_OPT_FLAGS),;
  77. s,^BINDIR=.*$,BINDIR=%{_bindir},;
  78. s,^MANDIR=.*$,MANDIR=%{_mandir},;
  79. s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
  80. s,^LDFLAGS=.*$,LDFLAGS=-pie,;
  81. ' MCONFIG
  82. make %{?_smp_mflags}
  83. %install
  84. rm -rf $RPM_BUILD_ROOT
  85. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  86. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,8}
  87. mkdir -p $RPM_BUILD_ROOT%{_sbindir}
  88. mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
  89. install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/xinetd.d/finger
  90. make INSTALLROOT=$RPM_BUILD_ROOT install
  91. %clean
  92. rm -rf $RPM_BUILD_ROOT
  93. %files
  94. %defattr(-,root,root)
  95. %attr(0711,root,root) %{_bindir}/finger
  96. %{_mandir}/man1/finger.1*
  97. %files server
  98. %defattr(-,root,root)
  99. %config(noreplace) /etc/xinetd.d/finger
  100. %attr(0711,root,root) %{_sbindir}/in.fingerd
  101. %{_mandir}/man8/in.fingerd.8*
  102. %{_mandir}/man8/fingerd.8*
  103. %changelog
  104. * Mon Feb 06 2012 NAKAMURA Kenta <kenta@vinelinux.org> 0.17-36
  105. - updated Patch10
  106. - added Patch12 from Fedora
  107. * Tue Jul 13 2010 Petr Lautrbach <plautrba@redhat.com> 0.17-42
  108. - print user host information in better format (#532414) - <spoyarek@redhat.com>
  109. * Sun Jan 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-35
  110. - added Patch11 from Fedora
  111. * Mon Sep 7 2009 Radek Vokal <rvokal@redhat.com> - 0.17-39
  112. - init realname fix (#520203)
  113. - Requires: xinetd instead of inetd at server package
  114. * Mon Sep 22 2008 Shu KONNO <owa@bg.wakwak.com> 0.17-34
  115. - added compile option -fPIC
  116. * Sun Sep 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-33
  117. - applied new versioning policy
  118. - spec in UTF-8
  119. * Sat Jan 14 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-32vl1
  120. - based on Redhat Rawhide 0.17-32
  121. * Thu Dec 15 2005 Radek Vokal <rvokal@redhat.com> 0.17-32
  122. - another UTF-8 fix
  123. * Tue Dec 13 2005 Radek Vokal <rvokal@redhat.com> 0.17-31
  124. - real UTF-8 patch by <bnocera@redhat.com>
  125. * Mon Nov 28 2005 Radek Vokal <rvokal@redhat.com> 0.17-30
  126. - make finger UTF-8 happy (#174352)
  127. * Wed Jul 13 2005 Radek Vokal <rvokal@redhat.com> 0.17-29
  128. - make finger world readable (#162643)
  129. * Tue Jun 15 2004 Alan Cox <alan@redhat.com>
  130. - Made finger agree with our other apps about how utmp is managed
  131. - Removed dead users from the lists as a result
  132. - Fixed random idle time bug
  133. * Wed Feb 25 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-21
  134. - Made fingerd PIE.
  135. * Sun Sep 21 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-18vl1
  136. - based on Redhat Rawhide 0.17-18.1
  137. * Mon Sep 01 2003 Phil Knirsch <pknirsch@redhat.com> 0.17-18
  138. - Fixed manpage bug (#75705).
  139. * Wed Jun 19 2002 Phil Knirsch <pknirsch@redhat.com> 0.17-13
  140. - Don't forcibly strip binaries
  141. * Thu Jan 24 2002 Phil Knirsch <pknirsch@redhat.com>
  142. - Fixed various typos in manpage/app (#51891, #54916, #57588)
  143. - rebuilt with new toolchains
  144. - s/Copyright/License/
  145. * Wed Dec 19 2001 Toru Sagami <sagami@vinelinux.org> 0.17-3vl4
  146. - added a patch to build on glibc22 system
  147. * Tue Jan 09 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  148. - 0.17-3vl3
  149. - Oops, spec was written in SJIS...
  150. * Mon Jan 08 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  151. - 0.17-3vl2
  152. - added Japanese summary and description
  153. - rebuilt under new %%{_mandir} definitions
  154. * Mon Sep 18 2000 Jun Nishii <jun@vinelinux.org>
  155. - requires inetd instead of xinetd for Vine Linux 2.1
  156. * Sat Jul 22 2000 Jeff Johnson <jbj@redhat.com>
  157. - fix RFC742 problem (again) (#6728).
  158. * Tue Jul 18 2000 Bill Nottingham <notting@redhat.com>
  159. - add description & default to xinetd file
  160. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  161. - automatic rebuild
  162. * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
  163. - FHS packaging.
  164. - update to 0.17.
  165. * Wed May 31 2000 Cristian Gafton <gafton@redhat.com>
  166. - fix the broken malloc code in finger client
  167. * Mon May 22 2000 Trond Eivind Glomsr <teg@redhat.com>
  168. - converted to use /etc/xinetd.d
  169. * Tue May 16 2000 Chris Evans <chris@ferret.lmh.ox.ac.uk>
  170. - make some files mode -rwx--x--x as a security hardening measure
  171. * Fri Feb 11 2000 Bill Nottingham <notting@redhat.com>
  172. - fix description
  173. * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
  174. - handle compressed manpages
  175. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  176. - fix decsription
  177. - man pages are compressed
  178. * Tue Jan 4 2000 Bill Nottingham <notting@redhat.com>
  179. - split client and server
  180. * Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
  181. - update to 0.16.
  182. * Wed Jul 28 1999 Jeff Johnson <jbj@redhat.com>
  183. - exact match w/o -m and add missing pts patch (#2118).
  184. - recompile with correct PATH_MAILDIR (#4218).
  185. * Thu Apr 8 1999 Jeff Johnson <jbj@redhat.com>
  186. - fix process table filled DOS attack (#1271)
  187. - fix pts display problems (#1987 partially)
  188. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  189. - auto rebuild in the new build environment (release 22)
  190. * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
  191. - compile for 6.0.
  192. * Wed Aug 12 1998 Jeff Johnson <jbj@redhat.com>
  193. - fix error message typo.
  194. * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
  195. - build root
  196. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  197. - translations modified for de, fr, tr
  198. * Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
  199. - added check for getpwnam() failure