2c0f4b64b4
sqlrelay 0.63 - suppressed ruby configure warning - fixed glib detection if pkg-config isn't present - fixed mono detection on freebsd - fixed node.js yes/no misreport bug in configure script - added freetds tcl test - fixed slashes in tcl tests for windows - updated docs to mention firebird buffer size parameters - updated MAX_ITEM_BUFFER_SIZE to 32768 for firebird - fixed ruby detection on fedora 22 - fixed missing export for setAuth/ResponseTimeout in ruby api - added manual include of inttypes.h in php api to work around issue with define/undef games, revealed on openbsd 5.7 - tweaked ruby cflags script for debian 8 - refactored mysql detection - tweaked unixodbc detection to also look in /usr/include/odbc - renamed "oracle8" connection plugin to "oracle" - renamed "sybase" connection plugin to "sap" - updated identity tests in api's/cmdline clients to use charstring::contains() rather than !charstring::compare() - implemented missing destructors for ADO.NET Data Provider sqlrelay 0.62 - added query filter plugin framework - added regex, string and pattern filters - added normalization translation - added reformatdatetime result set translation - fixed error in sqlrconfigfile class that could cause sqlr-start to crash if one instance defines addresses but the next doesn't - added query status flag to sqlrservercursor - tweaked odbc driver's SQLGetTypeInfo() - field name is passed into runResultSetTranslations() now - added support for maxitembuffersize, maxselectlistsize, and maxbindcount for firebird - added native api for node.js - added recognition of bigint, ubigint and uniqueidentifier fields in freetds/sybase - added nullsasnulls command to sqlrsh - added workaround for freetds empty (but non-null) text fields not getting properly converted to null-terminated empty strings - fetchatonce, maxitembuffersize and maxselectlistsize are set to defaulting values if invalid values are given for them - added lazyconnect option to PHP PDO and Perl DBI drivers (defaults to 1) - direct Transact SQL which returns a result set is now supported with Sybase/SAP/MSSQLServer/FreeTDS - added docs for authentication, query translation, query filter and result set translation modules - added -fPIC to sqlrserver-config --cflags, if supported - the "default" auth module is now called "userlist" - added database auth module that is analagous to authtier="database" - replaced passwordencryption attribute with passwordencryptionid - added --disable-postgresql8-api configure option - tweaked -Werror detection in configure script - refactored sqlr-bench build to work on windows - documentation, examples and tests are now covered by a license - reflecting modern interpretation of the GPL, The license for The SQLRelay Server (as designated in COPYING) license now carries an exception, explicitly allowing it to be linked with various non-GPL compatible libraries - license is installed now sqlrelay 0.61 skipped sqlrelay 0.60 - fixed true->false transposition in sqlrservercontroller::interceptQuery that could lead to a reLogIn loop - disabled -Werror for gcc < 2.7 - applied George Carrette's patch to fix PDO connectstring options - migrated directory/file paths info into sqlrpaths class - removed undocumented and not-so-relevent-these-days MAX_CONNECTIONS/overridemaxconnections failsafe in sqlr-start - fixed java header detection for javac located in /usr/bin - updated java api to support non-null-tolerant implementations of environment::NewStringUTF() - the perl api builds correctly on OSR5 again - the postgresql sslmode is omitted entirely from the connect string now, if it's disabled, to prevent problems with older versions of postgresql that don't support the parameter at all - mono 2.8 or greater is required now - added a datedelimiters attribute to the instance tag in sqlrelay.conf to limit what date delimiters are used when translating dates - re-added mssqlserver detection, which had been accidentally removed - fixed statically-linked build - fixed mysql lob field bug that could cause a crash
61 lines
2.3 KiB
Makefile
61 lines
2.3 KiB
Makefile
# $NetBSD: Makefile,v 1.44 2015/09/02 12:39:33 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-sybase --disable-tcl --disable-nodejs
|
|
|
|
INSTALL_MAKE_FLAGS+= EXAMPLEDIR=${DESTDIR}${EGDIR}
|
|
|
|
CONF_FILES+= ${EGDIR}/sqlrelay.conf ${PKG_SYSCONFDIR}/sqlrelay.conf
|
|
CONF_FILES+= ${EGDIR}/sqlrelay.dtd ${PKG_SYSCONFDIR}/sqlrelay.dtd
|
|
|
|
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}/'
|
|
|
|
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/compiler.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
_WRAP_EXTRA_ARGS.CXX+= -Wno-error=unused-private-field -Wno-error=mismatched-tags
|
|
CWRAPPERS_APPEND.cxx+= -Wno-error=unused-private-field -Wno-error=mismatched-tags
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|