sqlrelay 1.0.0 - updated md5 pwdenc to use rudiments md5 class - solved a long-standing hang that could occur if the database password expired while sqlrelay was running, and the sqlr-scaler attempted to start new connections - added convertcase, convertcasedoublequotes, and removedoublequotes parameters to normalize translation module - added ColumnCaseName parameter to ODBC driver - fixed a subtle bug in the ODBC driver that caused the first row to be skipped if columns were not bound - added -backtrace option for debugging - fixed mysql connection module so it can use the statement API on Windows - fixed semaphore reference-before-init bug in sqlrservercontroller - added support for db, debug, columnnamecase, dontgetcolumninfo, nullsasnulls, and lazyconnect connect-string options to all drivers (though in some they are camel-case and others lower-case) - in DB-abstraction-layer drivers, the debug, dontgetcolumninfo, nullsasnulls, lazyconnect, krb, and tls connect-string options now support any yes/no equivalent such as yes, Yes, y, Y, true, True, 1, (and similar for no) - fixed a regression that could cause crashes in the C#/ADO driver when binding null or date values - added all parameters to ODBC config screen - removed calls to mysql_stmt_store_result/mysql_stmt_num_rows from mysql connection to improve performance. mysql connection doesn't know the total number of rows prior to full fetch now (which is consistent with most other databases). - updated postgresql connection to use an unnamed cursor instead of naming it and having to deallocate it over an over - tweaked skipWhitespaceAndComments and related methods to use charstring::isNullOrEmpty and character::isWhitespace - replaced regular expression comparisons in sap/freetds connections with simpler charstring comparisons - updated db2 connection to reuse the statement instead of recreating it with each prepare - made column-lookup by name case sensitive to improve performance - fixed nagle-disable and sizing of socket read/write buffers - changed default maxcursors to 5 - fixed an uninitialized variable in the firebird connection - python api's are installed in dist-packages subdirectory on systems that have that instead of site-packages - added route-entire-session option to router modules sqlrelay 0.67.0 - general documenation clean-up - added missing all: target to man/Makefile - mysql_info in drop-in library for mysql returns NULL instead of "" now - mysql_errno in the drop-in library now returns the error number from the DB, instead of CR_UNKNOWN_ERROR, if no error map is provided, and the backend database is known to be mysql - mysql_refresh in the drop-in library works with options other than REFRESH_GRANT now - mysql_shutdown/kill in the drop-in library return 1 on failure now rather than 2000 - date/time and timestamp types are recognized as binary types now - year/timestamp types are recognized as unsigned types now - TINY/MEDIUM/LONG_TEXT types are recognized as blobs now - mapping date/time to MYSQL_TYPE_DATE/TIME, rather than MYSQL_TYPE_DATETIME is the default in the drop-in library now and SQLR_MAP_DATETIME_TO_DATE has been removed - mysql drop-in library sets column flags correctly now - mysql drop-in library runs appropriate kill/shutdown queries now - mysql connection uses non-stmt api for "show *" queries now - mysql drop-in library runs "show processlist" for mysql_list_processes - mysql drop-in library supports date/time/datetime input binds now instead of just treating them all as datetimes - connection modules differentiate between date/time/datetime binds now instead of just treating them all as datetimes - added result set row translation module framework - updated firebird connection module to the fieldstruct.textbuffer instead of fieldbuffer for non-text to text translations - added support for negative times in mysql connection module and drop-in library - added translation-failure event - general refactoring of server module API - consolidated sqlr-scaler code - fixed a 1-byte empty-blob memory leak in the client - /etc/alternatives/java_sdk is preferred, if found, now
59 lines
2.1 KiB
Makefile
59 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.52 2017/01/16 13:13:13 fhajny Exp $
|
|
|
|
COMMENT= Database connection pooling middleware and API
|
|
|
|
.include "../../databases/sqlrelay/Makefile.common"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
CONFIGURE_ARGS+= --disable-db2 --disable-erlang --disable-firebird \
|
|
--disable-freetds --disable-java --disable-mdbtools \
|
|
--disable-mysql --disable-odbc --disable-oracle \
|
|
--disable-perl --disable-php --disable-postgresql \
|
|
--disable-python --disable-ruby --disable-sqlite \
|
|
--disable-sap --disable-tcl --disable-nodejs
|
|
|
|
INSTALL_MAKE_FLAGS+= EXAMPLEDIR=${DESTDIR}${EGDIR}
|
|
|
|
CONF_FILES+= ${EGDIR}/sqlrelay.conf ${PKG_SYSCONFDIR}/sqlrelay.conf
|
|
CONF_FILES+= ${EGDIR}/sqlrelay.xsd ${PKG_SYSCONFDIR}/sqlrelay.xsd
|
|
|
|
SQLR_USER?= sqlrelay
|
|
SQLR_GROUP?= ${SQLR_USER}
|
|
SQLR_DATA?= ${VARBASE}/sqlrelay
|
|
|
|
PKG_GROUPS+= ${SQLR_USER}
|
|
PKG_USERS+= ${SQLR_USER}:${SQLR_GROUP}
|
|
PKG_GECOS.${SQLR_USER}= SQL Relay daemon user
|
|
PKG_HOME.${SQLR_USER}= ${SQLR_DATA}
|
|
|
|
OWN_DIRS_PERMS+= ${SQLR_DATA} ${SQLR_USER} ${SQLR_GROUP} 0775
|
|
OWN_DIRS_PERMS+= ${SQLR_DATA}/tmp ${SQLR_USER} ${SQLR_GROUP} 0775
|
|
OWN_DIRS_PERMS+= ${SQLR_DATA}/tmp/ipc ${SQLR_USER} ${SQLR_GROUP} 0775
|
|
OWN_DIRS_PERMS+= ${SQLR_DATA}/tmp/pids ${SQLR_USER} ${SQLR_GROUP} 0775
|
|
OWN_DIRS_PERMS+= ${SQLR_DATA}/tmp/sockets ${SQLR_USER} ${SQLR_GROUP} 0775
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/sqlrelay.conf.d
|
|
|
|
SUBST_CLASSES+= user
|
|
SUBST_STAGE.user= pre-configure
|
|
SUBST_MESSAGE.user= Fixing default nonprivileged user
|
|
SUBST_FILES.user= etc/sqlrelay.* src/common/defaults.h
|
|
SUBST_SED.user= -e '/runasuser/s/nobody/${SQLR_USER}/'
|
|
SUBST_SED.user+= -e '/runasgroup/s/nobody/${SQLR_GROUP}/'
|
|
SUBST_SED.user+= -e '/RUNASUSER/s/nobody/${SQLR_USER}/'
|
|
SUBST_SED.user+= -e '/RUNASGROUP/s/nobody/${SQLR_GROUP}/'
|
|
|
|
OPSYSVARS+= SOEXT
|
|
SOEXT.Darwin= bundle
|
|
SOEXT.*= so
|
|
PLIST_SUBST+= SOEXT=${SOEXT}
|
|
|
|
FILES_SUBST+= SQLR_USER=${SQLR_USER}
|
|
FILES_SUBST+= SQLR_GROUP=${SQLR_GROUP}
|
|
FILES_SUBST+= SQLR_DATA=${SQLR_DATA}
|
|
|
|
RCD_SCRIPTS+= sqlrelay sqlrcachemanager
|
|
RCD_SCRIPT_SRC.sqlrelay= ${WRKSRC}/init/rc.sqlrelay
|
|
RCD_SCRIPT_SRC.sqlrcachemanager= ${WRKSRC}/init/rc.sqlrcachemanager
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|