talimat 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Tanım: Bir saldırı tespit sistemi
  2. # URL: http://sourceforge.net/projects/tripwire/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler:
  5. # Grup: güvenlik
  6. isim=tripwire
  7. surum=2.4.3.6
  8. devir=1
  9. kaynak=(https://github.com/Tripwire/tripwire-open-source/archive/2.4.3.6.tar.gz::$isim-$surum.tar.gz
  10. twpol.txt
  11. twcfg.txt)
  12. derle() {
  13. cd tripwire-open-source-$surum
  14. #build package
  15. # CFLAGS="$CFLAGS -fno-strict-aliasing" CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" \
  16. autoreconf --force --install
  17. ./autogen.sh
  18. ./configure --sysconfdir=/etc/tripwire
  19. make -j4
  20. # This package doesn't have a typical make install, so we do it by hand.
  21. #create var/lib directories
  22. install -d ${PKG}/var/lib
  23. install -d -m700 ${PKG}/var/lib/tripwire
  24. install -d -m700 ${PKG}/var/lib/tripwire/report
  25. #install binaries
  26. install -d ${PKG}/usr/bin
  27. install -m755 bin/siggen ${PKG}/usr/bin/
  28. install -m755 bin/tripwire ${PKG}/usr/bin/
  29. install -m755 bin/twadmin ${PKG}/usr/bin/
  30. install -m755 bin/twprint ${PKG}/usr/bin/
  31. #copy install files for use by user after install, and fix a path
  32. install -d ${PKG}/usr/share/$isim
  33. install -m755 installer/install.sh ${PKG}/usr/share/$isim/
  34. install -m644 installer/install.cfg ${PKG}/usr/share/$isim/
  35. sed -i 's#./install/install.cfg#./install.cfg#' ${PKG}/usr/share/$isim/install.sh
  36. #install man pages - FS#13766 fixed
  37. install -d ${PKG}/usr/share/man/{man4,man5,man8}
  38. install -m644 man/man4/*.4 ${PKG}/usr/share/man/man4/
  39. install -m644 man/man5/*.5 ${PKG}/usr/share/man/man5/
  40. install -m644 man/man8/*.8 ${PKG}/usr/share/man/man8/
  41. #install configuration files
  42. mkdir ${PKG}/etc
  43. mkdir ${PKG}/etc/tripwire
  44. install -d ${PKG}/etc/$isim
  45. install -m644 ${SRC}/twpol.txt ${PKG}/etc/tripwire/twpol.txt
  46. install -m644 ${SRC}/twcfg.txt ${PKG}/etc/tripwire/twcfg.txt
  47. }