diff options
author | martti <martti@pkgsrc.org> | 2004-01-23 12:03:44 +0000 |
---|---|---|
committer | martti <martti@pkgsrc.org> | 2004-01-23 12:03:44 +0000 |
commit | 2acac9de34b60da033a338c7d6c605c38e3f9ddf (patch) | |
tree | 659fcd6a9362a105407a5bef274ef0f1d5192821 /mail | |
parent | 74f9c04e1a0c36920fde10e3d2fd0753b2a9e76f (diff) | |
download | pkgsrc-2acac9de34b60da033a338c7d6c605c38e3f9ddf.tar.gz |
Make this work on Linux.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/postfix/Makefile | 13 | ||||
-rw-r--r-- | mail/postfix/distinfo | 3 | ||||
-rw-r--r-- | mail/postfix/patches/patch-ai | 27 |
3 files changed, 40 insertions, 3 deletions
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile index 80afc6baf58..e1f2220ccbb 100644 --- a/mail/postfix/Makefile +++ b/mail/postfix/Makefile @@ -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 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 @@ do-install: 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 --git a/mail/postfix/distinfo b/mail/postfix/distinfo index 3a8ff070f36..ac30ac271e7 100644 --- a/mail/postfix/distinfo +++ b/mail/postfix/distinfo @@ -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-ae) = daa160ef54d725ca156f29322d45efcf4af6c02a SHA1 (patch-af) = 9b0521751704fd1377d8215dc16a873c1d5ca032 SHA1 (patch-ag) = 0b5f1241cd4f4b27b8edfd5e5e19f4b9ce9948ca SHA1 (patch-ah) = 6beedd15ee3a7cfd46cf3ed0b9ee579b9906300b +SHA1 (patch-ai) = 25af047b95fcdd9bf71ac853a291b2499230ad42 diff --git a/mail/postfix/patches/patch-ai b/mail/postfix/patches/patch-ai new file mode 100644 index 00000000000..042e1e0d4b3 --- /dev/null +++ b/mail/postfix/patches/patch-ai @@ -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 |