finger-vl.spec 7.9 KB

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