mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
05065d99c7
#79 - INTERNALDATE reponses do not conform to RFC #145 - LMTP loses return-path #177 - Compile Fails on FreeBSD (fixes compilation on FreeBSD 4.X) #184 - socklen_t issue #190 - huge load if database crash #198 - DBMail processes killing each other #199 - spare child creates zombie #214 - dbmail-smtp dumps core with double free #216 - malformed header prevents delivery - Fix RC_SUBR usage PR: ports/83437, also ports/80736, ports/82437, ports/83575 Submitted by: Mark Starovoytov <mark@kikg.ifmo.ru>, parts also by: Radim Kolar <hsn@netmag.cz>, thompsa, Marcus Grando <marcus@corp.grupos.com.br> Approved by: maintainer timeout (2 months on oldest PR)
91 lines
2.5 KiB
Makefile
91 lines
2.5 KiB
Makefile
# New ports collection makefile for: dbmail
|
|
# Date created: 07/26/2003
|
|
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dbmail
|
|
PORTVERSION= 2.0.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.dbmail.org/download/
|
|
PKGNAMESUFFIX= -${DATABASE}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= seanc@FreeBSD.org
|
|
COMMENT= An SQL database-based mail system (POP3 and IMAP)
|
|
|
|
USE_REINPLACE= YES
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}
|
|
USE_GMAKE= YES
|
|
USE_OPENSSL= YES
|
|
USE_RC_SUBR= dbmail-pop3d.sh dbmail-lmtpd.sh dbmail-imapd.sh
|
|
|
|
CFLAGS += -fPIC
|
|
|
|
.if defined(WITH_POSTGRESQL)
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
USE_PGSQL= yes
|
|
DATABASE= postgresql
|
|
PLIST_SUB+= PGSQL=""
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
LDFLAGS+= -L${LOCALBASE}/lib/
|
|
.else
|
|
USE_MYSQL= YES
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
DATABASE= mysql
|
|
PLIST_SUB+= MYSQL=""
|
|
PLIST_SUB+= PGSQL="@comment "
|
|
CFLAGS+= -I${LOCALBASE}/include/mysql
|
|
LDFLAGS+= -L${LOCALBASE}/lib/mysql
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" LOCALBASE=${LOCALBASE}
|
|
PORTDOCS= INSTALL README EXTRAS
|
|
|
|
MAN1= dbmail-smtp.1
|
|
MAN8= dbmail-imapd.8 dbmail-lmtpd.8 dbmail-pop3d.8 \
|
|
dbmail-users.8 dbmail-util.8
|
|
MANCOMPRESSED= no
|
|
|
|
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_POSTGRESQL"
|
|
@${ECHO} ""
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name CVS -type d | ${XARGS} ${RM} -fr
|
|
|
|
post-configure:
|
|
@${REINPLACE_CMD} -i.orig 's!/etc/dbmail.conf!${PREFIX}/etc/dbmail.conf!g' \
|
|
${WRKSRC}/dbmail.h
|
|
|
|
post-install:
|
|
@${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${PREFIX}/etc/dbmail.conf-dist
|
|
@${MKDIR} ${DATADIR}/sql
|
|
@${INSTALL_DATA} ${WRKSRC}/sql/${DATABASE}/* ${DATADIR}/sql
|
|
@cd ${WRKSRC}/man && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
@${ECHO} ""
|
|
@${ECHO} "IMPORTANT NOTE FOR ADMINS UPGRADING FROM 1.X->2.X!!!"
|
|
@${ECHO} ""
|
|
@${ECHO} " *) Don't forget to update the database using a script from"
|
|
@${ECHO} " ${DATADIR}/sql/"
|
|
@${ECHO} " *) Many programs have been renamed and their arguments changed."
|
|
@${ECHO} " *) Read the upgrading notes."
|
|
@${ECHO} " *) Don't be careless with this upgrade or mail will be lost!"
|
|
@${ECHO} " *) dbmail can be controled by setting dbmail_imapd_enable,"
|
|
@${ECHO} " dbmail_lmtpd_enable, and/or dbmail_pop3d_enable in"
|
|
@${ECHO} " /etc/rc.conf."
|
|
@${ECHO} ""
|
|
|
|
.include <bsd.port.mk>
|