This "works" on a bare Scientific Linux 6 OpenVZ container.
However,
$ searchd
Sphinx 2.0.4-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/usr/local/etc/sphinx.conf'...
FATAL: 'searchd' config section not found in '/usr/local/etc/sphinx.conf'
and
searchd -c /opt/sphinx/sphinx.conf
Sphinx 2.0.4-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/opt/sphinx/sphinx.conf'...
FATAL: 'searchd' config section not found in '/opt/sphinx/sphinx.conf'
Looking at the Makefile there doesn't seem to be a good way to overwrite the install paths. sysconfdir won't take and DEST_DIR just prepends it so you get silly paths like '/opt/sphinx/usr/local/etc/sphinx.conf'
make install now hits /usr/local/etc/sphinx.conf.dist thus /opt/sphinx isn't there for the template
they changed the tar contents to sphinx-version-relase, which broke ./configure when cwd wasn't there
\ I tried to find a better way such as tar -C directory, but that put the directory in the directory. Didn't find a better way in 2 minutes so I just appended -release to match the current version
Added trailing && so the code block fails on the failing command, instead of saying make install and the error is make: Error cannot find Makefile or something silly.
This "works" on a bare Scientific Linux 6 OpenVZ container.
However,
and
Looking at the Makefile there doesn't seem to be a good way to overwrite the install paths. sysconfdir won't take and DEST_DIR just prepends it so you get silly paths like '/opt/sphinx/usr/local/etc/sphinx.conf'