2012-10-17 19:54:34 +02:00
|
|
|
# Created by: Clement Laforet <sheepkiller@cultdeadsheep.org>
|
2003-10-07 03:17:49 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dbmail
|
2015-01-25 12:15:40 +01:00
|
|
|
PORTVERSION= 3.2.2
|
2003-10-07 03:17:49 +02:00
|
|
|
CATEGORIES= mail
|
2014-08-24 19:00:04 +02:00
|
|
|
MASTER_SITES= http://git.dbmail.eu/paul/dbmail/snapshot/ \
|
|
|
|
http://www.dbmail.org/download/3.2/
|
2003-10-07 03:17:49 +02:00
|
|
|
|
2014-12-24 01:14:11 +01:00
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
2013-07-25 21:58:17 +02:00
|
|
|
COMMENT= SQL database-based mail system (POP3 and IMAP)
|
2003-10-07 03:17:49 +02:00
|
|
|
|
2012-03-18 20:17:12 +01:00
|
|
|
LICENSE= GPLv2
|
2006-11-23 17:05:39 +01:00
|
|
|
|
2013-08-24 00:10:03 +02:00
|
|
|
LIB_DEPENDS= libgmime-2.6.so:${PORTSDIR}/mail/gmime26 \
|
|
|
|
libzdb.so:${PORTSDIR}/databases/libzdb \
|
|
|
|
libmhash.so:${PORTSDIR}/security/mhash \
|
2014-07-24 15:32:58 +02:00
|
|
|
libevent.so:${PORTSDIR}/devel/libevent2
|
2014-01-23 23:52:32 +01:00
|
|
|
BUILD_DEPENDS= asciidoc:${PORTSDIR}/textproc/asciidoc \
|
2013-08-24 00:10:03 +02:00
|
|
|
xmlto:${PORTSDIR}/textproc/xmlto \
|
2015-01-23 23:50:49 +01:00
|
|
|
docbook-sgml>0:${PORTSDIR}/textproc/docbook-sgml
|
2012-03-18 20:17:12 +01:00
|
|
|
|
2014-06-05 05:30:55 +02:00
|
|
|
CONFLICTS= dbmail22-[0-9]*
|
2006-11-23 17:05:39 +01:00
|
|
|
|
2014-08-24 19:00:04 +02:00
|
|
|
OPTIONS_DEFINE= DOCS LDAP SIEVE
|
|
|
|
OPTIONS_DEFAULT= SIEVE
|
2014-03-23 15:42:53 +01:00
|
|
|
SIEVE_DESC= Sieve mail sorting language support
|
2006-11-23 17:05:39 +01:00
|
|
|
|
2014-01-23 23:52:32 +01:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2014-05-18 20:34:03 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USE_AUTOTOOLS= autoheader autoconf
|
2006-11-23 17:05:39 +01:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/dbmail
|
2012-03-18 20:17:12 +01:00
|
|
|
USE_RC_SUBR= dbmail-pop3d dbmail-lmtpd dbmail-imapd dbmail-timsieved
|
|
|
|
USE_OPENSSL= yes
|
2014-06-05 05:30:55 +02:00
|
|
|
USES= gmake libtool pkgconfig shebangfix tar:bzip2
|
2013-05-25 20:57:44 +02:00
|
|
|
SHEBANG_FILES= man/fixsp.pl
|
2006-11-23 17:05:39 +01:00
|
|
|
|
2012-06-04 05:01:54 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-05-18 20:34:03 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2013-10-04 01:24:14 +02:00
|
|
|
CONFIGURE_ARGS+= --with-zdb=${LOCALBASE} --sysconfdir=${LOCALBASE}/etc --enable-manpages
|
|
|
|
|
2007-07-23 11:36:51 +02:00
|
|
|
MAKE_ARGS+= mandir=${MANPREFIX}/man
|
2003-10-07 03:17:49 +02:00
|
|
|
|
2013-10-04 01:24:14 +02:00
|
|
|
DOCS= AUTHORS BUGS INSTALL THANKS UPGRADING
|
2013-09-02 22:02:01 +02:00
|
|
|
|
2014-01-23 23:52:32 +01:00
|
|
|
SIEVE_CONFIGURE_WITH= sieve
|
|
|
|
SIEVE_LIB_DEPENDS= libsieve.so:${PORTSDIR}/mail/libsieve
|
|
|
|
|
|
|
|
LDAP_CONFIGURE_WITH= ldap
|
|
|
|
LDAP_USE= OPENLDAP=yes
|
|
|
|
|
2012-03-18 20:17:12 +01:00
|
|
|
DBMAIL_USER?= mailnull
|
|
|
|
DBMAIL_GROUP?= mail
|
|
|
|
PIDDIR?= /var/run/dbmail
|
|
|
|
|
|
|
|
PLIST_SUB+= DBMAIL_USER="${DBMAIL_USER}" \
|
|
|
|
DBMAIL_GROUP="${DBMAIL_GROUP}" \
|
|
|
|
PIDDIR="${PIDDIR}"
|
2006-11-23 17:05:39 +01:00
|
|
|
|
2003-10-07 03:17:49 +02:00
|
|
|
post-install:
|
2014-08-24 19:00:04 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${STAGEDIR}${PREFIX}/etc/dbmail.conf.sample
|
2013-09-26 17:59:24 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dbmail.schema ${STAGEDIR}${DATADIR}
|
2014-08-24 19:00:04 +02:00
|
|
|
(cd ${WRKSRC}/sql && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
|
2013-09-26 17:59:24 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PIDDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-10-04 01:24:14 +02:00
|
|
|
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2014-01-23 23:52:32 +01:00
|
|
|
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
2006-11-23 17:05:39 +01:00
|
|
|
|
2012-06-24 21:19:06 +02:00
|
|
|
.include <bsd.port.mk>
|