#!/bin/sh
#echo "post-install....."

INSTALL_PATH="/root/libATools"

pkg_add $INSTALL_PATH/autoconf-2.59_2.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/cronolog-1.6.2_1.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/expat-2.0.0_1.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/gettext-0.14.5_2.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/gmake-3.81_1.tbz  > /dev/null 2>&1
pkg_add $INSTALL_PATH/help2man-1.36.4_1.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/libiconv-1.9.2_2.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/libmcrypt-2.5.7_2.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/libtool-1.5.22_2.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/m4-1.4.4.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/mm-1.4.2.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/openssl-0.9.8d.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/p5-gettext-1.05_1.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/rsync-2.6.8_2.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/vim-lite-7.0.94.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/perl-5.8.8.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/bsdpan-parent-0.234.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/bsdpan-IPC-SysV-2.04.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/bsdpan-HTML-Parser-3.71.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/bsdpan-HTML-Tagset-3.20.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/bsdpan-CGI-4.21.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/bsdpan-CGI-Fast-2.10.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/bsdpan-FCGI-0.77.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/pkg-config-0.23_1.tbz > /dev/null 2>&1
pkg_add $INSTALL_PATH/sqlite3-3.5.6.tbz > /dev/null 2>&1

if [ -h /bin/sqlite3 ]; then
    unlink /bin/sqlite3
fi
ln -s /usr/local/bin/sqlite3 /bin/sqlite3 > /dev/null 2>&1

exit 0
