summaryrefslogtreecommitdiff
path: root/mail/dbmail
diff options
context:
space:
mode:
authorschmonz <schmonz>2005-01-09 03:21:07 +0000
committerschmonz <schmonz>2005-01-09 03:21:07 +0000
commit71d0298e23dc639ab2884946804bbe139fcc27a0 (patch)
tree6e2edb640a86127968c88d62faa34063cebbf826 /mail/dbmail
parent1c5df986c2ea6f7086ca63985d05c0242b1f9f98 (diff)
downloadpkgsrc-71d0298e23dc639ab2884946804bbe139fcc27a0.tar.gz
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.
Diffstat (limited to 'mail/dbmail')
-rw-r--r--mail/dbmail/DESCR18
-rw-r--r--mail/dbmail/Makefile31
-rw-r--r--mail/dbmail/PLIST18
-rw-r--r--mail/dbmail/distinfo4
-rw-r--r--mail/dbmail/options.mk34
5 files changed, 105 insertions, 0 deletions
diff --git a/mail/dbmail/DESCR b/mail/dbmail/DESCR
new file mode 100644
index 00000000000..4af77a51bed
--- /dev/null
+++ b/mail/dbmail/DESCR
@@ -0,0 +1,18 @@
+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.
diff --git a/mail/dbmail/Makefile b/mail/dbmail/Makefile
new file mode 100644
index 00000000000..4b958e70fc8
--- /dev/null
+++ b/mail/dbmail/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/01/09 03:21:07 schmonz Exp $
+#
+
+DISTNAME= dbmail-2.0.1
+CATEGORIES= mail
+MASTER_SITES= http://www.dbmail.org/download/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= http://www.dbmail.org/
+COMMENT= Store and retrieve mail messages from a database
+
+USE_BUILDLINK3= yes
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+USE_GNU_TOOLS+= make
+USE_LIBTOOL= yes
+
+PLIST_SUBST+= SQLDB=${SQLDB}
+
+SUBST_CLASSES+= sysconf
+SUBST_STAGE.sysconf= do-configure
+SUBST_FILES.sysconf= man/dbmail-imapd.8 man/dbmail-lmtpd.8 man/dbmail-pop3d.8
+SUBST_FILES.sysconf+= man/dbmail-smtp.1 man/dbmail-users.8 man/dbmail-util.8
+SUBST_FILES.sysconf+= dbmail.h
+SUBST_SED.sysconf= -e 's|/etc/dbmail\.conf|${PKG_SYSCONFDIR}/dbmail.conf|g'
+SUBST_MESSAGE.sysconf= "Fixing sysconf paths."
+
+.include "options.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/dbmail/PLIST b/mail/dbmail/PLIST
new file mode 100644
index 00000000000..811b7d22e59
--- /dev/null
+++ b/mail/dbmail/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/09 03:21:07 schmonz Exp $
+lib/dbmail/libauthdbmail.la
+lib/dbmail/lib${SQLDB}dbmail.la
+lib/dbmail/libsortdbmail.la
+lib/libdbmail.la
+man/man1/dbmail-smtp.1
+man/man8/dbmail-imapd.8
+man/man8/dbmail-lmtpd.8
+man/man8/dbmail-pop3d.8
+man/man8/dbmail-users.8
+man/man8/dbmail-util.8
+sbin/dbmail-imapd
+sbin/dbmail-lmtpd
+sbin/dbmail-pop3d
+sbin/dbmail-smtp
+sbin/dbmail-users
+sbin/dbmail-util
+@dirrm lib/dbmail
diff --git a/mail/dbmail/distinfo b/mail/dbmail/distinfo
new file mode 100644
index 00000000000..1950f5913b7
--- /dev/null
+++ b/mail/dbmail/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/01/09 03:21:07 schmonz Exp $
+
+SHA1 (dbmail-2.0.1.tgz) = fbe5e0b2ab13257a78e9226e5e416b7d745d3c2c
+Size (dbmail-2.0.1.tgz) = 537346 bytes
diff --git a/mail/dbmail/options.mk b/mail/dbmail/options.mk
new file mode 100644
index 00000000000..4ed39b12935
--- /dev/null
+++ b/mail/dbmail/options.mk
@@ -0,0 +1,34 @@
+# $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