Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2002 21:00:20 +0100 (CET)
From:      Palle Girgensohn <girgen@pingpong.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/45882: Update of postgresql-odbc to version 7.2.5
Message-ID:  <200211302000.gAUK0Kbb092901@palle.girgensohn.se>

next in thread | raw e-mail | index | archive | help

>Number:         45882
>Category:       ports
>Synopsis:       Update of postgresql-odbc to version 7.2.5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 30 12:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Palle Girgensohn <girgen@pingpong.net>
>Release:        FreeBSD 4.7-PRERELEASE i386
>Organization:
PING PONG
>Environment:
System: FreeBSD palle.girgensohn.se 4.7-RC FreeBSD 4.7-RC #0: Sun Sep 29 17:21:22 CEST 2002     root@palle.girgensohn.se:/usr/local/obj/usr/src/sys/STORDATAN  i386


	
>Description:
This patch brings postgresql's odbc port to sync with
postgresql-7.3. The src has been split from the main distribution,
hence the version number is not the same as for the postgresql dist.

This PR fixes the problems mentioned in PR ports/41739, credits to
Dave Chapeskie <bsdport@ddm.wox.org>

>How-To-Repeat:
	
>Fix:
Index: postgresql-odbc/Makefile
===================================================================
RCS file: /home/ncvs/ports/databases/postgresql-odbc/Makefile,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile
--- postgresql-odbc/Makefile	11 Apr 2002 05:08:34 -0000	1.2
+++ postgresql-odbc/Makefile	30 Nov 2002 17:48:27 -0000
@@ -1,22 +1,19 @@
-# New ports collection makefile for:	PostgreSQL JDBC
+# New ports collection makefile for:	PostgreSQL ODBC
 # Date created:		January 14, 2002
 # Whom:			Palle Girgensohn <girgen@partitur.se>
 #
 # $FreeBSD: ports/databases/postgresql-odbc/Makefile,v 1.2 2002/04/11 05:08:34 ijliao Exp $
 #
 
-PORTNAME=	postgresql-odbc
+PORTNAME=	postgresql
+PORTVERSION=	7.2.5
 CATEGORIES=	databases
+MASTER_SITES=	http://odbc.postgresql.org/ftpsite/odbc/versions/src/
+PKGNAMESUFFIX?=	-odbc
+DISTNAME=	psqlodbc-${PORTVERSION}
+DIST_SUBDIR=	postgresql
 
-MAINTAINER=	girgen@partitur.se
-
-POSTGRESQL_SUBPORT=YES
-.include <${.CURDIR}/../postgresql7/Makefile>
-
-CONFIGURE_ARGS= --with-libdir=${LOCALBASE}/lib \
-		--with-includes=${LOCALBASE}/include
-LDFLAGS=	-L${LOCALBASE}/lib
-MAKE_ARGS=	LDFLAGS=${LDFLAGS}
+MAINTAINER=	girgen@pingpong.net
 
 # PostgreSQL ODBC support needs an ODBC driver manager to be
 # installed, and it supports both iODBC and unixODBC.  The following
@@ -30,16 +27,21 @@
 # folks say their is the best, so you might be better off removing
 # the others?
 .if ${DRIVER_MANAGER} == "unixodbc"
+PKGNAMESUFFIX=		-unixodbc
 CONFIGURE_ARGS+=	--with-unixodbc
 LIB_DEPENDS+=		odbc.1:${PORTSDIR}/databases/unixODBC
-PLIST_SUB+=UNIXODBC="" IODBC="@comment "
 .else	# assume we're using iodbc
 LIB_DEPENDS+=		iodbc.3:${PORTSDIR}/databases/libiodbc
 CONFIGURE_ARGS+=	--with-iodbc --with-odbcinst=${LOCALBASE}/etc/libiodbc
-PLIST_SUB+=UNIXODBC="@comment " IODBC=""
 .endif
 
-MAKEFILE=	GNUmakefile
-MAKE_ARGS+=	-C src/interfaces/odbc
+USE_GMAKE=	YES
+GNU_CONFIGURE=	YES
+CONFIGURE_ARGS= --with-libdir=${LOCALBASE}/lib --enable-pthreads \
+		--with-includes=${LOCALBASE}/include
+
+CFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS=	-L${LOCALBASE}/lib
+CONFIGURE_ENV=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
 
 .include <bsd.port.mk>
Index: postgresql-odbc/pkg-descr
===================================================================
RCS file: /home/ncvs/ports/databases/postgresql-odbc/pkg-descr,v
retrieving revision 1.1
diff -u -u -r1.1 pkg-descr
--- postgresql-odbc/pkg-descr	19 Feb 2002 08:37:32 -0000	1.1
+++ postgresql-odbc/pkg-descr	30 Nov 2002 17:22:50 -0000
@@ -2,8 +2,10 @@
 application using ODBC.
 
 Note: You do not need this port installed on unix if you want to use
-ODBC to connect a Windows machine with PostgreSQL.
+ODBC to connect a Windows machine to PostgreSQL.
 
-This software is part of the standard PostgreSQL distribution.
+Since there is an ambition to slim the PostgreSQL distribution, this
+software is no longer a part thereof. It is still the offical ODBC
+implementation, though.
 
-WWW: http://www.postgresql.org/
+WWW: http://odbc.postgresql.org/
Index: postgresql-odbc/pkg-plist
===================================================================
RCS file: /home/ncvs/ports/databases/postgresql-odbc/pkg-plist,v
retrieving revision 1.1
diff -u -u -r1.1 pkg-plist
--- postgresql-odbc/pkg-plist	19 Feb 2002 08:37:32 -0000	1.1
+++ postgresql-odbc/pkg-plist	30 Nov 2002 17:12:41 -0000
@@ -1,9 +1,5 @@
-%%IODBC%%lib/libpsqlodbc.so
-%%IODBC%%lib/libpsqlodbc.a
-%%IODBC%%lib/libpsqlodbc.so.0
-%%UNIXODBC%%lib/libodbcpsql.so
-%%UNIXODBC%%lib/libodbcpsql.a
-%%UNIXODBC%%lib/libodbcpsql.so.0
+lib/psqlodbc.so
+lib/psqlodbc.la
 share/postgresql/odbc.sql
 share/postgresql/odbc-drop.sql
-@unexec rmdir %D/share/postgresql 2>/dev/null || true
+@dirrm share/psqlodbc
--- /dev/null	Sat Nov 30 19:36:35 2002
+++ postgresql-odbc/distinfo	Sat Nov 30 17:40:13 2002
@@ -0,0 +1 @@
+MD5 (postgresql/psqlodbc-7.2.5.tar.gz) = 701c7c55831652d35937c2efaeaab26d
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211302000.gAUK0Kbb092901>