# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 inherit eutils IUSE="ssl postgres " DESCRIPTION="A mail transfer agent that uses postgresql as its data store rather than maildir" HOMEPAGE="http://www.dbmail.org/" SRC_URI="http://www.dbmail.org/download/1.2/${P}.tgz" DEPEND="ssl? ( dev-libs/openssl ) postgres? ( >=dev-db/postgresql-base-7.4 )" RDEPEND=" postgres? ( >> Execute the following command" einfo ">>> ebuild /var/db/pkg/net-mail/${PF}/${PF}.ebuild config" einfo ">>> to setup the initial database environment and " einfo ">>> for more setup instructions." einfo ">>> --- For maintenance ---" einfo ">>> add this to crontab: 0 3 * * * /usr/bin/dbmail-maintenance -cfpd >> /dev/null 2>&1 " } pkg_config() { einfo ">>> Initializing the database user, databse, and tables ..." if [ -n "`use postgres`" ]; then einfo ">>> Creating postgres user dbmail. " einfo "You may want to add a password for dbmail: " einfo "`psql -c "ALTER USER dbmail WITH PASSWORD 'secret';"`" createuser -U postgres -a -d dbmail psql -U dbmail dbmail < /home/dbmail/sql/postgresql/create_tables.pgsql else einfo ">>> No initial database config for MySQL yet. " einfo "You must configure your MySQL database manually " fi einfo "Please read /usr/share/doc/dbmail-1.1/INSTALL " einfo "for remaining instructions on setting up dbmail users and " einfo "for finishing configuration to connect to your MTA and " einfo "to connect to your db." einfo "" einfo "The next step is to add users to the db. Example: " einfo " ./dbmail-adduser a john secret 0 25000000 " einfo " john@dude.org john@dude.net @net.com" einfo "You will also want to follow the installation instructions " einfo "on setting up the maintenance program to delete old messages." einfo "Don't forget to edit /etc/dbmail.conf as well. :)" }