FreeBSD Bugzilla – Attachment 135789 Details for
Bug 180768
[Maintainer patch] Upgrade mail/dbmail from 3.0.2 to 3.1.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
dbmail-302-310.diff
dbmail-302-310.diff (text/plain), 12.25 KB, created by
Alan Hicks
on 2013-07-23 16:40:01 UTC
(
hide
)
Description:
dbmail-302-310.diff
Filename:
MIME Type:
Creator:
Alan Hicks
Created:
2013-07-23 16:40:01 UTC
Size:
12.25 KB
patch
obsolete
>diff -uNr dbmail/Makefile dbmail/Makefile >--- dbmail/Makefile 2013-07-19 21:57:59.000000000 +0100 >+++ dbmail/Makefile 2013-07-23 13:07:20.000000000 +0100 >@@ -1,21 +1,21 @@ > # Created by: Clement Laforet <sheepkiller@cultdeadsheep.org> >-# $FreeBSD: mail/dbmail/Makefile 323328 2013-07-19 20:57:59Z cs $ >+# $FreeBSD: mail/dbmail/Makefile 319067 2013-05-25 18:57:44Z az $ > > PORTNAME= dbmail >-PORTVERSION= 3.0.2 >-PORTREVISION= 7 >+PORTVERSION= 3.1.0 >+PORTREVISION= 0 > CATEGORIES= mail >-MASTER_SITES= http://www.dbmail.org/download/3.0/ >+MASTER_SITES= http://www.dbmail.org/download/3.1/ > > MAINTAINER= ahicks@p-o.co.uk > COMMENT= An SQL database-based mail system (POP3 and IMAP) > > LICENSE= GPLv2 > >-LIB_DEPENDS= gmime-2.4:${PORTSDIR}/mail/gmime24 \ >+LIB_DEPENDS= gmime-2.6:${PORTSDIR}/mail/gmime24 \ > zdb:${PORTSDIR}/databases/libzdb \ > mhash:${PORTSDIR}/security/mhash \ >- event:${PORTSDIR}/devel/libevent >+ event-2:${PORTSDIR}/devel/libevent2 > > CONFLICTS= dbmail-2.* > >@@ -30,15 +30,16 @@ > xmlto:${PORTSDIR}/textproc/xmlto > .endif > >-USE_AUTOTOOLS= libtool >+USE_AUTOTOOLS= libtool autoheader autoconf > USE_GMAKE= yes > USE_LDCONFIG= ${PREFIX}/lib/dbmail > USE_RC_SUBR= dbmail-pop3d dbmail-lmtpd dbmail-imapd dbmail-timsieved > USE_OPENSSL= yes > USES= shebangfix > SHEBANG_FILES= man/fixsp.pl >+WITH_DEBUG= yes > >-CFLAGS+= -fPIC ${PTHREAD_CFLAGS} >+CFLAGS+= -fPIC ${PTHREAD_CFLAGS} -DDEBUG > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} > CONFIGURE_ARGS+= --with-zdb=${LOCALBASE} --sysconfdir=${LOCALBASE}/etc >@@ -87,7 +88,7 @@ > > .if ${PORT_OPTIONS:MTHREADS} > EXTRA_PATCHES= ${FILESDIR}/extra-patch-acinclude.m4 >-EXTRA_PATCHES+= ${FILESDIR}/extra-patch-configure >+#EXTRA_PATCHES+= ${FILESDIR}/extra-patch-configure > .endif > > .if ${PORT_OPTIONS:MDOCS} >diff -uNr dbmail/distinfo dbmail/distinfo >--- dbmail/distinfo 2012-07-14 14:54:48.000000000 +0100 >+++ dbmail/distinfo 2013-07-23 13:07:37.000000000 +0100 >@@ -1,2 +1,2 @@ >-SHA256 (dbmail-3.0.2.tar.gz) = 139558f4fa3e0f460d688f6d29318366cc3f40dd570a1a29484bb580d0190c3e >-SIZE (dbmail-3.0.2.tar.gz) = 867560 >+SHA256 (dbmail-3.1.0.tar.gz) = 60afd82c4787340e5814ea10571d04c47ec3723a9759448b763d95c44229ce84 >+SIZE (dbmail-3.1.0.tar.gz) = 2396832 >diff -uNr dbmail/files/extra-patch-acinclude.m4 dbmail/files/extra-patch-acinclude.m4 >--- dbmail/files/extra-patch-acinclude.m4 2012-07-14 14:54:48.000000000 +0100 >+++ dbmail/files/extra-patch-acinclude.m4 2013-06-03 18:57:44.000000000 +0100 >@@ -1,6 +1,6 @@ >---- 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 @@ >+--- acinclude.m4.orig >++++ acinclude.m4 >+@@ -236,7 +236,7 @@ if ( test [ "x$lookforldap" != "xno" ] || test [ "x$lookforauthldap" != "xno" ] > 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 >@@ -9,7 +9,7 @@ > if test [ "x$LDAPLIB" != "xfailed" ]; then > break > fi >-@@ -247,7 +247,7 @@ >+@@ -248,7 +248,7 @@ if ( test [ "x$lookforldap" != "xno" ] || test [ "x$lookforauthldap" != "xno" ] > SAVE_CFLAGS=$CFLAGS > dnl The headers might be in a funny place, so we need to use -Ipath > CFLAGS="$CFLAGS -L$TEST_PATH $LDAPINC" >@@ -18,3 +18,12 @@ > CFLAGS=$SAVE_CFLAGS > if test [ "x$LDAPLIB" != "xfailed" ]; then > break 2 >+@@ -262,7 +262,7 @@ if ( test [ "x$lookforldap" != "xno" ] || test [ "x$lookforauthldap" != "xno" ] >+ AC_MSG_ERROR([Could not find LDAP library.]) >+ else >+ AC_DEFINE([AUTHLDAP], 1, [Define if LDAP will be used.]) >+- AC_SEARCH_LIBS(ldap_initialize, ldap, AC_DEFINE([HAVE_LDAP_INITIALIZE], 1, [ldap_initialize() can be used instead of ldap_init()])) >++ AC_SEARCH_LIBS(ldap_initialize, ldap_r, AC_DEFINE([HAVE_LDAP_INITIALIZE], 1, [ldap_initialize() can be used instead of ldap_init()])) >+ AC_SUBST(LDAPLIB) >+ AC_SUBST(LDAPINC) >+ AUTHALIB="modules/.libs/libauth_ldap.a" >diff -uNr dbmail/files/extra-patch-configure dbmail/files/extra-patch-configure >--- dbmail/files/extra-patch-configure 2012-07-14 14:54:48.000000000 +0100 >+++ dbmail/files/extra-patch-configure 1970-01-01 01:00:00.000000000 +0100 >@@ -1,29 +0,0 @@ >-+++ 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 >diff -uNr dbmail/files/patch-acinclude.m4 dbmail/files/patch-acinclude.m4 >--- dbmail/files/patch-acinclude.m4 1970-01-01 01:00:00.000000000 +0100 >+++ dbmail/files/patch-acinclude.m4 2013-05-31 14:45:59.000000000 +0100 >@@ -0,0 +1,58 @@ >+--- acinclude.m4.orig 2013-05-31 14:03:59.000000000 +0100 >++++ acinclude.m4 2013-05-31 14:45:49.000000000 +0100 >+@@ -23,7 +23,7 @@ >+ SOCKETS: $SOCKETLIB >+ MATH: $MATHLIB >+ MHASH: $MHASHLIB >+- LIBEVENT: $EVENTLIB >++ LIBEVENT: $ac_event_libs >+ OPENSSL: $SSLLIB >+ ZDB: $ZDBLIB >+ JEMALLOC: $JEMALLOCLIB >+@@ -342,13 +342,40 @@ >+ fi >+ ]) >+ >+-AC_DEFUN([DM_CHECK_EVENT], [ >+- AC_CHECK_HEADERS([event.h], [EVENTLIB="-levent_pthreads -levent"],[EVENTLIB="failed"], [#include <event2/event.h>]) >+- if test [ "x$EVENTLIB" = "xfailed" ]; then >+- AC_MSG_ERROR([Could not find EVENT library.]) >+- else >+- LDFLAGS="$LDFLAGS $EVENTLIB" >++AC_DEFUN([DM_CHECK_EVENT], [dnl >++AC_PATH_PROG(eventconfig,pkg-config) >++if test [ -z "$eventconfig" ] >++then >++ AC_MSG_ERROR([pkg-config executable not found. Make sure pkg-config is in your path]) >++else >++ AC_MSG_CHECKING([Event headers]) >++ ac_event_cflags=`${eventconfig} --cflags libevent_pthreads` >++ if test -z "$ac_event_cflags" >++ then >++ AC_MSG_RESULT([no]) >++ AC_MSG_ERROR([Unable to locate event development files]) >++ fi >++ >++ CFLAGS="$CFLAGS $ac_event_cflags" >++ AC_MSG_RESULT([$ac_event_cflags]) >++ AC_MSG_CHECKING([Event libraries]) >++ ac_event_libs=`${eventconfig} --libs libevent_pthreads` >++ if test -z "$ac_event_libs" >++ then >++ AC_MSG_RESULT([no]) >++ AC_MSG_ERROR([Unable to locate event libaries]) >+ fi >++ ac_event_minvers="2.0" >++ AC_MSG_CHECKING([Event version >= $ac_event_minvers]) >++ ac_event_vers=`${eventconfig} --atleast-version=$ac_event_minvers libevent_pthreads>/dev/null && echo yes` >++ if test -z "$ac_event_vers" >++ then >++ AC_MSG_ERROR([At least Event version $ac_event_minvers is required.]) >++ fi >++ >++ LDFLAGS="$LDFLAGS $ac_event_libs" >++ AC_MSG_RESULT([$ac_event_libs]) >++fi >+ ]) >+ >+ AC_DEFUN([DM_CHECK_SSL], [ >diff -uNr dbmail/files/patch-src_clientbase.c dbmail/files/patch-src_clientbase.c >--- dbmail/files/patch-src_clientbase.c 2012-07-14 14:54:48.000000000 +0100 >+++ dbmail/files/patch-src_clientbase.c 2013-07-23 13:21:44.000000000 +0100 >@@ -1,20 +1,28 @@ >---- src/clientbase.c.orig 2012-06-19 17:49:50.000000000 +0100 >-+++ src/clientbase.c 2012-06-19 17:50:29.000000000 +0100 >-@@ -160,7 +160,7 @@ >+--- src/clientbase.c.orig 2013-07-22 20:03:36.000000000 +0100 >++++ src/clientbase.c 2013-07-23 13:14:56.000000000 +0100 >+@@ -159,14 +159,14 @@ >+ client->tx = STDOUT_FILENO; > } else { > /* server-side */ >- TRACE(TRACE_DEBUG,"saddr [%p] sa_family [%d] len [%d]", c->saddr, c->saddr->sa_family, c->saddr_len); > - if ((serr = getnameinfo(c->saddr, c->saddr_len, client->dst_ip, NI_MAXHOST, client->dst_port, NI_MAXSERV, > + if ((serr = getnameinfo(c->saddr, c->saddr->sa_len, client->dst_ip, NI_MAXHOST, client->dst_port, NI_MAXSERV, > NI_NUMERICHOST | NI_NUMERICSERV))) { > TRACE(TRACE_INFO, "getnameinfo::error [%s]", gai_strerror(serr)); > } >-@@ -168,7 +168,7 @@ > > /* client-side */ >- TRACE(TRACE_DEBUG,"caddr [%p] sa_family [%d] len [%d]", c->caddr, c->caddr->sa_family, c->caddr_len); >-- if ((serr = getnameinfo(c->caddr, c->caddr_len, client->src_ip, NI_MAXHOST, client->src_port, NI_MAXSERV, >-+ if ((serr = getnameinfo(c->caddr, c->caddr->sa_len, client->src_ip, NI_MAXHOST, client->src_port, NI_MAXSERV, >- NI_NUMERICHOST | NI_NUMERICSERV))) { >- TRACE(TRACE_EMERG, "getnameinfo:error [%s]", gai_strerror(serr)); >- } >+ if (server_conf->resolveIP) { >+- if ((serr = getnameinfo(c->caddr, c->caddr_len, client->clientname, NI_MAXHOST, NULL, 0, >++ if ((serr = getnameinfo(c->caddr, c->caddr->sa_len, client->clientname, NI_MAXHOST, NULL, 0, >+ NI_NAMEREQD))) { >+ TRACE(TRACE_INFO, "getnameinfo:error [%s]", gai_strerror(serr)); >+ } >+@@ -177,7 +177,7 @@ >+ client->clientname[0] ? client->clientname : "Lookup failed"); >+ } else { >+ >+- if ((serr = getnameinfo(c->caddr, c->caddr_len, client->src_ip, NI_MAXHOST, client->src_port, >++ if ((serr = getnameinfo(c->caddr, c->caddr->sa_len, client->src_ip, NI_MAXHOST, client->src_port, >+ NI_MAXSERV, NI_NUMERICHOST | NI_NUMERICSERV))) { >+ TRACE(TRACE_INFO, "getnameinfo:error [%s]", gai_strerror(serr)); >+ } >diff -uNr dbmail/files/patch-src_dbmail.h.in dbmail/files/patch-src_dbmail.h.in >--- dbmail/files/patch-src_dbmail.h.in 2012-07-14 14:54:48.000000000 +0100 >+++ dbmail/files/patch-src_dbmail.h.in 2013-06-04 12:19:46.000000000 +0100 >@@ -1,6 +1,22 @@ >---- 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 @@ >+--- src/dbmail.h.in.orig >++++ src/dbmail.h.in >+@@ -83,8 +83,14 @@ >+ #include <mhash.h> >+ #include <sys/queue.h> >+ #include <event2/event.h> >++#include <event2/event_compat.h> >+ #include <event2/thread.h> >+-#include <evhttp.h> >++#include <event2/http.h> >++#include <event2/http_struct.h> >++#include <event2/http_compat.h> >++#include <event2/buffer.h> >++#include <event2/buffer_compat.h> >++#include <event2/keyvalq_struct.h> >+ #include <math.h> >+ #include <openssl/ssl.h> >+ >+@@ -154,6 +160,11 @@ > #include <endian.h> > #endif > >@@ -8,6 +24,7 @@ > +#include "config.h" > +#endif > + >++ > #define GETCONFIGVALUE(key, sect, var) \ >- config_get_value(key, sect, var); \ >- if (strlen(var) > 0) \ >+ config_get_value(key, sect, var); \ >+ if (strlen(var) > 0) \ >diff -uNr dbmail/pkg-plist dbmail/pkg-plist >--- dbmail/pkg-plist 2012-07-14 14:54:48.000000000 +0100 >+++ dbmail/pkg-plist 2013-07-23 13:35:44.000000000 +0100 >@@ -1,19 +1,15 @@ > @unexec if cmp -s %D/etc/dbmail.conf-dist %D/etc/dbmail.conf; then rm -f %D/etc/dbmail.conf; fi > etc/dbmail.conf-dist > @exec if [ ! -f %D/etc/dbmail.conf ] ; then cp -p %D/%F %B/dbmail.conf; fi >-%%LDAP%%lib/dbmail/libauth_ldap.a > %%LDAP%%lib/dbmail/libauth_ldap.la > %%LDAP%%lib/dbmail/libauth_ldap.so > %%LDAP%%lib/dbmail/libauth_ldap.so.0 >-lib/dbmail/libauth_sql.a > lib/dbmail/libauth_sql.la > lib/dbmail/libauth_sql.so > lib/dbmail/libauth_sql.so.0 >-lib/dbmail/libdbmail.a > lib/dbmail/libdbmail.la > lib/dbmail/libdbmail.so > lib/dbmail/libdbmail.so.0 >-%%SIEVE%%lib/dbmail/libsort_sieve.a > %%SIEVE%%lib/dbmail/libsort_sieve.la > %%SIEVE%%lib/dbmail/libsort_sieve.so > %%SIEVE%%lib/dbmail/libsort_sieve.so.0 >@@ -35,6 +31,7 @@ > %%DATADIR%%/mysql/2_3_4-2_3_5.mysql > %%DATADIR%%/mysql/2_3_5-2_3_6.mysql > %%DATADIR%%/mysql/2_3_6-3_0_0.mysql >+%%DATADIR%%/mysql/3_0_2-3_1_0.mysql > %%DATADIR%%/mysql/create_tables.mysql > %%DATADIR%%/mysql/fix_foreign_keys.mysql > %%DATADIR%%/mysql/migrate_from_1.x_to_2.0_innodb.mysql >@@ -49,6 +46,7 @@ > %%DATADIR%%/postgresql/2_3_4-2_3_5.pgsql > %%DATADIR%%/postgresql/2_3_5-2_3_6.pgsql > %%DATADIR%%/postgresql/2_3_6-3_0_0.pgsql >+%%DATADIR%%/postgresql/3_0_2-3_1_0.psql > %%DATADIR%%/postgresql/create_tables.pgsql > %%DATADIR%%/postgresql/migrate_from_1.x_to_2.0.pgsql > %%DATADIR%%/postgresql/migrate_from_2.0_to_2.2.pgsql >@@ -58,6 +56,7 @@ > %%DATADIR%%/sqlite/2_3_4-2_3_5.sqlite > %%DATADIR%%/sqlite/2_3_5-2_3_6.sqlite > %%DATADIR%%/sqlite/2_3_6-3_0_0.sqlite >+%%DATADIR%%/sqlite/3_0_2-3_1_0.sqlite > %%DATADIR%%/sqlite/create_tables.sqlite > %%DATADIR%%/sqlite/trigger.tmpl.sql > @dirrm %%DATADIR%%/sqlite
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 180768
: 135789 |
135790