pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/dovecot - add kqueue option (off by default - per...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/93f2d5dd9abc
branches:  trunk
changeset: 507976:93f2d5dd9abc
user:      grant <grant%pkgsrc.org@localhost>
date:      Sun Feb 12 02:47:31 2006 +0000

description:
- add kqueue option (off by default - perhaps it should be on by
  default at the next version bump?)
- set SSL_{CFLAGS,LIBS} when calling configure script so they are
  found correctly on Solaris, and make the configure script do what it
  claims and ignore pkg-config when these are set.
- add lib-sql Makefile patch from Dovecot CVS so this builds correctly
  when no SQL auth support is built.

diffstat:

 mail/dovecot/distinfo         |   4 +++-
 mail/dovecot/options.mk       |  14 ++++++++++++--
 mail/dovecot/patches/patch-ac |  41 +++++++++++++++++++++++++++++++++++++++++
 mail/dovecot/patches/patch-ad |  23 +++++++++++++++++++++++
 4 files changed, 79 insertions(+), 3 deletions(-)

diffs (120 lines):

diff -r 90188df16495 -r 93f2d5dd9abc mail/dovecot/distinfo
--- a/mail/dovecot/distinfo     Sun Feb 12 02:46:50 2006 +0000
+++ b/mail/dovecot/distinfo     Sun Feb 12 02:47:31 2006 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.22 2006/02/10 12:20:55 tv Exp $
+$NetBSD: distinfo,v 1.23 2006/02/12 02:47:31 grant Exp $
 
 SHA1 (dovecot-1.0.beta3.tar.gz) = a5d1fc471c88b96e0ef9d7296b25450a1d7a1419
 RMD160 (dovecot-1.0.beta3.tar.gz) = 180e694ee78b73e69995096e1598cca427f6c87d
 Size (dovecot-1.0.beta3.tar.gz) = 1360574 bytes
 SHA1 (patch-aa) = be37d7ed741930e683028e6ea626aa1d312a328e
 SHA1 (patch-ab) = a96efac8c8fbaf90f2706e5cb4a3288e405d946f
+SHA1 (patch-ac) = 27de0de32111e351cd547cb5a9847a15e4c991a0
+SHA1 (patch-ad) = c390d007c60b80a6456c42f3512afdea76e5e03c
diff -r 90188df16495 -r 93f2d5dd9abc mail/dovecot/options.mk
--- a/mail/dovecot/options.mk   Sun Feb 12 02:46:50 2006 +0000
+++ b/mail/dovecot/options.mk   Sun Feb 12 02:47:31 2006 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.13 2006/02/09 09:09:28 ghen Exp $
+# $NetBSD: options.mk,v 1.14 2006/02/12 02:47:32 grant Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.dovecot
-PKG_SUPPORTED_OPTIONS= inet6 ldap mysql pam pgsql sasl sqlite
+PKG_SUPPORTED_OPTIONS= inet6 kqueue ldap mysql pam pgsql sasl sqlite
 PKG_OPTIONS_OPTIONAL_GROUPS= ssl
 PKG_OPTIONS_GROUP.ssl= gnutls ssl
 PKG_SUGGESTED_OPTIONS= ssl
@@ -13,6 +13,8 @@
 ###
 .if !empty(PKG_OPTIONS:Mssl)
 CONFIGURE_ARGS+=        --with-ssl=openssl
+CONFIGURE_ENV+=                SSL_CFLAGS="-I${BUILDLINK_PREFIX.openssl}/include"
+CONFIGURE_ENV+=                SSL_LIBS="-lssl -lcrypto"
 .  include "../../security/openssl/buildlink3.mk"
 .elif !empty(PKG_OPTIONS:Mgnutls)
 CONFIGURE_ARGS+=       --with-ssl=gnutls
@@ -72,3 +74,11 @@
 CONFIGURE_ARGS+=       --with-sqlite
 .  include "../../databases/sqlite3/buildlink3.mk"
 .endif
+
+###
+### kqueue support.
+###
+.if !empty(PKG_OPTIONS:Mkqueue)
+CONFIGURE_ARGS+=       --with-ioloop=kqueue
+CONFIGURE_ARGS+=       --with-notify=kqueue
+.endif
diff -r 90188df16495 -r 93f2d5dd9abc mail/dovecot/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dovecot/patches/patch-ac     Sun Feb 12 02:47:31 2006 +0000
@@ -0,0 +1,41 @@
+$NetBSD: patch-ac,v 1.3 2006/02/12 02:47:32 grant Exp $
+
+--- configure.orig     2006-02-08 21:13:57.000000000 +1100
++++ configure
+@@ -27710,7 +27710,7 @@ pkg_failed=no
+ echo "$as_me:$LINENO: checking for SSL" >&5
+ echo $ECHO_N "checking for SSL... $ECHO_C" >&6
+ 
+-if test -n "$PKG_CONFIG"; then
++#if test -n "$PKG_CONFIG"; then
+     if test -n "$SSL_CFLAGS"; then
+         pkg_cv_SSL_CFLAGS="$SSL_CFLAGS"
+     else
+@@ -27725,10 +27725,10 @@ else
+   pkg_failed=yes
+ fi
+     fi
+-else
+-      pkg_failed=untried
+-fi
+-if test -n "$PKG_CONFIG"; then
++#else
++#     pkg_failed=untried
++#fi
++#if test -n "$PKG_CONFIG"; then
+     if test -n "$SSL_LIBS"; then
+         pkg_cv_SSL_LIBS="$SSL_LIBS"
+     else
+@@ -27743,9 +27743,9 @@ else
+   pkg_failed=yes
+ fi
+     fi
+-else
+-      pkg_failed=untried
+-fi
++#else
++#     pkg_failed=untried
++#fi
+ 
+ 
+ 
diff -r 90188df16495 -r 93f2d5dd9abc mail/dovecot/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dovecot/patches/patch-ad     Sun Feb 12 02:47:31 2006 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ad,v 1.3 2006/02/12 02:47:32 grant Exp $
+
+--- src/lib-sql/Makefile.in.orig       2006-02-08 21:13:53.000000000 +1100
++++ src/lib-sql/Makefile.in
+@@ -470,12 +470,16 @@ sql-drivers-register.c: Makefile
+       echo '/* this file automatically generated by Makefile */' >$@
+       echo '#include "lib.h"' >>$@
+       echo '#include "sql-api.h"' >>$@
+-      for i in $(sql_drivers) ; do \
++      for i in $(sql_drivers) null; do \
++        if [ "$${i}" != "null" ]; then \
+               echo "extern struct sql_db driver_$${i}_db;" >>$@ ; \
++        fi \
+       done
+       echo 'void sql_drivers_register_all(void) {' >>$@
+-      for i in $(sql_drivers) ; do \
++      for i in $(sql_drivers) null; do \
++        if [ "$${i}" != "null" ]; then \
+               echo "sql_driver_register(&driver_$${i}_db);" >>$@ ; \
++        fi \
+       done
+       echo '}' >>$@
+ 



Home | Main Index | Thread Index | Old Index