milis/talimatname/genel/t/tripwire/talimat

36 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Tripwire paketi, belirli bir sistemdeki dosyaların bütünlüğünü doğrulamak için kullanılan programları içerir.
# URL: http://downloads.sourceforge.net/tripwire
# Paketçi: milisarge
# Gerekler:
isim=tripwire
surum=2.4.2.2
devir=1
kaynak=(http://downloads.sourceforge.net/tripwire/$isim-$surum-src.tar.bz2)
derle() {
cd $isim-$surum-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
}