lsof-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. Summary: A utility which lists open files on a Linux/UNIX system.
  2. Summary(ja): 開かれているファイルの一覧を表示するツール
  3. Name: lsof
  4. Version: 4.78
  5. Release: 9%{?_dist_release}
  6. License: Distributable
  7. Group: Applications/System
  8. Distribution: Vine Linux
  9. # lsof contains licensed code that we cannot ship. Therefore we use
  10. # upstream2downstream.sh script to remove the code before shipping it.
  11. #
  12. # The script you can found in CVS or download from:
  13. # http://cvs.fedoraproject.org/viewcvs/rpms/lsof/devel/upstream2downstream.sh
  14. #
  15. %define lsofrh lsof_4.78C-rh
  16. Source0: %{lsofrh}.tar.bz2
  17. URL: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. Patch1: lsof_4.78C-threads.patch
  20. Patch2: lsof_4.78C-inode.patch
  21. Patch3: lsof_4.78C-selinux.patch
  22. %description
  23. Lsof stands for LiSt Open Files, and it does just that: it lists
  24. information about files that are open by the processes running on a
  25. UNIX system.
  26. %description -l ja
  27. Lsof は UNIX 特有の診断ツールです。その名前は LiSt Open Files を意味し、
  28. 文字通りの動作 (開かれているファイルの一覧を表示) をします。
  29. このプログラムは、システムで現在動作しているプロセスによって開かれている
  30. 全てのファイルに関する情報を表示します。
  31. %prep
  32. %setup -q -n %{lsofrh}
  33. # 184338 - allow lsof access nptl threads
  34. %patch1 -p1
  35. # 243976 - mmap'd files with large inode numbers confuse lsof
  36. %patch2 -p1
  37. # 280651 - lsof prints entries in multiple lines when SElinux is disabled
  38. %patch3 -p1
  39. %build
  40. LSOF_VSTR=2.6.23 LINUX_BASE=/proc ./Configure -n linux
  41. make DEBUG="$RPM_OPT_FLAGS" %{?_smp_mflags}
  42. #LSOF_VERS=24018 LSOF_VSTR=2.4.18 LINUX_BASE=/proc \
  43. # ./Configure -n linux
  44. %install
  45. rm -rf ${RPM_BUILD_ROOT}
  46. mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
  47. install -p -m 0755 lsof ${RPM_BUILD_ROOT}%{_prefix}/sbin
  48. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
  49. install -p lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
  50. %clean
  51. rm -rf ${RPM_BUILD_ROOT}
  52. %files
  53. %defattr(644,root,root,755)
  54. %doc 00*
  55. %attr(0755,root,root) %{_sbindir}/lsof
  56. %{_mandir}/man*/*
  57. %changelog
  58. * Sun Apr 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.78-9
  59. - changed Group to Applicaions/System
  60. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 4.78-8vl5
  61. - applied new versioning policy, spec in utf-8
  62. * Mon Oct 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.78-7vl2
  63. - rebuilt for VineSeed
  64. * Mon Oct 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.78-7vl1
  65. - rebuilt for VinePlus/4.0
  66. - s/Copyright/License/
  67. - based on Fedora Core
  68. * Fri Jan 21 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp>
  69. - 4.73-1vl1
  70. - based on Fedora Core 3
  71. * Mon Dec 13 2004 Karel Zak <kzak@redhat.com> 4.73-1
  72. - update to 4.73
  73. - remove lsof_4.72-sock.patch, already in the upstream code
  74. * Fri Jul 30 2004 Jakub Jelinek <jakub@redhat.com> 4.72-1
  75. - update to 4.72
  76. - use st_dev/st_ino comparison for sockets by name if possible
  77. (#126419)
  78. * Fri Jul 18 2003 Jakub Jelinek <jakub@redhat.com> 4.68-1
  79. - update to 4.68 (#99064)
  80. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  81. - rebuilt
  82. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  83. - rebuilt
  84. * Thu Dec 12 2002 Tim Powers <timp@redhat.com> 4.63-3
  85. - rebuild on all arches
  86. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  87. - automated rebuild
  88. * Fri Jun 21 2002 Jakub Jelinek <jakub@redhat.com> 4.63-1
  89. - update to 4.63 (#66333).
  90. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  91. - automated rebuild
  92. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  93. - automated rebuild
  94. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
  95. - Bump release + rebuild.
  96. * Thu Sep 7 2000 Jeff Johnson <jbj@redhat.com>
  97. - update to 4.51.
  98. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  99. - automatic rebuild
  100. * Wed Jun 14 2000 Jeff Johnson <jbj@redhat.com>
  101. - FHS packaging.
  102. * Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  103. - change to root:root perms
  104. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  105. - fix description
  106. - man pages are compressed
  107. * Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
  108. - update to 4.47.
  109. * Tue Aug 3 1999 Jeff Johnson <jbj@redhat.com>
  110. - update to 4.45.
  111. * Fri Jun 25 1999 Jeff Johnson <jbj@redhat.com>
  112. - update to 4.44.
  113. * Fri May 14 1999 Jeff Johnson <jbj@redhat.com>
  114. - upgrade to 4.43 with sparc64 tweak (#2803)
  115. * Thu Apr 08 1999 Preston Brown <pbrown@redhat.com>
  116. - upgrade to 4.42 (security fix)
  117. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  118. - auto rebuild in the new build environment (release 5)
  119. * Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
  120. - turn off setgid kmem "just in case".
  121. * Thu Feb 18 1999 Jeff Johnson <jbj@redhat.com>
  122. - buffer overflow patch.
  123. - upgrade to 4.40.
  124. * Wed Dec 30 1998 Jeff Johnson <jbj@redhat.com>
  125. - update to "official" 4.39 release.
  126. * Wed Dec 16 1998 Jeff Johnson <jbj@redhat.com>
  127. - update to 4.39B (linux) with internal kernel src.
  128. * Tue Dec 15 1998 Jeff Johnson <jbj@redhat.com>
  129. - update to 4.39A (linux)
  130. * Sat Sep 19 1998 Jeff Johnson <jbj@redhat.com>
  131. - update to 4.37
  132. * Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com>
  133. - update to 4.36
  134. * Thu Jul 23 1998 Jeff Johnson <jbj@redhat.com>
  135. - upgrade to 4.35.
  136. - rewrap for RH 5.2.
  137. * Mon Jun 29 1998 Maciej Lesniewski <nimir@kis.p.lodz.pl>
  138. [4.34-1]
  139. - New version
  140. - Spec rewriten to use %{name} and %{version} macros
  141. - Removed old log enteries
  142. * Tue Apr 28 1998 Maciej Lesniewski <nimir@kis.p.lodz.pl>
  143. - Built under RH5
  144. - %install was changed