pkgsrc/databases/sqlrelay/Makefile
fhajny 73c3fe6ad6 Update sqlrelay to 0.56.
Changes:
- removed VERSION from perl api bootstrap
- reorganized and simplified perl api code
- got perl api working on windows with ActivePerl
- perl api uninstall cleans up better now
- got python api working on windows with ActivePython
- consolidated php include tweaks
- got java api working on windows
- updated pdo driver to convert float fields to strings rather than ints
- updated pthread test to match rudiments pthread test
- moved everything done by children of sqlwriter interface into
  individual translations
- added plugin-based authentication framework
- reorganized code tree a bit
- reworked default values to enable more minimal configurations
- updated configuration docs and added configuration guide
- fixed cast issue with firebird 1.5
- added result set translation framework and re-implemented date
  translation using it
- fixed millisecond->nanosecond confusion in sqlr-scaler
- fixed subtle oracle instantclient version detection bug
- added null input bind support to sqlrsh
- fixed php pdo driver to return null rather than 0 for null integer
  fields and bind null rather than 0 for null integer input binds
- added attribute to return nulls as nulls or empty strings to php pdo
- added parameters for connecting to mysql via ssl
- added a few tweaks to support DB2 < 8.0
- fixed bad return value type in python getConnectionPort method
- fixed sessionhandler="thread" with listenertimeout!="0"
2014-07-18 18:16:30 +00:00

65 lines
2.3 KiB
Makefile

# $NetBSD: Makefile,v 1.39 2014/07/18 18:16:30 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
PKG_SYSCONFSUBDIR= sqlrelay
EGDIR= ${PREFIX}/share/examples/sqlrelay
INSTALL_MAKE_FLAGS+= EXAMPLEDIR=${DESTDIR}${EGDIR}
CONF_FILES+= ${EGDIR}/sqlrelay.conf ${PKG_SYSCONFDIR}/sqlrelay.conf
CONF_FILES+= ${EGDIR}/sqlrelay.dtd ${PKG_SYSCONFDIR}/sqlrelay.dtd
CONF_FILES+= ${EGDIR}/sqlrelay ${PKG_SYSCONFDIR}/sqlrelay
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
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
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/init/sqlrelay ${DESTDIR}${EGDIR}/sqlrelay
.include "../../mk/bsd.pkg.mk"