diff options
Diffstat (limited to 'databases/sqlrelay')
-rw-r--r-- | databases/sqlrelay/Makefile | 148 | ||||
-rw-r--r-- | databases/sqlrelay/Makefile.common | 14 | ||||
-rw-r--r-- | databases/sqlrelay/distinfo | 1 | ||||
-rw-r--r-- | databases/sqlrelay/files/patch-Makefile.in | 14 | ||||
-rw-r--r-- | databases/sqlrelay/files/patch-config.mk.in | 25 | ||||
-rw-r--r-- | databases/sqlrelay/files/patch-configure.in | 14 | ||||
-rw-r--r-- | databases/sqlrelay/files/patch-src::api::c++::src::Makefile.in | 31 | ||||
-rw-r--r-- | databases/sqlrelay/files/patch-src::api::c::src::Makefile.in | 31 | ||||
-rw-r--r-- | databases/sqlrelay/pkg-comment | 1 | ||||
-rw-r--r-- | databases/sqlrelay/pkg-descr | 14 | ||||
-rw-r--r-- | databases/sqlrelay/pkg-plist | 88 |
11 files changed, 381 insertions, 0 deletions
diff --git a/databases/sqlrelay/Makefile b/databases/sqlrelay/Makefile new file mode 100644 index 000000000000..3d83fef360a2 --- /dev/null +++ b/databases/sqlrelay/Makefile @@ -0,0 +1,148 @@ +# New ports collection makefile for: SQL Relay +# Date created: 2 July 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= ${SQLRELAY_PORTNAME} +PORTVERSION= ${SQLRELAY_PORTVERSION} +CATEGORIES= databases +MASTER_SITES= http://www.firstworks.com/downloads/sqlrelay/ + +MAINTAINER= knu@FreeBSD.org + +LIB_DEPENDS= rudiments.0:${PORTSDIR}/devel/rudiments \ + xml2.5:${PORTSDIR}/textproc/libxml2 \ + giconv.2:${PORTSDIR}/converters/libiconv + +USE_GMAKE= yes +USE_AUTOCONF= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" +CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \ + --without-perl-prefix \ + --without-python-prefix \ + --without-ruby-prefix \ + --without-php-prefix +INSTALLS_SHLIB= yes + +.include "${.CURDIR}/Makefile.common" + +.if defined(PACKAGE_BUILDING) || defined(BATCH) +WITH_SQLITE?= yes +WITH_MYSQL?= yes +WITH_MSQL?= no +WITH_POSTGRESQL?= yes +WITH_ODBC?= yes +WITH_FREETDS?= yes +WITH_GTK?= yes +.else +WITH_SQLITE?= no +WITH_MYSQL?= yes +WITH_MSQL?= no +WITH_POSTGRESQL?= yes +WITH_ODBC?= no +WITH_FREETDS?= no +WITH_GTK?= yes +.endif + +.if defined(WITH_SQLITE) && ${WITH_SQLITE:L} != no +LIB_DEPENDS+= gdbm.2:${PORTSDIR}/databases/gdbm \ + sqlite.1:${PORTSDIR}/databases/sqlite +CONFIGURE_ARGS+= --with-gdbm-prefix="${LOCALBASE}" \ + --with-sqlite-prefix="${LOCALBASE}" +IF_SQLITE= "" +.else +IF_SQLITE= "@comment " +.endif + +.if defined(WITH_MYSQL) && ${WITH_MYSQL:L} != no +LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client +CONFIGURE_ARGS+= --with-mysql-prefix="${LOCALBASE}" +IF_MYSQL= "" +.else +IF_MYSQL= "@comment " +.endif + +.if defined(WITH_MSQL) && ${WITH_MSQL:L} != no +LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql +CONFIGURE_ARGS+= --with-msql-prefix="${LOCALBASE}" +IF_MSQL= "" +.else +IF_MSQL= "@comment " +.endif + +.if defined(WITH_POSTGRESQL) && ${WITH_POSTGRESQL:L} != no +LIB_DEPENDS+= pq.2:${PORTSDIR}/databases/postgresql7 +.if defined(WITH_OLD_LAYOUT) +CONFIGURE_ARGS+= --with-postgresql-prefix="${LOCALBASE}/pgsql" +.else +CONFIGURE_ARGS+= --with-postgresql-prefix="${WRKDIR}/prefixes/postgresql" +.endif +IF_POSTGRESQL= "" +.else +IF_POSTGRESQL= "@comment " +.endif + +.if defined(WITH_ODBC) && ${WITH_ODBC:L} != no +LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC +CONFIGURE_ARGS+= --with-odbc-prefix="${LOCALBASE}" +IF_ODBC= "" +.else +IF_ODBC= "@comment " +.endif + +.if defined(WITH_FREETDS) && ${WITH_FREETDS:L} != no +LIB_DEPENDS+= tds.0:${PORTSDIR}/databases/freetds +CONFIGURE_ARGS+= --with-freetds-prefix="${LOCALBASE}" +IF_FREETDS= "" +.else +IF_FREETDS= "@comment " +.endif + +.if defined(WITH_GTK) && ${WITH_GTK:L} != no +USE_GTK= yes +CONFIGURE_ARGS+= --with-gtk-prefix="${X11BASE}" +IF_GTK= "" +.else +IF_GTK= "@comment " +.endif + +PLIST_SUB= IF_SQLITE=${IF_SQLITE} \ + IF_MYSQL=${IF_MYSQL} \ + IF_MSQL=${IF_MSQL} \ + IF_POSTGRESQL=${IF_POSTGRESQL} \ + IF_ODBC=${IF_ODBC} \ + IF_FREETDS=${IF_FREETDS} \ + IF_GTK=${IF_GTK} + +# --with-sybase-prefix Location of Sybase +# --with-oracle-home Location of Oracle +# --with-interbase-prefix Location of Interbase +# --with-db2-prefix Location of DB2 + +post-extract: + ${RM} -rf ${WRKSRC}/src/api/perl/*/blib + ${MKDIR} ${WRKDIR}/prefixes/libxml + ${LN} -s ${LOCALBASE}/include/libxml2 ${WRKDIR}/prefixes/libxml/include + ${LN} -s ${LOCALBASE}/lib ${WRKDIR}/prefixes/libxml/lib +.if defined(WITH_POSTGRESQL) && ${WITH_POSTGRESQL:L} != no +.if !defined(WITH_OLD_LAYOUT) + ${MKDIR} ${WRKDIR}/prefixes/postgresql + ${LN} -s ${LOCALBASE}/include/pgsql ${WRKDIR}/prefixes/postgresql/include + ${LN} -s ${LOCALBASE}/lib ${WRKDIR}/prefixes/postgresql/lib +.endif +.endif + +post-patch: + ${PERL} -i -pe 's,\blibiconv\b,libgiconv,g;s,-liconv\b,-lgiconv,g' ${WRKSRC}/configure.in +.if defined(WITH_GTK) && ${WITH_GTK:L} != no + ${PERL} -i -pe 's,\bgtk-config\b,${GTK_CONFIG:T},g' ${WRKSRC}/configure.in +.endif + +post-install: +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${MAKE} install-doc +.endif + +.include <bsd.port.mk> diff --git a/databases/sqlrelay/Makefile.common b/databases/sqlrelay/Makefile.common new file mode 100644 index 000000000000..ff2ddfa99b67 --- /dev/null +++ b/databases/sqlrelay/Makefile.common @@ -0,0 +1,14 @@ +# $FreeBSD$ + +SQLRELAY_PORTNAME= sqlrelay +SQLRELAY_PORTVERSION= 0.27 + +SQLRELAY_PORTDIR= ${PORTSDIR}/databases/${SQLRELAY_PORTNAME} +SQLRELAY_WRKSRC_CMD= cd ${SQLRELAY_PORTDIR} && ${MAKE} -V WRKSRC + +SQLRELAY_CONFIGURE_ARGS= \ + --localstatedir="${LOCALBASE}" \ + --with-rudiments-prefix="${LOCALBASE}" \ + --with-libstdcpp-path="/usr/lib" \ + --with-libxml-prefix="${WRKDIR}/prefixes/libxml" \ + --with-libiconv-prefix="${LOCALBASE}" diff --git a/databases/sqlrelay/distinfo b/databases/sqlrelay/distinfo new file mode 100644 index 000000000000..b0d489a22804 --- /dev/null +++ b/databases/sqlrelay/distinfo @@ -0,0 +1 @@ +MD5 (sqlrelay-0.27.tar.gz) = d7a0fbdd2a6e9567e0cdc75dc5da9167 diff --git a/databases/sqlrelay/files/patch-Makefile.in b/databases/sqlrelay/files/patch-Makefile.in new file mode 100644 index 000000000000..622367c75d5f --- /dev/null +++ b/databases/sqlrelay/files/patch-Makefile.in @@ -0,0 +1,14 @@ +--- Makefile.in.orig Sat Jun 23 13:55:47 2001 ++++ Makefile.in Mon Jul 2 21:43:00 2001 +@@ -22,9 +22,10 @@ + + install: + cd bin; $(MAKE) install +- cd doc; $(MAKE) install + cd etc; $(MAKE) install + cd src; $(MAKE) install ++install-doc: ++ cd doc; $(MAKE) install + + uninstall: + cd bin; $(MAKE) uninstall diff --git a/databases/sqlrelay/files/patch-config.mk.in b/databases/sqlrelay/files/patch-config.mk.in new file mode 100644 index 000000000000..a34da5868266 --- /dev/null +++ b/databases/sqlrelay/files/patch-config.mk.in @@ -0,0 +1,25 @@ +--- config.mk.in.orig Wed Jun 27 13:59:14 2001 ++++ config.mk.in Mon Jul 2 22:13:58 2001 +@@ -2,19 +2,20 @@ + VPATH = @srcdir@ + + VERSION = @VERSION@ ++SOVERSION = $(basename $(VERSION)) + + # installation directories + prefix = @prefix@ + exec_prefix= @exec_prefix@ + incdir = @includedir@ + libdir = @libdir@ +-javadir = ${exec_prefix}/java ++javadir = ${exec_prefix}/share/java/classes + libexecdir = @libexecdir@ + bindir = @bindir@ + localstatedir = @localstatedir@ + sysconfdir = @sysconfdir@ + localstatedir = @localstatedir@ +-docdir = ${prefix}/doc/sqlrelay ++docdir = ${prefix}/share/doc/sqlrelay + tmpdir = ${localstatedir}/sqlrelay/tmp + cachedir = ${localstatedir}/sqlrelay/cache + diff --git a/databases/sqlrelay/files/patch-configure.in b/databases/sqlrelay/files/patch-configure.in new file mode 100644 index 000000000000..5c656127d2ab --- /dev/null +++ b/databases/sqlrelay/files/patch-configure.in @@ -0,0 +1,14 @@ +--- configure.in.orig Mon Jul 2 18:34:35 2001 ++++ configure.in Mon Jul 2 20:14:52 2001 +@@ -1288,10 +1288,7 @@ + if ( test -n "$JAVAPATH"); then + AC_CHECK_FILE("$JAVAPATH/bin/javac",JAVAC="$JAVAPATH/bin/javac") + AC_CHECK_FILE("$JAVAPATH/include/jni.h",JAVAINCLUDES="-I$JAVAPATH/include") +- for i in `ls -l $JAVAPATH/include | grep drw | cut -c57-100` +- do +- JAVAINCLUDES="$JAVAINCLUDES -I$JAVAPATH/include/$i" +- done ++ JAVAINCLUDES="$JAVAINCLUDES -I`dirname $JAVAPATH/include/*/jni_md.h`" + HAVE_JAVA="yes" + else + HAVE_JAVA="" diff --git a/databases/sqlrelay/files/patch-src::api::c++::src::Makefile.in b/databases/sqlrelay/files/patch-src::api::c++::src::Makefile.in new file mode 100644 index 000000000000..101e9217d25f --- /dev/null +++ b/databases/sqlrelay/files/patch-src::api::c++::src::Makefile.in @@ -0,0 +1,31 @@ +--- src/api/c++/src/Makefile.in.orig Sat Jun 23 13:55:51 2001 ++++ src/api/c++/src/Makefile.in Mon Jul 2 21:59:07 2001 +@@ -11,7 +11,7 @@ + all: + $(MAKE) ../lib/libsqlrclient.a; \ + if ( test ! -n "@MINGW32@" -a ! -n "@CYGWIN@" -a ! -n "@UWIN@" ); then \ +- $(MAKE) ../lib/libsqlrclient.so.$(VERSION); \ ++ $(MAKE) ../lib/libsqlrclient.so.$(SOVERSION); \ + else \ + $(MAKE) ../lib/libsqlrclient.dll; \ + fi +@@ -31,7 +31,7 @@ + $(RM) $@ + $(STATICAR) $@ $(OBJS) + +-../lib/libsqlrclient.so.$(VERSION): $(SRCS) $(OBJS) ++../lib/libsqlrclient.so.$(SOVERSION): $(SRCS) $(OBJS) + $(DYNAMICAR) $@ $(OBJS) + + ../lib/libsqlrclient.dll: $(SRCS) $(OBJS) +@@ -44,8 +44,8 @@ + $(INSTALL) -m 644 ../lib/libsqlrclient.a $(libdir); \ + if ( test ! -n "@MINGW32@" -a ! -n "@CYGWIN@" -a ! -n "@UWIN@" ); then \ + $(RM) $(libdir)/libsqlrclient.so*; \ +- $(INSTALL) ../lib/libsqlrclient.so.$(VERSION) $(libdir); \ +- $(SYMLINK) $(libdir)/libsqlrclient.so.$(VERSION) $(libdir)/libsqlrclient.so; \ ++ $(INSTALL) ../lib/libsqlrclient.so.$(SOVERSION) $(libdir); \ ++ $(SYMLINK) $(libdir)/libsqlrclient.so.$(SOVERSION) $(libdir)/libsqlrclient.so; \ + else \ + $(INSTALL) ../lib/libsqlrclient.dll $(libdir); \ + $(INSTALL) ../lib/libsqlrclient.lib $(libdir); \ diff --git a/databases/sqlrelay/files/patch-src::api::c::src::Makefile.in b/databases/sqlrelay/files/patch-src::api::c::src::Makefile.in new file mode 100644 index 000000000000..8cfb5331e568 --- /dev/null +++ b/databases/sqlrelay/files/patch-src::api::c::src::Makefile.in @@ -0,0 +1,31 @@ +--- src/api/c/src/Makefile.in.orig Sat Jun 23 13:55:51 2001 ++++ src/api/c/src/Makefile.in Mon Jul 2 21:58:04 2001 +@@ -11,7 +11,7 @@ + all: + $(MAKE) ../lib/libsqlrclientwrapper.a; \ + if ( test ! -n "@MINGW32@" -a ! -n "@CYGWIN@" -a ! -n "@UWIN@" ); then \ +- $(MAKE) ../lib/libsqlrclientwrapper.so.$(VERSION); \ ++ $(MAKE) ../lib/libsqlrclientwrapper.so.$(SOVERSION); \ + else \ + $(MAKE) ../lib/libsqlrclientwrapper.dll; \ + fi +@@ -31,7 +31,7 @@ + $(RM) $@ + $(STATICAR) $@ $(OBJS) + +-../lib/libsqlrclientwrapper.so.$(VERSION): $(SRCS) $(OBJS) ++../lib/libsqlrclientwrapper.so.$(SOVERSION): $(SRCS) $(OBJS) + $(DYNAMICAR) $@ $(OBJS) + + ../lib/libsqlrclientwrapper.dll: $(SRCS) $(OBJS) +@@ -44,8 +44,8 @@ + $(INSTALL) -m 644 ../lib/libsqlrclientwrapper.a $(libdir); \ + if ( test ! -n "@MINGW32@" -a ! -n "@CYGWIN@" -a ! -n "@UWIN@" ); then \ + $(RM) $(libdir)/libsqlrclientwrapper.so*; \ +- $(INSTALL) ../lib/libsqlrclientwrapper.so.$(VERSION) $(libdir); \ +- $(SYMLINK) $(libdir)/libsqlrclientwrapper.so.$(VERSION) $(libdir)/libsqlrclientwrapper.so; \ ++ $(INSTALL) ../lib/libsqlrclientwrapper.so.$(SOVERSION) $(libdir); \ ++ $(SYMLINK) $(libdir)/libsqlrclientwrapper.so.$(SOVERSION) $(libdir)/libsqlrclientwrapper.so; \ + else \ + $(INSTALL) ../lib/libsqlrclientwrapper.dll $(libdir); \ + $(INSTALL) ../lib/libsqlrclientwrapper.lib $(libdir); \ diff --git a/databases/sqlrelay/pkg-comment b/databases/sqlrelay/pkg-comment new file mode 100644 index 000000000000..ff44948d2aea --- /dev/null +++ b/databases/sqlrelay/pkg-comment @@ -0,0 +1 @@ +A persistent DB connection pooling/proxying/load balancing system diff --git a/databases/sqlrelay/pkg-descr b/databases/sqlrelay/pkg-descr new file mode 100644 index 000000000000..ac9102b9b29e --- /dev/null +++ b/databases/sqlrelay/pkg-descr @@ -0,0 +1,14 @@ +SQL Relay is a persistent database connection pooling, proxying and +load balancing system for Unix and Linux supporting ODBC, Oracle, +MySQL, mSQL, PostgreSQL, Sybase, MS SQL Server, IBM DB2, Interbase, +Lago and SQLite with C, C++, Perl, Perl-DBD, Python, Python-DB, Zope, +PHP, Ruby and Java APIs, command line clients, a GUI configuration +tool and extensive documentation. The APIs support advanced database +operations such as bind variables, multi-row fetches, client side +result set caching and suspended transactions. It is ideal for +speeding up database-driven web-based applications, accessing +databases from unsupported platforms, migrating between databases, +distributing access to replicated databases and throttling database +access. + +WWW: http://www.firstworks.com/sqlrelay.html diff --git a/databases/sqlrelay/pkg-plist b/databases/sqlrelay/pkg-plist new file mode 100644 index 000000000000..55ba03426eb4 --- /dev/null +++ b/databases/sqlrelay/pkg-plist @@ -0,0 +1,88 @@ +bin/backupschema +bin/fields +bin/query +bin/sqlr-cachemanager +%%IF_GTK%%bin/sqlr-config-gtk +%%IF_FREETDS%%bin/sqlr-connection-freetds +%%IF_MSQL%%bin/sqlr-connection-msql +%%IF_MYSQL%%bin/sqlr-connection-mysql +%%IF_ODBC%%bin/sqlr-connection-odbc +%%IF_POSTGRESQL%%bin/sqlr-connection-postgresql +%%IF_SQLITE%%bin/sqlr-connection-sqlite +bin/sqlr-listener +bin/sqlr-scaler +bin/sqlr-start +bin/sqlr-stop +bin/sqlrsh +etc/sqlrelay.conf.example +etc/sqlrelay.dtd +include/private/bindvar.h +include/private/column.h +include/private/field.h +include/private/row.h +include/private/sqlrconnection.h +include/private/sqlrcursor.h +include/private/sqlrdefines.h +include/private/sqlrincludes.h +include/sqlrclient.h +include/sqlrclientwrapper.h +lib/libsqlrclient.a +lib/libsqlrclient.so.0 +lib/libsqlrclientwrapper.a +lib/libsqlrclientwrapper.so.0 +@dirrm sqlrelay/tmp +@dirrm sqlrelay/cache +@dirrm sqlrelay +%%PORTDOCS%%share/doc/sqlrelay/api/c++/sqlrclient.h.html +%%PORTDOCS%%share/doc/sqlrelay/api/c/sqlrclientwrapper.h.html +%%PORTDOCS%%share/doc/sqlrelay/api/java/SQLRConnection.html +%%PORTDOCS%%share/doc/sqlrelay/api/java/SQLRCursor.html +%%PORTDOCS%%share/doc/sqlrelay/api/java/allclasses-frame.html +%%PORTDOCS%%share/doc/sqlrelay/api/java/deprecated-list.html +%%PORTDOCS%%share/doc/sqlrelay/api/java/help-doc.html +%%PORTDOCS%%share/doc/sqlrelay/api/java/index-all.html +%%PORTDOCS%%share/doc/sqlrelay/api/java/index.html +%%PORTDOCS%%share/doc/sqlrelay/api/java/overview-tree.html +%%PORTDOCS%%share/doc/sqlrelay/api/java/package-list +%%PORTDOCS%%share/doc/sqlrelay/api/java/packages.html +%%PORTDOCS%%share/doc/sqlrelay/api/java/serialized-form.html +%%PORTDOCS%%share/doc/sqlrelay/api/java/stylesheet.css +%%PORTDOCS%%share/doc/sqlrelay/api/perl/SQLRConnection.html +%%PORTDOCS%%share/doc/sqlrelay/api/perl/SQLRCursor.html +%%PORTDOCS%%share/doc/sqlrelay/api/perl/SQLRelay.html +%%PORTDOCS%%share/doc/sqlrelay/api/php/doc.html +%%PORTDOCS%%share/doc/sqlrelay/api/python/PySQLRClient.py.html +%%PORTDOCS%%share/doc/sqlrelay/api/python/PySQLRDB.py.html +%%PORTDOCS%%share/doc/sqlrelay/api/ruby/ruby.html +%%PORTDOCS%%share/doc/sqlrelay/clientapis.html +%%PORTDOCS%%share/doc/sqlrelay/configuring.html +%%PORTDOCS%%share/doc/sqlrelay/connections.html +%%PORTDOCS%%share/doc/sqlrelay/css/styles.css +%%PORTDOCS%%share/doc/sqlrelay/index.html +%%PORTDOCS%%share/doc/sqlrelay/installing.html +%%PORTDOCS%%share/doc/sqlrelay/introduction.html +%%PORTDOCS%%share/doc/sqlrelay/introtowebdb.html +%%PORTDOCS%%share/doc/sqlrelay/invisible.gif +%%PORTDOCS%%share/doc/sqlrelay/programming/binds.html +%%PORTDOCS%%share/doc/sqlrelay/programming/c++.html +%%PORTDOCS%%share/doc/sqlrelay/programming/c.html +%%PORTDOCS%%share/doc/sqlrelay/programming/java.html +%%PORTDOCS%%share/doc/sqlrelay/programming/perl.html +%%PORTDOCS%%share/doc/sqlrelay/programming/perldbd.html +%%PORTDOCS%%share/doc/sqlrelay/programming/php.html +%%PORTDOCS%%share/doc/sqlrelay/programming/python.html +%%PORTDOCS%%share/doc/sqlrelay/programming/pythondb.html +%%PORTDOCS%%share/doc/sqlrelay/programming/ruby.html +%%PORTDOCS%%share/doc/sqlrelay/programming/zope.html +%%PORTDOCS%%share/doc/sqlrelay/running.html +%%PORTDOCS%%@dirrm share/doc/sqlrelay/programming +%%PORTDOCS%%@dirrm share/doc/sqlrelay/css +%%PORTDOCS%%@dirrm share/doc/sqlrelay/api/ruby +%%PORTDOCS%%@dirrm share/doc/sqlrelay/api/python +%%PORTDOCS%%@dirrm share/doc/sqlrelay/api/php +%%PORTDOCS%%@dirrm share/doc/sqlrelay/api/perl +%%PORTDOCS%%@dirrm share/doc/sqlrelay/api/java +%%PORTDOCS%%@dirrm share/doc/sqlrelay/api/c++ +%%PORTDOCS%%@dirrm share/doc/sqlrelay/api/c +%%PORTDOCS%%@dirrm share/doc/sqlrelay/api +%%PORTDOCS%%@dirrm share/doc/sqlrelay |