3049b017e1
New features and updates - The list of SphinxQL reserved keywords is now much, much smaller than it used to be, and also consistent across different places in the code and in the docs. - IN() function now accepts string attributes (#2233). Also, filtering string attributes by an empty value in WHERE clause now works. - WHERE on float attributes got improved a bit: we added floatcol<>123.0 syntax, and fixed an issue with using an integer reference value asi in floatcol=123 or floatcol!=123, see bug #2121. - searchd --replay-flags switch (useful for binlog replay troubleshooting) now accepts a new option 'ignore-open-errors' that lets you simply ignore missing binlog files without deleting binlog meta info. - Indexer now exits with code 2 in case of rotation failure. Notable bug fixes - unified min_prefix_len, min_infix_len behavior between RT and plain indexes - expressions dependent on aggregation results (eg. as in SELECT MAX(id) m1, m1+10 m2) were not computed properly in RT indexes - LENGTH() was 2x off for 64-bit MVA attributes - OPTIMIZE could occasionally break big RT indexess - multi-wordforms with clashing prefixes were processed in a wrong order - disabled and later re-enabled indexes were not picked up again by searchd on SIGHUP Full release notes: http://sphinxsearch.com/docs/latest/rel2210.html
74 lines
2.3 KiB
Makefile
74 lines
2.3 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2015/10/18 20:30:02 fhajny Exp $
|
|
#
|
|
|
|
DISTNAME= sphinx-2.2.10-release
|
|
PKGNAME= ${DISTNAME:S/-/search-/:S/-release//}
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://sphinxsearch.com/files/
|
|
|
|
MAINTAINER= filip@joyent.com
|
|
HOMEPAGE= http://www.sphinxsearch.com/
|
|
COMMENT= Sphinx Full-Text Search Engine
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
SPHINX_USER?= sphinx
|
|
SPHINX_GROUP?= sphinx
|
|
SPHINX_DIR?= ${VARBASE}/db/sphinx
|
|
SPHINX_RUN?= ${VARBASE}/spool/sphinx
|
|
SPHINX_LOG?= ${VARBASE}/log/sphinx
|
|
|
|
.include "options.mk"
|
|
|
|
EGDIR= ${PREFIX}/share/examples/sphinx
|
|
CONF_FILES+= ${EGDIR}/sphinx-min.conf ${PKG_SYSCONFDIR}/sphinx.conf
|
|
|
|
INSTALLATION_DIRS= bin sbin ${EGDIR}
|
|
OWN_DIRS+= ${SPHINX_DIR} ${SPHINX_RUN} ${SPHINX_LOG}
|
|
OWN_DIRS_PERMS+= ${SPHINX_DIR} ${SPHINX_USER} ${SPHINX_GROUP} 0770
|
|
OWN_DIRS_PERMS+= ${SPHINX_RUN} ${SPHINX_USER} ${SPHINX_GROUP} 0770
|
|
OWN_DIRS_PERMS+= ${SPHINX_LOG} ${SPHINX_USER} ${SPHINX_GROUP} 0770
|
|
|
|
PKG_GROUPS+= ${SPHINX_GROUP}
|
|
PKG_USERS+= ${SPHINX_USER}:${SPHINX_GROUP}
|
|
|
|
SUBST_CLASSES+= paths
|
|
SUBST_MESSAGE.paths= Setting standard paths
|
|
SUBST_STAGE.paths= pre-configure
|
|
SUBST_FILES.paths= sphinx.conf.in sphinx-min.conf.in Makefile.in src/searchd.cpp
|
|
SUBST_FILES.paths+= src/Makefile.in
|
|
SUBST_SED.paths+= -e 's,@CONFDIR@/log/searchd.pid,${SPHINX_RUN}/searchd.pid,g'
|
|
SUBST_SED.paths+= -e 's,@CONFDIR@/log/query.log,${SPHINX_LOG}/query.log,g'
|
|
SUBST_SED.paths+= -e 's,@CONFDIR@/log/searchd.log,${SPHINX_LOG}/searchd.log,g'
|
|
SUBST_SED.paths+= -e 's,@CONFDIR@,${SPHINX_DIR},g'
|
|
SUBST_SED.paths+= -e 's,@localstatedir@,${SPHINX_DIR},g'
|
|
SUBST_SED.paths+= -e 's,@egdir@,${EGDIR},g'
|
|
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
CONFIGURE_DIRS= .
|
|
CONFIGURE_DIRS+= api/libsphinxclient
|
|
|
|
CONFIGURE_ARGS+= --with-libexpat
|
|
CONFIGURE_ARGS+= --with-iconv
|
|
|
|
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
|
|
|
|
LIBS.SunOS+= -liconv -lsocket -lnsl
|
|
|
|
post-install:
|
|
${MV} ${DESTDIR}${EGDIR}/sphinx.conf.dist ${DESTDIR}${EGDIR}/sphinx-full.conf
|
|
${MV} ${DESTDIR}${EGDIR}/sphinx-min.conf.dist ${DESTDIR}${EGDIR}/sphinx-min.conf
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|