Index: head/mail/dbmail/Makefile =================================================================== --- head/mail/dbmail/Makefile (revision 298323) +++ head/mail/dbmail/Makefile (revision 298324) @@ -1,108 +1,116 @@ # New ports collection makefile for: dbmail # Date created: 07/26/2003 # Whom: Clement Laforet # # $FreeBSD$ # PORTNAME= dbmail PORTVERSION= 3.0.2 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.dbmail.org/download/3.0/ MAINTAINER= ahicks@p-o.co.uk COMMENT= An SQL database-based mail system (POP3 and IMAP) LICENSE= GPLv2 .if !defined(NOPORTDOCS) BUILD_DEPENDS= asciidoc:${PORTSDIR}/textproc/asciidoc \ xmlto:${PORTSDIR}/textproc/xmlto .endif LIB_DEPENDS= gmime-2.4:${PORTSDIR}/mail/gmime24 \ - zdb.8:${PORTSDIR}/databases/libzdb \ - mhash.2:${PORTSDIR}/security/mhash \ - event-1.4:${PORTSDIR}/devel/libevent + zdb:${PORTSDIR}/databases/libzdb \ + mhash:${PORTSDIR}/security/mhash \ + event:${PORTSDIR}/devel/libevent CONFLICTS= dbmail-*-2.0.* dbmail-2.* -OPTIONS= SIEVE "Build with support for Sieve mail sorting language" off \ - LDAP "Build with support for LDAP authentication" off +OPTIONS_DEFINE= LDAP SIEVE THREADS +OPTIONS_DEFAULT= THREADS +SIEVE_DESC= "Build with support for Sieve mail sorting language" USE_AUTOTOOLS= libtool USE_GMAKE= yes USE_LDCONFIG= ${PREFIX}/lib/dbmail USE_RC_SUBR= dbmail-pop3d dbmail-lmtpd dbmail-imapd dbmail-timsieved USE_OPENSSL= yes -CFLAGS+= -fPIC -I${LOCALBASE}/include ${PTHREAD_CFLAGS} +CFLAGS+= -fPIC ${PTHREAD_CFLAGS} +CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} CONFIGURE_ARGS+= --with-zdb=${LOCALBASE} --sysconfdir=${LOCALBASE}/etc MAKE_ARGS+= mandir=${MANPREFIX}/man PORTDOCS= AUTHORS BUGS INSTALL THANKS UPGRADING .if !defined(NOPORTDOCS) MAN1= dbmail-deliver.1 dbmail.1 MAN5= dbmail.conf.5 MAN8= dbmail-export.8 dbmail-httpd.8 dbmail-imapd.8 \ dbmail-lmtpd.8 dbmail-pop3d.8 dbmail-sievecmd.8 \ dbmail-timsieved.8 dbmail-users.8 dbmail-util.8 .endif DBMAIL_USER?= mailnull DBMAIL_GROUP?= mail PIDDIR?= /var/run/dbmail PLIST_SUB+= DBMAIL_USER="${DBMAIL_USER}" \ DBMAIL_GROUP="${DBMAIL_GROUP}" \ PIDDIR="${PIDDIR}" .if defined(NOPORTDOCS) PLIST_SUB+= PORTDOCS="@comment " .else PLIST_SUB+= PORTDOCS="" .endif .include .if defined(WITH_SIEVE) CONFIGURE_ARGS+=--with-sieve=${LOCALBASE} -LIB_DEPENDS+= sieve.1:${PORTSDIR}/mail/libsieve +LIB_DEPENDS+= sieve:${PORTSDIR}/mail/libsieve PLIST_SUB+= SIEVE="" .else PLIST_SUB+= SIEVE="@comment " .endif .if defined(WITH_LDAP) CONFIGURE_ARGS+=--with-ldap=${LOCALBASE} USE_OPENLDAP= yes PLIST_SUB+= LDAP="" .else PLIST_SUB+= LDAP="@comment " +.endif + +.if defined(WITH_THREADS) +EXTRA_PATCHES= ${FILESDIR}/extra-patch-acinclude.m4 +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-configure .endif .if !defined(NOPORTDOCS) CONFIGURE_ARGS+= --enable-manpages .endif post-install: @${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${PREFIX}/etc/dbmail.conf-dist @if [ ! -f ${PREFIX}/etc/dbmail.conf ] ; then \ ${CP} -p ${PREFIX}/etc/dbmail.conf-dist ${PREFIX}/etc/dbmail.conf; \ fi @${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/dbmail.schema ${DATADIR} @for f in mysql oracle postgresql sqlite; do \ ${MKDIR} ${DATADIR}/$$f ; \ ${INSTALL_DATA} ${WRKSRC}/sql/$$f/* ${DATADIR}/$$f; \ done @${MKDIR} ${PIDDIR} @${CHOWN} ${DBMAIL_USER}:${DBMAIL_GROUP} ${PIDDIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} * ${DOCSDIR}) .endif @${CAT} ${PKGMESSAGE} .include Property changes on: head/mail/dbmail/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.48 \ No newline at end of property +1.49 \ No newline at end of property Index: head/mail/dbmail/files/extra-patch-acinclude.m4 =================================================================== --- head/mail/dbmail/files/extra-patch-acinclude.m4 (nonexistent) +++ head/mail/dbmail/files/extra-patch-acinclude.m4 (revision 298324) @@ -0,0 +1,20 @@ +--- acinclude.m4.orig 2012-05-30 16:42:44.000000000 +0100 ++++ acinclude.m4 2012-05-30 16:44:28.000000000 +0100 +@@ -235,7 +235,7 @@ + dnl See if we already have the paths we need in the environment. + dnl ...but only if --with-ldap was given without a specific path. + if ( test [ "x$lookforldap" = "xyes" ] || test [ "x$lookforauthldap" = "xyes" ] ); then +- AC_CHECK_HEADERS([ldap.h],[LDAPLIB="-lldap"], [LDAPLIB="failed"]) ++ AC_CHECK_HEADERS([ldap.h],[LDAPLIB="-lldap_r"], [LDAPLIB="failed"]) + if test [ "x$LDAPLIB" != "xfailed" ]; then + break + fi +@@ -247,7 +247,7 @@ + SAVE_CFLAGS=$CFLAGS + dnl The headers might be in a funny place, so we need to use -Ipath + CFLAGS="$CFLAGS -L$TEST_PATH $LDAPINC" +- AC_CHECK_HEADERS([ldap.h],[LDAPLIB="-L$TEST_PATH -lldap"], [LDAPLIB="failed"]) ++ AC_CHECK_HEADERS([ldap.h],[LDAPLIB="-L$TEST_PATH -lldap_r"], [LDAPLIB="failed"]) + CFLAGS=$SAVE_CFLAGS + if test [ "x$LDAPLIB" != "xfailed" ]; then + break 2 Property changes on: head/mail/dbmail/files/extra-patch-acinclude.m4 ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/mail/dbmail/files/extra-patch-configure =================================================================== --- head/mail/dbmail/files/extra-patch-configure (nonexistent) +++ head/mail/dbmail/files/extra-patch-configure (revision 298324) @@ -0,0 +1,29 @@ ++++ configure.orig 2012-03-11 08:02:30.000000000 +0000 +--- configure 2012-05-31 12:47:22.000000000 +0100 +@@ -4420,7 +4420,7 @@ + cat >>confdefs.h <<_ACEOF + #define HAVE_LDAP_H 1 + _ACEOF +- LDAPLIB="-lldap" ++ LDAPLIB="-lldap_r" + else + LDAPLIB="failed" + fi +@@ -4443,7 +4443,7 @@ + cat >>confdefs.h <<_ACEOF + #define HAVE_LDAP_H 1 + _ACEOF +- LDAPLIB="-L$TEST_PATH -lldap" ++ LDAPLIB="-L$TEST_PATH -lldap_r" + else + LDAPLIB="failed" + fi +@@ -4489,7 +4489,7 @@ + return 0; + } + _ACEOF +-for ac_lib in '' ldap; do ++for ac_lib in '' ldap_r; do + if test -z "$ac_lib"; then + ac_res="none required" + else Property changes on: head/mail/dbmail/files/extra-patch-configure ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/mail/dbmail/files/patch-src_dbmail.h.in =================================================================== --- head/mail/dbmail/files/patch-src_dbmail.h.in (nonexistent) +++ head/mail/dbmail/files/patch-src_dbmail.h.in (revision 298324) @@ -0,0 +1,13 @@ +--- src/dbmail.h.in.orig 2012-05-31 13:06:26.000000000 +0100 ++++ src/dbmail.h.in 2012-05-31 13:07:01.000000000 +0100 +@@ -150,6 +150,10 @@ + #include + #endif + ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ + #define GETCONFIGVALUE(key, sect, var) \ + config_get_value(key, sect, var); \ + if (strlen(var) > 0) \ Property changes on: head/mail/dbmail/files/patch-src_dbmail.h.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property