pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/postfix Make this work on Linux.
details: https://anonhg.NetBSD.org/pkgsrc/rev/5080e1893b7a
branches: trunk
changeset: 466790:5080e1893b7a
user: martti <martti%pkgsrc.org@localhost>
date: Fri Jan 23 12:03:44 2004 +0000
description:
Make this work on Linux.
diffstat:
mail/postfix/Makefile | 13 +++++++++++--
mail/postfix/distinfo | 3 ++-
mail/postfix/patches/patch-ai | 27 +++++++++++++++++++++++++++
3 files changed, 40 insertions(+), 3 deletions(-)
diffs (79 lines):
diff -r 67f9203d5cd1 -r 5080e1893b7a mail/postfix/Makefile
--- a/mail/postfix/Makefile Fri Jan 23 11:53:13 2004 +0000
+++ b/mail/postfix/Makefile Fri Jan 23 12:03:44 2004 +0000
@@ -1,14 +1,15 @@
-# $NetBSD: Makefile,v 1.114 2004/01/23 06:25:25 martti Exp $
+# $NetBSD: Makefile,v 1.115 2004/01/23 12:03:44 martti Exp $
DISTNAME= postfix-2.0.18
CATEGORIES= mail
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/
-DIST_SUBDIR= postfix
MAINTAINER= martti%NetBSD.org@localhost
HOMEPAGE= http://www.postfix.org/
COMMENT= Postfix SMTP server and tools
+DIST_SUBDIR= postfix
+
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
@@ -184,4 +185,12 @@
cd ${WRKSRC} && ${SETENV} config_directory="${SHAREDIR}" \
${SH} postfix-install -non-interactive
+.if ${OPSYS} == "Linux"
+.include "../../databases/db/buildlink3.mk"
+CCARGS+= -I${BUILDLINK_PREFIX.db}/include/db2
+AUXLIBS+= -L${BUILDLINK_PREFIX.db}/lib \
+ -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db}/lib \
+ -ldb2
+.endif
+
.include "../../mk/bsd.pkg.mk"
diff -r 67f9203d5cd1 -r 5080e1893b7a mail/postfix/distinfo
--- a/mail/postfix/distinfo Fri Jan 23 11:53:13 2004 +0000
+++ b/mail/postfix/distinfo Fri Jan 23 12:03:44 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.51 2004/01/23 06:25:26 martti Exp $
+$NetBSD: distinfo,v 1.52 2004/01/23 12:03:44 martti Exp $
SHA1 (postfix/postfix-2.0.18.tar.gz) = 7abf546d2756978caddb37f4203602412e277f51
Size (postfix/postfix-2.0.18.tar.gz) = 1353649 bytes
@@ -12,3 +12,4 @@
SHA1 (patch-af) = 9b0521751704fd1377d8215dc16a873c1d5ca032
SHA1 (patch-ag) = 0b5f1241cd4f4b27b8edfd5e5e19f4b9ce9948ca
SHA1 (patch-ah) = 6beedd15ee3a7cfd46cf3ed0b9ee579b9906300b
+SHA1 (patch-ai) = 25af047b95fcdd9bf71ac853a291b2499230ad42
diff -r 67f9203d5cd1 -r 5080e1893b7a mail/postfix/patches/patch-ai
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/postfix/patches/patch-ai Fri Jan 23 12:03:44 2004 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-ai,v 1.8 2004/01/23 12:03:44 martti Exp $
+
+--- makedefs.orig 2003-11-05 21:50:15.000000000 +0200
++++ makedefs 2004-01-23 13:56:57.000000000 +0200
+@@ -175,22 +175,6 @@
+ SYSLIBS="-ldb"
+ ;;
+ Linux.2*) SYSTYPE=LINUX2
+- # Postfix no longer needs DB 1.85 compatibility
+- if [ -f /usr/include/db.h ]
+- then
+- : we are all set
+- elif [ -f /usr/include/db/db.h ]
+- then
+- CCARGS="$CCARGS -I/usr/include/db"
+- else
+- # No, we're not going to try db1 db2 db3 etc.
+- # On a properly installed system, Postfix builds
+- # by including <db.h> and by linking with -ldb
+- echo "No <db.h> include file found." 1>&2
+- echo "Install the appropriate db*-devel package first." 1>&2
+- echo "See the RELEASE_NOTES file for more information." 1>&2
+- exit 1
+- fi
+ # GDBM locks the DBM .pag file after open. This breaks postmap.
+ # if [ -f /usr/include/gdbm-ndbm.h ]
+ # then
Home |
Main Index |
Thread Index |
Old Index