talimat 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Description: Tripwire paketi, belirli bir sistemdeki dosyaların bütünlüğünü doğrulamak için kullanılan programları içerir.
  2. # URL: http://downloads.sourceforge.net/tripwire
  3. # Packager: milisarge
  4. # Depends on:
  5. name=tripwire
  6. version=2.4.2.2
  7. release=1
  8. source=(http://downloads.sourceforge.net/tripwire/$name-$version-src.tar.bz2)
  9. build () {
  10. cd $name-$version-src
  11. sed -i -e 's@TWBIN="${prefix}@TWBIN="$PKG/usr@' install/install.cfg
  12. sed -i -e 's@TWPOLICY="${sysconfdir}@TWPOLICY="$PKG/etc@' install/install.cfg
  13. sed -i -e 's@TWDB="${prefix}@TWDB="$PKG/var@' install/install.cfg
  14. sed -i -e 's/!Equal/!this->Equal/' src/cryptlib/algebra.h
  15. sed -i -e '/stdtwadmin.h/i#include <unistd.h>' src/twadmin/twadmincl.cpp
  16. sed -i -e '/TWMAN/ s|${prefix}|$PKG/usr/share|' \
  17. -e '/TWDOCS/s|${prefix}/doc/tripwire|$PKG/usr/share/doc/tripwire-2.4.2.2|' \
  18. install/install.cfg
  19. sed -i -e 's/eArchiveOpen e\([^)]*)\)/throw ( eArchiveOpen\1 )/' \
  20. -e '/throw e;/d' src/core/archive.cpp
  21. ./configure --prefix=/usr --sysconfdir=/etc/tripwire
  22. make
  23. install -v -m750 -d $PKG/usr/share/doc/tripwire-2.4.2.2
  24. cp -v policy/*.txt $PKG/usr/share/doc/tripwire-2.4.2.2
  25. make DESTDIR=$PKG install
  26. }