debian/0000755000000000000000000000000012231167631007170 5ustar debian/README.Debian0000644000000000000000000000047512015305642011233 0ustar Sphinxsearch ------------ searchd will start automatically however the default configuration does not supply any indexes. Therefore, searchd will not continue running. You have to edit /etc/sphinxsearch/sphinx.conf to get any meaningful mode of operation. Documentation is available in /usr/share/doc/sphinxsearch. debian/dirs0000644000000000000000000000013412015305642010046 0ustar /etc/sphinxsearch /var/lib/sphinxsearch/ /var/lib/sphinxsearch/data/ /var/log/sphinxsearch/ debian/sphinxsearch.install0000644000000000000000000000003512015306115013245 0ustar usr/bin/* etc/sphinxsearch/* debian/default0000644000000000000000000000045412015305642010536 0ustar # # Settings for the sphinxsearch searchd daemon # Please read /usr/share/doc/sphinxsearch/README.Debian for details. # # Should sphinxsearch run automatically on startup? (default: no) # Before doing this you might want to modify /etc/sphinxsearch/sphinx.conf # so that it works for you. START=no debian/source/0000755000000000000000000000000012015322371010462 5ustar debian/source/format0000644000000000000000000000001412015305642011672 0ustar 3.0 (quilt) debian/libsphinx-ruby.install0000644000000000000000000000006312015306115013526 0ustar usr/lib/ruby/* usr/share/doc/libsphinx-ruby/rdoc/* debian/copyright0000644000000000000000000000306512015305642011123 0ustar This work was packaged for Debian by: Radu Spineanu on Sun, 25 Oct 2009 00:09:31 +0300 It is based on the Ubuntu package by Marco Rodrigues and David Leal from launchpad.net. It was downloaded from http://www.sphinxsearch.com/downloads Upstream Author:Andrew Aksyonoff Copyright: ----- License of sphinxsearch Copyright (C) 2001-2009 by Andrew Aksyonoff This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. ----- Other Licenses and Copyright Directory: api/libsphinxclient and files Copyright (c) Andrew Aksyonoff License: GNU Library General Public License Directory: api/ruby and files Copyright (c) Dmytro Shteflyuk License: Ruby license Directory: contrib/perlapi and files Copyright (c) Len Kranendonk License : GNU General Public License debian/python-sphinxapi.pyinstall0000644000000000000000000000002412015322150014434 0ustar debian/sphinxapi.py debian/python-sphinxapi.examples0000644000000000000000000000003112015306115014234 0ustar api/test.py api/test2.py debian/manpages0000644000000000000000000000002412015305642010676 0ustar searchd.1 indexer.1 debian/libsphinxclient-0.0.1.docs0000644000000000000000000000003312015306115013657 0ustar api/libsphinxclient/README debian/init.d0000644000000000000000000001037112015305642010276 0ustar #! /bin/sh # # Written by Miquel van Smoorenburg . # Modified for Debian # by Ian Murdock . # Further changes by Javier Fernandez-Sanguino # Modified for sphinx by Radu Spineanu # # ### BEGIN INIT INFO # Provides: sphinxsearch # Required-Start: $local_fs $remote_fs $syslog $network $time # Required-Stop: $local_fs $remote_fs $syslog $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Fast standalone full-text SQL search engine ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/bin/searchd NAME=sphinxsearch DESC=sphinxsearch test -x $DAEMON || exit 0 LOGDIR=/var/log/sphinxsearch PIDFILE=/var/run/sphinxsearch/searchd.pid DODTIME=1 # Time to wait for the server to die, in seconds # If this value is set too low you might not # let some servers to die gracefully and # 'restart' will not work STARTDELAY=0.5 # Include sphinxsearch defaults if available if [ -f /etc/default/sphinxsearch ] ; then . /etc/default/sphinxsearch fi if [ "$START" != "yes" ]; then echo "To enable $NAME, edit /etc/default/sphinxsearch and set START=yes" exit 0 fi set -e # Make sure the pidfile directory exists with correct permissions piddir=`dirname "$PIDFILE"` if [ ! -d "$piddir" ]; then mkdir -p "$piddir" chown -R sphinxsearch "$piddir" chgrp -R sphinxsearch "$piddir" fi running_pid() { # Check if a given process pid's cmdline matches a given name pid=$1 name=$2 [ -z "$pid" ] && return 1 [ ! -d /proc/$pid ] && return 1 cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` # Is this the expected child? [ "$cmd" != "$name" ] && return 1 return 0 } running() { # Check if the process is running looking at /proc # (works for all users) # No pidfile, probably no daemon present [ ! -f "$PIDFILE" ] && return 1 # Obtain the pid and check it against the binary name pid=`cat $PIDFILE` running_pid $pid $DAEMON || return 1 return 0 } do_force_stop() { # Forcefully kill the process [ ! -f "$PIDFILE" ] && return if running ; then kill -15 $pid # Is it really dead? [ -n "$DODTIME" ] && sleep "$DODTIME"s if running ; then kill -9 $pid [ -n "$DODTIME" ] && sleep "$DODTIME"s if running ; then echo "Cannot kill $NAME (pid=$pid)!" exit 1 fi fi fi rm -f $PIDFILE return 0 } do_start() { # Check if we have the configuration file if [ ! -f /etc/sphinxsearch/sphinx.conf ]; then echo "\n" echo "Please create an /etc/sphinxsearch/sphinx.conf configuration file." echo "A template is provided as /etc/sphinxsearch/sphinx.conf.sample." exit 1 fi start-stop-daemon --start --pidfile $PIDFILE --chuid sphinxsearch --exec ${DAEMON} } do_stop() { start-stop-daemon --stop --quiet --oknodo --user sphinxsearch --pidfile $PIDFILE \ --exec $DAEMON } case "$1" in start) echo -n "Starting $DESC: " do_start [ -n "$STARTDELAY" ] && sleep $STARTDELAY if running ; then echo "$NAME." else echo " ERROR." fi ;; stop) echo -n "Stopping $DESC: " do_stop echo "$NAME." ;; force-stop) echo -n "Forcefully stopping $DESC: " do_force_stop if ! running ; then echo "$NAME." else echo " ERROR." fi ;; restart|reload|force-reload) echo -n "Restarting $DESC: " do_stop [ -n "$DODTIME" ] && sleep $DODTIME do_start echo "$NAME." ;; status) echo -n "$NAME is " if running ; then echo "running" else echo " not running." exit 1 fi ;; *) N=/etc/init.d/$NAME # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2 exit 1 ;; esac exit 0 debian/changelog0000644000000000000000000001314712231167625011053 0ustar sphinxsearch (2.0.4-1.1ubuntu2) devel; urgency=low * Add a call to AM_PROG_AR to fix FTBFS with new automake. * Enable parallel build. * Enable 64 bit long ID (LP: #839626) * Enable compile options: --with-syslog, --with-unixodbc (LP: #1068087) -- Dmitrijs Ledkovs Mon, 21 Oct 2013 09:56:47 +0100 sphinxsearch (2.0.4-1.1ubuntu1) quantal; urgency=low * Add libraries, ruby and python api. (Closes: #563205) * Add dh_autotools_dev to satisfy dpkg-source * Use dh_python2 -- Dmitrijs Ledkovs Thu, 23 Aug 2012 03:01:57 +0100 sphinxsearch (2.0.4-1.1) unstable; urgency=low * Non-maintainer upload. * Removed hard-coded dependency on libmysqlclient16 (Closes: #676595) -- Nicholas Bamber Mon, 11 Jun 2012 20:31:53 +0000 sphinxsearch (2.0.4-1) unstable; urgency=low * New upstream release. * Fix FTBFS with gcc-4.7. Thanks to Cyril Brulebois for the patch. (closes: #667378) * init script improvements thanks to Daniel Black. (closes: #656326) * watch file thanks to Mateusz Kijowski. (closes: #663680, #663679) * Bumped Standards Version. -- Radu Spineanu Fri, 20 Apr 2012 02:24:37 +0000 sphinxsearch (2.0.3-1) unstable; urgency=low * New upstream release. * Upstream release fixes case when omitting mem_limit generates a spurious warning. (closes: #647815) * Migrated from dpatch to quilt. -- Radu Spineanu Tue, 10 Jan 2012 08:15:19 +0000 sphinxsearch (0.9.9+2.0.2beta-1) unstable; urgency=low * New upstream release. (2.0.2beta) * New upstream fixes FTBFS. (closes: #648260) * Create /var/run/sphinxsearch in init.d if it doesn't exist. Thanks to John Paulett for the patch. (closes: #645663) -- Radu Spineanu Thu, 01 Dec 2011 16:24:36 +0000 sphinxsearch (0.9.9+2.0.1beta-1) unstable; urgency=low * New upstream release. (2.0.1beta) (closes: #639784) * Fix FTBFS with multiarchified libstemmer. (closes: #635030) * logrotate now refers correctly to /var/run/sphinxsearch/searchd.pid. (closes: #641194) * Added a new entry about sphinxsearch running with user privileges. (closes: #640732) -- Radu Spineanu Sat, 08 Oct 2011 15:30:05 +0000 sphinxsearch (0.9.9-9) unstable; urgency=low * Run daemon as the sphinxsearch user. Related to #563205. Inspired from Christian Hofstaedtler's patch. * Moved pidfile to /var/run/sphinxsearch/searchd.pid * postinst edits the conf file to replace the pid file location. -- Radu Spineanu Wed, 20 Jul 2011 03:42:46 +0000 sphinxsearch (0.9.9-8) unstable; urgency=low * libstemmer support. Thanks for the awesome work done by Thijs Kinkhorst and Adam Golebiowski. (closes: #570506) * Added build-dependency on autoconf, automake, and dh_autoreconf. * Added dh_autoreconf call in debian/rules. * init.d: restart sphinx on reload/force-reload. (closes: #625714) * Add logrotate script. Thanks to Thijs Kinkhorst. (closes: #630611) * Bumped Standards Version. -- Radu Spineanu Fri, 08 Jul 2011 05:56:12 +0000 sphinxsearch (0.9.9-7) unstable; urgency=low * Stop the cron entry from SPAM-ing (again). (closes: #586146) * Rename LABEL to NAME in init script. (closes: #591763) * Add a slight start delay in init.d script to avoid process checks before sphinx finished initializing. (closes: #613455) * Add sphinx.conf as sphinx.conf.sample. (closes: #600708) * Bumped Standards Version. -- Radu Spineanu Sat, 09 Apr 2011 08:13:25 +0000 sphinxsearch (0.9.9-6) unstable; urgency=low * Fixed a bashism in crontab. (closes: #573401) -- Radu Spineanu Sat, 05 Jun 2010 20:22:10 +0300 sphinxsearch (0.9.9-5) unstable; urgency=low * Added a patch from Julian Cristau to fix the alpha build. (closes: #564620 ) * Check if $START is 'yes' in /etc/default/sphinxsearch when running cron script (closes: #573401) * Added libexpat-dev build-dependency. Thanks to Patrik Rak for pointing it out. -- Radu Spineanu Wed, 21 Apr 2010 23:23:09 +0300 sphinxsearch (0.9.9-4) unstable; urgency=low * Fix init.d echo and return bug. -- Radu Spineanu Wed, 13 Jan 2010 01:48:49 +0200 sphinxsearch (0.9.9-3) unstable; urgency=low * Cronjob should be run as root for now. -- Radu Spineanu Sun, 10 Jan 2010 19:23:04 +0200 sphinxsearch (0.9.9-2) unstable; urgency=low * Thanks to Christian Hofstaedtler sphinxsearch has a number of improvements (#563205) + man pages for indexer and searchd + indexer cronjob * Don't ship example confs in /etc/sphinxsearch. But also don't start init.d automatically. Let the user tweak sphinx.conf so that it suits him first. * Remove old configuration template files from /etc/sphinxsearch if present -- Radu Spineanu Sun, 10 Jan 2010 17:46:43 +0200 sphinxsearch (0.9.9-1) unstable; urgency=low * New upstream release. (closes: #561687) -- Radu Spineanu Mon, 28 Dec 2009 15:13:50 +0200 sphinxsearch (0.9.8.1-3) unstable; urgency=low * Upload with dpkg-buildpackage -sa. -- Radu Spineanu Thu, 19 Nov 2009 15:24:45 +0200 sphinxsearch (0.9.8.1-2) unstable; urgency=low * Added missing copyright entries. -- Radu Spineanu Tue, 17 Nov 2009 22:19:42 +0200 sphinxsearch (0.9.8.1-1) unstable; urgency=low * Initial release (Closes: #456227, #458000) -- Radu Spineanu Sun, 25 Oct 2009 00:09:31 +0300 debian/postinst0000644000000000000000000000201012015305642010763 0ustar #!/bin/sh # postinst script for sphinxsearch # # see: dh_installdeb(1) set -e case "$1" in configure) mkdir -p /var/run/sphinxsearch # Check if the sphinxsearch user is present, if not add it. getent passwd sphinxsearch >/dev/null 2>&1 || adduser --system --disabled-login --no-create-home --home /var/run/sphinxsearch --gecos "Sphinx fulltext search service" --group sphinxsearch # Set up proper permissions. chown -R sphinxsearch /var/log/sphinxsearch /var/lib/sphinxsearch /var/run/sphinxsearch # Pid file path has changed in 0.9.9-9. if [ -f /etc/sphinxsearch/sphinx.conf ]; then sed -i "s/\/var\/run\/searchd.pid/\/var\/run\/sphinxsearch\/searchd.pid/g" /etc/sphinxsearch/sphinx.conf fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/control0000644000000000000000000001014512231167557010603 0ustar Source: sphinxsearch Section: misc Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Radu Spineanu Build-Depends: debhelper (>= 7.0.50), autotools-dev, gawk, libmysqlclient-dev, libpq-dev, autoconf, libtool, automake, docbook-to-man, libexpat-dev, libstemmer-dev, dh-autoreconf, adduser, python, ruby, unixodbc-dev Standards-Version: 3.9.3 Package: sphinxsearch Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, adduser Description: Fast standalone full-text SQL search engine Sphinx is a standalone full text search engine, meant to provide fast, size-efficient and relevant fulltext search functions to other applications. Sphinx was specially designed to integrate well with SQL databases and scripting languages. Currently built-in data sources support fetching data either via direct connection to MySQL or PostgreSQL, or using XML pipe mechanism (a pipe to indexer in special XML-based format which Sphinx recognizes). . Sphinx is an acronym which is officially decoded as SQL Phrase Index. Package: libsphinxclient-0.0.1 Depends: ${shlibs:Depends}, ${misc:Depends} Architecture: any Description: Fast standalone full-text SQL search engine - Client library Sphinx is a standalone full text search engine, meant to provide fast, size-efficient and relevant fulltext search functions to other applications. Sphinx was specially designed to integrate well with SQL databases and scripting languages. Currently built-in data sources support fetching data either via direct connection to MySQL or PostgreSQL, or using XML pipe mechanism (a pipe to indexer in special XML-based format which Sphinx recognizes). . Sphinx is an acronym which is officially decoded as SQL Phrase Index. . This package contains the client library for C. Package: libsphinxclient-dev Architecture: any Section: libdevel Depends: libsphinxclient-0.0.1 (= ${binary:Version}), ${misc:Depends} Description: Fast standalone full-text SQL search engine - Client library Sphinx is a standalone full text search engine, meant to provide fast, size-efficient and relevant fulltext search functions to other applications. Sphinx was specially designed to integrate well with SQL databases and scripting languages. Currently built-in data sources support fetching data either via direct connection to MySQL or PostgreSQL, or using XML pipe mechanism (a pipe to indexer in special XML-based format which Sphinx recognizes). . Sphinx is an acronym which is officially decoded as SQL Phrase Index. . This package contains the client library for C development files. Package: python-sphinxapi Architecture: all Section: python Depends: ${python:Depends}, ${misc:Depends} Description: Fast standalone full-text SQL search engine - Client library Sphinx is a standalone full text search engine, meant to provide fast, size-efficient and relevant fulltext search functions to other applications. Sphinx was specially designed to integrate well with SQL databases and scripting languages. Currently built-in data sources support fetching data either via direct connection to MySQL or PostgreSQL, or using XML pipe mechanism (a pipe to indexer in special XML-based format which Sphinx recognizes). . Sphinx is an acronym which is officially decoded as SQL Phrase Index. . This package contains the client library for Python. Package: libsphinx-ruby Architecture: all Section: ruby Depends: libruby, ruby (>=1.8.7), ${misc:Depends} Description: Fast standalone full-text SQL search engine - Client library Sphinx is a standalone full text search engine, meant to provide fast, size-efficient and relevant fulltext search functions to other applications. Sphinx was specially designed to integrate well with SQL databases and scripting languages. Currently built-in data sources support fetching data either via direct connection to MySQL or PostgreSQL, or using XML pipe mechanism (a pipe to indexer in special XML-based format which Sphinx recognizes). . Sphinx is an acronym which is officially decoded as SQL Phrase Index. . This package contains the client library for Ruby. debian/cron.d0000644000000000000000000000063012015305642010271 0ustar # Rebuild all indexes daily and notify searchd. @daily root . /etc/default/sphinxsearch && if [ "$START" = "yes" ] && [ -x /usr/bin/indexer ]; then /usr/bin/indexer --quiet --rotate --all; fi # Example for rotating only specific indexes (usually these would be part of # a larger combined index). # */5 * * * * root [ -x /usr/bin/indexer ] && /usr/bin/indexer --quiet --rotate postdelta threaddelta debian/rules0000755000000000000000000001304412231167511010247 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif config.status: dh_testdir dh_autotools-dev_updateconfig dh_autoreconf # Add here commands to configure the package. ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --localstatedir=/var/lib/sphinxsearch --sysconfdir=/etc/sphinxsearch --with-libstemmer --with-pgsql --enable-id64 --with-unixodbc --with-syslog CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" cd api/libsphinxclient && ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --localstatedir=/var/lib/sphinxsearch --sysconfdir=/etc/sphinxsearch CFLAGS="$(CFLAGS)" build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: config.status dh_testdir dh_auto_build --parallel docbook-to-man debian/indexer.1.sgml > indexer.1 docbook-to-man debian/searchd.1.sgml > searchd.1 touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || $(MAKE) distclean [ ! -f api/libsphinxclient/Makefile ] || $(MAKE) -C api/libsphinxclient distclean $(RM) config.log config.status $(RM) -f indexer.1 searchd.1 debian/sphinxapi.py dh_autoreconf_clean dh_autotools-dev_restoreconfig dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/sphinxsearch. $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp # Copy a default configuration file mv $(CURDIR)/debian/tmp/etc/sphinxsearch/sphinx.conf.dist $(CURDIR)/debian/tmp/etc/sphinxsearch/sphinx.conf.sample # apis cp api/sphinxapi.py debian/ cd api/libsphinxclient && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install install -d $(CURDIR)/debian/tmp/usr/lib/ruby/vendor_ruby install -d $(CURDIR)/debian/tmp/usr/lib/ruby/vendor_ruby/sphinx install -m0644 api/ruby/lib/sphinx.rb $(CURDIR)/debian/tmp/usr/lib/ruby/vendor_ruby/ install -m0644 api/ruby/lib/sphinx/client.rb $(CURDIR)/debian/tmp/usr/lib/ruby/vendor_ruby/sphinx/ install -m0644 api/ruby/lib/sphinx/request.rb $(CURDIR)/debian/tmp/usr/lib/ruby/vendor_ruby/sphinx/ install -m0644 api/ruby/lib/sphinx/response.rb $(CURDIR)/debian/tmp/usr/lib/ruby/vendor_ruby/sphinx/ install -d $(CURDIR)/debian/tmp/usr/share/doc/libsphinx-ruby cd api/ruby && rdoc --all --inline-source --diagram --fileboxes --line-numbers --fmt=html -o $(CURDIR)/debian/tmp/usr/share/doc/libsphinx-ruby/rdoc # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot #dh_rdoc -plibsphinx-ruby api/ruby dh_installdirs -ppython-sphinxapi -plibsphinx-ruby dh_installchangelogs -ppython-sphinxapi -plibsphinx-ruby dh_installdocs -ppython-sphinxapi -plibsphinx-ruby dh_installexamples -ppython-sphinxapi -plibsphinx-ruby dh_install -ppython-sphinxapi -plibsphinx-ruby -a --sourcedir=debian/tmp dh_python2 -ppython-sphinxapi dh_installcron -ppython-sphinxapi -plibsphinx-ruby dh_installdebconf -ppython-sphinxapi -plibsphinx-ruby dh_installinit -ppython-sphinxapi -plibsphinx-ruby dh_installman -ppython-sphinxapi -plibsphinx-ruby dh_link -ppython-sphinxapi -plibsphinx-ruby dh_strip -ppython-sphinxapi -plibsphinx-ruby dh_compress -ppython-sphinxapi -plibsphinx-ruby dh_fixperms -ppython-sphinxapi -plibsphinx-ruby dh_makeshlibs -ppython-sphinxapi -plibsphinx-ruby dh_installdeb -ppython-sphinxapi -plibsphinx-ruby dh_shlibdeps -ppython-sphinxapi -plibsphinx-ruby dh_gencontrol -ppython-sphinxapi -plibsphinx-ruby dh_md5sums -ppython-sphinxapi -plibsphinx-ruby dh_builddeb -ppython-sphinxapi -plibsphinx-ruby # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdirs -Npython-sphinxapi -Nlibsphinx-ruby dh_installchangelogs -Npython-sphinxapi -Nlibsphinx-ruby dh_installdocs -a -Npython-sphinxapi -Nlibsphinx-ruby dh_installexamples -Npython-sphinxapi -Nlibsphinx-ruby dh_install -Npython-sphinxapi -Nlibsphinx-ruby -a --sourcedir=debian/tmp dh_installcron -a -Npython-sphinxapi -Nlibsphinx-ruby dh_installdebconf -Npython-sphinxapi -Nlibsphinx-ruby dh_installinit -Npython-sphinxapi -Nlibsphinx-ruby dh_installman -Npython-sphinxapi -Nlibsphinx-ruby dh_installlogrotate -a dh_link -Npython-sphinxapi -Nlibsphinx-ruby dh_strip -Npython-sphinxapi -Nlibsphinx-ruby dh_compress -Npython-sphinxapi -Nlibsphinx-ruby dh_fixperms -Npython-sphinxapi -Nlibsphinx-ruby dh_makeshlibs -Npython-sphinxapi -Nlibsphinx-ruby dh_installdeb -Npython-sphinxapi -Nlibsphinx-ruby dh_shlibdeps -Npython-sphinxapi -Nlibsphinx-ruby dh_gencontrol -Npython-sphinxapi -Nlibsphinx-ruby dh_md5sums -Npython-sphinxapi -Nlibsphinx-ruby dh_builddeb -Npython-sphinxapi -Nlibsphinx-ruby binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/watch0000644000000000000000000000034712015305642010221 0ustar version=3 opts=filenamemangle=s/.*=(.*)/$1/,downloadurlmangle=s#downloads\/release\/\.\.\/accept\.php\?file=#files/# \ http://sphinxsearch.com/downloads/release/ \.\./accept\.php\?file=sphinx-(.*)-release\.tar\.gz debian uupdate debian/indexer.1.sgml0000644000000000000000000001506012015305642011647 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Christian"> Hofstaedtler"> 2009-10-09"> 1"> ch+debian-packages@zeha.at"> sphinxsearch"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2009 &dhusername; &dhdate;
&dhucpackage; &dhsection; indexer fulltext index generator indexer INDEX indexer --buildstops OUTPUTFILE COUNT INDEX indexer --merge MAIN_INDEX DELTA_INDEX DESCRIPTION Sphinx is a collection of programs that aim to provide high quality fulltext search. indexer fetches all documents from the configured sources and creates the index data files. This manual page was written for the &debian; distribution because the original program does not have a manual page. Instead, it has documentation in HTML format, see below. OPTIONS These programs follow the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the HTML documentation. Specify an alternate configuration file to use. Causes indexer to (re-)index all indexes, instead of the specified ones. Suppress all non-error output. Suppress progress information. Show summary of options. Writes index data files as INDEX.new files and sends a SIGHUP to searchd, causing it to rotate the index files. SEE ALSO search (1), searchd (1). Sphinx and it's programs are documented fully by the Spinx reference manual available in /usr/share/doc/sphinxsearch. AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/libsphinxclient-0.0.1.install0000644000000000000000000000003412015306115014376 0ustar usr/lib/libsphinxclient*.so debian/NEWS0000644000000000000000000000046712015305642007672 0ustar sphinxsearch (0.9.9+2.0.1beta-1) unstable; urgency=low Since 0.9.9-9 sphinxsearch runs as the user sphinxsearch. If you were using the /var/run/ directory to work with sphinxsearch migrate your scripts to use /var/run/sphinxsearch/. -- Radu Spineanu Sat, 08 Oct 2011 15:30:05 +0000 debian/logrotate0000644000000000000000000000034312015305642011107 0ustar /var/log/sphinxsearch/*.log { weekly rotate 4 compress missingok sharedscripts postrotate start-stop-daemon -K -p /var/run/sphinxsearch/searchd.pid -s USR1 -x /usr/bin/searchd -q endscript } debian/install0000644000000000000000000000033112015305642010552 0ustar debian/tmp/usr/bin/* doc/sphinx.* /usr/share/doc/sphinxsearch doc/internals* /usr/share/doc/sphinxsearch example.sql /usr/share/doc/sphinxsearch/example-conf sphinx*.conf.dist /usr/share/doc/sphinxsearch/example-conf debian/patches/0000755000000000000000000000000012231166202010610 5ustar debian/patches/04_libstemmer.patch0000644000000000000000000001246512015305642014312 0ustar Author: Thijs Kinkhorst Description: libstemmer support ( #570506 ) --- a/acinclude.m4 +++ b/acinclude.m4 @@ -291,6 +291,83 @@ ]) dnl --------------------------------------------------------------------------- +dnl Macro: AC_CHECK_LIBSTEMMER +dnl Author: Adam Golebiowski +dnl First check for custom libstemmer include path in --with-libstemmer=* option +dnl If not given, try to guess. +dnl --------------------------------------------------------------------------- + +AC_DEFUN([AC_CHECK_LIBSTEMMER],[ + +# cflags and libs +LIBSTEMMER_CFLAGS= +LIBSTEMMER_LIBS= + +# possible includedir paths +includedirs="/usr/include /usr/include/libstemmer /usr/include/libstemmer_c" + +# possible libdirs -- 64bit first in case of multiarch environments +libdirs="/usr/lib/$(/usr/bin/dpkg-architecture -qDEB_HOST_MULTIARCH) /usr/lib64 /usr/local/lib64 /usr/lib /usr/local/lib" + +# possible libnames -- shared one first, then static one +libnames="stemmer stemmer_c" + +# was (include) path explicitely given? +if test [ -n "$ac_cv_use_libstemmer" -a x$ac_cv_use_libstemmer != xyes]; then + includedirs=$ac_cv_use_libstemmer +fi + +# try to find header files +for includedir in $includedirs +do + if test [ -f $includedir/libstemmer.h ]; then + LIBSTEMMER_CFLAGS="-I$includedir" + break + fi +done + +# try to find shared library +for libname in $libnames +do + for libdir in $libdirs + do + if test [ -f $libdir/lib${libname}.so ]; then + LIBSTEMMER_LIBS="-L$libdir -l$libname" + break 2 + fi + done +done + +# if not found, check static libs +if test [ -z "$LIBSTEMMER_LIBS" ]; then + for libname in $libnames + do + for libdir in $libdirs + do + if test [ -f $libdir/lib${libname}.a ]; then + LIBSTEMMER_LIBS="$libdir/lib${libname}.a" + break 2 + fi + done + done +fi + +# if LIBSTEMMER_LIBS is not set at this moment, +# our last chanceis to check for existance of internal copy of libstemmer_c +# in case it doesn't exist -- we lost +if test [ -z "$LIBSTEMMER_LIBS" ]; then + if test [ -d ./libstemmer_c ]; then + ac_cv_use_internal_libstemmer=1 + LIBSTEMMER_LIBS="\$(top_srcdir)/libstemmer_c/libstemmer.a" + LIBSTEMMER_CFLAGS="-I\$(top_srcdir)/libstemmer_c/include" + else + AC_MSG_ERROR([not found]) + fi +fi + +]) + +dnl --------------------------------------------------------------------------- dnl Macro: SPHINX_CONFIGURE_PART dnl dnl Tells what stage is ./configure running now, nicely formatted --- a/configure.ac +++ b/configure.ac @@ -310,9 +310,6 @@ MYSQL_CFLAGS="$MYSQL_CFLAGS -I/opt/local/include" fi -# we can now set preprocessor flags for both C and C++ compilers -CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS $PGSQL_CFLAGS" - dnl --- AC_MSG_CHECKING([whether to use 64-bit document/word IDs]) @@ -337,22 +334,23 @@ AC_MSG_CHECKING([whether to compile with libstemmer support]) if test x$ac_cv_use_libstemmer != xno; then - if test -d libstemmer_c && test -f libstemmer_c/include/libstemmer.h; then - AC_MSG_RESULT([yes]) - AC_DEFINE(USE_LIBSTEMMER, 1, [libstemmer support]) - else - AC_MSG_ERROR([missing libstemmer sources from libstemmer_c. - -Please download the C version of libstemmer library from -http://snowball.tartarus.org/ and extract its sources over libstemmer_c/ -subdirectory in order to build Sphinx with libstemmer support. -]) - fi + ac_cv_use_internal_libstemmer=0 + AC_MSG_RESULT([yes]) + AC_CHECK_LIBSTEMMER([$ac_cv_use_listemmer]) + AC_DEFINE(USE_LIBSTEMMER, 1, [Define to 1 if you want to compile with libstemmer support]) + AC_DEFINE(USE_INTERNAL_LIBSTEMMER, $ac_cv_use_internal_libstemmer, [Define to 1 if you want to compile with internal libstemmer library]) + AC_SUBST([LIBSTEMMER_LIBS]) + AC_SUBST([LIBSTEMMER_CFLAGS]) else AC_MSG_RESULT([no]) - AC_DEFINE(USE_LIBSTEMMER, 0, [libstemmer support]) fi AM_CONDITIONAL(USE_LIBSTEMMER, test x$ac_cv_use_libstemmer != xno) +AM_CONDITIONAL(USE_INTERNAL_LIBSTEMMER, test x$ac_cv_use_internal_libstemmer != x0) + +dnl --- + +# we can now set preprocessor flags for both C and C++ compilers +CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS $PGSQL_CFLAGS $LIBSTEMMER_CFLAGS" dnl --- --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -if USE_LIBSTEMMER +if USE_INTERNAL_LIBSTEMMER SUBDIRS = libstemmer_c src test doc else SUBDIRS = src test doc --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,13 +21,7 @@ extract-version: /bin/sh svnxrev.sh .. -if USE_LIBSTEMMER -LIBSTEMMER_LIBS = $(top_srcdir)/libstemmer_c/libstemmer.a AM_CPPFLAGS = -I$(top_srcdir)/libstemmer_c/include -DSYSCONFDIR="\"$(sysconfdir)\"" -DDATADIR="\"$(localstatedir)/data\"" -else -LIBSTEMMER_LIBS = -AM_CPPFLAGS = -DSYSCONFDIR="\"$(sysconfdir)\"" -DDATADIR="\"$(localstatedir)/data\"" -endif COMMON_LIBS = libsphinx.a $(LIBSTEMMER_LIBS) $(MYSQL_LIBS) $(PGSQL_LIBS) LDADD = $(COMMON_LIBS) --- a/src/sphinx.cpp +++ b/src/sphinx.cpp @@ -39,7 +39,7 @@ #define SPH_READ_NOPROGRESS_CHUNK (32768*1024) #if USE_LIBSTEMMER -#include "libstemmer.h" +#include #endif #if USE_LIBEXPAT debian/patches/02_sphinx.conf.patch0000644000000000000000000001012512015305642014371 0ustar Author: , modified by Radu Spineanu Description: Changed default locations to match debian locations. --- a/sphinx.conf.in +++ b/sphinx.conf.in @@ -270,7 +270,7 @@ # shell command to invoke xmlpipe stream producer # mandatory # - # xmlpipe_command = cat @CONFDIR@/test.xml + # xmlpipe_command = cat @localstatedir@/test.xml # xmlpipe2 field declaration # multi-value, optional, default is empty @@ -328,7 +328,7 @@ # index files path and file name, without extension # mandatory, path must be writable, extensions will be auto-appended - path = @CONFDIR@/data/test1 + path = @localstatedir@/data/test1 # document attribute values (docinfo) storage mode # optional, default is 'extern' @@ -363,13 +363,13 @@ # optional, default is empty # contents are plain text, charset_table and stemming are both applied # - # stopwords = @CONFDIR@/data/stopwords.txt + # stopwords = @localstatedir@/data/stopwords.txt # wordforms file, in "mapfrom > mapto" plain text format # optional, default is empty # - # wordforms = @CONFDIR@/data/wordforms.txt + # wordforms = @localstatedir@/data/wordforms.txt # tokenizing exceptions file @@ -378,7 +378,7 @@ # plain text, case sensitive, space insensitive in map-from part # one "Map Several Words => ToASingleOne" entry per line # - # exceptions = @CONFDIR@/data/exceptions.txt + # exceptions = @localstatedir@/data/exceptions.txt # minimum indexed word length @@ -577,7 +577,7 @@ # and may then be overridden in this index definition index test1stemmed : test1 { - path = @CONFDIR@/data/test1stemmed + path = @localstatedir@/data/test1stemmed morphology = stem_en } @@ -631,7 +631,7 @@ # index files path and file name, without extension # mandatory, path must be writable, extensions will be auto-appended - path = @CONFDIR@/data/rt + path = @localstatedir@/data/rt # RAM chunk size limit # RT index will keep at most this much data in RAM, then flush to disk @@ -721,11 +721,11 @@ # log file, searchd run info is logged here # optional, default is 'searchd.log' - log = @CONFDIR@/log/searchd.log + log = /var/log/sphinxsearch/searchd.log # query log file, all search queries are logged here # optional, default is empty (do not log queries) - query_log = @CONFDIR@/log/query.log + query_log = /var/log/sphinxsearch/query.log # client read timeout, seconds # optional, default is 5 @@ -741,7 +741,7 @@ # PID file, searchd process ID file name # mandatory - pid_file = @CONFDIR@/log/searchd.pid + pid_file = /var/run/sphinxsearch/searchd.pid # max amount of matches the daemon ever keeps in RAM, per-index # WARNING, THERE'S ALSO PER-QUERY LIMIT, SEE SetLimits() API CALL @@ -787,7 +787,7 @@ # searchd will (try to) log crashed query to 'crash_log_path.PID' file # optional, default is empty (do not create crash logs) # - # crash_log_path = @CONFDIR@/log/crash + # crash_log_path = /var/log/sphinxsearch/crash # max allowed per-query filter count @@ -852,7 +852,7 @@ # optional, default is build-time configured data directory # # binlog_path = # disable logging - # binlog_path = @CONFDIR@/data # binlog.001 etc will be created there + # binlog_path = @localstatedir@/data # binlog.001 etc will be created there # binlog flush/sync mode --- a/sphinx-min.conf.in +++ b/sphinx-min.conf.in @@ -26,7 +26,7 @@ index test1 { source = src1 - path = @CONFDIR@/data/test1 + path = @localstatedir@/data/test1 docinfo = extern charset_type = sbcs } @@ -37,7 +37,7 @@ type = rt rt_mem_limit = 32M - path = @CONFDIR@/data/testrt + path = @localstatedir@/data/testrt charset_type = utf-8 rt_field = title @@ -56,11 +56,11 @@ { listen = 9312 listen = 9306:mysql41 - log = @CONFDIR@/log/searchd.log - query_log = @CONFDIR@/log/query.log + log = /var/log/sphinxsearch/searchd.log + query_log = /var/log/sphinxsearch/query.log read_timeout = 5 max_children = 30 - pid_file = @CONFDIR@/log/searchd.pid + pid_file = /var/run/sphinxsearch/searchd.pid max_matches = 1000 seamless_rotate = 1 preopen_indexes = 1 debian/patches/05_gcc4.7.patch0000644000000000000000000000247712015305642013137 0ustar Author: Cyril Brulebois Description: gcc-4.7 fix ( #667378 ) --- a/src/sphinxexpr.cpp +++ b/src/sphinxexpr.cpp @@ -1796,7 +1796,7 @@ public: /// evaluate arg, return interval id virtual int IntEval ( const CSphMatch & tMatch ) const { - T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage + T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage ARRAY_FOREACH ( i, this->m_dValues ) // FIXME! OPTIMIZE! perform binary search here if ( valm_dValues[i] ) return i; @@ -1827,7 +1827,7 @@ public: /// evaluate arg, return interval id virtual int IntEval ( const CSphMatch & tMatch ) const { - T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage + T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage ARRAY_FOREACH ( i, m_dTurnPoints ) if ( val < Expr_ArgVsSet_c::ExprEval ( m_dTurnPoints[i], tMatch ) ) return i; @@ -1873,7 +1873,7 @@ public: /// evaluate arg, check if the value is within set virtual int IntEval ( const CSphMatch & tMatch ) const { - T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage + T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage return this->m_dValues.BinarySearch ( val )!=NULL; } debian/patches/03_alpha.patch0000644000000000000000000000053512015305642013226 0ustar Author: Julian Cristau jcristau@debian.org Description: Fix alpha build ( #564620 ) --- a/src/searchd.cpp +++ b/src/searchd.cpp @@ -14753,8 +14753,6 @@ CheckFlush (); CheckChildrenTerm(); - sphInfo ( NULL ); // flush dupes - if ( pAcceptMutex ) { // FIXME! what if all children are busy; we might want to accept here and temp fork more debian/patches/01_Makefile_am.patch0000644000000000000000000000057312015305642014333 0ustar Author: Description: Change the locations built by install-data-hook to match debian install. --- a/Makefile.am +++ b/Makefile.am @@ -8,4 +8,4 @@ sysconf_DATA = sphinx.conf.dist sphinx-min.conf.dist example.sql install-data-hook: - mkdir -p $(DESTDIR)$(localstatedir)/data && mkdir -p $(DESTDIR)$(localstatedir)/log + mkdir -p $(DESTDIR)$(localstatedir) debian/patches/new-automake.patch0000644000000000000000000000065612231166202014235 0ustar Description: Add a call to AM_PROG_AR to fix FTBFS with new automake. Author: Dmitrijs Ledkovs --- sphinxsearch-2.0.4.orig/configure.ac +++ sphinxsearch-2.0.4/configure.ac @@ -10,6 +10,7 @@ SPHINX_CONFIGURE_PART([checking build en AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AM_MAINTAINER_MODE +AM_PROG_AR AC_CONFIG_SRCDIR([src/searchd.cpp]) AC_CONFIG_HEADER([config/config.h]) debian/patches/series0000644000000000000000000000016012231166164012031 0ustar 01_Makefile_am.patch 02_sphinx.conf.patch 03_alpha.patch 04_libstemmer.patch 05_gcc4.7.patch new-automake.patch debian/compat0000644000000000000000000000000212015305642010362 0ustar 7 debian/libsphinxclient-dev.install0000644000000000000000000000006512015306115014524 0ustar usr/lib/libsphinxclient.a usr/include/sphinxclient.h debian/searchd.1.sgml0000644000000000000000000001434012015305642011622 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Christian"> Hofstaedtler"> 2009-10-09"> 1"> ch+debian-packages@zeha.at"> sphinxsearch"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2009 &dhusername; &dhdate;
&dhucpackage; &dhsection; searchd socket server handling search requests backed by Sphinx searchd searchd --status searchd --stop DESCRIPTION Sphinx is a collection of programs that aim to provide high quality fulltext search. searchd answers search requests coming in on a socket. This manual page was written for the &debian; distribution because the original program does not have a manual page. Instead, it has documentation in HTML format, see below. OPTIONS These programs follow the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the HTML documentation. Specify an alternate configuration file to use. Provide per-query CPU stats in searchd log. Provide per-query I/O stats in searchd log. Show summary of options. Used with and to find the correct searchd. Print status variables of a running searchd. Send SIGTERM to a running searchd. SEE ALSO indexer (1), search (1). Sphinx and it's programs are documented fully by the Spinx reference manual available in /usr/share/doc/sphinxsearch. AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/sphinxsearch.dirs0000644000000000000000000000006712015312767012557 0ustar usr/bin var/log/sphinxsearch var/lib/sphinxsearch/data