[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
security/cyrus-sasl2: patch for postgresql support
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: security/cyrus-sasl2: patch for postgresql support
- From: Simon Dassow <janus_(_at_)_area319_(_dot_)_de>
- Date: Thu, 09 Sep 2004 22:22:47 +0200
Hi list,
i need pgsql support in sasl2. This is the resulting and working patch i
use in my setup. Test if possible and reply to the list so maybe we can
``vote'' this into the tree if the maintainer is happy with it :-).
Regards,
Simon
# cvs -d :ext:anoncvs_(_at_)_anoncvs_(_dot_)_de_(_dot_)_openbsd_(_dot_)_org:/cvs diff -u Makefile
Index: Makefile
===================================================================
RCS file: /cvs/ports/security/cyrus-sasl2/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile 4 Aug 2004 14:51:31 -0000 1.16
+++ Makefile 9 Sep 2004 20:03:13 -0000
@@ -30,7 +30,7 @@
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config ${WRKSRC}/saslauthd/config
-FLAVORS= db4 sql ldap
+FLAVORS= db4 mysql pgsql ldap
FLAVOR?=
.if ${FLAVOR:L:Mdb4}
@@ -44,12 +44,26 @@
--without-bdb-incdir
.endif
-.if ${FLAVOR:L:Msql}
+.if ${FLAVOR:L:Mpgsql} || ${FLAVOR:L:Mmysql}
+CONFIGURE_ARGS+= --enable-sql
+.endif
+
+.if ${FLAVOR:L:Mmysql}
LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql
-CONFIGURE_ARGS+= --with-mysql \
- --without-pgsql \
- --enable-sql
+CONFIGURE_ARGS+= --with-mysql
+. if !${FLAVOR:L:Mpgsql}
+CONFIGURE_ARGS+= --without-pgsql
+. endif
.endif
+
+.if ${FLAVOR:L:Mpgsql}
+LIB_DEPENDS+= pq.2:postgresql-client-*:databases/postgresql
+CONFIGURE_ARGS+= --with-pgsql="${LOCALBASE}/include/postgresql
-L${LOCALBASE}/lib"
+. if !${FLAVOR:L:Mmysql}
+CONFIGURE_ARGS+= --without-mysql
+. endif
+.endif
+
.if ${FLAVOR:L:Mldap}
LIB_DEPENDS+= ldap.2,lber:openldap-client-2.*:databases/openldap
@@ -68,10 +82,10 @@
.include <bsd.port.mk>
-.if ${FLAVOR:L:Msql}
+.if ${FLAVOR:L:Mmysql} || ${FLAVOR:L:Mpgsql}
. if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
SED_PLIST+=-e '/%%SHARED-sql%%/d'
. else
-SED_PLIST+=-e '/%%SHARED-sql%%/r${PKGDIR}/PFRAG.sql.shared' -e '//d'
+SED_PLIST+=-e '/%%sql%%/r${PKGDIR}/PFRAG.sql.shared' -e '//d'
. endif
.endif
Visit your host, monkey.org