2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: Tripwire paketi, belirli bir sistemdeki dosyaların bütünlüğünü doğrulamak için kullanılan programları içerir.
|
2017-04-19 14:16:23 +02:00
|
|
|
|
# URL: http://downloads.sourceforge.net/tripwire
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
name=tripwire
|
|
|
|
|
version=2.4.2.2
|
|
|
|
|
release=1
|
|
|
|
|
source=(http://downloads.sourceforge.net/tripwire/$name-$version-src.tar.bz2)
|
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
cd $name-$version-src
|
|
|
|
|
|
|
|
|
|
sed -i -e 's@TWBIN="${prefix}@TWBIN="$PKG/usr@' install/install.cfg
|
|
|
|
|
sed -i -e 's@TWPOLICY="${sysconfdir}@TWPOLICY="$PKG/etc@' install/install.cfg
|
|
|
|
|
sed -i -e 's@TWDB="${prefix}@TWDB="$PKG/var@' install/install.cfg
|
|
|
|
|
sed -i -e 's/!Equal/!this->Equal/' src/cryptlib/algebra.h
|
|
|
|
|
sed -i -e '/stdtwadmin.h/i#include <unistd.h>' src/twadmin/twadmincl.cpp
|
|
|
|
|
sed -i -e '/TWMAN/ s|${prefix}|$PKG/usr/share|' \
|
|
|
|
|
-e '/TWDOCS/s|${prefix}/doc/tripwire|$PKG/usr/share/doc/tripwire-2.4.2.2|' \
|
|
|
|
|
install/install.cfg
|
|
|
|
|
sed -i -e 's/eArchiveOpen e\([^)]*)\)/throw ( eArchiveOpen\1 )/' \
|
|
|
|
|
-e '/throw e;/d' src/core/archive.cpp
|
|
|
|
|
|
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc/tripwire
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
install -v -m750 -d $PKG/usr/share/doc/tripwire-2.4.2.2
|
|
|
|
|
cp -v policy/*.txt $PKG/usr/share/doc/tripwire-2.4.2.2
|
|
|
|
|
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
|
|
}
|