Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

13
databases/sqlrelay/DESCR Normal file
View File

@@ -0,0 +1,13 @@
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 APIs for C, C++, Perl, Perl-DBI, Python,
Python-DB, Zope, PHP, Ruby, Ruby-DBI, TCL and Java, 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.

View File

@@ -0,0 +1,64 @@
# $NetBSD: Makefile,v 1.30 2013/05/31 12:39:56 wiz Exp $
DISTNAME= sqlrelay-0.43
PKGREVISION= 8
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sqlrelay/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sqlrelay.sourceforge.net/
COMMENT= Enables pooling and sharing of database connections
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2
GNU_CONFIGURE= YES
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
USE_LIBTOOL= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --disable-db2
CONFIGURE_ARGS+= --disable-erlang
CONFIGURE_ARGS+= --disable-firebird
CONFIGURE_ARGS+= --disable-java
CONFIGURE_ARGS+= --disable-mdbtools
CONFIGURE_ARGS+= --disable-oracle
CONFIGURE_ARGS+= --disable-php
CONFIGURE_ARGS+= --disable-python
CONFIGURE_ARGS+= --disable-ruby
CONFIGURE_ARGS+= --disable-sybase
CONFIGURE_ARGS+= --disable-tcl
CONFIGURE_ARGS+= --disable-zope
CONFIGURE_ARGS+= --with-rudiments-prefix=${BUILDLINK_PREFIX.rudiments}
MAKE_ENV+= EXAMPLESDIR=${EGDIR:Q}
PKG_SYSCONFSUBDIR= sqlrelay
EGDIR= ${PREFIX}/share/examples/sqlrelay
CONF_FILES+= ${EGDIR}/sqlrelay.conf.example \
${PKG_SYSCONFDIR}/sqlrelay.conf
CONF_FILES+= ${EGDIR}/sqlrelay.dtd \
${PKG_SYSCONFDIR}/sqlrelay.dtd
CONF_FILES+= ${EGDIR}/sqlrelay \
${PKG_SYSCONFDIR}/sqlrelay
INSTALLATION_DIRS= ${PREFIX}/share/examples/rc.d
SQLR_DATA?= ${VARBASE}/sqlrelay
OWN_DIRS+= ${SQLR_DATA}
OWN_DIRS+= ${SQLR_DATA}/tmp
OWN_DIRS+= ${SQLR_DATA}/tmp/ipc
OWN_DIRS+= ${SQLR_DATA}/tmp/pids
OWN_DIRS+= ${SQLR_DATA}/tmp/sockets
RCD_SCRIPTS+= sqlrelay
RCD_SCRIPT_SRC.sqlrelay= ${WRKSRC}/init/netbsd/rc.d/sqlrelay
.include "options.mk"
post-install:
${INSTALL_DATA} ${WRKSRC}/init/netbsd/sqlrelay ${DESTDIR}${EGDIR}/sqlrelay
.include "../../devel/readline/buildlink3.mk"
.include "../../devel/rudiments/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

160
databases/sqlrelay/PLIST Normal file
View File

