milis/talimatname/genel/t/tripwire/talimat

36 lines
1.3 KiB
Plaintext
Raw Normal View History

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
2017-10-28 14:10:23 +02:00
isim=tripwire
surum=2.4.2.2
devir=1
kaynak=(http://downloads.sourceforge.net/tripwire/$isim-$surum-src.tar.bz2)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
cd $isim-$surum-src
2016-02-24 01:27:23 +01:00
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
}