Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2002 04:31:49 +0100 (CET)
From:      Palle Girgensohn <girgen@partitur.se>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34857: new port databases/postgresql-odbc
Message-ID:  <200202120331.g1C3Vnr66216@palle.girgensohn.se>

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

>Number:         34857
>Category:       ports
>Synopsis:       new port databases/postgresql-odbc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 19:50:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Palle Girgensohn <girgen@partitur.se>
>Release:        FreeBSD 4.5-PRERELEASE i386
>Organization:
Partitur
>Environment:
System: FreeBSD palle.girgensohn.se 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #11: Fri Dec 28 17:22:10 CET 2001 root@palle.girgensohn.se:/usr/obj/usr/src/sys/STORDATAN i386


	
>Description:
This is a port of the client odbc support from the postgresql-7.2
distribution, that used to be apart of the postgresql7 port. It has
been split from the main port for many a good reason.

>How-To-Repeat:
	
>Fix:

	


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	postgresql-odbc
#	postgresql-odbc/Makefile
#	postgresql-odbc/pkg-descr
#	postgresql-odbc/pkg-comment
#	postgresql-odbc/pkg-plist
#
echo c - postgresql-odbc
mkdir -p postgresql-odbc > /dev/null 2>&1
echo x - postgresql-odbc/Makefile
sed 's/^X//' >postgresql-odbc/Makefile << 'END-of-postgresql-odbc/Makefile'
X# New ports collection makefile for:	PostgreSQL JDBC
X# Date created:		January 14, 2002
X# Whom:			Palle Girgensohn <girgen@partitur.se>
X#
X# $FreeBSD: ports/databases/postgresql7/Makefile,v 1.90 2001/12/12 19:30:35 ijliao Exp $
X#
X
XPORTNAME=	postgresql-odbc
XPORTVERSION=	7.2
XCATEGORIES=	databases
X
XMAINTAINER=	girgen@partitur.se
X
XPOSTGRESQL_SUBPORT=YES
X.include <${.CURDIR}/../postgresql7/Makefile>
X
XCONFIGURE_ARGS= --with-libdir=${LOCALBASE}/lib \
X		--with-includes=${LOCALBASE}/include
XLDFLAGS=	-L${LOCALBASE}/lib
XMAKE_ARGS=	LDFLAGS=${LDFLAGS}
X
X# PostgreSQL ODBC support needs an ODBC driver manager to be
X# installed, and it supports both iODBC and unixODBC.  The following
X# variable may be set at built-time to either "iodbc" or "unixodbc",
X# with the former being the default:
XDRIVER_MANAGER?=	iodbc
X
X# Note that there is a potential conflict between unixODBC's and
X# postgres' libodbcpsql.so. unixODBC installs versions `1' & `2' of
X# the named lib, while postgres installs version `0'. The postgres
X# folks say their is the best, so you might be better off removing
X# the others?
X.if ${DRIVER_MANAGER} == "unixodbc"
XCONFIGURE_ARGS+=	--with-unixodbc
XLIB_DEPENDS+=		odbc.1:${PORTSDIR}/databases/unixODBC
XPLIST_SUB+=UNIXODBC="" IODBC="@comment "
X.else	# assume we're using iodbc
XLIB_DEPENDS+=		iodbc.3:${PORTSDIR}/databases/libiodbc
XCONFIGURE_ARGS+=	--with-iodbc --with-odbcinst=${LOCALBASE}/etc/libiodbc
XPLIST_SUB+=UNIXODBC="@comment " IODBC=""
X.endif
X
XMAKEFILE=	GNUmakefile
XMAKE_ARGS+=	-C src/interfaces/odbc
X
X.include <bsd.port.mk>
END-of-postgresql-odbc/Makefile
echo x - postgresql-odbc/pkg-descr
sed 's/^X//' >postgresql-odbc/pkg-descr << 'END-of-postgresql-odbc/pkg-descr'
XSupport connecting to a postgresql database from a unix client
Xapplication using ODBC.
X
XNote: You do not need this port installed on unix if you want to use
XODBC to connect a Windows machine with PostgreSQL.
X
XThis software is part of the standard PostgreSQL distribution.
X
XWWW: http://www.postgresql.org/
END-of-postgresql-odbc/pkg-descr
echo x - postgresql-odbc/pkg-comment
sed 's/^X//' >postgresql-odbc/pkg-comment << 'END-of-postgresql-odbc/pkg-comment'
XPostgreSQL ODBC client support
END-of-postgresql-odbc/pkg-comment
echo x - postgresql-odbc/pkg-plist
sed 's/^X//' >postgresql-odbc/pkg-plist << 'END-of-postgresql-odbc/pkg-plist'
X%%IODBC%%lib/libpsqlodbc.so
X%%IODBC%%lib/libpsqlodbc.a
X%%IODBC%%lib/libpsqlodbc.so.0
X%%UNIXODBC%%lib/libodbcpsql.so
X%%UNIXODBC%%lib/libodbcpsql.a
X%%UNIXODBC%%lib/libodbcpsql.so.0
Xshare/postgresql/odbc.sql
Xshare/postgresql/odbc-drop.sql
X@unexec rmdir %D/share/postgresql 2>/dev/null || true
END-of-postgresql-odbc/pkg-plist
exit

>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?200202120331.g1C3Vnr66216>