logsurfer-vl.spec 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Name: logsurfer
  2. Version: 1.5a
  3. Release: 0vl1
  4. Copyright: distributable
  5. Group: Applications/System
  6. Source: ftp://ftp.cert.dfn.de/pub/tools/audit/%{name}/%{name}-%{version}.tar
  7. Source1: ftp://ftp.cert.dfn.de/pub/tools/audit/%{name}/config-examples/examples.README
  8. Source2: ftp://ftp.cert.dfn.de/pub/tools/audit/%{name}/config-examples/httpd-error
  9. Source3: ftp://ftp.cert.dfn.de/pub/tools/audit/%{name}/config-examples/ntp-logs
  10. Prefix: /usr
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildPreReq: libtool, autoconf
  13. Summary: process logfiles and perform certain actions
  14. Summary(ja): ログファイルを監視し、アクションを実行する
  15. %description
  16. Logsurfer is a program that works on single textlines from a logfile (or
  17. from standard input). It compares each line against regular expressions of
  18. a set of "rules" and performs certain actions that are defined for this
  19. match.
  20. %description -l ja
  21. logsurferはログファイル(または標準入力)から一行ずつ読み込んで正規表現とのマッ
  22. チングを行い,必要に応じて定められたアクションを実行します.
  23. %prep
  24. %setup -q -c
  25. %build
  26. cd %{name}-%{version}
  27. %configure --with-etcdir=%_sysconfdir/%{name}
  28. make
  29. cd ..
  30. %install
  31. rm -rf ${RPM_BUILD_ROOT}
  32. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  33. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
  34. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man4
  35. mkdir tmp-examples
  36. cp %{SOURCE1} tmp-examples
  37. cp %{SOURCE2} tmp-examples
  38. cp %{SOURCE3} tmp-examples
  39. cd %{name}-%{version}
  40. %makeinstall
  41. cd ..
  42. %clean
  43. rm -rf ${RPM_BUILD_ROOT}
  44. rm -rf tmp-examples
  45. %files
  46. %defattr(-, root, root)
  47. %{_bindir}/logsurfer
  48. %{_mandir}
  49. %doc %{name}-%{version}/ChangeLog
  50. %doc %{name}-%{version}/DISCLAIMER
  51. %doc %{name}-%{version}/README
  52. %doc %{name}-%{version}/TODO
  53. %doc %{name}-%{version}/Y2K
  54. %doc tmp-examples/*
  55. %changelog
  56. * Fri Nov 23 2001 akira yamada <akira@vinelinux.org> 1.5a-0vl1
  57. - Initial packaging.