summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2004-06-04 00:10:34 +0000
committerreed <reed@pkgsrc.org>2004-06-04 00:10:34 +0000
commit4fe3c82f1414b59d4e93f3caf1d99867e7c3a70f (patch)
tree4753e8ddf3191ce7949559444067dccbeb2653ba /mail
parent07161a5d24f35a44d5db74cd1b02ab9390cacaa7 (diff)
downloadpkgsrc-4fe3c82f1414b59d4e93f3caf1d99867e7c3a70f.tar.gz
Add support for a variable called EXIM_DB. By default, it will
use native (since it is the first BDB_ACCEPTED choice). So under NetBSD this does not change anything. It can be set to "gdbm" if desiring gdbm as the DB method used. Else it will use the mk/bdb.buildlink3.mk method. For example, to choose a specific Berkeley DB implementation (like DB hash version 7), then do: "make BDB_DEFAULT=db3" (when EXIM_DB is unset or not set to "gdbm"). Please note that if you change the method, exim may complain about DB problems. This is okay. You can delete the db files and regenerate. (exim provides some db management tools too.) This fixes the problem where exim will not build when the system's db is not available or correct. This will close my old PR pkg/19277. This was discussed with maintainer, David Brownlee.
Diffstat (limited to 'mail')
-rw-r--r--mail/exim-exiscan/Makefile4
-rw-r--r--mail/exim/Makefile4
-rw-r--r--mail/exim/Makefile.common31
-rw-r--r--mail/exim/distinfo4
-rw-r--r--mail/exim/patches/patch-aa12
5 files changed, 45 insertions, 10 deletions
diff --git a/mail/exim-exiscan/Makefile b/mail/exim-exiscan/Makefile
index 954327aa04d..bebf52b5951 100644
--- a/mail/exim-exiscan/Makefile
+++ b/mail/exim-exiscan/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2004/05/07 17:47:32 abs Exp $
+# $NetBSD: Makefile,v 1.10 2004/06/04 00:10:34 reed Exp $
DISTNAME= exim-${EXIM_VERSION}
-PKGREVISION= 1
+PKGREVISION= 2
PKGNAME= exim-exiscan-${EXIM_VERSION}_${EXISCAN_VERSION}
CATEGORIES= mail net
diff --git a/mail/exim/Makefile b/mail/exim/Makefile
index 3212c57a0ff..27034cb0fea 100644
--- a/mail/exim/Makefile
+++ b/mail/exim/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.47 2004/05/07 18:12:58 abs Exp $
+# $NetBSD: Makefile,v 1.48 2004/06/04 00:10:34 reed Exp $
DISTNAME= exim-${EXIM_VERSION}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= mail net
MAINTAINER= abs@NetBSD.org
diff --git a/mail/exim/Makefile.common b/mail/exim/Makefile.common
index 188a93fb8fc..2fb26836fd4 100644
--- a/mail/exim/Makefile.common
+++ b/mail/exim/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.6 2004/05/09 21:14:42 snj Exp $
+# $NetBSD: Makefile.common,v 1.7 2004/06/04 00:10:34 reed Exp $
MASTER_SITES= ftp://ftp.exim.org/pub/exim/exim4/ \
ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/ \
@@ -16,7 +16,7 @@ EXTRACT_SUFX= .tar.bz2
.include "../../mk/bsd.prefs.mk"
-BUILD_DEFS= EXIM_USER EXIM_GROUP
+BUILD_DEFS= EXIM_USER EXIM_GROUP EXIM_DB
PKG_GROUPS= ${EXIM_GROUP}
PKG_USERS= ${EXIM_USER}:${EXIM_GROUP}:8:Exim\\ mail\\ server\\ user:/var/mail:/sbin/nologin
@@ -37,6 +37,30 @@ OWN_DIRS_PERMS+= /var/spool/exim ${EXIM_USER} ${EXIM_GROUP} 0750
# XXX: The following will be handled by buildlink2 at some point.
CFLAGS+= ${_STRIPFLAG_CC}
+.if defined(EXIM_DB) && ${EXIM_DB} == "gdbm"
+. include "../../databases/gdbm/buildlink3.mk"
+EXIM_USE_DB_CONFIG= USE_GDBM=yes
+EXIM_DBMLIB= DBMLIB=-lgdbm
+EXIM_INCLUDE= -I${PREFIX}/include
+.else # use native or Berkeley DB as defined by BDB_DEFAULT and BDB_ACCEPTED
+. include "../../mk/bdb.buildlink3.mk"
+EXIM_USE_DB_CONFIG= USE_DB=yes # the default
+. if ${BDB_TYPE} == "db4"
+EXIM_DBMLIB= DBMLIB=-ldb4
+EXIM_INCLUDE= -I${PREFIX}/${BUILDLINK_INCDIRS.db4}
+. elif ${BDB_TYPE} == "db3"
+EXIM_DBMLIB= DBMLIB=-ldb3
+EXIM_INCLUDE= -I${PREFIX}/${BUILDLINK_INCDIRS.db3}
+. elif ${BDB_TYPE} == "db2"
+EXIM_DBMLIB= DBMLIB=-ldb2
+EXIM_INCLUDE= -I${PREFIX}/${BUILDLINK_INCDIRS.db2}
+. else # using native
+EXIM_DBMLIB= # empty so use defaults
+EXIM_USE_DB_CONFIG= # empty so use defaults
+EXIM_INCLUDE= # empty so use defaults
+. endif
+.endif
+
pre-patch:
${MKDIR} ${WRKSRC}/Local
${CP} ${WRKSRC}/src/EDITME ${WRKSRC}/Local/Makefile.pkgsrc
@@ -47,6 +71,9 @@ pre-configure:
-e 's:@PKG_SYSCONFDIR@:${PKG_SYSCONFDIR}:' \
-e 's:@EXIM_USER@:${EXIM_USER}:' \
-e 's:@EXIM_GROUP@:${EXIM_GROUP}:' \
+ -e 's:@EXIM_USE_DB_CONFIG@:${EXIM_USE_DB_CONFIG}:' \
+ -e 's:@EXIM_DBMLIB@:${EXIM_DBMLIB}:' \
+ -e 's:@EXIM_INCLUDE@:${EXIM_INCLUDE}:' \
-e 's:@CHOWN@:${CHOWN}:' \
-e 's:@CHGRP@:${CHGRP}:' \
-e 's:@MV@:${MV}:' \
diff --git a/mail/exim/distinfo b/mail/exim/distinfo
index f438304f3f2..26ce0c3b9a0 100644
--- a/mail/exim/distinfo
+++ b/mail/exim/distinfo
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.17 2004/05/07 17:47:32 abs Exp $
+$NetBSD: distinfo,v 1.18 2004/06/04 00:10:34 reed Exp $
SHA1 (exim-4.33.tar.bz2) = 2e18138793e416a4934e6f2ac8d2cd9262ffae07
Size (exim-4.33.tar.bz2) = 1327741 bytes
SHA1 (exiscan-acl-4.33-20.patch.bz2) = e50b2570f5485827f63949eed944f90acdcc11e0
Size (exiscan-acl-4.33-20.patch.bz2) = 74187 bytes
-SHA1 (patch-aa) = 3d6047aacdfff69350e58727f116b467cd4fe18d
+SHA1 (patch-aa) = 07ce41a5ee3a29c29a05ad556f5fef53a5a2285b
SHA1 (patch-ab) = 5134367d16c56ad7c2820393e102a9aad73511c8
SHA1 (patch-ac) = 48160bf4ef4379f4b4ce5dafeb33c85ddcfde65c
SHA1 (patch-ad) = 6323899062b33ec34610fd93dfc181cdc9d7f369
diff --git a/mail/exim/patches/patch-aa b/mail/exim/patches/patch-aa
index 192c502ee7b..803a23ffb13 100644
--- a/mail/exim/patches/patch-aa
+++ b/mail/exim/patches/patch-aa
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.8 2004/05/07 17:47:32 abs Exp $
+$NetBSD: patch-aa,v 1.9 2004/06/04 00:10:34 reed Exp $
---- Local/Makefile.pkgsrc.orig Fri May 7 18:22:09 2004
+--- Local/Makefile.pkgsrc.orig 2004-06-03 13:36:01.871153448 -0700
+++ Local/Makefile.pkgsrc
@@ -98,7 +98,7 @@
# /usr/local/sbin. The installation script will try to create this directory,
@@ -141,3 +141,11 @@ $NetBSD: patch-aa,v 1.8 2004/05/07 17:47:32 abs Exp $
# If PID_FILE_PATH is not defined, Exim writes a file in its spool directory
# using the name "exim-daemon.pid".
+@@ -953,3 +955,7 @@ TMPDIR="/tmp"
+ # SUPPORT_MOVE_FROZEN_MESSAGES=yes
+
+ # End of EDITME for Exim 4.
++
++@EXIM_USE_DB_CONFIG@
++@EXIM_DBMLIB@
++INCLUDE=@EXIM_INCLUDE@