pkgsrc/mail/dbmail/options.mk
schmonz e0976769fc Initial import of dbmail-2.0.1.
Dbmail is the name of a group of programs that enable the possiblilty
of storing and retrieving mail messages from a database. Currently
MySQL and PostgreSQL can be used as database backends.

DBMail is made up of several components. A normal MTA (Postfix,
SendMail, QMail, Exim) is used for accepting messages. The MTA
hands the messages over to dbmail-smtp, using a pipe interface, or
dbmail-lmtpd, using LMTP (Local Mail Transport Protocol). These
programs take care of delivering the message into the database.
Messages can be retreived from the database using dbmail-pop3d,
using the POP3 protocol, and dbmail-imapd, using the IMAP4Rev1
protocol.

The whole email is stored in the database. That includes attachments.
The DBMail programs do not have to touch the filesystem to retreive
or insert emails. User information is also stored in the database,
so users do not need an account on the machines DBMail is running
on.
2005-01-09 03:21:07 +00:00

34 lines
906 B
Makefile

# $NetBSD: options.mk,v 1.1.1.1 2005/01/09 03:21:07 schmonz Exp $
PKG_DEFAULT_OPTIONS+= mysql
PKG_OPTIONS_VAR= PKG_OPTIONS.dbmail
PKG_SUPPORTED_OPTIONS= mysql pgsql
.include "../../mk/bsd.options.mk"
###
### We can't compile support for both MySQL and PostgreSQL.
###
.if !empty(PKG_OPTIONS:Mmysql) && !empty(PKG_OPTIONS:Mpgsql)
PKG_FAIL_REASON+= "MySQL and PostgreSQL cannot both be compiled in." \
"Please change ${PKG_OPTIONS_VAR} to one or the other."
.endif
###
### MySQL database support
###
.if !empty(PKG_OPTIONS:Mmysql)
.include "../../databases/mysql4-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-mysql
SQLDB= mysql
.endif
###
### PostgreSQL database support
###
.if !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= postgresql74-client-[0-9]*:../../databases/postgresql74-client
.include "../../databases/postgresql74-lib/buildlink3.mk"
CONFIGURE_ARGS+= --with-pgsql
SQLDB= pgsql
.endif