tripwire-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Summary: Checks to see if files have changed on your system.
  2. Summary(ja): システムが改ざんされていないか検査するツール
  3. Name: tripwire
  4. Version: 1.2
  5. Release: 5vl2
  6. License: BSD
  7. Group: Applications/System
  8. Source0: ftp://ftp.cert.org/pub/tools/tripwire/tripwire-1.2.tar.Z
  9. Source2: tripwire.verify
  10. Patch0: tripwire-1.2-rhlinux.patch
  11. Patch1: tripwire-1.2-security.patch
  12. ExclusiveArch: %{ix86} sparc
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. Tripwire is a very valuable security tool for Linux systems, if it is
  18. installed to a clean system. Tripwire should be installed right after
  19. the OS installation, and before you have connected your system to a
  20. network (i.e., before any possibility exists that someone could alter
  21. files on your system).
  22. When Tripwire is initially set up, it creates a database that records
  23. certain file information. Then when it is run, it compares a designated
  24. set of files and directories to the information stored in the database.
  25. Added or deleted files are flagged and reported, as are any files that
  26. have changed from their previously recorded state in the database. When
  27. Tripwire is run against system files on a regular basis, any file changes
  28. will be spotted when Tripwire is run. Tripwire will report the changes,
  29. which will give system administrators a clue that they need to enact
  30. damage control measures immediately if certain files have been altered.
  31. Extra-paranoid Tripwire users will set it up to run once a week and email
  32. the results to themselves. Then if the emails stop coming, you'll know
  33. someone has gotten to the Tripwire program...
  34. %description -l ja
  35. tripwire は「私のシステムは昨日と同じだろうか?」という基本的な疑問に
  36. 答えるツールです。tripwire は設定されたポリシーに従ってファイルやその
  37. 性質の暗号化されたデータベースを作成します。このデータベースは、シス
  38. テムに対して何らかの不信な変更が加えられていないかを検証するために用い
  39. られます。
  40. %prep
  41. %setup -q -c
  42. tar -C .. -xf T1.2.tar
  43. %patch0 -p1 -b .sopwith
  44. %patch1 -p1 -b .mike
  45. %build
  46. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -ggdb"
  47. %install
  48. rm -rf %{buildroot}
  49. mkdir -p %{buildroot}/usr/sbin
  50. mkdir -p %{buildroot}%{_mandir}/man{1,5,8}
  51. mkdir -p %{buildroot}/etc/cron.daily
  52. mkdir -p %{buildroot}/var/spool/tripwire
  53. make TOPDIR=%{buildroot} MANDIR=%{buildroot}%{_mandir} install
  54. install -m 600 lib/tw.config %{buildroot}/etc/tw.config
  55. install -m 700 $RPM_SOURCE_DIR/tripwire.verify %{buildroot}/etc/cron.daily
  56. chmod 700 %{buildroot}/var/spool/tripwire
  57. chmod 700 %{buildroot}/usr/sbin/*
  58. chmod -R 644 FAQ Changelog INTERNALS README README.FIRST Readme
  59. chmod -R 644 TODO WHATSNEW docs/*
  60. chmod 755 docs
  61. #%post
  62. #cd /var/spool/tripwire
  63. #(/usr/sbin/tripwire -initialize 2>&1 | \
  64. # /bin/mail -s "Tripwire initialization report" root ) \
  65. # && mv databases/tw.db_* . && rm -rf databases &
  66. %clean
  67. rm -rf %{buildroot}
  68. %files
  69. %defattr(-,root,root)
  70. %doc FAQ Changelog INTERNALS README README.FIRST Readme TODO WHATSNEW docs
  71. %dir /var/spool/tripwire
  72. %config /etc/tw.config
  73. %config /etc/cron.daily/tripwire.verify
  74. /usr/sbin/tripwire
  75. /usr/sbin/siggen
  76. %{_mandir}/man5/tw.config.5*
  77. %{_mandir}/man8/tripwire.8*
  78. %{_mandir}/man8/siggen.8*
  79. %changelog
  80. * Thu Feb 07 2002 Toru Sagami <sagami@vinelinux.org> 1.2-5vl2
  81. - install man pages into %%{_mandir}
  82. - ExclusiveArch: %%{ix86} instead of i386
  83. * Thu Sep 21 2000 Yoshihiro Kajiki <kajiki@ylug.org>
  84. - 1.2-5vl1 rebuild for VineSeed based on powertool's [1.2-5]
  85. - add Japanese summarys and descriptions
  86. * Thu Jan 13 2000 Tim Powers <timp@redhat.com>
  87. - commented out the post initialization script, was tripping people up.
  88. * Thu Jul 22 1999 Tim Powers <timp@redhat.com>
  89. - rebuilt for 6.1
  90. * Thu Feb 11 1999 Michael Maher <mike@redhat.com>
  91. - added security patch for bug #693
  92. * Thu Sep 10 1998 Michael Maher <mike@redhat.com>
  93. - built package from elliot's