diff options
32 files changed, 652 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index e1da2323b09c..b990ce6df157 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -22,6 +22,7 @@ SUBDIR += grass SUBDIR += gtksql SUBDIR += interbase4 + SUBDIR += java-sqlrelay SUBDIR += jdbc-oracle816 SUBDIR += libgda SUBDIR += libiodbc @@ -63,6 +64,8 @@ SUBDIR += p5-Text-Query-SQL SUBDIR += p5-Tie-DBI SUBDIR += p5-hp200lx-db + SUBDIR += p5-sqlrelay + SUBDIR += php-sqlrelay SUBDIR += phpmyadmin SUBDIR += phppgadmin SUBDIR += postgresql-plruby @@ -74,6 +77,7 @@ SUBDIR += py-SQLDict SUBDIR += py-bsddb3 SUBDIR += py-gdbm + SUBDIR += py-sqlrelay SUBDIR += rdb SUBDIR += ruby-bdb SUBDIR += ruby-cdb @@ -91,7 +95,9 @@ SUBDIR += ruby-o_dbm SUBDIR += ruby-odbc SUBDIR += ruby-postgres + SUBDIR += ruby-sqlrelay SUBDIR += sqlite + SUBDIR += sqlrelay SUBDIR += sqsh SUBDIR += tcl-Mysql SUBDIR += tkgnats diff --git a/databases/java-sqlrelay/Makefile b/databases/java-sqlrelay/Makefile new file mode 100644 index 000000000000..4992c28905e7 --- /dev/null +++ b/databases/java-sqlrelay/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: Java module 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 java +MASTER_SITES= # none +PKGNAMEPREFIX= java- +DISTFILES= # none + +MAINTAINER= knu@FreeBSD.org + +BUILD_DEPENDS= ${NONEXISTENT}:${SQLRELAY_PORTDIR}:configure \ + ${LOCALBASE}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk +LIB_DEPENDS= sqlrclient.0:${SQLRELAY_PORTDIR} +RUN_DEPENDS= ${LOCALBASE}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk + +JDK_VERSION?= 1.1.8 + +WRKSRC= ${WRKDIR}/${PORTNAME} +BUILD_WRKSRC= ${WRKSRC}/src/api/java +INSTALL_WRKSRC= ${BUILD_WRKSRC} +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \ + --with-java-prefix="${LOCALBASE}/jdk${JDK_VERSION}" + +.include "${.CURDIR}/../sqlrelay/Makefile.common" + +do-extract: + ${MKDIR} ${WRKDIR} + ${LN} -fs `${SQLRELAY_WRKSRC_CMD}` ${WRKSRC} + +.include <bsd.port.mk> diff --git a/databases/java-sqlrelay/pkg-comment b/databases/java-sqlrelay/pkg-comment new file mode 100644 index 000000000000..710ff7a8b5b5 --- /dev/null +++ b/databases/java-sqlrelay/pkg-comment @@ -0,0 +1 @@ +Java classes to access to SQL Relay diff --git a/databases/java-sqlrelay/pkg-descr b/databases/java-sqlrelay/pkg-descr new file mode 100644 index 000000000000..5561a5e060d0 --- /dev/null +++ b/databases/java-sqlrelay/pkg-descr @@ -0,0 +1,3 @@ +This package provides Java classes to access to SQL Relay. + +WWW: http://www.firstworks.com/sqlrelay.html diff --git a/databases/java-sqlrelay/pkg-plist b/databases/java-sqlrelay/pkg-plist new file mode 100644 index 000000000000..3413d708bb2e --- /dev/null +++ b/databases/java-sqlrelay/pkg-plist @@ -0,0 +1,6 @@ +share/java/classes/SQLRConnection.class +share/java/classes/SQLRCursor.class +share/java/classes/libSQLRConnection.so +share/java/classes/libSQLRCursor.so +@unexec rmdir %D/share/java/classes || true +@unexec rmdir %D/share/java || true diff --git a/databases/p5-sqlrelay/Makefile b/databases/p5-sqlrelay/Makefile new file mode 100644 index 000000000000..ffa20e31c130 --- /dev/null +++ b/databases/p5-sqlrelay/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: Perl5 modules 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 perl5 +MASTER_SITES= # none +PKGNAMEPREFIX= p5- +DISTFILES= # none + +MAINTAINER= knu@FreeBSD.org + +BUILD_DEPENDS= ${NONEXISTENT}:${SQLRELAY_PORTDIR}:configure \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI +LIB_DEPENDS= sqlrclient.0:${SQLRELAY_PORTDIR} +RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI + +USE_PERL5= yes + +WRKSRC= ${WRKDIR}/${PORTNAME} +MAKEFILE= Makefile.master +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \ + --with-perl-prefix="/usr" + +MAN3= DBD::SQLRelay.3 \ + Firstworks::SQLRConnection.3 \ + Firstworks::SQLRCursor.3 +MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} + +.include "${.CURDIR}/../sqlrelay/Makefile.common" + +do-extract: + ${MKDIR} ${WRKDIR} + ${LN} -fs `${SQLRELAY_WRKSRC_CMD}` ${WRKSRC} + +do-build: + for dir in ${WRKSRC}/src/api/perl/*; do \ + cd $$dir && \ + ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \ + ${MAKE_ARGS} ${ALL_TARGET}; \ + done + +do-install: + for dir in ${WRKSRC}/src/api/perl/*; do \ + cd $$dir && \ + ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \ + ${MAKE_ARGS} ${INSTALL_TARGET}; \ + done + +.include <bsd.port.mk> diff --git a/databases/p5-sqlrelay/pkg-comment b/databases/p5-sqlrelay/pkg-comment new file mode 100644 index 000000000000..3b7ff5e3ca87 --- /dev/null +++ b/databases/p5-sqlrelay/pkg-comment @@ -0,0 +1 @@ +Perl5 modules to access to SQL Relay, including a DBD interface diff --git a/databases/p5-sqlrelay/pkg-descr b/databases/p5-sqlrelay/pkg-descr new file mode 100644 index 000000000000..ba41f340095d --- /dev/null +++ b/databases/p5-sqlrelay/pkg-descr @@ -0,0 +1,4 @@ +This package provides Perl5 modules to access to SQL Relay, including +a DBD interface. + +WWW: http://www.firstworks.com/sqlrelay.html diff --git a/databases/p5-sqlrelay/pkg-plist b/databases/p5-sqlrelay/pkg-plist new file mode 100644 index 000000000000..d12657193efc --- /dev/null +++ b/databases/p5-sqlrelay/pkg-plist @@ -0,0 +1,17 @@ +lib/perl5/site_perl/%%PERL_VER%%/DBD/SQLRelay.pm +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/DBD 2>/dev/null || true +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/DBD/SQLRelay/.packlist +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/DBD/SQLRelay +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/DBD 2>/dev/null || true +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Firstworks/SQLRConnection.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Firstworks/SQLRConnection/SQLRConnection.so +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Firstworks/SQLRConnection/SQLRConnection.bs +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Firstworks/SQLRConnection/.packlist +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Firstworks/SQLRConnection +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Firstworks/SQLRCursor.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Firstworks/SQLRCursor/SQLRCursor.so +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Firstworks/SQLRCursor/SQLRCursor.bs +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Firstworks/SQLRCursor/.packlist +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Firstworks/SQLRCursor +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Firstworks 2>/dev/null || true +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Firstworks 2>/dev/null || true diff --git a/databases/php-sqlrelay/Makefile b/databases/php-sqlrelay/Makefile new file mode 100644 index 000000000000..70fcb5e66e4b --- /dev/null +++ b/databases/php-sqlrelay/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: PHP module 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= # none +PKGNAMEPREFIX= php- +DISTFILES= # none + +MAINTAINER= knu@FreeBSD.org + +BUILD_DEPENDS= ${NONEXISTENT}:${SQLRELAY_PORTDIR}:configure \ + php-config:${PORTSDIR}/www/mod_php4 +LIB_DEPENDS= sqlrclient.0:${SQLRELAY_PORTDIR} +RUN_DEPENDS= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 + +USE_PYTHON= yes + +WRKSRC= ${WRKDIR}/${PORTNAME} +BUILD_WRKSRC= ${WRKSRC}/src/api/php +INSTALL_WRKSRC= ${BUILD_WRKSRC} +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \ + --with-php-prefix="${LOCALBASE}" + +.include "${.CURDIR}/../sqlrelay/Makefile.common" + +do-extract: + ${MKDIR} ${WRKDIR} + ${LN} -fs `${SQLRELAY_WRKSRC_CMD}` ${WRKSRC} + +pre-install: + ${MKDIR} `php-config --extension-dir` + +post-install: + dir=`php-config --extension-dir | ${SED} 's,^${LOCALBASE}/,,'`; \ + ${ECHO} "$$dir/sql_relay.so" >> ${TMPPLIST}; \ + ${ECHO} "@unexec rmdir %D/$$dir 2>/dev/null || true" >> ${TMPPLIST} + +.include <bsd.port.mk> diff --git a/databases/php-sqlrelay/pkg-comment b/databases/php-sqlrelay/pkg-comment new file mode 100644 index 000000000000..5b8adfa348e1 --- /dev/null +++ b/databases/php-sqlrelay/pkg-comment @@ -0,0 +1 @@ +PHP modules to access to SQL Relay diff --git a/databases/php-sqlrelay/pkg-descr b/databases/php-sqlrelay/pkg-descr new file mode 100644 index 000000000000..36262f888904 --- /dev/null +++ b/databases/php-sqlrelay/pkg-descr @@ -0,0 +1,3 @@ +This package provides PHP modules to access to SQL Relay. + +WWW: http://www.firstworks.com/sqlrelay.html diff --git a/databases/php-sqlrelay/pkg-plist b/databases/php-sqlrelay/pkg-plist new file mode 100644 index 000000000000..9fa4e8b90900 --- /dev/null +++ b/databases/php-sqlrelay/pkg-plist @@ -0,0 +1 @@ +@comment automatically generated plist follows: diff --git a/databases/py-sqlrelay/Makefile b/databases/py-sqlrelay/Makefile new file mode 100644 index 000000000000..90df4834b65b --- /dev/null +++ b/databases/py-sqlrelay/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: Python module 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 python +MASTER_SITES= # none +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTFILES= # none + +MAINTAINER= knu@FreeBSD.org + +BUILD_DEPENDS= ${NONEXISTENT}:${SQLRELAY_PORTDIR}:configure +LIB_DEPENDS= sqlrclient.0:${SQLRELAY_PORTDIR} + +USE_PYTHON= yes + +WRKSRC= ${WRKDIR}/${PORTNAME} +BUILD_WRKSRC= ${WRKSRC}/src/api/python +INSTALL_WRKSRC= ${BUILD_WRKSRC} +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \ + --with-python-prefix="${LOCALBASE}" + +.include "${.CURDIR}/../sqlrelay/Makefile.common" + +do-extract: + ${MKDIR} ${WRKDIR} + ${LN} -fs `${SQLRELAY_WRKSRC_CMD}` ${WRKSRC} + +.include <bsd.port.mk> diff --git a/databases/py-sqlrelay/pkg-comment b/databases/py-sqlrelay/pkg-comment new file mode 100644 index 000000000000..6c70ba36df55 --- /dev/null +++ b/databases/py-sqlrelay/pkg-comment @@ -0,0 +1 @@ +Python modules to access to SQL Relay diff --git a/databases/py-sqlrelay/pkg-descr b/databases/py-sqlrelay/pkg-descr new file mode 100644 index 000000000000..97c877a22fa4 --- /dev/null +++ b/databases/py-sqlrelay/pkg-descr @@ -0,0 +1,3 @@ +This package provides Python modules to access to SQL Relay. + +WWW: http://www.firstworks.com/sqlrelay.html diff --git a/databases/py-sqlrelay/pkg-plist b/databases/py-sqlrelay/pkg-plist new file mode 100644 index 000000000000..de7cae235828 --- /dev/null +++ b/databases/py-sqlrelay/pkg-plist @@ -0,0 +1,6 @@ +bin/query.py +lib/%%PYTHON_VERSION%%/site-packages/SQLRelay/CSQLRelay.so +lib/%%PYTHON_VERSION%%/site-packages/SQLRelay/PySQLRClient.py +lib/%%PYTHON_VERSION%%/site-packages/SQLRelay/PySQLRDB.py +lib/%%PYTHON_VERSION%%/site-packages/SQLRelay/__init__.py +@dirrm lib/%%PYTHON_VERSION%%/site-packages/SQLRelay diff --git a/databases/ruby-sqlrelay/Makefile b/databases/ruby-sqlrelay/Makefile new file mode 100644 index 000000000000..db02c9b03125 --- /dev/null +++ b/databases/ruby-sqlrelay/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: Ruby module 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 ruby +MASTER_SITES= # none +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DISTFILES= # none + +MAINTAINER= knu@FreeBSD.org + +BUILD_DEPENDS= ${NONEXISTENT}:${SQLRELAY_PORTDIR}:configure +LIB_DEPENDS= sqlrclient.0:${SQLRELAY_PORTDIR} + +USE_RUBY= yes + +WRKSRC= ${WRKDIR}/${PORTNAME} +BUILD_WRKSRC= ${WRKSRC}/src/api/ruby +INSTALL_WRKSRC= ${BUILD_WRKSRC} +MAKEFILE= Makefile.master +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \ + --with-ruby-prefix="${LOCALBASE}" + +.include "${.CURDIR}/../sqlrelay/Makefile.common" + +do-extract: + ${MKDIR} ${WRKDIR} + ${LN} -fs `${SQLRELAY_WRKSRC_CMD}` ${WRKSRC} + +.include <bsd.port.mk> diff --git a/databases/ruby-sqlrelay/pkg-comment b/databases/ruby-sqlrelay/pkg-comment new file mode 100644 index 000000000000..fec9c86c5816 --- /dev/null +++ b/databases/ruby-sqlrelay/pkg-comment @@ -0,0 +1 @@ +A Ruby module to access to SQL Relay diff --git a/databases/ruby-sqlrelay/pkg-descr b/databases/ruby-sqlrelay/pkg-descr new file mode 100644 index 000000000000..7bac505eb64b --- /dev/null +++ b/databases/ruby-sqlrelay/pkg-descr @@ -0,0 +1,3 @@ +This package provides a Ruby module to access to SQL Relay. + +WWW: http://www.firstworks.com/sqlrelay.html diff --git a/databases/ruby-sqlrelay/pkg-plist b/databases/ruby-sqlrelay/pkg-plist new file mode 100644 index 000000000000..98e6afea0715 --- /dev/null +++ b/databases/ruby-sqlrelay/pkg-plist @@ -0,0 +1 @@ +%%RUBY_SITEARCHLIBDIR%%/SQLRelay.so 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 |