@@ -0,0 +1,160 @@
@comment $NetBSD: PLIST,v 1.8 2011/11/02 13:59:29 fhajny Exp $
bin/backupschema
bin/fields
bin/query
bin/sqlr-cachemanager
${PLIST.freetds}bin/sqlr-connection-freetds
${PLIST.mysql}bin/sqlr-connection-mysql
${PLIST.odbc}bin/sqlr-connection-odbc
${PLIST.pgsql}bin/sqlr-connection-postgresql
bin/sqlr-connection-router
${PLIST.sqlite}bin/sqlr-connection-sqlite
bin/sqlr-export
bin/sqlr-import
bin/sqlr-listener
bin/sqlr-scaler
bin/sqlr-start
bin/sqlr-status
bin/sqlr-stop
bin/sqlrclient-config
bin/sqlrclientwrapper-config
bin/sqlrsh
include/sqlrelay/private/bindvar.h
include/sqlrelay/private/column.h
include/sqlrelay/private/row.h
include/sqlrelay/private/sqlrconnection.h
include/sqlrelay/private/sqlrcursor.h
include/sqlrelay/private/sqlrdefines.h
include/sqlrelay/private/sqlrincludes.h
include/sqlrelay/sqlrclient.h
include/sqlrelay/sqlrclientwrapper.h
lib/libmysql3sqlrelay.la
lib/libmysql40sqlrelay.la
lib/libmysql41sqlrelay.la
lib/libmysql50sqlrelay.la
lib/libmysql51sqlrelay.la
lib/libpqsqlrelay.la
lib/libsqlrclient.la
lib/libsqlrclientwrapper.la
lib/libsqlrconnection.la
${PLIST.odbc}lib/libsqlrodbc.la
lib/libsqlrutil.la
lib/pkgconfig/sqlrelay-c++.pc
lib/pkgconfig/sqlrelay-c.pc
man/man1/fields.1
man/man1/query.1
man/man1/query.py.1
man/man1/sqlrsh.1
man/man8/sqlr-cachemanager.8
man/man8/sqlr-connection.8
man/man8/sqlr-ipclean.8
man/man8/sqlr-listener.8
man/man8/sqlr-scaler.8
man/man8/sqlr-start.8
man/man8/sqlr-stop.8
${PLIST.perl}${PERL5_SUB_INSTALLVENDORMAN3DIR}/SQLRelay::Connection.3
${PLIST.perl}${PERL5_SUB_INSTALLVENDORMAN3DIR}/SQLRelay::Cursor.3
${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/SQLRelay/Connection.pm
${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/SQLRelay/Cursor.pm
${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/auto/SQLRelay/Connection/Connection.so
${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/auto/SQLRelay/Cursor/Cursor.so
share/doc/sqlrelay/api/c++/sqlrclient.h.html
share/doc/sqlrelay/api/c/sqlrclientwrapper.h.html
share/doc/sqlrelay/api/java/allclasses-frame.html
share/doc/sqlrelay/api/java/allclasses-noframe.html
share/doc/sqlrelay/api/java/com/firstworks/sqlrelay/SQLRConnection.html
share/doc/sqlrelay/api/java/com/firstworks/sqlrelay/SQLRCursor.html
share/doc/sqlrelay/api/java/com/firstworks/sqlrelay/package-frame.html
share/doc/sqlrelay/api/java/com/firstworks/sqlrelay/package-summary.html
share/doc/sqlrelay/api/java/com/firstworks/sqlrelay/package-tree.html
share/doc/sqlrelay/api/java/constant-values.html
share/doc/sqlrelay/api/java/deprecated-list.html
share/doc/sqlrelay/api/java/help-doc.html
share/doc/sqlrelay/api/java/index-all.html
share/doc/sqlrelay/api/java/index.html
share/doc/sqlrelay/api/java/overview-tree.html
share/doc/sqlrelay/api/java/package-list
share/doc/sqlrelay/api/java/resources/inherit.gif
share/doc/sqlrelay/api/java/stylesheet.css
share/doc/sqlrelay/api/perl/Connection.html
share/doc/sqlrelay/api/perl/Cursor.html
share/doc/sqlrelay/api/perl/SQLRelay.html
share/doc/sqlrelay/api/perl/perl.html
share/doc/sqlrelay/api/php/doc.html
share/doc/sqlrelay/api/python/PySQLRClient.py.html
share/doc/sqlrelay/api/python/PySQLRDB.py.html
share/doc/sqlrelay/api/ruby/ruby.html
share/doc/sqlrelay/api/ruby/rubydbi.html
share/doc/sqlrelay/configuring.html
share/doc/sqlrelay/css/styles.css
share/doc/sqlrelay/dropin/mysql.html
share/doc/sqlrelay/dropin/postgresql.html
share/doc/sqlrelay/faq.html
share/doc/sqlrelay/gettingstarted/blackray.html
share/doc/sqlrelay/gettingstarted/db2.html
share/doc/sqlrelay/gettingstarted/db2/72.html
share/doc/sqlrelay/gettingstarted/db2/81.html
share/doc/sqlrelay/gettingstarted/db2/82.html
share/doc/sqlrelay/gettingstarted/db2/824.html
share/doc/sqlrelay/gettingstarted/db2/91.html
share/doc/sqlrelay/gettingstarted/firebird.html
share/doc/sqlrelay/gettingstarted/mssqlserver.html
share/doc/sqlrelay/gettingstarted/mysql.html
share/doc/sqlrelay/gettingstarted/oracle.html
share/doc/sqlrelay/gettingstarted/oracle/linux/fedoracore/1/10g.html
share/doc/sqlrelay/gettingstarted/oracle/linux/fedoracore/1/9iR2.html
share/doc/sqlrelay/gettingstarted/oracle/linux/fedoracore/2/10g.html
share/doc/sqlrelay/gettingstarted/oracle/linux/fedoracore/3/10g.html
share/doc/sqlrelay/gettingstarted/oracle/linux/fedoracore/5/10g.html
share/doc/sqlrelay/gettingstarted/oracle/linux/redhat/5/805.html
share/doc/sqlrelay/gettingstarted/oracle/linux/redhat/6/8i.html
share/doc/sqlrelay/gettingstarted/oracle/linux/redhat/7/8i.html
share/doc/sqlrelay/gettingstarted/oracle/linux/redhat/8/9iR2.html
share/doc/sqlrelay/gettingstarted/oracle/linux/redhat/9/9iR2.html
share/doc/sqlrelay/gettingstarted/oracle/linux/slackware/8/8i.html
share/doc/sqlrelay/gettingstarted/oracle/linux/slackware/8/9i.html
share/doc/sqlrelay/gettingstarted/oracle/linux/suse/9.0/9iR2.html
share/doc/sqlrelay/gettingstarted/postgresql.html
share/doc/sqlrelay/gettingstarted/sqlite.html
share/doc/sqlrelay/gettingstarted/sybase.html
share/doc/sqlrelay/gettingstarted/sybase/11.0.3.3.html
share/doc/sqlrelay/gettingstarted/sybase/11.9.2.html
share/doc/sqlrelay/gettingstarted/sybase/12.5.1.html
share/doc/sqlrelay/gettingstarted/sybase/12.5.2.html
share/doc/sqlrelay/gettingstarted/sybase/15.0.2.html
share/doc/sqlrelay/index.html
share/doc/sqlrelay/installing.html
share/doc/sqlrelay/introduction.html
share/doc/sqlrelay/introtowebdb.html
share/doc/sqlrelay/invisible.gif
share/doc/sqlrelay/oraclentier.html
share/doc/sqlrelay/programming/binds.html
share/doc/sqlrelay/programming/c++.html
share/doc/sqlrelay/programming/c.html
share/doc/sqlrelay/programming/java.html
share/doc/sqlrelay/programming/jdbc.html
share/doc/sqlrelay/programming/odbc.html
share/doc/sqlrelay/programming/perl.html
share/doc/sqlrelay/programming/perldbi.html
share/doc/sqlrelay/programming/php.html
share/doc/sqlrelay/programming/python.html
share/doc/sqlrelay/programming/pythondb.html
share/doc/sqlrelay/programming/ruby.html
share/doc/sqlrelay/programming/rubydbi.html
share/doc/sqlrelay/programming/tcl.html
share/doc/sqlrelay/programming/zope.html
share/doc/sqlrelay/programming/zope/instance.gif
share/doc/sqlrelay/programming/zope/management.gif
share/doc/sqlrelay/programming/zope/resultset.gif
share/doc/sqlrelay/programming/zope/sqlrelay.gif
share/doc/sqlrelay/programming/zope/test.gif
share/doc/sqlrelay/programming/zope/testzsqlmethod.gif
share/doc/sqlrelay/programming/zope/zsqlmethod.gif
share/doc/sqlrelay/programming/zope/zsqlmethodresultset.gif
share/doc/sqlrelay/running.html
share/doc/sqlrelay/tuning.html
share/doc/sqlrelay/windows.html
share/examples/rc.d/sqlrelay
share/examples/sqlrelay/sqlrelay
share/examples/sqlrelay/sqlrelay.conf.example
share/examples/sqlrelay/sqlrelay.dtd

View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.6 2011/11/02 13:59:29 fhajny Exp $
SHA1 (sqlrelay-0.43.tar.gz) = f645332ff0dd14edd2e44643cda651d7c1c59abe
RMD160 (sqlrelay-0.43.tar.gz) = 88638f122467c859db2fc5c8fbf983416c7f05bd
Size (sqlrelay-0.43.tar.gz) = 1743456 bytes
SHA1 (patch-ac) = e69292a2674083ffd10424e73760a0810fd629d8
SHA1 (patch-ad) = a7e7047bcaf28de96a2baab527e4b1f607deb7c6
SHA1 (patch-init__netbsd__rc.d__sqlrelay.in) = b10de222c99ab03a541c9a6a3929928c6936d0f4
SHA1 (patch-src__listener__sqlrlistener.h) = 11f977c48b8e0a01779357475373af738c81d7f3

View File

@@ -0,0 +1,70 @@
# $NetBSD: options.mk,v 1.7 2011/11/02 13:59:29 fhajny Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.sqlrelay
PKG_SUPPORTED_OPTIONS+= mysql pgsql sqlite odbc freetds perl
.include "../../mk/bsd.options.mk"
PLIST_VARS+= freetds mysql odbc perl pgsql sqlite
.if !empty(PKG_OPTIONS:Mperl)
LICENSE+= AND artistic
PERL5_PACKLIST= auto/SQLRelay/Connection/.packlist
PERL5_PACKLIST+= auto/SQLRelay/Cursor/.packlist
PERL5_PACKLIST+= auto/DBD/SQLRelay/.packlist
CONFIGURE_ARGS+= --with-perl-site-arch=${PERL5_INSTALLVENDORARCH:Q}
CONFIGURE_ARGS+= --with-perl-site-lib=${PERL5_INSTALLVENDORLIB:Q}
CONFIGURE_ARGS+= --with-perl-install-man3-dir=${PERL5_INSTALLVENDORMAN3DIR:Q}
USE_TOOLS+= perl
PLIST.perl= yes
.include "../../lang/perl5/buildlink3.mk"
.include "../../lang/perl5/packlist.mk"
.include "../../lang/perl5/vars.mk"
.else
CONFIGURE_ARGS+= --disable-perl
.endif
.if !empty(PKG_OPTIONS:Mmysql)
CONFIGURE_ARGS+= --with-mysql-prefix=${BUILDLINK_PREFIX.mysql-client:Q}
PLIST.mysql= yes
.include "../../mk/mysql.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-mysql
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
LICENSE+= AND postgresql-license
CONFIGURE_ARGS+= --with-postgresql-prefix=${PGSQL_PREFIX:Q}
PLIST.pgsql= yes
.include "../../mk/pgsql.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-postgresql
.endif
.if !empty(PKG_OPTIONS:Msqlite)
CONFIGURE_ARGS+= --with-sqlite-prefix=${BUILDLINK_PREFIX.sqlite3:Q}
PLIST.sqlite= yes
.include "../../databases/sqlite3/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-sqlite
.endif
.if !empty(PKG_OPTIONS:Modbc)
CONFIGURE_ARGS+= --with-odbc-prefix=${BUILDLINK_PREFIX.unixodbc:Q}
PLIST.odbc= yes
.include "../../databases/unixodbc/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-odbc
.endif
.if !empty(PKG_OPTIONS:Mfreetds)
CONFIGURE_ARGS+= --with-freetds-prefix=${BUILDLINK_PREFIX.freetds:Q}
PLIST.freetds= yes
.include "../../databases/freetds/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-freetds
.endif

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-ac,v 1.3 2011/11/02 13:59:29 fhajny Exp $
--- etc/Makefile.orig 2006-07-08 03:18:01.000000000 +0000
+++ etc/Makefile
@@ -5,12 +5,10 @@ include ../config.mk
.PHONY: install uninstall
install:
- $(MKINSTALLDIRS) $(sysconfdir)
- $(INSTALL) -m 644 sqlrelay.conf.example $(sysconfdir)
- $(INSTALL) -m 644 sqlrelay.dtd $(sysconfdir)
- $(INSTALL) -m 644 sqlrelay.conf.example $(EXAMPLEDIR)/sqlrelay.conf
+ $(MKINSTALLDIRS) ${DESTDIR}$(EXAMPLESDIR)
+ $(INSTALL) -m 644 sqlrelay.conf.example ${DESTDIR}$(EXAMPLESDIR)
+ $(INSTALL) -m 644 sqlrelay.dtd ${DESTDIR}$(EXAMPLESDIR)
uninstall:
- $(RM) $(sysconfdir)/sqlrelay.conf.example
- $(RM) $(sysconfdir)/sqlrelay.dtd
- $(RM) $(EXAMPLEDIR)/sqlrelay.conf
+ $(RM) ${DESTDIR}$(EXAMPLESDIR)/sqlrelay.conf.example
+ $(RM) ${DESTDIR}$(EXAMPLESDIR)/sqlrelay.dtd

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ad,v 1.1 2008/10/03 18:14:46 joerg Exp $
--- Makefile.orig 2008-10-03 18:08:41.000000000 +0000
+++ Makefile
@@ -25,7 +25,6 @@ install:
$(MAKE) -C src install
$(MAKE) -C bin install
$(MAKE) -C etc install
- $(MAKE) -C init install
$(MAKE) -C man install
$(MAKE) -C doc install
$(MKINSTALLDIRS) $(libdir)/pkgconfig

View File

@@ -0,0 +1,37 @@
$NetBSD: patch-init__netbsd__rc.d__sqlrelay.in,v 1.1 2011/11/02 13:59:29 fhajny Exp $
--- init/netbsd/rc.d/sqlrelay.in.orig 2007-05-29 20:09:18.000000000 +0000
+++ init/netbsd/rc.d/sqlrelay.in
@@ -31,7 +31,7 @@ cleanup(){
if ( test -r "$i" )
then
PID=`cat $i`
- if ( test -z "`ps -p $PID | egrep -E 'sqlr-cachemana|sqlr-connectio|sqlr-listener'`" )
+ if ( test -z "`ps -p $PID | egrep -E 'sqlr-cachemana|sqlr-connectio|sqlr-listener|sqlr-scaler'`" )
then
echo "$PID is not sqlr! removing pidfile ..."
rm $i
@@ -42,9 +42,9 @@ cleanup(){
start(){
echo -n $"Starting SQL Relay: "
- if ( test -r "/etc/sqlrelay" ); then
+ if ( test -r "@sysconfdir@/sqlrelay" ); then
launched=0
- for connid in `grep -v ^# /etc/sqlrelay`; do
+ for connid in `grep -v ^# @sysconfdir@/sqlrelay`; do
echo
echo -n $"Launching instance with id '${connid}':"
sqlr-start -id ${connid} 0<&- 1>&- 2>&-
@@ -69,9 +69,9 @@ start(){
stop(){
echo -n $"Stopping SQL Relay: "
- if ( test -r "/etc/sqlrelay" ); then
+ if ( test -r "@sysconfdir@/sqlrelay" ); then
launched=0
- for connid in `grep -v ^# /etc/sqlrelay`; do
+ for connid in `grep -v ^# @sysconfdir@/sqlrelay`; do
echo
echo -n $"Launching instance with id '${connid}':"
sqlr-stop ${connid} 0<&- 1>&- 2>&-

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-src__listener__sqlrlistener.h,v 1.1 2011/11/02 13:59:29 fhajny Exp $
--- src/listener/sqlrlistener.h.orig 2011-06-28 20:38:49.000000000 +0000
+++ src/listener/sqlrlistener.h
@@ -26,6 +26,8 @@
#include <defines.h>
+#include <cstring>
+
#ifdef RUDIMENTS_NAMESPACE
using namespace rudiments;
#endif