Kurt Jaeger 0577896d34 devel/rudiments: 0.50 -> 0.51
databases/sqlrelay: 0.59 -> 0.60

- Both packages are updated together.
- Lots of changes in devel/rudiments, see ChangeLog
- Fixes in sqlrelay:
  o fixed true->false transposition in sqlrservercontroller::interceptQuery
    that could lead to a reLogIn loop
  o applied George Carrette's patch to fix PDO connectstring options
  o migrated directory/file paths info into sqlrpaths class
  o removed undocumented and not-so-relevent-these-days
  o MAX_CONNECTIONS/overridemaxconnections failsafe in sqlr-start
  o fixed java header detection for javac located in /usr/bin
  o updated java api to support non-null-tolerant implementations of
            environment::NewStringUTF()
  o the perl api builds correctly on OSR5 again
  o 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
  o mono 2.8 or greater is required now
  o added a datedelimiters attribute to the instance tag in sqlrelay.conf
            to limit what date delimiters are used when translating dates
  o re-added mssqlserver detection, which had been accidentally removed
  o fixed statically-linked build
  o fixed mysql lob field bug that could cause a crash
2015-06-21 11:52:03 +00:00

143 lines
3.9 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= ${SQLRELAY_PORTNAME}
PORTVERSION= ${SQLRELAY_PORTVERSION}
CATEGORIES= databases
MASTER_SITES= SF
MAINTAINER= pi@FreeBSD.org
COMMENT= Persistent DB connection pooling/proxying/load balancing system
LIB_DEPENDS= librudiments.so:${PORTSDIR}/devel/rudiments
WANT_GNOME= yes
USES= gmake libtool
CPPFLAGS+= -I${LOCALBASE}/include
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \
--disable-tcl \
--disable-java \
--disable-msql \
--disable-perl \
--disable-php \
--disable-python \
--disable-ruby \
--disable-erlang \
--disable-zope
MAKE_JOBS_UNSAFE=yes
USE_LDCONFIG= yes
PORTDOCS= *
TOSTRIP= bin/sqlr-start \
bin/sqlr-stop \
bin/sqlr-listener \
bin/sqlr-connection \
bin/sqlr-scaler \
bin/sqlr-cachemanager \
bin/sqlr-fields \
bin/sqlr-query \
bin/sqlr-export \
bin/sqlr-import \
bin/sqlr-pwdenc \
bin/sqlr-status \
bin/sqlrsh \
lib/libsqlrutil-${SQLRELAY_PORTVERSION}.so.1.0.0 \
lib/libsqlrclient-${SQLRELAY_PORTVERSION}.so.1.0.0 \
lib/libsqlrclientwrapper-${SQLRELAY_PORTVERSION}.so.1.0.0 \
lib/libpqsqlrelay-${SQLRELAY_PORTVERSION}.so.1.0.0 \
lib/libmysql3sqlrelay-${SQLRELAY_PORTVERSION}.so.1.0.0 \
lib/libmysql40sqlrelay-${SQLRELAY_PORTVERSION}.so.1.0.0 \
lib/libmysql41sqlrelay-${SQLRELAY_PORTVERSION}.so.1.0.0 \
lib/libmysql50sqlrelay-${SQLRELAY_PORTVERSION}.so.1.0.0 \
lib/libmysql51sqlrelay-${SQLRELAY_PORTVERSION}.so.1.0.0 \
lib/libsqlrserver-${SQLRELAY_PORTVERSION}.so.1.0.0 \
libexec/sqlrelay/sqlrauth_default.so \
libexec/sqlrelay/sqlrauth_sqlrelay.so \
libexec/sqlrelay/sqlrconnection_router.so \
libexec/sqlrelay/sqlrlogger_custom_nw.so \
libexec/sqlrelay/sqlrlogger_custom_sc.so \
libexec/sqlrelay/sqlrlogger_debug.so \
libexec/sqlrelay/sqlrlogger_slowqueries.so \
libexec/sqlrelay/sqlrparser_default.so \
libexec/sqlrelay/sqlrprotocol_sqlrclient.so \
libexec/sqlrelay/sqlrpwdenc_crypt.so \
libexec/sqlrelay/sqlrpwdenc_md5.so \
libexec/sqlrelay/sqlrpwdenc_rot.so \
libexec/sqlrelay/sqlrquery_sqlrcmdcstat.so \
libexec/sqlrelay/sqlrquery_sqlrcmdgstat.so
.include "${.CURDIR}/Makefile.common"
OPTIONS_DEFINE= MYSQL ODBC ORACLE PGSQL SQLITE3 FREETDS FIREBIRD DOCS
OPTIONS_SUB= yes
ORACLE_CONFIGURE_ENABLE= oracle
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSQLITE3}
LIB_DEPENDS+= libgdbm.so:${PORTSDIR}/databases/gdbm \
libsqlite3.so:${PORTSDIR}/databases/sqlite3
CONFIGURE_ARGS+= --with-gdbm-prefix="${LOCALBASE}" \
--with-sqlite-prefix="${LOCALBASE}"
.else
CONFIGURE_ARGS+= --without-gdbm-prefix \
--disable-sqlite
.endif
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql-prefix="${LOCALBASE}"
TOSTRIP+= libexec/sqlrelay/sqlrconnection_mysql.so
.else
CONFIGURE_ARGS+= --disable-mysql
.endif
.if ${PORT_OPTIONS:MFIREBIRD}
USE_FIREBIRD= yes
CONFIGURE_ARGS+= --with-firebird-prefix="${LOCALBASE}"
.else
CONFIGURE_ARGS+= --disable-firebird
.endif
.if ${PORT_OPTIONS:MPGSQL}
USES+= pgsql
CONFIGURE_ARGS+= --with-postgresql-prefix="${LOCALBASE}"
.else
CONFIGURE_ARGS+= --disable-postgresql
.endif
.if ${PORT_OPTIONS:MODBC}
LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC
CONFIGURE_ARGS+= --with-odbc-prefix="${LOCALBASE}"
.else
CONFIGURE_ARGS+= --disable-odbc
.endif
.if ${PORT_OPTIONS:MFREETDS}
LIB_DEPENDS+= libtds.so:${PORTSDIR}/databases/freetds
CONFIGURE_ARGS+= --with-freetds-prefix="${LOCALBASE}"
.else
CONFIGURE_ARGS+= --disable-freetds
.endif
post-patch:
${REINPLACE_CMD} -E \
-e 's,\$$\(initroot\),\$$\(initroot\)${PREFIX},g' \
-e 's,/etc/rc.conf,/etc/defaults/rc.conf,g' \
${WRKSRC}/init/Makefile
${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -E \
-e 's#-release \$$\(SQLR_VERSION\)##g;'
post-configure:
@${REINPLACE_CMD} 's,-Werror,,' ${WRKSRC}/config.mk
post-stage:
.for f in ${TOSTRIP}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${f}
.endfor
.include <bsd.port.mk>