#!/bin/sh
#
# $FreeBSD: ports/mail/sympa5/files/pkg-install.in,v 1.1 2012/03/17 00:17:05 crees Exp $
#

if [ x"$2" = xPOST-INSTALL ]; then
        echo "============================================================"
if [ x"mysql" != "x" ]; then
        echo "If this is your first installation of sympa, please load"
        echo "this file with your mysql database client:"
	echo "    ${PKG_PREFIX}/bin/create_db.mysql"
	echo ""
fi
	echo "A default configuration is installed,"
	echo "to configure sympa interactively, please run:"
	echo "    perl ${PKG_PREFIX}/sbin/sympa_wizard.pl"
	echo ""
	echo "You may also manually edit the two configuration files:"
	echo "    ${PKG_PREFIX}/etc/sympa/sympa.conf"
	echo "    ${PKG_PREFIX}/etc/sympa/wwsympa.conf"
        echo "============================================================"
        echo "To set up the wwsympa server, add something like this to"
        echo "your Apache configuration file:"
	echo ""
        echo "    DocumentRoot \"${PKG_PREFIX}/sympa\""
        echo "    AddDefaultCharset UTF-8"
        echo "    DirectoryIndex wws"
        echo "    Options +Indexes"
if [ x"yes" != x ]; then
        echo "    LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so"
	echo "    <Location /wws>"
	echo "        SetHandler fastcgi-script"
        echo "    </Location>"
fi
        echo "    <Directory \"${PKG_PREFIX}/sympa\">"
        echo "        Allow from all"
        echo "    </Directory>"
        echo "    ScriptAlias /wws ${PKG_PREFIX}/sympa/cgi-bin/wwsympa-wrapper"
        echo "============================================================"
	exit 0
fi

exit 0
