build_clamav() { HERE=`pwd` NAME=clamav VER=0.97.3 BUILDDEPS="compiletc.tcz" #DEPS= . ./bzip2-sc.inc for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/bzip2 ]; then build_bzip2 "$PKGPATH" || exit 1 fi adduser clamav addgroup clamav tar xvf clamav-0.97.3.tar.gz || exit 1 cd clamav-0.97.3 || exit 1 ./configure --prefix="$PKGPATH" --with-libbz2-prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/clamav }