cd ${SOURCE_DIRECTORY}                                        &&
install -m 0755 pglogd pglogctl                               \
${INSTALL_ROOT}/usr/sbin/                                     &&
sed -i -r 's:/var/log/pglogd.log:/var/log/pglogd/pglogd.log:' \
pglogd.conf                                                   &&
sed -i -r 's:/usr/site/logs/pglogd_overflow:/var/log/pglogd/pglogd_overflow:' \
pglogd.conf                                                   &&
install_config_file pglogd.conf                               \
${INSTALL_ROOT}/etc/pglogd.conf                               &&
mkdir -p ${INSTALL_ROOT}/usr/share/doc/pglogd/                &&
install *.sql queries.txt $SCRIPT_DIRECTORY/pglogd.quick      \
${INSTALL_ROOT}/usr/share/doc/pglogd/
