diff options
author | tron <tron> | 1999-12-01 21:15:20 +0000 |
---|---|---|
committer | tron <tron> | 1999-12-01 21:15:20 +0000 |
commit | 2249285d4b7eadc427a87a91956378e90b639e2d (patch) | |
tree | 3a5927d04d75e4036b966e7b11cf24d9af29833e | |
parent | 3cbf480f5170aa274918fbee0424d375e6ce3f67 (diff) | |
download | pkgsrc-2249285d4b7eadc427a87a91956378e90b639e2d.tar.gz |
Because sendmail 8.9.3 works fine for several NetBSD users with the
bug fixed DB 1.85 code in "libc" and using DB 2.x causes problems with
3rd party applications we use it only if "${USE_DB2}" is set to "YES".
-rw-r--r-- | mail/sendmail/Makefile | 15 | ||||
-rw-r--r-- | mail/sendmail/files/patch-sum | 4 | ||||
-rw-r--r-- | mail/sendmail/patches/patch-aa | 6 |
3 files changed, 17 insertions, 8 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile index 400490b6a31..67e260e71ba 100644 --- a/mail/sendmail/Makefile +++ b/mail/sendmail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 1999/11/23 09:57:17 tron Exp $ +# $NetBSD: Makefile,v 1.7 1999/12/01 21:15:20 tron Exp $ DISTNAME= sendmail.8.9.3 PKGNAME= sendmail-8.9.3 @@ -9,8 +9,6 @@ MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/ \ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.sendmail.org/ -DEPENDS+= db-2.7.7:../../databases/db - LICENSE= no-profit NO_CONFIGURE= yes @@ -21,6 +19,17 @@ MESSAGE_FILE= ${WRKDIR}/MESSAGE WRKSRC= ${WRKDIR}/${PKGNAME} OBJDIR!= echo obj.`uname -srm | tr \ .` +.include "../../mk/bsd.prefs.mk" + +.if defined(USE_DB2) && ${USE_DB2} == YES +DEPENDS+= db-2.7.7:../../databases/db + +MAKE_ENV+= DB_ENVDEF="-I${LOCALBASE}/include/db2" \ + DB_LIBS="-L${LOCALBASE}/lib -ldb2" +.else +MAKE_ENV+= DB_ENVDEF="" DB_LIBS="" +.endif + post-build: ${SED} -e 's#@@PKGNAME@@#${PKGNAME}#g' \ -e 's#@@PREFIX@@#${PREFIX}#g' \ diff --git a/mail/sendmail/files/patch-sum b/mail/sendmail/files/patch-sum index 0ed3238d561..bf1fbba433c 100644 --- a/mail/sendmail/files/patch-sum +++ b/mail/sendmail/files/patch-sum @@ -1,4 +1,4 @@ -$NetBSD: patch-sum,v 1.1 1999/07/09 14:09:07 agc Exp $ +$NetBSD: patch-sum,v 1.2 1999/12/01 21:15:21 tron Exp $ -MD5 (patch-aa) = df20fa0c9dce96eef6a9854be895ceec +MD5 (patch-aa) = 5cf04a5f1faa525ea6d516805e89bc80 MD5 (patch-ab) = 38e9dd26e2ca9b0bedf478342ab9f503 diff --git a/mail/sendmail/patches/patch-aa b/mail/sendmail/patches/patch-aa index 0922eb7827f..ab9947bd898 100644 --- a/mail/sendmail/patches/patch-aa +++ b/mail/sendmail/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.6 1999/06/30 10:02:59 tron Exp $ +$NetBSD: patch-aa,v 1.7 1999/12/01 21:15:22 tron Exp $ --- BuildTools/OS/NetBSD.orig Tue Dec 29 18:39:50 1998 +++ BuildTools/OS/NetBSD Sat Apr 10 19:13:10 1999 @@ -6,9 +6,9 @@ $NetBSD: patch-aa,v 1.6 1999/06/30 10:02:59 tron Exp $ # @(#)NetBSD 8.6 (Berkeley) 3/12/1998 define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX') -define(`confENVDEF', ` -DNETISO') -+define(`confENVDEF', ` -DNETISO -I${PREFIX}/include/db2') ++define(`confENVDEF', ` -DNETISO ${DB_ENVDEF}') define(`confDEPEND_TYPE', `CC-M') -+define(`confLIBS', `-L${PREFIX}/lib -ldb2 ${LDFLAGS}') ++define(`confLIBS', `${DB_LIBS} ${LDFLAGS}') +define(`confEBINDIR', `${PREFIX}/libexec/sendmail') +define(`confMBINDIR', `${PREFIX}/libexec/sendmail') +define(`confSBINDIR', `${PREFIX}/sbin') |