diff options
author | edwin <edwin@FreeBSD.org> | 2003-10-07 09:17:49 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-10-07 09:17:49 +0800 |
commit | fdc0f98505db7ac0b233a88d0285a0bbc444556c (patch) | |
tree | c1c5b394f936596d16f97e80d91595bba11d87b1 /mail/dbmail/Makefile | |
parent | 8e26b6498b375b58fb42bc99ca157284eff41fd6 (diff) | |
download | freebsd-ports-gnome-fdc0f98505db7ac0b233a88d0285a0bbc444556c.tar.gz freebsd-ports-gnome-fdc0f98505db7ac0b233a88d0285a0bbc444556c.tar.zst freebsd-ports-gnome-fdc0f98505db7ac0b233a88d0285a0bbc444556c.zip |
[new port] mail/dbmail: An SQL database-based mail system (POP3 and IMAP)
(author description)
The DBMAIL package replaces the normal UNIX mailing system.
All emails and users data are stored in a database. You can
create an unlimited number of email accounts, which can be
checked using the POP3 or IMAP protocol. Users can maintain
their own set of email addresses. It is more scalable, more
secure, and faster than traditional mail systems. DBMAIL
uses PostgreSQL or MySQL.
PR: ports/54887
Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
Diffstat (limited to 'mail/dbmail/Makefile')
-rw-r--r-- | mail/dbmail/Makefile | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/mail/dbmail/Makefile b/mail/dbmail/Makefile new file mode 100644 index 000000000000..b7dcf8f52668 --- /dev/null +++ b/mail/dbmail/Makefile @@ -0,0 +1,67 @@ +# New ports collection makefile for: dbmail +# Date created: 07/26/2003 +# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org> +# +# $FreeBSD$ +# + +PORTNAME= dbmail +PORTVERSION= 1.1 +CATEGORIES= mail +MASTER_SITES= http://www.dbmail.org/tgz/ +PKGNAMESUFFIX= -${DATABASE} +EXTRACT_SUFX= .tgz + +MAINTAINER= sheepkiller@cultdeadsheep.org +COMMENT= An SQL database-based mail system (POP3 and IMAP) + +USE_REINPLACE= YES +GNU_CONFIGURE= YES +CONFIGURE_ARGS= --prefix=${PREFIX} +USE_GMAKE= YES + +.if defined(WITH_PGSQL) +CONFIGURE_ARGS+= --with-pgsql +LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7 +DATABASE= postgresql +PLIST_SUB+= PGSQL="" +PLIST_SUB+= MYSQL="@comment " +.else +USE_MYSQL= YES +CONFIGURE_ARGS+= --with-mysql +DATABASE= mysql +PLIST_SUB+= MYSQL="" +PLIST_SUB+= PGSQL="@comment " +.endif + +CFLAGS+= -I${LOCALBASE}/include/mysql +CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib/ -L${LOCALBASE}/lib/${DATABASE}" +FILES_TO_PATCH= imapd.c main.c maintenance.c pop3d.c user.c +DOCS= INSTALL README + +pre-everything:: + @${ECHO} "" + @${ECHO} "You may use the following build options:" + @${ECHO} " By default dbmail uses MySQL backend database." + @${ECHO} " To build dbmail with PostgreSQL as backend database," + @${ECHO} " define WITH_PGSQL" + @${ECHO} "" + +post-configure: +.for FILE in ${FILES_TO_PATCH} + @${REINPLACE_CMD} -i.orig 's!/etc/dbmail.conf!${PREFIX}/etc/dbmail.conf!g' \ + ${WRKSRC}/${FILE} +.endfor + +post-install: + @${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${PREFIX}/etc/dbmail.conf-dist + @${MKDIR} ${DATADIR}/sql + @${INSTALL_DATA} ${WRKSRC}/sql/${DATABASE}/* ${DATADIR}/sql +.if !(NOPORTSDOC) + @${MKDIR} ${DOCSDIR} +.for docs in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> |