integrit.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## integrit.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package version
  26. %define V_major 3.01
  27. %define V_minor 03
  28. # package information
  29. Name: integrit
  30. Summary: Filesystem Integrity Scanner
  31. URL: http://integrit.sourceforge.net/
  32. Vendor: Ed L Cashin
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [EVAL]
  35. Group: System
  36. License: GPL
  37. Version: %{V_major}.%{V_minor}
  38. Release: 20020720
  39. # list of sources
  40. Source0: http://unc.dl.sourceforge.net/sourceforge/integrit/integrit-%{version}.tar.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20020206
  45. PreReq: OpenPKG, openpkg >= 20020206
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Integrit is an alternative to file integrity verification programs
  50. like tripwire and aide. It helps you determine whether an intruder
  51. has modified a computer system. Without a system like integrit, a
  52. sysadmin can't know whether the tools he/she uses to investigate a
  53. potential break in are trojan horses or not. e.g., If the machine
  54. has a "/tmp/. " directory containing a shell that's setuid root,
  55. and you want to investigate to determine how badly the cracker has
  56. compromised the machine, how do you know that the attacker hasn't
  57. replaced your "find" and "ls" commands with tampered versions that
  58. fail to report the cracker's files? A system like integrit works
  59. by creating a database that is a snapshot of the most essential
  60. parts of your computer system. You put the database somewhere safe,
  61. and then later you can use it to make sure that no one has made
  62. any illicit modifications to the computer system. In the case of a
  63. break in, you know exactly which files have been modified, added, or
  64. removed. integrit is a robust, stable piece of software designed for
  65. professional use.
  66. %prep
  67. %setup -q -n integrit-%{V_major}
  68. %build
  69. CC="%{l_cc}" \
  70. CFLAGS="%{l_cflags -O}" \
  71. ./configure \
  72. --prefix=%{l_prefix}
  73. %{l_make} %{l_mflags -O}
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. %{l_make} %{l_mflags} install \
  77. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  78. exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  79. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  80. strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
  81. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  82. %files -f files
  83. %clean
  84. rm -rf $RPM_BUILD_ROOT