cd
test -f installed/tripwire-2.4.0.1-src.tar.bz2 &&
mv installed/tripwire-2.4.0.1-src.tar.bz2 .
test ! -f tripwire-2.4.0.1-src.tar.bz2 &&
wget http://download.sf.net/tripwire/tripwire-2.4.0.1-src.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "tripwire-*" -exec rm -r {} \;
tar xjvf ~/tripwire-2.4.0.1-src.tar.bz2
cd tripwire-2.4.0.1
test $UID = 0 && chown -R root:root .
chmod -R u+w .
# Apply this patch to allow it to build with gcc 4.x:
wget -nc http://englanders.cc/pub/linux/patches/tripwire-2.4.0.1.patch &&
patch -p1 < tripwire-2.4.0.1.patch
# This will tell configure where to find your sendmail binary
path_to_sendmail=/usr/sbin \
./configure
make
# Become root to install it
su
# The install.sh script expects there to be a README and a Release_Notes,
# but they're missing. Create blank ones.
touch ./README ./Release_Notes
# The Makefile will look for ./install/install.sh and install.cfg, but
# they're in ./contrib/
test ! -d install && mkdir -p install
( cd install
ln -sf ../contrib/install.sh
ln -sf ../contrib/install.cfg )
# Install it
make install
chown -R $USER .
# Read this for more info about tripwire:
# man twintro
# man tripwire
# man twconfig
# man twpolicy
# man twfiles
# man siggen
# man twadmin
# man twprint
# /usr/local/doc/tripwire/*
# /usr/local/etc/twcfg.txt
# /usr/local/etc/twpol.txt
# Forums, Mailing Lists, Docs at the SF project page