slocate-vl.spec 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. Summary: Finds files on a system via a central database.
  2. Summary(ja): システム上のファイルをデータベースを使って検索します
  3. Name: slocate
  4. Version: 3.1
  5. Release: 1%{?_dist_release}
  6. License: GPL
  7. Group: Applications/System
  8. Source0: slocate-3.1.tar.gz
  9. Source1: slocate.cron
  10. Source2: updatedb.conf
  11. Source3: updatedb.conf.5
  12. Patch0: slocate-3.1-CVE-2007-0227.patch
  13. BuildRequires: gzip
  14. Requires(pre): shadow-utils
  15. Buildroot: %{_tmppath}/%{name}-%{version}-root
  16. %description
  17. Slocate is a security-enhanced version of locate. Just like locate,
  18. slocate searches through a central database (which is updated nightly)
  19. for files which match a given pattern. Slocate allows you to quickly
  20. find files anywhere on your system.
  21. %description -l ja
  22. slocate は locate のセキュリティ対策バージョンです.locate と同様に,
  23. slocate は (毎晩自動更新される) データベースを元に,指定したパターンに
  24. マッチするファイルを検索します.slocate を使って,システム上のどこにある
  25. ファイルでも高速に探し出すことが出来ます.
  26. %prep
  27. %setup -q
  28. %patch0 -p1
  29. %build
  30. sed -i "s/local\///g" Makefile
  31. sed -i "s/local\///g" src/Makefile
  32. make
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man{1,5}}
  36. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
  37. mkdir -p $RPM_BUILD_ROOT/var/lib/slocate
  38. install src/slocate $RPM_BUILD_ROOT%{_bindir}
  39. ln -sf slocate $RPM_BUILD_ROOT%{_bindir}/locate
  40. ln -sf slocate $RPM_BUILD_ROOT%{_bindir}/updatedb
  41. install doc/slocate.1 $RPM_BUILD_ROOT%{_mandir}/man1/slocate.1
  42. install doc/updatedb.1 $RPM_BUILD_ROOT%{_mandir}/man1
  43. ln -sf slocate.1 $RPM_BUILD_ROOT%{_mandir}/man1/locate.1
  44. install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
  45. install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
  46. install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man5
  47. %clean
  48. rm -rf $RPM_BUILD_ROOT
  49. %pre
  50. /usr/sbin/groupadd -g 21 -r -f slocate
  51. %preun
  52. if [ "$1" = "0" ]; then
  53. /usr/sbin/groupdel slocate
  54. rm -f /var/lib/slocate/slocate.db
  55. fi
  56. %files
  57. %defattr(-,root,root)
  58. %doc README LICENSE
  59. %attr(2755,root,slocate) %{_bindir}/slocate
  60. %attr(-,root,slocate) %{_bindir}/locate
  61. %attr(-,root,slocate) %{_bindir}/updatedb
  62. %attr(644,root,root) %{_mandir}/man[15]/*
  63. %attr(755,root,root) %{_sysconfdir}/cron.daily/slocate.cron
  64. %attr(644,root,root) %config %{_sysconfdir}/updatedb.conf
  65. %dir %attr(750,root,slocate) /var/lib/slocate
  66. %changelog
  67. * Wed Jan 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1-1
  68. - update to 3.1
  69. - remove old patches
  70. - add Patch0 (slocate-3.1-CVE-2007-0227.patch)
  71. * Sun Apr 17 2011 IWAI, Masaharu <iwai@alib.jp> 2.7-25vl6
  72. - build on current VineSeed
  73. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2.7-24vl5
  74. - applied new versioning policy, spec in utf-8
  75. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-24vl2
  76. - changed Group to Applications/System
  77. * Tue Aug 02 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-24vl1
  78. - added Patches based on Fedora development
  79. * Tue Jun 21 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-24
  80. - Add missing OOM handling to lazy-mtab.patch
  81. * Sun May 1 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-23
  82. - Remove "nodev" filesystems from PRUNEFS
  83. * Sat Apr 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-22
  84. - Point the user at updatedb.conf if the database is too old
  85. * Sat Apr 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-21
  86. - Don't assume paths in /etc/mtab don't contain symlinks (#139950, #110575)
  87. - Use %%config(noreplace) for /etc/updatedb.conf (#155014)
  88. * Sun Apr 3 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-20
  89. - Don't run updatedb by default
  90. * Tue Mar 29 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-19
  91. - Add updatedb.conf(5) (#135952)
  92. * Mon Mar 28 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-18
  93. - Drop unnecessary BuildRequires: autoconf
  94. - Remove /mnt/floppy from PRUNEPATHS, it's in /media now
  95. * Fri Mar 25 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-17
  96. - Update to debian slocate_2.7-4 (#151710)
  97. - Fix comment parsing in /etc/updatedb.conf (#135952)
  98. - Exclude /var/spool/squid and /var/spool/cups (#150388)
  99. - Remove 'export' lines from /etc/updatedb.conf to avoid the false impression
  100. that the file is a shell script
  101. * Fri Mar 4 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-16
  102. - Fix crash when no filesystems are pruned
  103. - Rebuild with gcc 4
  104. * Tue Feb 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-15
  105. - Fix slocate-2.7-fts.patch
  106. - Automatically prune all nodev filesystems, remove those entries from
  107. PRUNEFS (#123914)
  108. * Tue Feb 15 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-14
  109. - Process the filesystem type exclusion list when finding the mount points,
  110. not only before starting the filesystem tree walk (#139950)
  111. - Clean up the spec file (#135192, original patch by Robert Scheck)
  112. * Wed Nov 3 2004 Thomas Woerner <twoerner@redhat.com> 2.7-13
  113. - added /media to PRUNEPATHS
  114. * Wed Oct 20 2004 Thomas Woerner <twoerner@redhat.com> 2.7-12
  115. - added /mnt/floppy to PRUNEPATHS
  116. * Fri May 21 2004 Bill Nottingham <notting@redhat.com> 2.7-10
  117. - exclude cifs (#122499)
  118. * Fri Apr 16 2004 Karsten Hopp <karsten@redhat.de> 2.7-9
  119. - exlude usbdevfs (#113816)
  120. * Mon Mar 29 2004 Karsten Hopp <karsten@redhat.de> 2.7-8
  121. - use included sl_fts.h, fix handling of large files (#105950)
  122. - use one single file to configure updatedb (#112964)
  123. * Sun Feb 08 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-5vl1
  124. - updated 2.7 and added patch6 from Fedora 2.7-5
  125. * Wed Jan 21 2004 Mark Cox <mjc@redhat.com>
  126. - drop privs for non slocate gid databases (CAN-2003-0848)
  127. * Mon Oct 20 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6-10vl1
  128. - rebuild with new toolchains
  129. - s/Copyright/License/
  130. - based on Redhat Rawhide 2.6-10
  131. * Sat Jan 26 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.5-1vl3
  132. - fixed spec typo to install gzipped man page correctly
  133. * Mon Sep 03 2001 Toru Sagami <sagami@vinelinux.org>
  134. - 2.5-1vl2
  135. - place /var/lib in absolute without using %%_localstatedir macros
  136. * Sun Jan 14 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> 2.5-1vl1
  137. - based on 2.5-1 from Rawhide
  138. - rebuilt for Vine Linux
  139. - use better macros
  140. - added Japanese summary and description
  141. * Fri Jan 6 2001 Bill Nottingham <notting@redhat.com>
  142. - update to 2.5
  143. * Mon Dec 18 2000 Bill Nottingham <notting@redhat.com>
  144. - update to the mysterious 2.4 release
  145. * Mon Nov 27 2000 Bill Nottingham <notting@redhat.com>
  146. - update to 2.3; fixes database reading problem
  147. * Wed Aug 23 2000 Than Ngo <than@redhat.com>
  148. - add a default updatedb.conf (Bug #13475)
  149. * Wed Aug 23 2000 Jakub Jelinek <jakub@redhat.com>
  150. - fix build with glibc defining DT_WHT but not defining S_IFWHT.
  151. * Sun Jul 23 2000 Nalin Dahyabhai <nalin@redhat.com>
  152. - don't print a message telling how to rebuild the database if we're
  153. rebuilding the database
  154. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  155. - automatic rebuild
  156. * Thu Jun 22 2000 Bill Nottingham <notting@redhat.com>
  157. - update to 2.2
  158. - fix it to not have debugging (oops)
  159. * Sat Jun 10 2000 Bill Nottingham <notting@redhat.com>
  160. - rebuild, FHS manpages, etc.
  161. * Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  162. - simplify preun
  163. * Fri Mar 17 2000 Bill Nottingham <notting@redhat.com>
  164. - fix a segfault
  165. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  166. - handle compressed man pages
  167. * Tue Oct 21 1999 Bill Nottingham <notting@redhat.com>
  168. - update to 2.1
  169. * Mon Oct 18 1999 Bill Nottingham <notting@redhat.com>
  170. - fix a bug that was causing segfaults.
  171. * Mon Sep 20 1999 Bill Nottingham <notting@redhat.com>
  172. - remove group database on final uninstall
  173. * Fri Sep 10 1999 Bill Nottingham <notting@redhat.com>
  174. - add a note about creating the database if opening of it fails.
  175. * Tue Jul 6 1999 Bill Nottingham <notting@redhat.com>
  176. - update to 2.0
  177. - use new -f (filesystem type) option to simplify cron script
  178. - link updatedb back to slocate to allow parsing of updatedb.conf
  179. config files
  180. * Mon Jun 14 1999 Bill Nottingham <notting@redhat.com>
  181. - don't exclude VFAT partitions
  182. - add some docs
  183. * Tue Jun 1 1999 Jeff Johnson <jbj@redhat.com>
  184. - update to 1.6.
  185. - use /etc/cron.daily as /usr/bin/updatedb to more perfectly imitate the
  186. findutils updatedb.
  187. - exclude vfat partitions too (#3164).
  188. * Tue May 11 1999 Bill Nottingham <notting@redhat.com>
  189. - update to 1.5
  190. - make database dir 0750
  191. * Mon Apr 19 1999 Bill Nottingham <notting@redhat.com>
  192. - fix updatedb cron script
  193. * Mon Apr 12 1999 Bill Nottingham <notting@redhat.com>
  194. - add updatedb as a link to slocate
  195. - add an updatedb man page
  196. * Fri Mar 26 1999 Michael Maher <mike@redhat.com>
  197. - added man page
  198. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  199. - auto rebuild in the new build environment (release 3)
  200. * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
  201. - %post groupadd changed to %pre