Subject: Re: postgres patch for postfix (what am i doing wrong?)
To: Thomas Klausner <wiz@NetBSD.org>
From: Charlie Allom <charlie@rubberduck.com>
List: tech-pkg
Date: 02/16/2004 00:11:04
--Apple-Mail-14--240782771
Content-Type: multipart/mixed; boundary=Apple-Mail-13--240782776
--Apple-Mail-13--240782776
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
On 15/02/2004, at 11:44 PM, Thomas Klausner wrote:
> +AUXLIBS+= -L${BUILDLINK_PREFIX.postgresql-lib}/lib/libpq.a \
> + -L${RPATH_FLAG}${BUILDLINK_PREFIX.postgresql-lib}/lib
>
> This looks wrong:
> The -L argument shouldn't end in a library, probably you want
> something like (untested):
> -L${BUILDLINK_PREFIX.postgresql-lib}/lib -lpq
> and -L before the RPATH_FLAG also looks wrong.
>
Thanks.. This is more like it.. (ie it works now)
I was looking for -lpq :)
--Apple-Mail-13--240782776
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="postfix.pgsql.3.patch"
Content-Disposition: attachment;
filename=postfix.pgsql.3.patch
$NetBSD$
--- Makefile.orig 2004-01-29 03:03:02.000000000 +1100
+++ Makefile
@@ -77,6 +77,18 @@ AUXLIBS+= -L${BUILDLINK_PREFIX.mysql-cli
BUILD_DEFS+= POSTFIX_USE_MYSQL
.endif
+.if defined(POSTFIX_USE_PGSQL) && ${POSTFIX_USE_PGSQL} == "YES"
+. include "../../databases/postgresql-lib/buildlink3.mk"
+. include "../../security/openssl/buildlink3.mk"
+PATCHFILES+= postfix-pg.postfix-2.0.0.2.patch
+PATCH_SITES+= http://www.mat.cc/postfix/
+PATCH_DIST_STRIP= -p1
+CCARGS+= -DHAS_PGSQL -I${BUILDLINK_PREFIX.postgresql-lib}/include/pgsql
+AUXLIBS+= -L${BUILDLINK_PREFIX.postgresql-lib}/lib -lpq \
+ -L${BUILDLINK_PREFIX.openssl}/lib -lcrypt
+BUILD_DEFS+= POSTFIX_USE_PGSQL
+.endif
+
.if defined(USE_SASL2) && ${USE_SASL2} == "YES"
USING_SASL=YES
. include "../../security/cyrus-sasl2/buildlink3.mk"
--Apple-Mail-13--240782776
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
C.
--
charlie@rubberduck.com - Melbourne, Australia
http://rubberduck.com/~yeled/
PGP: 0x14AA7941 || finger yeled@lazy.spodder.com
--Apple-Mail-13--240782776--
--Apple-Mail-14--240782771
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFAL2/pqiZDwhSqeUERAhqAAJ9WlLc8mKzrQN6TAukG9z+ZTQs43QCfew4A
2BqGiG4w+iF38S1GDE1qY+I=
=4tnY
-----END PGP SIGNATURE-----
--Apple-Mail-14--240782771--